strerror_r: fix OpenBSD behavior on 0
[gnulib.git] / ChangeLog
1 2011-06-21  Eric Blake  <eblake@redhat.com>
2
3         strerror_r: fix OpenBSD behavior on 0
4         * lib/strerror-override.c (strerror_override): Also override 0
5         when needed.
6         * lib/strerror-override.h (strerror_override): Likewise.
7         * lib/strerror.c (strerror): Simplify, now that 0 override is done
8         earlier.
9         * lib/strerror_r.c (strerror_r): Likewise.
10         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11         behavior...
12         (gl_FUNC_STRERROR_0): ...into new macro.
13         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
14         is overridden.
15         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
16         * modules/strerror-override (Files): Add strerror.m4.
17         (configure.ac): Also provide override for 0 when needed.
18         * doc/posix-functions/strerror.texi (strerror): Document this.
19         * doc/posix-functions/perror.texi (perror): Likewise.
20
21         perror: adjust array size
22         * modules/perror (Depends-on): Add strerror-override.
23         * lib/perror.c (perror): Use it to avoid magic number.
24
25         strerror-override: reduce size
26         * lib/strerror-override.c (strerror_override): Use fewer lines.
27
28 2011-06-20  Bruno Haible  <bruno@clisp.org>
29
30         pathmax: Ensure correct value for PATH_MAX on HP-UX.
31         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
32
33 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
34
35         alloca: port to compilers that can optimize like GCC 4.6.0
36         * lib/alloca.c (find_stack_direction): New signature, taken from
37         Autoconf git.  This works with GCC 4.6.0.  This code should never
38         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
39         be used with other compilers that optimize as well as GCC 4.6.0 does.
40         (alloca): Adjust to new signature.
41         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
42         New macro, which patches Autoconf in a similar way.
43
44         c-stack: stop worrying about stack direction
45         * lib/c-stack.c (find_stack_direction): Remove.
46         (segv_handler): Don't worry about stack direction growth, as it's
47         too much of a pain to configure this correctly, given how compilers
48         are optimizing-away our stack-growth detection code.  Instead, assume
49         that any access to just before or just after the stack is OK.
50         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
51         Don't require AC_FUNC_ALLOCA; no longer needed.
52
53 2011-06-20  Eric Blake  <eblake@redhat.com>
54
55         test-stat: don't allocate PATH_MAX bytes
56         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
57         PATH_MAX-sized buffer.
58         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
59         * modules/stat-tests (Depends-on): Likewise.
60         * tests/test-fstatat.c (includes): Drop pathmax.h.
61         * tests/test-stat.c (includes): Likewise.
62         Reported by Bruno Haible.
63
64 2011-06-20  Bruno Haible  <bruno@clisp.org>
65
66         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
67         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
68         * lib/float.c: New file.
69         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
70         REPLACE_FLOAT_LDBL.
71         * modules/float (Files): Add lib/float.c.
72         (configure.ac): Invoke AC_LIBOBJ.
73         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
74
75 2011-06-20  Bruno Haible  <bruno@clisp.org>
76
77         Tests for module 'float'.
78         * modules/float-tests: New file.
79         * tests/test-float.c: New file.
80
81 2011-06-19  Bruno Haible  <bruno@clisp.org>
82
83         isinf: Coding style.
84         * lib/isinf.c: Use GNU coding style.
85
86 2011-06-19  Bruno Haible  <bruno@clisp.org>
87
88         linkat test: Avoid test failure on AIX 7.1.
89         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
90         * tests/test-link.h (test_link): Likewise.
91
92 2011-06-19  Bruno Haible  <bruno@clisp.org>
93
94         pread test: Avoid test failure on OpenBSD 4.9.
95         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
96
97 2011-06-19  Bruno Haible  <bruno@clisp.org>
98
99         sprintf-posix: Fix test failure on AIX 7.1.
100         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
101         * doc/posix-functions/dprintf.texi: Mention limited precision problem
102         on AIX.
103         * doc/posix-functions/fprintf.texi: Likewise.
104         * doc/posix-functions/printf.texi: Likewise.
105         * doc/posix-functions/snprintf.texi: Likewise.
106         * doc/posix-functions/sprintf.texi: Likewise.
107         * doc/posix-functions/vdprintf.texi: Likewise.
108         * doc/posix-functions/vfprintf.texi: Likewise.
109         * doc/posix-functions/vprintf.texi: Likewise.
110         * doc/posix-functions/vsnprintf.texi: Likewise.
111         * doc/posix-functions/vsprintf.texi: Likewise.
112
113 2011-06-19  Bruno Haible  <bruno@clisp.org>
114
115         roundl-ieee: Fix test failure on AIX 7.1.
116         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
117         * doc/posix-functions/roundl.texi: Mention problem with negative
118         arguments.
119
120 2011-06-19  Bruno Haible  <bruno@clisp.org>
121
122         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
123         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
124         * doc/posix-functions/round.texi: Mention problem with negative
125         arguments.
126         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
127
128 2011-06-19  Bruno Haible  <bruno@clisp.org>
129
130         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
131         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
132         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
133         * doc/posix-functions/roundf.texi: Mention problem with negative
134         arguments.
135         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
136
137 2011-06-19  Bruno Haible  <bruno@clisp.org>
138
139         ceilf-ieee: Work around bug on MacOS X 10.5.
140         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
141
142         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
143         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
144         IEEE compliant, avoid compiler optimizations.
145         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
146         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
147         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
148         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
149         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
150         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
151         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
152         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
153         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
154         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
155
156 2011-06-19  Bruno Haible  <bruno@clisp.org>
157
158         ceilf-ieee: Work around bug on AIX 7.1.
159         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
160         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
161
162 2011-06-19  Bruno Haible  <bruno@clisp.org>
163
164         ceil-ieee: Work around bug on AIX 7.1.
165         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
166         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
167
168 2011-06-18  Bruno Haible  <bruno@clisp.org>
169
170         fsync test: Avoid test failure on MacOS X and AIX.
171         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
172         EINVAL.
173
174 2011-06-18  Bruno Haible  <bruno@clisp.org>
175
176         openat, fdopendir tests: Fix link errors.
177         * modules/openat-tests (Depends-on): Add progname.
178         * modules/fdopendir-tests (Depends-on): Likewise.
179         * tests/test-fchownat.c: Include progname.h.
180         (main): Call set_program_name.
181         * tests/test-fstatat.c: Include progname.h.
182         (main): Call set_program_name.
183         * tests/test-mkdirat.c: Include progname.h.
184         (main): Call set_program_name.
185         * tests/test-openat.c: Include progname.h.
186         (main): Call set_program_name.
187         * tests/test-unlinkat.c: Include progname.h.
188         (main): Call set_program_name.
189         * tests/test-fdopendir.c: Include progname.h.
190         (main): Call set_program_name.
191
192 2011-06-18  Bruno Haible  <bruno@clisp.org>
193
194         Doc update.
195         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
196         HP-UX.
197         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
198
199 2011-06-18  Bruno Haible  <bruno@clisp.org>
200
201         getcwd tests: Avoid compilation error on HP-UX 11.31.
202         * modules/getcwd-tests (Depends-on): Add pathmax.
203         * tests/test-getcwd.c: Include pathmax.h.
204
205 2011-06-18  Bruno Haible  <bruno@clisp.org>
206
207         isfinite, isinf: Fix link error on AIX 6 and 7.
208         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
209         needed, also test the macro with a 'float' argument.
210         * m4/isinf.m4 (gl_ISINF): Likewise.
211
212 2011-06-18  Bruno Haible  <bruno@clisp.org>
213
214         getloadavg: Don't clobber LIBS. Regression from previous commit.
215         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
216         AC_CHECK_LIB from here...
217         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
218         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
219         gl_func_getloadavg_done.
220         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
221
222 2011-06-18  Bruno Haible  <bruno@clisp.org>
223
224         clean-temp: Improve documentation.
225         * lib/clean-temp.h: Explain better how to use this module.
226         Reported by John Darrington <john@darrington.wattle.id.au>.
227
228 2011-06-17  Bruno Haible  <bruno@clisp.org>
229
230         pread, pwrite: Avoid cc warning on AIX.
231         * lib/unistd.in.h (pread): Undefine before defining as a macro.
232         (pwrite): Likewise.
233
234 2011-06-17  Bruno Haible  <bruno@clisp.org>
235
236         spawn-pipe tests: Fix link error.
237         * tests/test-spawn-pipe-child.c: Undefine fprintf.
238         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
239
240 2011-06-17  Bruno Haible  <bruno@clisp.org>
241
242         Tests: Remove unnecessary dependency.
243         * modules/canonicalize-tests (Depends-on): Remove progname.
244         * modules/chown-tests (Depends-on): Likewise.
245         * modules/dirname-tests (Depends-on): Likewise.
246         * modules/fdopendir-tests (Depends-on): Likewise.
247         * modules/fdutimensat-tests (Depends-on): Likewise.
248         * modules/hash-tests (Depends-on): Likewise.
249         * modules/lchown-tests (Depends-on): Likewise.
250         * modules/linkat-tests (Depends-on): Likewise.
251         * modules/renameat-tests (Depends-on): Likewise.
252         * modules/spawn-pipe-tests (Depends-on): Likewise.
253         * modules/utimensat-tests (Depends-on): Likewise.
254
255 2011-06-17  Bruno Haible  <bruno@clisp.org>
256
257         spawn-pipe tests: Fix link error.
258         * tests/test-spawn-pipe-child.c: Undefine fflush.
259
260 2011-06-17  Bruno Haible  <bruno@clisp.org>
261
262         Fix tests link errors.
263         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
264         * modules/chown-tests (Makefile.am): Don't link test-chown with
265         LIBINTL.
266         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
267         LIBINTL.
268         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
269         LIBINTL.
270         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
271         LIBINTL.
272
273 2011-06-16  Bruno Haible  <bruno@clisp.org>
274
275         crypto/gc-sha1: Fix recent regression.
276         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
277         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
278
279         crypto/gc-md5: Fix recent regression.
280         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
281
282         crypto/gc-md4: Fix recent regression.
283         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
284         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
285
286         crypto/gc-arctwo: Fix recent regression.
287         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
288         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
289
290         crypto/gc-rijndael: Fix recent regression.
291         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
292         (configure.ac): Invoke AC_LIBOBJ here.
293         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
294         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
295
296         crypto/gc-hmac-sha1: Fix recent regression.
297         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
298         (configure.ac): Invoke AC_LIBOBJ here.
299         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
300         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
301
302         crypto/gc-hmac-md5: Fix recent regression.
303         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
304         (configure.ac): Invoke AC_LIBOBJ here.
305         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
306         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
307
308         crypto/gc-des: Fix recent regression.
309         * modules/crypto/gc-des (Files): Remove m4/des.m4.
310         (configure.ac): Invoke AC_LIBOBJ here.
311         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
312         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
313
314         crypto/gc-arcfour: Fix recent regression.
315         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
316         (configure.ac): Invoke AC_LIBOBJ here.
317         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
318         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
319
320 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
321
322         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
323         After the 2011-05-21 change, this macro requires
324         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
325         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
326
327 2011-06-16  Bruno Haible  <bruno@clisp.org>
328
329         fprintftime: Move AC_LIBOBJ invocations to module description.
330         * m4/fprintftime.m4: Remove file.
331         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
332         (configure.ac): Remove gl_FPRINTFTIME call.
333         (Makefile.am): Augment lib_SOURCES.
334         Reported by Jim Meyering.
335
336 2011-06-16  Bruno Haible  <bruno@clisp.org>
337
338         tmpfile-safer: Finish 2011-05-23 commit.
339         * m4/stdio-safer.m4: Really remove file.
340         Reported by Jim Meyering.
341
342 2011-06-16  Bruno Haible  <bruno@clisp.org>
343
344         syntax-check: Fix typo.
345         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
346         printf-posix.m4.
347         Reported by Jim Meyering.
348
349 2011-06-13  Jim Meyering  <meyering@redhat.com>
350
351         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
352         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
353
354 2011-05-23  Bruno Haible  <bruno@clisp.org>
355
356         yesno: Move AC_LIBOBJ invocations to module description.
357         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
358         * modules/yesno (Makefile.am): Augment lib_SOURCES.
359
360 2011-05-23  Bruno Haible  <bruno@clisp.org>
361
362         xstrtol: Move AC_LIBOBJ invocations to module description.
363         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
364         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
365
366 2011-05-23  Bruno Haible  <bruno@clisp.org>
367
368         xstrtold: Move AC_LIBOBJ invocations to module description.
369         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
370         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
371
372 2011-05-23  Bruno Haible  <bruno@clisp.org>
373
374         xstrtod: Move AC_LIBOBJ invocations to module description.
375         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
376         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
377
378 2011-05-23  Bruno Haible  <bruno@clisp.org>
379
380         xnanosleep: Move AC_LIBOBJ invocations to module description.
381         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
382         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
383
384 2011-05-23  Bruno Haible  <bruno@clisp.org>
385
386         xgetcwd: Move AC_LIBOBJ invocations to module description.
387         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
388         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
389
390 2011-05-23  Bruno Haible  <bruno@clisp.org>
391
392         xalloc: Move AC_LIBOBJ invocations to module description.
393         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
394         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
395
396 2011-05-23  Bruno Haible  <bruno@clisp.org>
397
398         write-any-file: Move AC_LIBOBJ invocations to module description.
399         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
400         invocation.
401         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
402
403 2011-05-23  Bruno Haible  <bruno@clisp.org>
404
405         utimens: Move AC_LIBOBJ invocations to module description.
406         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
407         * modules/utimens (Makefile.am): Augment lib_SOURCES.
408
409 2011-05-23  Bruno Haible  <bruno@clisp.org>
410
411         utimecmp: Move AC_LIBOBJ invocations to module description.
412         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
413         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
414
415 2011-05-23  Bruno Haible  <bruno@clisp.org>
416
417         userspec: Move AC_LIBOBJ invocations to module description.
418         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
419         * modules/userspec (Makefile.am): Augment lib_SOURCES.
420
421 2011-05-23  Bruno Haible  <bruno@clisp.org>
422
423         unlinkdir: Move AC_LIBOBJ invocations to module description.
424         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
425         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
426
427 2011-05-23  Bruno Haible  <bruno@clisp.org>
428
429         unistd-safer: Move AC_LIBOBJ invocations to module description.
430         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
431         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
432
433 2011-05-23  Bruno Haible  <bruno@clisp.org>
434
435         tempname: Move AC_LIBOBJ invocations to module description.
436         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
437         * modules/tempname (Makefile.am): Augment lib_SOURCES.
438
439 2011-05-23  Bruno Haible  <bruno@clisp.org>
440
441         strftime: Move AC_LIBOBJ invocations to module description.
442         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
443         * modules/strftime (Makefile.am): Augment lib_SOURCES.
444
445 2011-05-23  Bruno Haible  <bruno@clisp.org>
446
447         stdlib-safer: Move AC_LIBOBJ invocations to module description.
448         * m4/stdlib-safer.m4: Remove file.
449         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
450         (configure.ac): Remove gl_STDLIB_SAFER call.
451         (Makefile.am): Augment lib_SOURCES.
452
453 2011-05-23  Bruno Haible  <bruno@clisp.org>
454
455         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
456         * m4/stdio-safer.m4: Remove file.
457         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
458         (configure.ac): Remove gl_TMPFILE_SAFER call.
459         (Makefile.am): Augment lib_SOURCES.
460
461 2011-05-23  Bruno Haible  <bruno@clisp.org>
462
463         popen-safer: Move AC_LIBOBJ invocations to module description.
464         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
465         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
466         (configure.ac): Remove gl_POPEN_SAFER call.
467         (Makefile.am): Augment lib_SOURCES.
468
469 2011-05-23  Bruno Haible  <bruno@clisp.org>
470
471         freopen-safer: Move AC_LIBOBJ invocations to module description.
472         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
473         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
474         (configure.ac): Remove gl_FREOPEN_SAFER call.
475         (Makefile.am): Augment lib_SOURCES.
476
477 2011-05-23  Bruno Haible  <bruno@clisp.org>
478
479         fopen-safer: Move AC_LIBOBJ invocations to module description.
480         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
481         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
482         (configure.ac): Remove gl_FOPEN_SAFER call.
483         (Makefile.am): Augment lib_SOURCES.
484
485 2011-05-23  Bruno Haible  <bruno@clisp.org>
486
487         crypto/sha512: Move AC_LIBOBJ invocations to module description.
488         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
489         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
490
491 2011-05-23  Bruno Haible  <bruno@clisp.org>
492
493         crypto/sha256: Move AC_LIBOBJ invocations to module description.
494         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
495         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
496
497 2011-05-23  Bruno Haible  <bruno@clisp.org>
498
499         crypto/sha1: Move AC_LIBOBJ invocations to module description.
500         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
501         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
502
503 2011-05-23  Bruno Haible  <bruno@clisp.org>
504
505         settime: Move AC_LIBOBJ invocations to module description.
506         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
507         * modules/settime (Makefile.am): Augment lib_SOURCES.
508
509 2011-05-23  Bruno Haible  <bruno@clisp.org>
510
511         savedir: Move AC_LIBOBJ invocations to module description.
512         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
513         * modules/savedir (Makefile.am): Augment lib_SOURCES.
514
515 2011-05-23  Bruno Haible  <bruno@clisp.org>
516
517         save-cwd: Move AC_LIBOBJ invocations to module description.
518         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
519         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
520
521 2011-05-23  Bruno Haible  <bruno@clisp.org>
522
523         same: Move AC_LIBOBJ invocations to module description.
524         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
525         * modules/same (Makefile.am): Augment lib_SOURCES.
526
527 2011-05-23  Bruno Haible  <bruno@clisp.org>
528
529         safe-write: Move AC_LIBOBJ invocations to module description.
530         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
531         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
532         instead of gl_SAFE_WRITE.
533         (Makefile.am): Augment lib_SOURCES.
534
535 2011-05-23  Bruno Haible  <bruno@clisp.org>
536
537         safe-read: Move AC_LIBOBJ invocations to module description.
538         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
539         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
540         of gl_SAFE_READ.
541         (Makefile.am): Augment lib_SOURCES.
542
543 2011-05-23  Bruno Haible  <bruno@clisp.org>
544
545         safe-alloc: Move AC_LIBOBJ invocations to module description.
546         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
547         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
548
549 2011-05-23  Bruno Haible  <bruno@clisp.org>
550
551         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
552         * m4/rijndael.m4: Remove file.
553         * modules/crypto/rijndael (Files): Remove it.
554         (configure.ac): Remove gl_RIJNDAEL call.
555         (Makefile.am): Augment lib_SOURCES.
556
557 2011-05-23  Bruno Haible  <bruno@clisp.org>
558
559         readtokens: Move AC_LIBOBJ invocations to module description.
560         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
561         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
562
563 2011-05-23  Bruno Haible  <bruno@clisp.org>
564
565         read-file: Move AC_LIBOBJ invocations to module description.
566         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
567         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
568         of gl_FUNC_READ_FILE.
569         (Makefile.am): Augment lib_SOURCES.
570
571 2011-05-23  Bruno Haible  <bruno@clisp.org>
572
573         quotearg: Move AC_LIBOBJ invocations to module description.
574         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
575         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
576
577 2011-05-23  Bruno Haible  <bruno@clisp.org>
578
579         quote: Move AC_LIBOBJ invocations to module description.
580         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
581         * modules/quote (Makefile.am): Augment lib_SOURCES.
582
583 2011-05-23  Bruno Haible  <bruno@clisp.org>
584
585         posixver: Move AC_LIBOBJ invocations to module description.
586         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
587         * modules/posixver (Makefile.am): Augment lib_SOURCES.
588
589 2011-05-23  Bruno Haible  <bruno@clisp.org>
590
591         posixtm: Move AC_LIBOBJ invocations to module description.
592         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
593         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
594
595 2011-05-23  Bruno Haible  <bruno@clisp.org>
596
597         physmem: Move AC_LIBOBJ invocations to module description.
598         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
599         * modules/physmem (Makefile.am): Augment lib_SOURCES.
600
601 2011-05-23  Bruno Haible  <bruno@clisp.org>
602
603         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
604         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
605         invocation.
606         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
607
608 2011-05-23  Bruno Haible  <bruno@clisp.org>
609
610         mpsort: Move AC_LIBOBJ invocations to module description.
611         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
612         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
613
614 2011-05-23  Bruno Haible  <bruno@clisp.org>
615
616         modechange: Move AC_LIBOBJ invocations to module description.
617         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
618         * modules/modechange (Makefile.am): Augment lib_SOURCES.
619
620 2011-05-23  Bruno Haible  <bruno@clisp.org>
621
622         mkdir-p: Move AC_LIBOBJ invocations to module description.
623         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
624         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
625
626 2011-05-23  Bruno Haible  <bruno@clisp.org>
627
628         mkancesdirs: Move AC_LIBOBJ invocations to module description.
629         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
630         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
631
632 2011-05-23  Bruno Haible  <bruno@clisp.org>
633
634         mgetgroups: Move AC_LIBOBJ invocations to module description.
635         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
636         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
637
638 2011-05-23  Bruno Haible  <bruno@clisp.org>
639
640         memxor: Move AC_LIBOBJ invocations to module description.
641         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
642         * modules/memxor (Makefile.am): Augment lib_SOURCES.
643
644 2011-05-23  Bruno Haible  <bruno@clisp.org>
645
646         memcoll: Move AC_LIBOBJ invocations to module description.
647         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
648         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
649
650 2011-05-23  Bruno Haible  <bruno@clisp.org>
651
652         memcasecmp: Move AC_LIBOBJ invocations to module description.
653         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
654         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
655
656 2011-05-23  Bruno Haible  <bruno@clisp.org>
657
658         crypto/md5: Move AC_LIBOBJ invocations to module description.
659         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
660         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
661
662 2011-05-23  Bruno Haible  <bruno@clisp.org>
663
664         crypto/md4: Move AC_LIBOBJ invocations to module description.
665         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
666         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
667
668 2011-05-23  Bruno Haible  <bruno@clisp.org>
669
670         crypto/md2: Move AC_LIBOBJ invocations to module description.
671         * m4/md2.m4: Remove file.
672         * modules/crypto/md2 (Files): Remove it.
673         (configure.ac): Remove gl_MD2 call.
674         (Makefile.am): Augment lib_SOURCES.
675
676 2011-05-23  Bruno Haible  <bruno@clisp.org>
677
678         long-options: Move AC_LIBOBJ invocations to module description.
679         * m4/long-options.m4: Remove file.
680         * modules/long-options (Files): Remove it.
681         (configure.ac): Remove gl_LONG_OPTIONS call.
682         (Makefile.am): Augment lib_SOURCES.
683
684 2011-05-23  Bruno Haible  <bruno@clisp.org>
685
686         i-ring: Move AC_LIBOBJ invocations to module description.
687         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
688         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
689
690 2011-05-23  Bruno Haible  <bruno@clisp.org>
691
692         idcache: Move AC_LIBOBJ invocations to module description.
693         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
694         * modules/idcache (Makefile.am): Augment lib_SOURCES.
695
696 2011-05-23  Bruno Haible  <bruno@clisp.org>
697
698         human: Move AC_LIBOBJ invocations to module description.
699         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
700         * modules/human (Makefile.am): Augment lib_SOURCES.
701
702 2011-05-23  Bruno Haible  <bruno@clisp.org>
703
704         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
705         * m4/hmac-sha1.m4: Remove file.
706         * modules/crypto/hmac-sha1 (Files): Remove it.
707         (configure.ac): Remove gl_HMAC_SHA1 call.
708         (Makefile.am): Augment lib_SOURCES.
709
710 2011-05-23  Bruno Haible  <bruno@clisp.org>
711
712         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
713         * m4/hmac-md5.m4: Remove file.
714         * modules/crypto/hmac-md5 (Files): Remove it.
715         (configure.ac): Remove gl_HMAC_MD5 call.
716         (Makefile.am): Augment lib_SOURCES.
717
718 2011-05-23  Bruno Haible  <bruno@clisp.org>
719
720         hash: Move AC_LIBOBJ invocations to module description.
721         * m4/hash.m4: Remove file.
722         * modules/hash (Files): Remove it.
723         (configure.ac): Remove gl_HASH call.
724         (Makefile.am): Augment lib_SOURCES.
725
726 2011-05-23  Bruno Haible  <bruno@clisp.org>
727
728         hard-locale: Move AC_LIBOBJ invocations to module description.
729         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
730         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
731
732 2011-05-23  Bruno Haible  <bruno@clisp.org>
733
734         getugroups: Move AC_LIBOBJ invocations to module description.
735         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
736         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
737
738 2011-05-23  Bruno Haible  <bruno@clisp.org>
739
740         gettime: Move AC_LIBOBJ invocations to module description.
741         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
742         * modules/gettime (Makefile.am): Augment lib_SOURCES.
743
744 2011-05-23  Bruno Haible  <bruno@clisp.org>
745
746         getndelim2: Move AC_LIBOBJ invocations to module description.
747         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
748         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
749
750 2011-05-23  Bruno Haible  <bruno@clisp.org>
751
752         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
753         * m4/gc-pbkdf2-sha1.m4: Remove file.
754         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
755         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
756         (Makefile.am): Augment lib_SOURCES.
757
758 2011-05-23  Bruno Haible  <bruno@clisp.org>
759
760         fts: Move AC_LIBOBJ invocations to module description.
761         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
762         * modules/fts (configure.ac): ... to here.
763
764 2011-05-23  Bruno Haible  <bruno@clisp.org>
765
766         file-type: Move AC_LIBOBJ invocations to module description.
767         * m4/file-type.m4: Remove file.
768         * modules/file-type (Files): Remove it.
769         (configure.ac): Remove gl_FILE_TYPE call.
770         (Makefile.am): Augment lib_SOURCES.
771
772 2011-05-23  Bruno Haible  <bruno@clisp.org>
773
774         filenamecat*: Respect rules for use of AC_LIBOBJ.
775         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
776         Remove AC_LIBOBJ invocation.
777         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
778         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
779
780 2011-05-23  Bruno Haible  <bruno@clisp.org>
781
782         filemode: Move AC_LIBOBJ invocations to module description.
783         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
784         * modules/filemode (Makefile.am): Augment lib_SOURCES.
785
786 2011-05-23  Bruno Haible  <bruno@clisp.org>
787
788         openat-safer: Move AC_LIBOBJ invocations to module description.
789         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
790         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
791
792 2011-05-23  Bruno Haible  <bruno@clisp.org>
793
794         fcntl-safer: Move AC_LIBOBJ invocations to module description.
795         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
796         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
797
798 2011-05-23  Bruno Haible  <bruno@clisp.org>
799
800         exclude: Move AC_LIBOBJ invocations to module description.
801         * m4/exclude.m4: Remove file.
802         * modules/exclude (Files): Remove it.
803         (configure.ac): Remove gl_EXCLUDE call.
804         (Makefile.am): Augment lib_SOURCES.
805
806 2011-05-23  Bruno Haible  <bruno@clisp.org>
807
808         dirname*: Respect rules for use of AC_LIBOBJ.
809         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
810         invocations.
811         * modules/dirname (Makefile.am): Augment lib_SOURCES.
812         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
813
814 2011-05-23  Bruno Haible  <bruno@clisp.org>
815
816         dirent-safer: Move AC_LIBOBJ invocations to module description.
817         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
818         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
819
820 2011-05-23  Bruno Haible  <bruno@clisp.org>
821
822         crypto/des: Move AC_LIBOBJ invocations to module description.
823         * m4/des.m4: Remove file.
824         * modules/crypto/des (Files): Remove it.
825         (configure.ac): Remove gl_DES call.
826         (Makefile.am): Augment lib_SOURCES.
827
828 2011-05-23  Bruno Haible  <bruno@clisp.org>
829
830         cycle-check: Move AC_LIBOBJ invocations to module description.
831         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
832         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
833
834 2011-05-23  Bruno Haible  <bruno@clisp.org>
835
836         c-strtold: Move AC_LIBOBJ invocations to module description.
837         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
838         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
839
840 2011-05-23  Bruno Haible  <bruno@clisp.org>
841
842         c-strtod: Move AC_LIBOBJ invocations to module description.
843         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
844         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
845
846 2011-05-23  Bruno Haible  <bruno@clisp.org>
847
848         crc: Move AC_LIBOBJ invocations to module description.
849         * m4/crc.m4: Remove file.
850         * modules/crc (Files): Remove it.
851         (configure.ac): Remove gl_CRC call.
852         (Makefile.am): Augment lib_SOURCES.
853
854 2011-05-23  Bruno Haible  <bruno@clisp.org>
855
856         close-stream: Move AC_LIBOBJ invocations to module description.
857         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
858         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
859
860 2011-05-23  Bruno Haible  <bruno@clisp.org>
861
862         closeout: Move AC_LIBOBJ invocations to module description.
863         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
864         * modules/closeout (Makefile.am): Augment lib_SOURCES.
865
866 2011-05-23  Bruno Haible  <bruno@clisp.org>
867
868         closein: Move AC_LIBOBJ invocations to module description.
869         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
870         * modules/closein (Makefile.am): Augment lib_SOURCES.
871
872 2011-05-23  Bruno Haible  <bruno@clisp.org>
873
874         cloexec: Move AC_LIBOBJ invocations to module description.
875         * m4/cloexec.m4: Remove file.
876         * modules/cloexec (Files): Remove it.
877         (configure.ac): Remove gl_CLOEXEC call.
878         (Makefile.am): Augment lib_SOURCES.
879
880 2011-05-23  Bruno Haible  <bruno@clisp.org>
881
882         check-version: Move AC_LIBOBJ invocations to module description.
883         * m4/check-version.m4: Remove file.
884         * modules/check-version (Files): Remove it.
885         (configure.ac): Remove gl_CHECK_VERSION call.
886         (Makefile.am): Augment lib_SOURCES.
887
888 2011-05-23  Bruno Haible  <bruno@clisp.org>
889
890         chdir-safer: Move AC_LIBOBJ invocations to module description.
891         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
892         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
893
894 2011-05-23  Bruno Haible  <bruno@clisp.org>
895
896         canonicalize: Move AC_LIBOBJ invocations to module description.
897         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
898         AC_LIBOBJ invocation.
899         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
900
901 2011-05-23  Bruno Haible  <bruno@clisp.org>
902
903         canon-host: Move AC_LIBOBJ invocations to module description.
904         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
905         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
906         instead of gl_CANON_HOST.
907         (Makefile.am): Augment lib_SOURCES.
908
909 2011-05-23  Bruno Haible  <bruno@clisp.org>
910
911         backupfile: Move AC_LIBOBJ invocations to module description.
912         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
913         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
914
915 2011-05-23  Bruno Haible  <bruno@clisp.org>
916
917         argmatch: Move AC_LIBOBJ invocations to module description.
918         * m4/argmatch.m4: Remove file.
919         * modules/argmatch (Files): Remove it.
920         (configure.ac): Remove gl_ARGMATCH call.
921         (Makefile.am): Augment lib_SOURCES.
922
923 2011-05-23  Bruno Haible  <bruno@clisp.org>
924
925         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
926         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
927         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
928
929 2011-05-23  Bruno Haible  <bruno@clisp.org>
930
931         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
932         * m4/arcfour.m4: Remove file.
933         * modules/crypto/arcfour (Files): Remove it.
934         (configure.ac): Remove gl_ARCFOUR call.
935         (Makefile.am): Augment lib_SOURCES.
936
937 2011-05-22  Bruno Haible  <bruno@clisp.org>
938
939         write: Move AC_LIBOBJ invocations to module description.
940         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
941         * modules/write (configure.ac): ... to here.
942
943 2011-05-22  Bruno Haible  <bruno@clisp.org>
944
945         wmemset: Move AC_LIBOBJ invocations to module description.
946         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
947         here...
948         * modules/wmemset (configure.ac): ... to here.
949
950 2011-05-22  Bruno Haible  <bruno@clisp.org>
951
952         wmemmove: Move AC_LIBOBJ invocations to module description.
953         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
954         here...
955         * modules/wmemmove (configure.ac): ... to here.
956
957 2011-05-22  Bruno Haible  <bruno@clisp.org>
958
959         wmemcpy: Move AC_LIBOBJ invocations to module description.
960         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
961         here...
962         * modules/wmemcpy (configure.ac): ... to here.
963
964 2011-05-22  Bruno Haible  <bruno@clisp.org>
965
966         wmemcmp: Move AC_LIBOBJ invocations to module description.
967         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
968         here...
969         * modules/wmemcmp (configure.ac): ... to here.
970
971 2011-05-22  Bruno Haible  <bruno@clisp.org>
972
973         wmemchr: Move AC_LIBOBJ invocations to module description.
974         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
975         here...
976         * modules/wmemchr (configure.ac): ... to here.
977
978 2011-05-22  Bruno Haible  <bruno@clisp.org>
979
980         wcswidth: Move AC_LIBOBJ invocations to module description.
981         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
982         here...
983         * modules/wcswidth (configure.ac): ... to here.
984
985 2011-05-22  Bruno Haible  <bruno@clisp.org>
986
987         wcwidth: Respect rules for use of AC_LIBOBJ.
988         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
989         invocation from here...
990         * modules/wcwidth (configure.ac): ... to here.
991         (Depends-on): Update conditions.
992
993 2011-05-22  Bruno Haible  <bruno@clisp.org>
994
995         wctype: Move AC_LIBOBJ invocations to module description.
996         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
997         invocation from here...
998         * modules/wctype (configure.ac): ... to here.
999         (Depends-on): Update conditions.
1000
1001 2011-05-22  Bruno Haible  <bruno@clisp.org>
1002
1003         wctrans: Move AC_LIBOBJ invocations to module description.
1004         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
1005         invocation from here...
1006         * modules/wctrans (configure.ac): ... to here.
1007
1008 2011-05-22  Bruno Haible  <bruno@clisp.org>
1009
1010         wctomb: Move AC_LIBOBJ invocations to module description.
1011         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
1012         invocations from here...
1013         * modules/wctomb (configure.ac): ... to here.
1014
1015 2011-05-22  Bruno Haible  <bruno@clisp.org>
1016
1017         wctob: Move AC_LIBOBJ invocations to module description.
1018         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
1019         gl_PREREQ_WCTOB invocations from here...
1020         * modules/wctob (configure.ac): ... to here.
1021         (Depends-on): Update conditions.
1022
1023 2011-05-22  Bruno Haible  <bruno@clisp.org>
1024
1025         wcsxfrm: Move AC_LIBOBJ invocations to module description.
1026         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
1027         here...
1028         * modules/wcsxfrm (configure.ac): ... to here.
1029
1030 2011-05-22  Bruno Haible  <bruno@clisp.org>
1031
1032         wcstok: Move AC_LIBOBJ invocations to module description.
1033         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
1034         * modules/wcstok (configure.ac): ... to here.
1035
1036 2011-05-22  Bruno Haible  <bruno@clisp.org>
1037
1038         wcsstr: Move AC_LIBOBJ invocations to module description.
1039         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
1040         * modules/wcsstr (configure.ac): ... to here.
1041
1042 2011-05-22  Bruno Haible  <bruno@clisp.org>
1043
1044         wcsspn: Move AC_LIBOBJ invocations to module description.
1045         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
1046         * modules/wcsspn (configure.ac): ... to here.
1047
1048 2011-05-22  Bruno Haible  <bruno@clisp.org>
1049
1050         wcsrtombs: Move AC_LIBOBJ invocations to module description.
1051         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
1052         gl_PREREQ_WCSRTOMBS invocations from here...
1053         * modules/wcsrtombs (configure.ac): ... to here.
1054
1055 2011-05-22  Bruno Haible  <bruno@clisp.org>
1056
1057         wcsrchr: Move AC_LIBOBJ invocations to module description.
1058         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
1059         here...
1060         * modules/wcsrchr (configure.ac): ... to here.
1061
1062 2011-05-22  Bruno Haible  <bruno@clisp.org>
1063
1064         wcspbrk: Move AC_LIBOBJ invocations to module description.
1065         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
1066         here...
1067         * modules/wcspbrk (configure.ac): ... to here.
1068
1069 2011-05-22  Bruno Haible  <bruno@clisp.org>
1070
1071         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
1072         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
1073         gl_PREREQ_WCSNRTOMBS invocations from here...
1074         * modules/wcsnrtombs (configure.ac): ... to here.
1075
1076 2011-05-22  Bruno Haible  <bruno@clisp.org>
1077
1078         wcsnlen: Move AC_LIBOBJ invocations to module description.
1079         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
1080         here...
1081         * modules/wcsnlen (configure.ac): ... to here.
1082
1083 2011-05-22  Bruno Haible  <bruno@clisp.org>
1084
1085         wcsncpy: Move AC_LIBOBJ invocations to module description.
1086         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
1087         here...
1088         * modules/wcsncpy (configure.ac): ... to here.
1089
1090 2011-05-22  Bruno Haible  <bruno@clisp.org>
1091
1092         wcsncmp: Move AC_LIBOBJ invocations to module description.
1093         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
1094         here...
1095         * modules/wcsncmp (configure.ac): ... to here.
1096
1097 2011-05-22  Bruno Haible  <bruno@clisp.org>
1098
1099         wcsncat: Move AC_LIBOBJ invocations to module description.
1100         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
1101         here...
1102         * modules/wcsncat (configure.ac): ... to here.
1103
1104 2011-05-22  Bruno Haible  <bruno@clisp.org>
1105
1106         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
1107         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
1108         from here...
1109         * modules/wcsncasecmp (configure.ac): ... to here.
1110
1111 2011-05-22  Bruno Haible  <bruno@clisp.org>
1112
1113         wcslen: Move AC_LIBOBJ invocations to module description.
1114         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
1115         * modules/wcslen (configure.ac): ... to here.
1116
1117 2011-05-22  Bruno Haible  <bruno@clisp.org>
1118
1119         wcsdup: Move AC_LIBOBJ invocations to module description.
1120         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
1121         * modules/wcsdup (configure.ac): ... to here.
1122
1123 2011-05-22  Bruno Haible  <bruno@clisp.org>
1124
1125         wcscspn: Move AC_LIBOBJ invocations to module description.
1126         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
1127         here...
1128         * modules/wcscspn (configure.ac): ... to here.
1129
1130 2011-05-22  Bruno Haible  <bruno@clisp.org>
1131
1132         wcscpy: Move AC_LIBOBJ invocations to module description.
1133         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
1134         * modules/wcscpy (configure.ac): ... to here.
1135
1136 2011-05-22  Bruno Haible  <bruno@clisp.org>
1137
1138         wcscoll: Move AC_LIBOBJ invocations to module description.
1139         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
1140         here...
1141         * modules/wcscoll (configure.ac): ... to here.
1142
1143 2011-05-22  Bruno Haible  <bruno@clisp.org>
1144
1145         wcscmp: Move AC_LIBOBJ invocations to module description.
1146         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
1147         * modules/wcscmp (configure.ac): ... to here.
1148
1149 2011-05-22  Bruno Haible  <bruno@clisp.org>
1150
1151         wcschr: Move AC_LIBOBJ invocations to module description.
1152         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
1153         * modules/wcschr (configure.ac): ... to here.
1154
1155 2011-05-22  Bruno Haible  <bruno@clisp.org>
1156
1157         wcscat: Move AC_LIBOBJ invocations to module description.
1158         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
1159         * modules/wcscat (configure.ac): ... to here.
1160
1161 2011-05-22  Bruno Haible  <bruno@clisp.org>
1162
1163         wcscasecmp: Move AC_LIBOBJ invocations to module description.
1164         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
1165         here...
1166         * modules/wcscasecmp (configure.ac): ... to here.
1167
1168 2011-05-22  Bruno Haible  <bruno@clisp.org>
1169
1170         wcrtomb: Move AC_LIBOBJ invocations to module description.
1171         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
1172         invocations from here...
1173         * modules/wcrtomb (configure.ac): ... to here.
1174
1175 2011-05-22  Bruno Haible  <bruno@clisp.org>
1176
1177         wcpncpy: Move AC_LIBOBJ invocations to module description.
1178         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
1179         here...
1180         * modules/wcpncpy (configure.ac): ... to here.
1181
1182 2011-05-22  Bruno Haible  <bruno@clisp.org>
1183
1184         wcpcpy: Move AC_LIBOBJ invocations to module description.
1185         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
1186         * modules/wcpcpy (configure.ac): ... to here.
1187
1188 2011-05-22  Bruno Haible  <bruno@clisp.org>
1189
1190         waitpid: Move AC_LIBOBJ invocations to module description.
1191         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
1192         invocation from here...
1193         * modules/waitpid (configure.ac): ... to here.
1194
1195 2011-05-22  Bruno Haible  <bruno@clisp.org>
1196
1197         utimensat: Move AC_LIBOBJ invocations to module description.
1198         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
1199         here...
1200         * modules/utimensat (configure.ac): ... to here.
1201
1202 2011-05-22  Bruno Haible  <bruno@clisp.org>
1203
1204         usleep: Move AC_LIBOBJ invocations to module description.
1205         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
1206         here...
1207         * modules/usleep (configure.ac): ... to here.
1208
1209 2011-05-22  Bruno Haible  <bruno@clisp.org>
1210
1211         unlockpt: Move AC_LIBOBJ invocations to module description.
1212         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
1213         gl_PREREQ_UNLOCKPT invocations from here...
1214         * modules/unlockpt (configure.ac): ... to here.
1215
1216 2011-05-22  Bruno Haible  <bruno@clisp.org>
1217
1218         unlink: Respect rules for use of AC_LIBOBJ.
1219         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
1220         * modules/unlink (configure.ac): ... to here.
1221
1222 2011-05-22  Bruno Haible  <bruno@clisp.org>
1223
1224         uname: Move AC_LIBOBJ invocations to module description.
1225         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
1226         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
1227         here...
1228         * modules/uname (configure.ac): ... to here.
1229
1230 2011-05-22  Bruno Haible  <bruno@clisp.org>
1231
1232         ttyname_r: Move AC_LIBOBJ invocations to module description.
1233         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
1234         gl_PREREQ_TTYNAME_R invocations from here...
1235         * modules/ttyname_r (configure.ac): ... to here.
1236
1237 2011-05-22  Bruno Haible  <bruno@clisp.org>
1238
1239         tsearch: Move AC_LIBOBJ invocations to module description.
1240         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
1241         invocations from here...
1242         * modules/tsearch (configure.ac): ... to here.
1243
1244 2011-05-22  Bruno Haible  <bruno@clisp.org>
1245
1246         towctrans: Move AC_LIBOBJ invocations to module description.
1247         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
1248         AC_LIBOBJ invocation from here...
1249         * modules/towctrans (configure.ac): ... to here.
1250
1251 2011-05-22  Bruno Haible  <bruno@clisp.org>
1252
1253         tmpfile: Move AC_LIBOBJ invocations to module description.
1254         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
1255         invocations from here...
1256         * modules/tmpfile (configure.ac): ... to here.
1257
1258 2011-05-22  Bruno Haible  <bruno@clisp.org>
1259
1260         times: Move AC_LIBOBJ invocations to module description.
1261         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
1262         * modules/times (configure.ac): ... to here.
1263
1264 2011-05-22  Bruno Haible  <bruno@clisp.org>
1265
1266         time_r: Move AC_LIBOBJ invocations to module description.
1267         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
1268         invocations from here...
1269         * modules/time_r (configure.ac): ... to here.
1270
1271 2011-05-22  Bruno Haible  <bruno@clisp.org>
1272
1273         timegm: Move AC_LIBOBJ invocations to module description.
1274         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
1275         invocations from here...
1276         * modules/timegm (configure.ac): ... to here.
1277
1278 2011-05-22  Bruno Haible  <bruno@clisp.org>
1279
1280         tcgetsid: Move AC_LIBOBJ invocations to module description.
1281         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
1282         and gl_PREREQ_TCGETSID invocations from here...
1283         * modules/tcgetsid (configure.ac): ... to here.
1284         (Depends-on): Update conditions.
1285
1286 2011-05-22  Bruno Haible  <bruno@clisp.org>
1287
1288         symlinkat: Move AC_LIBOBJ invocations to module description.
1289         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
1290         here...
1291         * modules/symlinkat (configure.ac): ... to here.
1292
1293 2011-05-22  Bruno Haible  <bruno@clisp.org>
1294
1295         symlink: Move AC_LIBOBJ invocations to module description.
1296         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
1297         here...
1298         * modules/symlink (configure.ac): ... to here.
1299
1300 2011-05-22  Bruno Haible  <bruno@clisp.org>
1301
1302         strverscmp: Move AC_LIBOBJ invocations to module description.
1303         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
1304         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
1305         from here...
1306         * modules/strverscmp (configure.ac): ... to here.
1307
1308 2011-05-22  Bruno Haible  <bruno@clisp.org>
1309
1310         strtok_r: Move AC_LIBOBJ invocations to module description.
1311         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
1312         and gl_PREREQ_STRTOK_R invocations from here...
1313         * modules/strtok_r (configure.ac): ... to here.
1314         (Depends-on): Update conditions.
1315
1316 2011-05-22  Bruno Haible  <bruno@clisp.org>
1317
1318         strtoumax: Move AC_LIBOBJ invocations to module description.
1319         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
1320         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
1321         from here...
1322         * modules/strtoumax (configure.ac): ... to here.
1323
1324 2011-05-22  Bruno Haible  <bruno@clisp.org>
1325
1326         strtoimax: Move AC_LIBOBJ invocations to module description.
1327         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
1328         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
1329         from here...
1330         * modules/strtoimax (configure.ac): ... to here.
1331
1332 2011-05-22  Bruno Haible  <bruno@clisp.org>
1333
1334         strtoull: Move AC_LIBOBJ invocations to module description.
1335         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
1336         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
1337         from here...
1338         * modules/strtoull (configure.ac): ... to here.
1339
1340 2011-05-22  Bruno Haible  <bruno@clisp.org>
1341
1342         strtoll: Move AC_LIBOBJ invocations to module description.
1343         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
1344         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
1345         here...
1346         * modules/strtoll (configure.ac): ... to here.
1347
1348 2011-05-22  Bruno Haible  <bruno@clisp.org>
1349
1350         strtoul: Move AC_LIBOBJ invocations to module description.
1351         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
1352         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
1353         * modules/strtoul (configure.ac): ... to here.
1354
1355 2011-05-22  Bruno Haible  <bruno@clisp.org>
1356
1357         strtol: Move AC_LIBOBJ invocations to module description.
1358         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
1359         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
1360         * modules/strtol (configure.ac): ... to here.
1361
1362 2011-05-22  Bruno Haible  <bruno@clisp.org>
1363
1364         strtod: Move AC_LIBOBJ invocations to module description.
1365         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
1366         invocations from here...
1367         * modules/strtod (configure.ac): ... to here.
1368
1369 2011-05-22  Bruno Haible  <bruno@clisp.org>
1370
1371         strstr*: Move AC_LIBOBJ invocations to module description.
1372         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
1373         invocations from here...
1374         * modules/strstr-simple (configure.ac): ... to here.
1375         * modules/strstr (configure.ac): ... and here.
1376
1377 2011-05-22  Bruno Haible  <bruno@clisp.org>
1378
1379         strsignal: Move AC_LIBOBJ invocations to module description.
1380         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
1381         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
1382         * modules/strsignal (configure.ac): ... to here.
1383         (Depends-on): Update conditions.
1384
1385 2011-05-22  Bruno Haible  <bruno@clisp.org>
1386
1387         strsep: Move AC_LIBOBJ invocations to module description.
1388         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
1389         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
1390         here...
1391         * modules/strsep (configure.ac): ... to here.
1392
1393 2011-05-22  Bruno Haible  <bruno@clisp.org>
1394
1395         strptime: Move AC_LIBOBJ invocations to module description.
1396         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
1397         gl_PREREQ_STRPTIME invocations from here...
1398         * modules/strptime (configure.ac): ... to here.
1399
1400 2011-05-22  Bruno Haible  <bruno@clisp.org>
1401
1402         strpbrk: Move AC_LIBOBJ invocations to module description.
1403         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
1404         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
1405         here...
1406         * modules/strpbrk (configure.ac): ... to here.
1407
1408 2011-05-22  Bruno Haible  <bruno@clisp.org>
1409
1410         strnlen: Move AC_LIBOBJ invocations to module description.
1411         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
1412         invocations from here...
1413         * modules/strnlen (configure.ac): ... to here.
1414
1415 2011-05-22  Bruno Haible  <bruno@clisp.org>
1416
1417         strndup: Move AC_LIBOBJ invocations to module description.
1418         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
1419         invocations from here...
1420         * modules/strndup (configure.ac): ... to here.
1421         (Depends-on): Update conditions.
1422
1423 2011-05-22  Bruno Haible  <bruno@clisp.org>
1424
1425         strncat: Move AC_LIBOBJ invocations to module description.
1426         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
1427         invocations from here...
1428         * modules/strncat (configure.ac): ... to here.
1429
1430 2011-05-22  Bruno Haible  <bruno@clisp.org>
1431
1432         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
1433         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
1434         invocations from here...
1435         * modules/strdup (configure.ac): ... to here.
1436         * modules/strdup-posix (configure.ac): ... and here.
1437
1438 2011-05-22  Bruno Haible  <bruno@clisp.org>
1439
1440         strcspn: Move AC_LIBOBJ invocations to module description.
1441         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
1442         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
1443         here...
1444         * modules/strcspn (configure.ac): ... to here.
1445
1446 2011-05-22  Bruno Haible  <bruno@clisp.org>
1447
1448         strchrnul: Move AC_LIBOBJ invocations to module description.
1449         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
1450         gl_PREREQ_STRCHRNUL invocations from here...
1451         * modules/strchrnul (configure.ac): ... to here.
1452
1453 2011-05-22  Bruno Haible  <bruno@clisp.org>
1454
1455         strcasestr*: Move AC_LIBOBJ invocations to module description.
1456         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
1457         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
1458         * modules/strcasestr-simple (configure.ac): ... to here.
1459         * modules/strcasestr (configure.ac): ... and here.
1460
1461 2011-05-22  Bruno Haible  <bruno@clisp.org>
1462
1463         strcase: Move AC_LIBOBJ invocations to module description.
1464         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
1465         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
1466         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
1467         gl_PREREQ_STRNCASECMP invocations from here...
1468         * modules/strcase (configure.ac): ... to here.
1469
1470 2011-05-22  Bruno Haible  <bruno@clisp.org>
1471
1472         stpncpy: Move AC_LIBOBJ invocations to module description.
1473         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
1474         here...
1475         * modules/stpncpy (configure.ac): ... to here.
1476
1477 2011-05-22  Bruno Haible  <bruno@clisp.org>
1478
1479         stpcpy: Move AC_LIBOBJ invocations to module description.
1480         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
1481         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
1482         here...
1483         * modules/stpcpy (configure.ac): ... to here.
1484
1485 2011-05-21  Bruno Haible  <bruno@clisp.org>
1486
1487         stat: Move AC_LIBOBJ invocations to module description.
1488         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
1489         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
1490         here...
1491         * modules/stat (configure.ac): ... to here.
1492
1493 2011-05-21  Bruno Haible  <bruno@clisp.org>
1494
1495         sleep: Move AC_LIBOBJ invocations to module description.
1496         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
1497         * modules/sleep (configure.ac): ... to here.
1498
1499 2011-05-21  Bruno Haible  <bruno@clisp.org>
1500
1501         signbit: Move AC_LIBOBJ invocations to module description.
1502         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
1503         * modules/signbit (configure.ac): ... to here.
1504
1505 2011-05-21  Bruno Haible  <bruno@clisp.org>
1506
1507         sigprocmask: Move AC_LIBOBJ invocations to module description.
1508         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
1509         gl_PREREQ_SIGPROMASK invocations from here...
1510         * modules/sigprocmask (configure.ac): ... to here.
1511
1512 2011-05-21  Bruno Haible  <bruno@clisp.org>
1513
1514         sigaction: Move AC_LIBOBJ invocations to module description.
1515         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
1516         gl_PREREQ_SIGACTION invocations from here...
1517         * modules/sigaction (configure.ac): ... to here.
1518
1519 2011-05-21  Bruno Haible  <bruno@clisp.org>
1520
1521         sig2str: Move AC_LIBOBJ invocations to module description.
1522         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
1523         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
1524         here...
1525         * modules/sig2str (configure.ac): ... to here.
1526
1527 2011-05-21  Bruno Haible  <bruno@clisp.org>
1528
1529         setlocale: Move AC_LIBOBJ invocations to module description.
1530         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
1531         gl_PREREQ_SETLOCALE invocations from here...
1532         * modules/setlocale (configure.ac): ... to here.
1533
1534 2011-05-21  Bruno Haible  <bruno@clisp.org>
1535
1536         unsetenv: Move AC_LIBOBJ invocations to module description.
1537         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
1538         and gl_PREREQ_UNSETENV invocations from here...
1539         * modules/unsetenv (configure.ac): ... to here.
1540         (Depends-on): Update.
1541
1542 2011-05-21  Bruno Haible  <bruno@clisp.org>
1543
1544         setenv: Move AC_LIBOBJ invocations to module description.
1545         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
1546         here...
1547         * modules/setenv (configure.ac): ... to here.
1548
1549 2011-05-21  Bruno Haible  <bruno@clisp.org>
1550
1551         selinux-h: Move AC_LIBOBJ invocations to module description.
1552         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
1553         AC_LIBOBJ invocation from here...
1554         * modules/selinux-h (configure.ac): ... to here.
1555
1556 2011-05-21  Bruno Haible  <bruno@clisp.org>
1557
1558         select: Respect rules for use of AC_LIBOBJ.
1559         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
1560         here...
1561         * modules/select (configure.ac): ... to here.
1562
1563 2011-05-21  Bruno Haible  <bruno@clisp.org>
1564
1565         scandir: Move AC_LIBOBJ invocations to module description.
1566         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
1567         invocations from here...
1568         * modules/scandir (configure.ac): ... to here.
1569
1570 2011-05-21  Bruno Haible  <bruno@clisp.org>
1571
1572         rpmatch: Move AC_LIBOBJ invocations to module description.
1573         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
1574         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
1575         here...
1576         * modules/rpmatch (configure.ac): ... to here.
1577
1578 2011-05-21  Bruno Haible  <bruno@clisp.org>
1579
1580         rmdir: Respect rules for use of AC_LIBOBJ.
1581         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
1582         * modules/rmdir (configure.ac): ... to here.
1583
1584 2011-05-21  Bruno Haible  <bruno@clisp.org>
1585
1586         renameat: Move AC_LIBOBJ invocations to module description.
1587         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
1588         here...
1589         * modules/renameat (configure.ac): ... to here.
1590
1591 2011-05-21  Bruno Haible  <bruno@clisp.org>
1592
1593         rename: Respect rules for use of AC_LIBOBJ.
1594         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
1595         here...
1596         * modules/rename (configure.ac): ... to here.
1597
1598 2011-05-21  Bruno Haible  <bruno@clisp.org>
1599
1600         remove: Move AC_LIBOBJ invocations to module description.
1601         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
1602         here...
1603         * modules/remove (configure.ac): ... to here.
1604
1605 2011-05-21  Bruno Haible  <bruno@clisp.org>
1606
1607         relocatable-lib: Move AC_LIBOBJ invocations to module description.
1608         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
1609         macro.
1610         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
1611         * modules/relocatable-lib (configure.ac): ... to here.
1612         * modules/relocatable-prog-wrapper (configure.ac): Invoke
1613         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
1614
1615 2011-05-21  Bruno Haible  <bruno@clisp.org>
1616
1617         relocatable-prog: Move AC_LIBOBJ invocations to module description.
1618         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
1619         here...
1620         * modules/relocatable-prog (configure.ac): ... to here.
1621
1622 2011-05-21  Bruno Haible  <bruno@clisp.org>
1623
1624         regex: Move AC_LIBOBJ invocations to module description.
1625         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
1626         invocations from here...
1627         * modules/regex (configure.ac): ... to here.
1628
1629 2011-05-21  Bruno Haible  <bruno@clisp.org>
1630
1631         realloc-*: Move AC_LIBOBJ invocations to module description.
1632         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
1633         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
1634         AC_LIBOBJ invocations from here...
1635         * modules/realloc-gnu (configure.ac): ... to here.
1636         * modules/realloc-posix (configure.ac): ... and here.
1637
1638 2011-05-21  Bruno Haible  <bruno@clisp.org>
1639
1640         readutmp: Move AC_LIBOBJ invocations to module description.
1641         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
1642         * modules/readutmp (configure.ac): ... to here.
1643
1644 2011-05-21  Bruno Haible  <bruno@clisp.org>
1645
1646         readlinkat: Move AC_LIBOBJ invocations to module description.
1647         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
1648         here...
1649         * modules/readlinkat (configure.ac): ... to here.
1650
1651 2011-05-21  Bruno Haible  <bruno@clisp.org>
1652
1653         readlink: Move AC_LIBOBJ invocations to module description.
1654         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
1655         gl_PREREQ_READLINK invocations from here...
1656         * modules/readlink (configure.ac): ... to here.
1657
1658 2011-05-21  Bruno Haible  <bruno@clisp.org>
1659
1660         readline: Move AC_LIBOBJ invocations to module description.
1661         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
1662         gl_PREREQ_READLINE invocations from here...
1663         * modules/readline (configure.ac): ... to here.
1664
1665 2011-05-21  Bruno Haible  <bruno@clisp.org>
1666
1667         read: Move AC_LIBOBJ invocations to module description.
1668         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
1669         * modules/read (configure.ac): ... to here.
1670
1671 2011-05-21  Bruno Haible  <bruno@clisp.org>
1672
1673         rawmemchr: Move AC_LIBOBJ invocations to module description.
1674         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
1675         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
1676         from here...
1677         * modules/rawmemchr (configure.ac): ... to here.
1678
1679 2011-05-21  Bruno Haible  <bruno@clisp.org>
1680
1681         random_r: Move AC_LIBOBJ invocations to module description.
1682         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
1683         gl_PREREQ_RANDOM_R invocations from here...
1684         * modules/random_r (configure.ac): ... to here.
1685
1686 2011-05-21  Bruno Haible  <bruno@clisp.org>
1687
1688         pwrite: Move AC_LIBOBJ invocations to module description.
1689         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
1690         * modules/pwrite (configure.ac): ... to here.
1691
1692 2011-05-21  Bruno Haible  <bruno@clisp.org>
1693
1694         putenv: Move AC_LIBOBJ invocations to module description.
1695         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
1696         * modules/putenv (configure.ac): ... to here.
1697
1698 2011-05-21  Bruno Haible  <bruno@clisp.org>
1699
1700         login_tty: Move AC_LIBOBJ invocations to module description.
1701         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
1702         * modules/login_tty (configure.ac): ... to here.
1703
1704 2011-05-21  Bruno Haible  <bruno@clisp.org>
1705
1706         openpty: Move AC_LIBOBJ invocations to module description.
1707         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
1708         * modules/openpty (configure.ac): ... to here.
1709
1710 2011-05-21  Bruno Haible  <bruno@clisp.org>
1711
1712         forkpty: Move AC_LIBOBJ invocations to module description.
1713         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
1714         * modules/forkpty (configure.ac): ... to here.
1715
1716 2011-05-21  Bruno Haible  <bruno@clisp.org>
1717
1718         ptsname: Move AC_LIBOBJ invocations to module description.
1719         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
1720         invocations from here...
1721         * modules/ptsname (configure.ac): ... to here.
1722
1723 2011-05-21  Bruno Haible  <bruno@clisp.org>
1724
1725         pread: Move AC_LIBOBJ invocations to module description.
1726         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
1727         * modules/pread (configure.ac): ... to here.
1728
1729 2011-05-21  Bruno Haible  <bruno@clisp.org>
1730
1731         posix_spawn*: Move AC_LIBOBJ invocations to module description.
1732         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
1733         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
1734         * modules/posix_spawn (configure.ac): ... to here.
1735         * modules/posix_spawnp (configure.ac): ... and here.
1736
1737 2011-05-21  Bruno Haible  <bruno@clisp.org>
1738
1739         popen: Move AC_LIBOBJ invocations to module description.
1740         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
1741         invocations from here...
1742         * modules/popen (configure.ac): ... to here.
1743
1744 2011-05-21  Bruno Haible  <bruno@clisp.org>
1745
1746         poll: Move AC_LIBOBJ invocations to module description.
1747         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
1748         invocations from here...
1749         * modules/poll (configure.ac): ... to here.
1750
1751 2011-05-21  Bruno Haible  <bruno@clisp.org>
1752
1753         pipe-posix: Move AC_LIBOBJ invocations to module description.
1754         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
1755         * modules/pipe-posix (configure.ac): ... to here.
1756
1757 2011-05-21  Bruno Haible  <bruno@clisp.org>
1758
1759         openat: Respect rules for use of AC_LIBOBJ.
1760         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
1761         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
1762         * modules/openat (configure.ac): ... to here.
1763
1764 2011-05-21  Bruno Haible  <bruno@clisp.org>
1765
1766         obstack-printf*: Move AC_LIBOBJ invocations to module description.
1767         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
1768         invocation from here...
1769         * modules/obstack-printf (configure.ac): ... to here.
1770         * modules/obstack-printf-posix (configure.ac): ... and here.
1771
1772 2011-05-21  Bruno Haible  <bruno@clisp.org>
1773
1774         nl_langinfo: Move AC_LIBOBJ invocations to module description.
1775         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
1776         from here...
1777         * modules/nl_langinfo (configure.ac): ... to here.
1778
1779 2011-05-21  Bruno Haible  <bruno@clisp.org>
1780
1781         nanosleep: Move AC_LIBOBJ invocations to module description.
1782         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
1783         gl_PREREQ_NANOSLEEP invocations from here...
1784         * modules/nanosleep (configure.ac): ... to here.
1785
1786 2011-05-21  Bruno Haible  <bruno@clisp.org>
1787
1788         mountlist: Move AC_LIBOBJ invocations to module description.
1789         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
1790         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
1791         * modules/mountlist (configure.ac): ... to here.
1792
1793 2011-05-21  Bruno Haible  <bruno@clisp.org>
1794
1795         mktime: Respect rules for use of AC_LIBOBJ.
1796         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
1797         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
1798         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
1799         (gl_FUNC_MKTIME_INTERNAL): ... and here...
1800         * modules/mktime (configure.ac): ... to here.
1801         * modules/mktime-internal (configure.ac): ... and here.
1802         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
1803
1804 2011-05-21  Bruno Haible  <bruno@clisp.org>
1805
1806         mkstemps: Move AC_LIBOBJ invocations to module description.
1807         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
1808         here...
1809         * modules/mkstemps (configure.ac): ... to here.
1810
1811 2011-05-21  Bruno Haible  <bruno@clisp.org>
1812
1813         mkstemp: Move AC_LIBOBJ invocations to module description.
1814         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
1815         gl_PREREQ_MKSTEMP invocations from here...
1816         * modules/mkstemp (configure.ac): ... to here.
1817
1818 2011-05-21  Bruno Haible  <bruno@clisp.org>
1819
1820         mkostemps: Move AC_LIBOBJ invocations to module description.
1821         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
1822         here...
1823         * modules/mkostemps (configure.ac): ... to here.
1824
1825 2011-05-21  Bruno Haible  <bruno@clisp.org>
1826
1827         mkostemp: Move AC_LIBOBJ invocations to module description.
1828         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
1829         gl_PREREQ_MKOSTEMP invocations from here...
1830         * modules/mkostemp (configure.ac): ... to here.
1831
1832 2011-05-21  Bruno Haible  <bruno@clisp.org>
1833
1834         mknod: Move AC_LIBOBJ invocations to module description.
1835         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
1836         * modules/mknod (configure.ac): ... to here.
1837
1838 2011-05-21  Bruno Haible  <bruno@clisp.org>
1839
1840         mkfifoat: Move AC_LIBOBJ invocations to module description.
1841         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
1842         here...
1843         * modules/mkfifoat (configure.ac): ... to here.
1844
1845 2011-05-21  Bruno Haible  <bruno@clisp.org>
1846
1847         mkfifo: Respect rules for use of AC_LIBOBJ.
1848         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
1849         here...
1850         * modules/mkfifo (configure.ac): ... to here.
1851
1852 2011-05-21  Bruno Haible  <bruno@clisp.org>
1853
1854         mkdtemp: Move AC_LIBOBJ invocations to module description.
1855         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
1856         invocations from here...
1857         * modules/mkdtemp (configure.ac): ... to here.
1858
1859 2011-05-21  Bruno Haible  <bruno@clisp.org>
1860
1861         mkdir: Move AC_LIBOBJ invocations to module description.
1862         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
1863         * modules/mkdir (configure.ac): ... to here.
1864
1865 2011-05-21  Bruno Haible  <bruno@clisp.org>
1866
1867         memset: Move AC_LIBOBJ invocations to module description.
1868         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
1869         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
1870         here...
1871         * modules/memset (configure.ac): ... to here.
1872
1873 2011-05-21  Bruno Haible  <bruno@clisp.org>
1874
1875         memrchr: Move AC_LIBOBJ invocations to module description.
1876         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
1877         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
1878         here...
1879         * modules/memrchr (configure.ac): ... to here.
1880
1881 2011-05-21  Bruno Haible  <bruno@clisp.org>
1882
1883         mempcpy: Move AC_LIBOBJ invocations to module description.
1884         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
1885         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
1886         here...
1887         * modules/mempcpy (configure.ac): ... to here.
1888
1889 2011-05-21  Bruno Haible  <bruno@clisp.org>
1890
1891         memmove: Move AC_LIBOBJ invocations to module description.
1892         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
1893         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
1894         here...
1895         * modules/memmove (configure.ac): ... to here.
1896
1897 2011-05-21  Bruno Haible  <bruno@clisp.org>
1898
1899         memmem*: Move AC_LIBOBJ invocations to module description.
1900         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
1901         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
1902         here...
1903         (gl_FUNC_MEMMEM): ... and here...
1904         * modules/memmem-simple (configure.ac): ... to here.
1905         * modules/memmem (configure.ac): ... and here.
1906
1907 2011-05-21  Bruno Haible  <bruno@clisp.org>
1908
1909         memcpy: Move AC_LIBOBJ invocations to module description.
1910         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
1911         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
1912         here...
1913         * modules/memcpy (configure.ac): ... to here.
1914
1915 2011-05-21  Bruno Haible  <bruno@clisp.org>
1916
1917         memcmp: Simplify autoconf macro.
1918         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
1919         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
1920         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
1921
1922 2011-05-21  Bruno Haible  <bruno@clisp.org>
1923
1924         memcmp: Move AC_LIBOBJ invocations to module description.
1925         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
1926         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
1927         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
1928         * modules/memcmp (configure.ac): ... to here.
1929         (Depends-on): Update conditions.
1930
1931 2011-05-21  Bruno Haible  <bruno@clisp.org>
1932
1933         memchr: Respect rules for use of AC_LIBOBJ.
1934         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
1935         invocations from here...
1936         * modules/memchr (configure.ac): ... to here.
1937
1938 2011-05-21  Bruno Haible  <bruno@clisp.org>
1939
1940         mbtowc: Move AC_LIBOBJ invocations to module description.
1941         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
1942         invocations from here...
1943         * modules/mbtowc (configure.ac): ... to here.
1944
1945 2011-05-21  Bruno Haible  <bruno@clisp.org>
1946
1947         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
1948         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
1949         gl_PREREQ_MBSRTOWCS invocations from here...
1950         * modules/mbsrtowcs (configure.ac): ... to here.
1951
1952 2011-05-21  Bruno Haible  <bruno@clisp.org>
1953
1954         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
1955         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
1956         gl_PREREQ_MBSNRTOWCS invocations from here...
1957         * modules/mbsnrtowcs (configure.ac): ... to here.
1958
1959 2011-05-21  Bruno Haible  <bruno@clisp.org>
1960
1961         mbsinit: Move AC_LIBOBJ invocations to module description.
1962         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
1963         invocations from here...
1964         * modules/mbsinit (configure.ac): ... to here.
1965
1966 2011-05-21  Bruno Haible  <bruno@clisp.org>
1967
1968         mbrlen: Move AC_LIBOBJ invocations to module description.
1969         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
1970         invocations from here...
1971         * modules/mbrlen (configure.ac): ... to here.
1972
1973 2011-05-21  Bruno Haible  <bruno@clisp.org>
1974
1975         mbrtowc: Respect rules for use of AC_LIBOBJ.
1976         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
1977         invocations from here...
1978         * modules/mbrtowc (configure.ac): ... to here.
1979
1980 2011-05-21  Bruno Haible  <bruno@clisp.org>
1981
1982         malloc-*: Move AC_LIBOBJ invocations to module description.
1983         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
1984         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
1985         AC_LIBOBJ invocations from here...
1986         * modules/malloc-gnu (configure.ac): ... to here.
1987         * modules/malloc-posix (configure.ac): ... and here.
1988
1989 2011-05-21  Bruno Haible  <bruno@clisp.org>
1990
1991         lstat, openat: Respect rules for use of AC_LIBOBJ.
1992         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
1993         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
1994         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
1995         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
1996         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
1997         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
1998         here.
1999         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2000
2001 2011-05-21  Bruno Haible  <bruno@clisp.org>
2002
2003         lseek: Move AC_LIBOBJ invocations to module description.
2004         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
2005         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2006         * modules/lseek (configure.ac): ... to here.
2007
2008 2011-05-21  Bruno Haible  <bruno@clisp.org>
2009
2010         linkat: Move AC_LIBOBJ invocations to module description.
2011         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
2012         here...
2013         * modules/linkat (configure.ac): ... to here.
2014
2015 2011-05-21  Bruno Haible  <bruno@clisp.org>
2016
2017         link: Respect rules for use of AC_LIBOBJ.
2018         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
2019         * modules/link (configure.ac): ... to here.
2020
2021 2011-05-21  Bruno Haible  <bruno@clisp.org>
2022
2023         lchown: Move AC_LIBOBJ invocations to module description.
2024         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2025         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
2026         * modules/lchown (configure.ac): ... to here.
2027
2028 2011-05-21  Bruno Haible  <bruno@clisp.org>
2029
2030         iswctype: Move AC_LIBOBJ invocations to module description.
2031         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
2032         here...
2033         * modules/iswctype (configure.ac): ... to here.
2034
2035 2011-05-21  Bruno Haible  <bruno@clisp.org>
2036
2037         iswblank: Move AC_LIBOBJ invocations to module description.
2038         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
2039         here...
2040         * modules/iswblank (configure.ac): ... to here.
2041
2042 2011-05-21  Bruno Haible  <bruno@clisp.org>
2043
2044         atanl: Move AC_LIBOBJ invocations to module description.
2045         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
2046         * modules/atanl (configure.ac): ... to here.
2047
2048 2011-05-21  Bruno Haible  <bruno@clisp.org>
2049
2050         acosl: Move AC_LIBOBJ invocations to module description.
2051         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
2052         * modules/acosl (configure.ac): ... to here.
2053
2054 2011-05-21  Bruno Haible  <bruno@clisp.org>
2055
2056         asinl: Respect rules for use of AC_LIBOBJ.
2057         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
2058         * modules/asinl (configure.ac): ... to here.
2059
2060 2011-05-21  Bruno Haible  <bruno@clisp.org>
2061
2062         tanl: Move AC_LIBOBJ invocations to module description.
2063         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
2064         * modules/tanl (configure.ac): ... to here.
2065
2066 2011-05-21  Bruno Haible  <bruno@clisp.org>
2067
2068         cosl: Move AC_LIBOBJ invocations to module description.
2069         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
2070         * modules/cosl (configure.ac): ... to here.
2071
2072 2011-05-21  Bruno Haible  <bruno@clisp.org>
2073
2074         sinl: Move AC_LIBOBJ invocations to module description.
2075         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
2076         * modules/sinl (configure.ac): ... to here.
2077
2078 2011-05-21  Bruno Haible  <bruno@clisp.org>
2079
2080         logl: Move AC_LIBOBJ invocations to module description.
2081         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
2082         * modules/logl (configure.ac): ... to here.
2083
2084 2011-05-21  Bruno Haible  <bruno@clisp.org>
2085
2086         expl: Move AC_LIBOBJ invocations to module description.
2087         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
2088         * modules/expl (configure.ac): ... to here.
2089
2090 2011-05-21  Bruno Haible  <bruno@clisp.org>
2091
2092         roundl: Move AC_LIBOBJ invocations to module description.
2093         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
2094         * modules/roundl (configure.ac): ... to here.
2095
2096 2011-05-21  Bruno Haible  <bruno@clisp.org>
2097
2098         round: Move AC_LIBOBJ invocations to module description.
2099         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
2100         * modules/round (configure.ac): ... to here.
2101
2102 2011-05-21  Bruno Haible  <bruno@clisp.org>
2103
2104         roundf: Move AC_LIBOBJ invocations to module description.
2105         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
2106         * modules/roundf (configure.ac): ... to here.
2107
2108 2011-05-21  Bruno Haible  <bruno@clisp.org>
2109
2110         truncl: Move AC_LIBOBJ invocations to module description.
2111         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
2112         * modules/truncl (configure.ac): ... to here.
2113
2114 2011-05-21  Bruno Haible  <bruno@clisp.org>
2115
2116         trunc: Move AC_LIBOBJ invocations to module description.
2117         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
2118         * modules/trunc (configure.ac): ... to here.
2119
2120 2011-05-21  Bruno Haible  <bruno@clisp.org>
2121
2122         truncf: Move AC_LIBOBJ invocations to module description.
2123         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
2124         * modules/truncf (configure.ac): ... to here.
2125
2126 2011-05-21  Bruno Haible  <bruno@clisp.org>
2127
2128         ceill: Move AC_LIBOBJ invocations to module description.
2129         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
2130         * modules/ceill (configure.ac): ... to here.
2131
2132 2011-05-21  Bruno Haible  <bruno@clisp.org>
2133
2134         ceil: Move AC_LIBOBJ invocations to module description.
2135         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
2136         * modules/ceil (configure.ac): ... to here.
2137
2138 2011-05-21  Bruno Haible  <bruno@clisp.org>
2139
2140         ceilf: Move AC_LIBOBJ invocations to module description.
2141         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
2142         * modules/ceilf (configure.ac): ... to here.
2143
2144 2011-05-21  Bruno Haible  <bruno@clisp.org>
2145
2146         floorl: Respect rules for use of AC_LIBOBJ.
2147         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
2148         * modules/floorl (configure.ac): ... to here.
2149
2150 2011-05-21  Bruno Haible  <bruno@clisp.org>
2151
2152         floor: Respect rules for use of AC_LIBOBJ.
2153         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
2154         * modules/floor (configure.ac): ... to here.
2155
2156 2011-05-21  Bruno Haible  <bruno@clisp.org>
2157
2158         floorf: Move AC_LIBOBJ invocations to module description.
2159         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
2160         * modules/floorf (configure.ac): ... to here.
2161
2162 2011-05-20  Bruno Haible  <bruno@clisp.org>
2163
2164         sqrtl: Respect rules for use of AC_LIBOBJ.
2165         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
2166         * modules/sqrtl (configure.ac): ... to here.
2167
2168 2011-05-20  Bruno Haible  <bruno@clisp.org>
2169
2170         ldexpl: Respect rules for use of AC_LIBOBJ.
2171         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
2172         * modules/ldexpl (configure.ac): ... to here.
2173
2174 2011-05-20  Bruno Haible  <bruno@clisp.org>
2175
2176         frexpl*: Respect rules for use of AC_LIBOBJ.
2177         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
2178         invocation from here...
2179         * modules/frexpl (configure.ac): ... to here.
2180         * modules/frexpl-nolibm (configure.ac): ... and here.
2181
2182 2011-05-20  Bruno Haible  <bruno@clisp.org>
2183
2184         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
2185         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
2186         invocation from here...
2187         * modules/frexp (configure.ac): ... to here.
2188         * modules/frexp-nolibm (configure.ac): ... and here.
2189
2190 2011-05-20  Bruno Haible  <bruno@clisp.org>
2191
2192         isnan: Respect rules for use of AC_LIBOBJ.
2193         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
2194         invocations here.
2195         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
2196         REPLACE_ISNAN.
2197         * modules/isnand (configure.ac): Likewise.
2198         * modules/isnanl (configure.ac): Likewise.
2199
2200 2011-05-20  Bruno Haible  <bruno@clisp.org>
2201
2202         isnanl*: Respect rules for use of AC_LIBOBJ.
2203         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
2204         invocation from here...
2205         * modules/isnanl (configure.ac): ... to here.
2206         * modules/isnanl-nolibm (configure.ac): ... and here.
2207
2208 2011-05-20  Bruno Haible  <bruno@clisp.org>
2209
2210         isnand*: Move AC_LIBOBJ invocations to module description.
2211         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
2212         invocation from here...
2213         * modules/isnand (configure.ac): ... to here.
2214         * modules/isnand-nolibm (configure.ac): ... and here.
2215
2216 2011-05-20  Bruno Haible  <bruno@clisp.org>
2217
2218         isnanf*: Move AC_LIBOBJ invocations to module description.
2219         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
2220         invocation from here...
2221         * modules/isnanf (configure.ac): ... to here.
2222         * modules/isnanf-nolibm (configure.ac): ... and here.
2223
2224 2011-05-20  Bruno Haible  <bruno@clisp.org>
2225
2226         isnan*: Separate the AC_LIBOBJ invocations.
2227         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
2228         AC_LIBOBJ invocation.
2229         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
2230         here.
2231         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
2232         AC_LIBOBJ invocation.
2233         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
2234         here.
2235         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
2236         AC_LIBOBJ invocation.
2237         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
2238         here.
2239         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
2240
2241 2011-05-08  Bruno Haible  <bruno@clisp.org>
2242
2243         isinf: Move AC_LIBOBJ invocations to module description.
2244         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
2245         * modules/isinf (configure.ac): ... to here.
2246
2247 2011-05-08  Bruno Haible  <bruno@clisp.org>
2248
2249         isfinite: Move AC_LIBOBJ invocations to module description.
2250         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
2251         * modules/isfinite (configure.ac): ... to here.
2252
2253 2011-05-08  Bruno Haible  <bruno@clisp.org>
2254
2255         isblank: Move AC_LIBOBJ invocations to module description.
2256         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
2257         here...
2258         * modules/isblank (configure.ac): ... to here.
2259
2260 2011-05-08  Bruno Haible  <bruno@clisp.org>
2261
2262         isapipe: Move AC_LIBOBJ invocations to module description.
2263         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
2264         gl_PREREQ_ISAPIPE invocations from here...
2265         * modules/isapipe (configure.ac): ... to here.
2266         (Depends-on): Update condition.
2267
2268 2011-05-08  Bruno Haible  <bruno@clisp.org>
2269
2270         ioctl: Move AC_LIBOBJ invocations to module description.
2271         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
2272         invocations from here...
2273         * modules/ioctl (configure.ac): ... to here.
2274         (Depends-on): Update condition.
2275
2276 2011-05-08  Bruno Haible  <bruno@clisp.org>
2277
2278         imaxdiv: Move AC_LIBOBJ invocations to module description.
2279         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
2280         invocations from here...
2281         * modules/imaxdiv (configure.ac): ... to here.
2282
2283 2011-05-08  Bruno Haible  <bruno@clisp.org>
2284
2285         imaxabs: Move AC_LIBOBJ invocations to module description.
2286         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
2287         invocations from here...
2288         * modules/imaxabs (configure.ac): ... to here.
2289
2290 2011-05-08  Bruno Haible  <bruno@clisp.org>
2291
2292         getaddrinfo: Move AC_LIBOBJ invocations to module description.
2293         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
2294         AC_LIBOBJ invocations from here...
2295         * modules/getaddrinfo (configure.ac): ... to here.
2296         (Depends-on): Add conditions.
2297
2298 2011-05-08  Bruno Haible  <bruno@clisp.org>
2299
2300         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
2301         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
2302         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
2303         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
2304         (gl_PREREQ_INET_PTON): ... from here.
2305         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
2306         gl_PREREQ_INET_PTON here.
2307         (Depends-on): Update condition.
2308
2309 2011-05-08  Bruno Haible  <bruno@clisp.org>
2310
2311         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
2312         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
2313         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
2314         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
2315         (gl_PREREQ_INET_NTOP): ... from here.
2316         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
2317         gl_PREREQ_INET_NTOP here.
2318         (Depends-on): Update condition.
2319
2320 2011-05-08  Bruno Haible  <bruno@clisp.org>
2321
2322         iconv_open: Move AC_LIBOBJ invocations to module description.
2323         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
2324         AC_LIBOBJ invocations from here...
2325         * modules/iconv_open (configure.ac): ... to here.
2326
2327 2011-05-08  Bruno Haible  <bruno@clisp.org>
2328
2329         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
2330         If module 'iconv_open' is among the main modules and module
2331         'iconv_open-utf' is among the tests dependencies, then
2332         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
2333         return the special iconv_t values. Therefore iconv() and iconv_close()
2334         must support these special iconv_t values, already in lib, not only in
2335         tests.
2336         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
2337         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
2338         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
2339         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
2340         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
2341         (Depends-on): Add the dependencies of iconv_open-utf.
2342         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
2343         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
2344         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
2345
2346 2011-05-08  Bruno Haible  <bruno@clisp.org>
2347
2348         group-member: Move AC_LIBOBJ invocations to module description.
2349         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
2350         gl_PREREQ_GROUP_MEMBER invocations from here...
2351         * modules/group-member (configure.ac): ... to here.
2352
2353 2011-05-08  Bruno Haible  <bruno@clisp.org>
2354
2355         grantpt: Move AC_LIBOBJ invocations to module description.
2356         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
2357         invocations from here...
2358         * modules/grantpt (configure.ac): ... to here.
2359
2360 2011-05-08  Bruno Haible  <bruno@clisp.org>
2361
2362         glob: Move AC_LIBOBJ invocations to module description.
2363         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
2364         from here...
2365         * modules/glob (configure.ac): ... to here.
2366
2367 2011-05-08  Bruno Haible  <bruno@clisp.org>
2368
2369         getusershell: Move AC_LIBOBJ invocations to module description.
2370         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
2371         Move AC_LIBOBJ invocation from here...
2372         * modules/getusershell (configure.ac): ... to here.
2373         (Depends-on): Update condition.
2374
2375 2011-05-08  Bruno Haible  <bruno@clisp.org>
2376
2377         gettimeofday: Move AC_LIBOBJ invocations to module description.
2378         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
2379         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
2380         gl_PREREQ_GETTIMEOFDAY invocations from here...
2381         * modules/gettimeofday (configure.ac): ... to here.
2382
2383 2011-05-08  Bruno Haible  <bruno@clisp.org>
2384
2385         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
2386         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
2387         just gl_FUNC_TZSET.
2388         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
2389         (gl_FUNC_TZSET_CLOBBER): Remove actions.
2390         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
2391         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
2392
2393 2011-05-08  Bruno Haible  <bruno@clisp.org>
2394
2395         getsubopt: Move AC_LIBOBJ invocations to module description.
2396         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
2397         gl_PREREQ_GETSUBOPT invocations from here...
2398         * modules/getsubopt (configure.ac): ... to here.
2399
2400 2011-05-08  Bruno Haible  <bruno@clisp.org>
2401
2402         getpass-gnu: Move AC_LIBOBJ invocations to module description.
2403         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
2404         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
2405         * modules/getpass-gnu (configure.ac): ... to here.
2406
2407 2011-05-08  Bruno Haible  <bruno@clisp.org>
2408
2409         getpass: Move AC_LIBOBJ invocations to module description.
2410         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
2411         gl_PREREQ_GETPASS invocations from here...
2412         * modules/getpass (configure.ac): ... to here.
2413
2414 2011-05-08  Bruno Haible  <bruno@clisp.org>
2415
2416         getpagesize: Move AC_LIBOBJ invocations to module description.
2417         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
2418         from here...
2419         * modules/getpagesize (configure.ac): ... to here.
2420
2421 2011-05-08  Bruno Haible  <bruno@clisp.org>
2422
2423         getopt: Move AC_LIBOBJ invocations to module description.
2424         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
2425         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
2426         invocations from here...
2427         * modules/getopt-gnu (configure.ac): ... to here.
2428         * modules/getopt-posix (configure.ac): ... and here.
2429         (Depends-on): Update condition.
2430
2431 2011-05-08  Bruno Haible  <bruno@clisp.org>
2432
2433         getopt, argp: Respect rules for use of AC_LIBOBJ.
2434         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
2435         (gl_REPLACE_GETOPT_ALWAYS): New macro.
2436         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
2437         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
2438
2439 2011-05-08  Bruno Haible  <bruno@clisp.org>
2440
2441         getlogin_r: Move AC_LIBOBJ invocations to module description.
2442         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
2443         gl_PREREQ_GETLOGIN_R invocations from here...
2444         * modules/getlogin_r (configure.ac): ... to here.
2445
2446 2011-05-08  Bruno Haible  <bruno@clisp.org>
2447
2448         getlogin: Move AC_LIBOBJ invocations to module description.
2449         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
2450         here...
2451         * modules/getlogin (configure.ac): ... to here.
2452
2453 2011-05-08  Bruno Haible  <bruno@clisp.org>
2454
2455         getloadavg: Move AC_LIBOBJ invocations to module description.
2456         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
2457         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
2458         * modules/getloadavg (configure.ac): ... to here.
2459
2460 2011-05-08  Bruno Haible  <bruno@clisp.org>
2461
2462         gethrxtime: Move AC_LIBOBJ invocations to module description.
2463         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
2464         LIB_GETHRXTIME from here...
2465         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
2466         invocations from here...
2467         * modules/gethrxtime (configure.ac): ... to here.
2468
2469 2011-05-08  Bruno Haible  <bruno@clisp.org>
2470
2471         gethostname: Move AC_LIBOBJ invocations to module description.
2472         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
2473         gl_PREREQ_GETHOSTNAME invocations from here...
2474         * modules/gethostname (configure.ac): ... to here.
2475
2476 2011-05-08  Bruno Haible  <bruno@clisp.org>
2477
2478         getgroups: Move AC_LIBOBJ invocations to module description.
2479         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
2480         here...
2481         * modules/getgroups (configure.ac): ... to here.
2482
2483 2011-05-08  Bruno Haible  <bruno@clisp.org>
2484
2485         getdtablesize: Move AC_LIBOBJ invocations to module description.
2486         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
2487         invocation from here...
2488         * modules/getdtablesize (configure.ac): ... to here.
2489
2490 2011-05-08  Bruno Haible  <bruno@clisp.org>
2491
2492         getdomainname: Move AC_LIBOBJ invocations to module description.
2493         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
2494         gl_PREREQ_GETDOMAINNAME invocations from here...
2495         * modules/getdomainname (configure.ac): ... to here.
2496
2497 2011-05-08  Bruno Haible  <bruno@clisp.org>
2498
2499         getline: Move AC_LIBOBJ invocations to module description.
2500         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
2501         invocations from here...
2502         * modules/getline (configure.ac): ... to here.
2503
2504 2011-05-08  Bruno Haible  <bruno@clisp.org>
2505
2506         getline: Simplify.
2507         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
2508         It's already handled through the module dependency.
2509
2510 2011-05-08  Bruno Haible  <bruno@clisp.org>
2511
2512         getdelim: Move AC_LIBOBJ invocations to module description.
2513         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
2514         and gl_PREREQ_GETDELIM invocations from here...
2515         * modules/getdelim (configure.ac): ... to here.
2516         (Depends-on): Fix condition.
2517
2518 2011-05-08  Bruno Haible  <bruno@clisp.org>
2519
2520         getcwd: Move AC_LIBOBJ invocations to module description.
2521         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
2522         invocations from here...
2523         * modules/getcwd (configure.ac): ... to here.
2524
2525 2011-05-08  Bruno Haible  <bruno@clisp.org>
2526
2527         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
2528         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
2529         here...
2530         * modules/getcwd-lgpl (configure.ac): ... to here.
2531
2532 2011-05-07  Bruno Haible  <bruno@clisp.org>
2533
2534         crypto/gc: Move AC_LIBOBJ invocations to module description.
2535         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
2536         * modules/crypto/gc (configure.ac): ... to here.
2537
2538 2011-05-07  Bruno Haible  <bruno@clisp.org>
2539
2540         fwriting: Move AC_LIBOBJ invocations to module description.
2541         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
2542         here...
2543         * modules/fwriting (configure.ac): ... to here.
2544
2545 2011-05-07  Bruno Haible  <bruno@clisp.org>
2546
2547         fwritable: Move AC_LIBOBJ invocations to module description.
2548         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
2549         here...
2550         * modules/fwritable (configure.ac): ... to here.
2551
2552 2011-05-07  Bruno Haible  <bruno@clisp.org>
2553
2554         futimens: Move AC_LIBOBJ invocations to module description.
2555         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
2556         here...
2557         * modules/futimens (configure.ac): ... to here.
2558
2559 2011-05-07  Bruno Haible  <bruno@clisp.org>
2560
2561         ftruncate: Move AC_LIBOBJ invocations to module description.
2562         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
2563         gl_PREREQ_FTRUNCATE invocations from here...
2564         * modules/ftruncate (configure.ac): ... to here.
2565
2566 2011-05-07  Bruno Haible  <bruno@clisp.org>
2567
2568         fsync: Move AC_LIBOBJ invocations to module description.
2569         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
2570         invocations from here...
2571         * modules/fsync (configure.ac): ... to here.
2572
2573 2011-05-07  Bruno Haible  <bruno@clisp.org>
2574
2575         fsusage: Move AC_LIBOBJ invocations to module description.
2576         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
2577         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
2578         * modules/fsusage (configure.ac): ... to here.
2579
2580 2011-05-07  Bruno Haible  <bruno@clisp.org>
2581
2582         freopen: Move AC_LIBOBJ invocations to module description.
2583         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
2584         invocations from here...
2585         * modules/freopen (configure.ac): ... to here.
2586
2587 2011-05-07  Bruno Haible  <bruno@clisp.org>
2588
2589         free: Move AC_LIBOBJ invocations to module description.
2590         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
2591         invocations from here...
2592         * modules/free (configure.ac): ... to here.
2593
2594 2011-05-07  Bruno Haible  <bruno@clisp.org>
2595
2596         freadable: Move AC_LIBOBJ invocations to module description.
2597         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
2598         here...
2599         * modules/freadable (configure.ac): ... to here.
2600
2601 2011-05-07  Bruno Haible  <bruno@clisp.org>
2602
2603         fpurge: Move AC_LIBOBJ invocations to module description.
2604         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
2605         invocations from here...
2606         * modules/fpurge (configure.ac): ... to here.
2607
2608 2011-05-07  Bruno Haible  <bruno@clisp.org>
2609
2610         fpending: Move AC_LIBOBJ invocations to module description.
2611         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
2612         gl_FUNC_FPENDING.
2613         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
2614         invocations from here...
2615         * modules/fpending (configure.ac): ... to here.
2616
2617 2011-05-07  Bruno Haible  <bruno@clisp.org>
2618
2619         fopen: Move AC_LIBOBJ invocations to module description.
2620         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
2621         invocations from here...
2622         * modules/fopen (configure.ac): ... to here.
2623
2624 2011-05-07  Bruno Haible  <bruno@clisp.org>
2625
2626         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
2627         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
2628         gl_FUNC_FNMATCH_POSIX.
2629         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
2630         invocations from here...
2631         * modules/fnmatch (configure.ac): ... to here.
2632         * modules/fnmatch-gnu (configure.ac): ... and here.
2633
2634 2011-05-07  Bruno Haible  <bruno@clisp.org>
2635
2636         flock: Move AC_LIBOBJ invocations to module description.
2637         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
2638         invocations from here...
2639         * modules/flock (configure.ac): ... to here.
2640
2641 2011-05-07  Bruno Haible  <bruno@clisp.org>
2642
2643         fileblocks: Move AC_LIBOBJ invocations to module description.
2644         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
2645         gl_PREREQ_FILEBLOCKS invocations from here...
2646         * modules/fileblocks (configure.ac): ... to here.
2647
2648 2011-05-06  Bruno Haible  <bruno@clisp.org>
2649
2650         fflush: Move AC_LIBOBJ invocations to module description.
2651         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
2652         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
2653         invocations from here...
2654         * modules/fflush (configure.ac): ... to here.
2655
2656 2011-05-06  Bruno Haible  <bruno@clisp.org>
2657
2658         fdopendir: Move AC_LIBOBJ invocations to module description.
2659         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
2660         here...
2661         * modules/fdopendir (configure.ac): ... to here.
2662         (Depends-on): Improve conditions.
2663
2664 2011-05-06  Bruno Haible  <bruno@clisp.org>
2665
2666         _Exit: Move AC_LIBOBJ invocations to module description.
2667         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
2668         invocations from here...
2669         * modules/_Exit (configure.ac): ... to here.
2670
2671 2011-05-21  Bruno Haible  <bruno@clisp.org>
2672
2673         euidaccess: Respect rules for use of AC_LIBOBJ.
2674         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
2675         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
2676         from here...
2677         * modules/euidaccess (configure.ac): ... to here.
2678
2679 2011-05-06  Bruno Haible  <bruno@clisp.org>
2680
2681         error: Move AC_LIBOBJ invocations to module description.
2682         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
2683         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
2684         invocations from here...
2685         * modules/error (configure.ac): ... to here.
2686
2687 2011-05-06  Bruno Haible  <bruno@clisp.org>
2688
2689         duplocale: Move AC_LIBOBJ invocations to module description.
2690         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
2691         gl_PREREQ_DUPLOCALE invocations from here...
2692         * modules/duplocale (configure.ac): ... to here.
2693
2694 2011-05-05  Bruno Haible  <bruno@clisp.org>
2695
2696         dirfd: Move AC_LIBOBJ invocations to module description.
2697         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
2698         gl_FUNC_DIRFD.
2699         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
2700         here...
2701         * modules/dirfd (configure.ac): ... to here.
2702         (Depends-on): Fix condition.
2703
2704 2011-05-05  Bruno Haible  <bruno@clisp.org>
2705
2706         chown: Respect rules for use of AC_LIBOBJ.
2707         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
2708         * modules/chown (configure.ac): ... to here.
2709
2710 2011-05-05  Bruno Haible  <bruno@clisp.org>
2711
2712         chdir-long: Move AC_LIBOBJ invocations to module description.
2713         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
2714         gl_PREREQ_CHDIR_LONG invocations from here...
2715         * modules/chdir-long (configure.ac): ... to here.
2716
2717 2011-05-05  Bruno Haible  <bruno@clisp.org>
2718
2719         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
2720         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
2721         from here...
2722         * modules/canonicalize-lgpl (configure.ac): ... to here.
2723
2724 2011-05-05  Bruno Haible  <bruno@clisp.org>
2725
2726         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
2727         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
2728         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
2729         REPLACE_CALLOC.
2730         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
2731         * modules/calloc-gnu (configure.ac): Likewise.
2732
2733 2011-05-05  Bruno Haible  <bruno@clisp.org>
2734
2735         btowc: Move AC_LIBOBJ invocations to module description.
2736         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
2737         invocations from here...
2738         * modules/btowc (configure.ac): ... to here.
2739
2740 2011-05-21  Bruno Haible  <bruno@clisp.org>
2741
2742         atexit: Move AC_LIBOBJ invocations to module description.
2743         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
2744         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
2745         here...
2746         * modules/atexit (configure.ac): ... to here.
2747
2748 2011-05-05  Bruno Haible  <bruno@clisp.org>
2749
2750         atoll: Move AC_LIBOBJ invocations to module description.
2751         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
2752         invocations from here...
2753         * modules/atoll (configure.ac): ... to here.
2754
2755 2011-05-05  Bruno Haible  <bruno@clisp.org>
2756
2757         argz: Move AC_LIBOBJ invocations to module description.
2758         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
2759         * modules/argz (configure.ac): ... to here.
2760
2761 2011-05-05  Bruno Haible  <bruno@clisp.org>
2762
2763         alphasort: Move AC_LIBOBJ invocations to module description.
2764         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
2765         gl_PREREQ_ALPHASORT invocations from here...
2766         * modules/alphasort (configure.ac): ... to here.
2767
2768 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
2769
2770         verify: new macro verify_expr; verify_true deprecated
2771         * NEWS: Mention this.
2772         * doc/verify.texi (Compile-time Assertions): Document this.
2773         * lib/verify.h (verify_true): Deprecate.
2774         (verify_expr): New macro.
2775         * tests/test-verify.c (function): Test verify_expr.
2776
2777 2011-06-14  Jim Meyering  <meyering@redhat.com>
2778
2779         init.sh: give more portable redirection-related advice in a comment
2780         * tests/init.sh (stderr_fileno_): Update the advice in comments.
2781         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
2782         for lots of discussion.  Stefano Lattarini suggested the solution
2783         of putting "9>&2" after the command.  Reported by Bruno Haible.
2784
2785 2011-06-13  Bruno Haible  <bruno@clisp.org>
2786
2787         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
2788         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
2789         'none'.
2790
2791 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
2792
2793         ftoastr: use strtof only if HAVE_STRTOF
2794         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
2795         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
2796         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
2797         * modules/ftoastr (configure.ac): Check for strtof.
2798
2799 2011-06-13  Bruno Haible  <bruno@clisp.org>
2800
2801         gnulib-tool: Addendum to 2011-06-08 commit.
2802         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
2803         and --witness-c-macro have been given, augment AM_CPPFLAGS.
2804
2805 2011-06-13  Bruno Haible  <bruno@clisp.org>
2806
2807         fseeko: Provide a non-inline replacement of fseek().
2808         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
2809         * modules/fseeko (Depends-on): Add fseek.
2810         * modules/fseek (License): Change to LGPLv2+.
2811
2812 2011-06-13  Bruno Haible  <bruno@clisp.org>
2813
2814         ftello: Provide a non-inline replacement of ftell().
2815         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
2816         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
2817         not have ftello() (such as on mingw).
2818         * modules/ftello (Depends-on): Add ftell.
2819         * modules/ftell (License): Change to LGPLv2+.
2820
2821 2011-05-07  Bruno Haible  <bruno@clisp.org>
2822
2823         ftell: Move AC_LIBOBJ invocations to module description.
2824         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
2825         * modules/ftell (configure.ac): ... to here.
2826
2827 2011-05-07  Bruno Haible  <bruno@clisp.org>
2828
2829         ftello: Respect rules for use of AC_LIBOBJ.
2830         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
2831         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
2832         here...
2833         * modules/ftello (configure.ac): ... to here.
2834
2835 2011-05-07  Bruno Haible  <bruno@clisp.org>
2836
2837         fseeko: Simplify.
2838         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
2839         (gl_FUNC_FSEEKO): Inline it here.
2840
2841 2011-05-07  Bruno Haible  <bruno@clisp.org>
2842
2843         fseek: Move AC_LIBOBJ invocations to module description.
2844         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
2845         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
2846         * modules/fseek (configure.ac): ... to here.
2847
2848 2011-05-07  Bruno Haible  <bruno@clisp.org>
2849
2850         fseek: Respect rules for use of AC_LIBOBJ.
2851         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
2852         here...
2853         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
2854
2855 2011-05-07  Bruno Haible  <bruno@clisp.org>
2856
2857         fseeko: Respect rules for use of AC_LIBOBJ.
2858         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
2859         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
2860         here...
2861         * modules/fseeko (configure.ac): ... to here.
2862
2863 2011-06-13  Bruno Haible  <bruno@clisp.org>
2864
2865         gnulib-tool: Allow comments in the 'Depends-on' section.
2866         * doc/gnulib.texi (Module description): Mention comment syntax in the
2867         Depends-on section.
2868         * gnulib-tool (func_get_dependencies): Filter out comment lines.
2869
2870 2011-06-13  Bruno Haible  <bruno@clisp.org>
2871
2872         file-set.h: guard __attibute__ use, now that it's not always defined
2873         * lib/file-set.h (record_file): Use __attribute__ only with compiler
2874         versions that support it.  This fixes a coreutils build failure with
2875         the vendor cc on HP-UX 11.31.
2876
2877 2011-06-12  Bruno Haible  <bruno@clisp.org>
2878
2879         acl: Add support for HP-UX >= 11.11 JFS ACLs.
2880         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
2881         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
2882         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
2883         (acl, aclsort): New declarations.
2884         (aclv_nontrivial): New declaration.
2885         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
2886         (file_has_acl): Read also the second kind of HP-UX ACLs.
2887         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
2888         kind of HP-UX ACLs if the first kind fails.
2889         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
2890         second kind of HP-UX ACLs.
2891         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
2892         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
2893         agree.
2894         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
2895         hpuxjfs.
2896         Handle hpuxjfs.
2897         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
2898         hpuxjfs.
2899         Handle hpuxjfs.
2900         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
2901         (func_test_same_acls): Use both lsacl and getacl.
2902         Handle hpuxjfs.
2903         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
2904         (func_test_same_acls): Use both lsacl and getacl.
2905         Handle hpuxjfs.
2906
2907 2011-06-12  Bruno Haible  <bruno@clisp.org>
2908
2909         acl: Complete the 2010-08-10 fix.
2910         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
2911         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
2912         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
2913         explicitly.
2914         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
2915         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
2916
2917 2011-06-12  Bruno Haible  <bruno@clisp.org>
2918
2919         spawn-pipe tests: Comments.
2920         * tests/test-spawn-pipe-child.c (main): Update comment.
2921         Reported by James Youngman <jay@gnu.org>.
2922
2923 2011-06-11  James Youngman  <jay@gnu.org>
2924
2925         New module 'stat-size'.
2926         * modules/stat-size: New module.  Provides macros for accessing
2927         file size information in instances of struct stat.  Depends on the
2928         fileblocks module because it calls st_blocks.
2929         * lib/stat-size.h: New file, adapted from coreutils' system.h.
2930         * doc/gnulib.texi: Include stat-size.texi.
2931         * doc/stat-size.texi: Documentation for this module.
2932         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
2933         * m4/fileblocks.m4: Mention that stat-size depends on the call to
2934         AC_STRUCT_ST_BLOCKS.
2935
2936 2011-06-09  Bruno Haible  <bruno@clisp.org>
2937
2938         thread: Support pthreads-win32.
2939         * lib/glthread/thread.h (gl_thread_self): Define differently on
2940         pthreads-win32.
2941         (gl_null_thread): New declaration.
2942         (gl_thread_self_pointer): New macro.
2943         * lib/glthread/thread.c (gl_null_thread): New constant.
2944         * tests/test-lock.c: Use gl_thread_self_pointer instead of
2945         gl_thread_self.
2946         * tests/test-tls.c: Likewise.
2947         Suggested by Paul Eggert. Reported by Eric Blake.
2948
2949 2011-06-09  Bruno Haible  <bruno@clisp.org>
2950
2951         thread: Fix confusion between NULL and 0.
2952         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
2953         Reported by Paul Eggert.
2954
2955 2011-06-09  Bruno Haible  <bruno@clisp.org>
2956
2957         spawn-pipe tests: Avoid test failure on HP-UX 11.
2958         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
2959         is closed.
2960
2961 2011-06-09  Bruno Haible  <bruno@clisp.org>
2962
2963         acl tests: Fix compilation error on HP-UX 11.
2964         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
2965
2966 2011-06-09  Bruno Haible  <bruno@clisp.org>
2967
2968         rmdir: Avoid test failure on HP-UX 10.20.
2969         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
2970         EEXIST.
2971
2972 2011-06-08  Eric Blake  <eblake@redhat.com>
2973
2974         perror: fix test on mingw
2975         * modules/perror-tests (Depends-on): Add dup2.
2976
2977         strerror_r-posix: fix on MacOS
2978         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
2979         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
2980         logic bug.
2981         * lib/strerror_r.c (strerror_r): Fix the bug.
2982         * lib/strerror.c (strerror): Likewise.
2983         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
2984         problem.
2985         * doc/posix-functions/strerror.texi (strerror): Likewise.
2986         * doc/posix-functions/perror.texi (perror): Likewise.
2987         * tests/test-strerror.c (main): Enhance test.
2988         * tests/test-strerror_r.c (main): Likewise.
2989
2990 2011-06-08  Bruno Haible  <bruno@clisp.org>
2991
2992         gnulib-tool: Better isolation between different gnulib-tool invocations.
2993         * gnulib-tool: New option --witness-c-macro.
2994         (witness_c_macro): New variable.
2995         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
2996         AM_CPPFLAGS define it as a C macro.
2997         (func_emit_tests_Makefile_am): Likewise.
2998         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
2999         read it from there.
3000         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
3001         m4_define, not AC_DEFUN.
3002         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
3003         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
3004         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
3005         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
3006         s|...|...|, to substitute the values of the GNULIB_* module indicator
3007         variables.
3008         * modules/dirent (Makefile.am): Likewise.
3009         * modules/fcntl-h (Makefile.am): Likewise.
3010         * modules/iconv-h (Makefile.am): Likewise.
3011         * modules/langinfo (Makefile.am): Likewise.
3012         * modules/locale (Makefile.am): Likewise.
3013         * modules/math (Makefile.am): Likewise.
3014         * modules/netdb (Makefile.am): Likewise.
3015         * modules/poll-h (Makefile.am): Likewise.
3016         * modules/pty (Makefile.am): Likewise.
3017         * modules/search (Makefile.am): Likewise.
3018         * modules/signal (Makefile.am): Likewise.
3019         * modules/spawn (Makefile.am): Likewise.
3020         * modules/stdio (Makefile.am): Likewise.
3021         * modules/stdlib (Makefile.am): Likewise.
3022         * modules/string (Makefile.am): Likewise.
3023         * modules/sys_ioctl (Makefile.am): Likewise.
3024         * modules/sys_select (Makefile.am): Likewise.
3025         * modules/sys_socket (Makefile.am): Likewise.
3026         * modules/sys_stat (Makefile.am): Likewise.
3027         * modules/sys_times (Makefile.am): Likewise.
3028         * modules/sys_utsname (Makefile.am): Likewise.
3029         * modules/sys_wait (Makefile.am): Likewise.
3030         * modules/termios (Makefile.am): Likewise.
3031         * modules/time (Makefile.am): Likewise.
3032         * modules/unistd (Makefile.am): Likewise.
3033         * modules/wchar (Makefile.am): Likewise.
3034
3035 2011-06-08  Eric Blake  <eblake@redhat.com>
3036
3037         strerror: simplify replacement
3038         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
3039         * modules/strerror (configure.ac): No prereqs needed here...
3040         * modules/strerror-override (configure.ac): ...but this needs it.
3041         (Files): Add file for needed prereq macro.
3042
3043 2011-06-08  Bruno Haible  <bruno@clisp.org>
3044
3045         strerror_r-posix: Tweaks.
3046         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
3047         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
3048         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
3049         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
3050         (gl_FUNC_STRERROR_R): ... to here.
3051         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
3052
3053 2011-06-07  Eric Blake  <eblake@redhat.com>
3054
3055         perror: document fixed bugs
3056         * doc/posix-functions/perror.texi (perror): Document recent
3057         patches.
3058
3059 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
3060
3061         stat-time: get_stat_birthtime failure is better-defined
3062         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
3063         return a timestamp whose tv_sec and tv_nsec values are both -1.
3064         Previously, the spec said only that the tv_nsec value was negative.
3065         This upward-compatible change simplifies GNU tar a bit.
3066
3067 2011-06-07  Eric Blake  <eblake@redhat.com>
3068
3069         strerror_r-posix: work around cygwin 1.7.9
3070         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
3071         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
3072         bug without replacing strerror_r.
3073         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
3074         strerror_r is buggy, but without requiring strerror_r compilation.
3075         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
3076
3077         test-perror: relax test to ignore cygwin bug
3078         * tests/test-perror2.c (main): Relax test on requiring detection
3079         of stream errors, and use unbuffered stream.
3080         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
3081         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
3082         * doc/posix-functions/fputc.texi (fputc): Likewise.
3083         * doc/posix-functions/fputs.texi (fputs): Likewise.
3084         * doc/posix-functions/fputws.texi (fputws): Likewise.
3085         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
3086         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
3087         * doc/posix-functions/getopt.texi (getopt): Likewise.
3088         * doc/posix-functions/perror.texi (perror): Likewise.
3089         * doc/posix-functions/printf.texi (printf): Likewise.
3090         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
3091         * doc/posix-functions/psignal.texi (psignal): Likewise.
3092         * doc/posix-functions/putc.texi (putc): Likewise.
3093         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
3094         Likewise.
3095         * doc/posix-functions/putchar.texi (putchar): Likewise.
3096         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
3097         Likewise.
3098         * doc/posix-functions/puts.texi (puts): Likewise.
3099         * doc/posix-functions/putwc.texi (putwc): Likewise.
3100         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
3101         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
3102         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3103         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
3104         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3105         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
3106         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
3107         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
3108
3109 2011-05-22  Bruno Haible  <bruno@clisp.org>
3110
3111         strerror: Move AC_LIBOBJ invocations to module description.
3112         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
3113         gl_PREREQ_STRERROR invocations from here...
3114         * modules/strerror (configure.ac): ... to here.
3115
3116 2011-05-21  Bruno Haible  <bruno@clisp.org>
3117
3118         perror: Use common idiom.
3119         * modules/perror (configure.ac): Reorder statements.
3120
3121 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3122
3123         tests: fix usage message in 'mktempd_'
3124         * tests/init.sh (mktempd_): In the usage message, use literal
3125         'mktempd_', not '$ME' (which is even undefined), as the name of
3126         the subroutine.
3127
3128 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
3129
3130         tests init: new function 'fatal_', for hard errors
3131         Before this patch, the only way offered by tests/init.sh to
3132         properly signal a hard error was the `framework_failure_'
3133         function.  But the error message issued by that function,
3134         as its name would suggest, refers to a set-up failure in the
3135         testsuite, while hard errors can obviously also be due to
3136         other reasons.  The best way to fix this inconsistency is to
3137         introduce a new function with a more general error message.
3138         * tests/init.sh (fatal_): New function.
3139
3140 2011-06-06  Eric Blake  <eblake@redhat.com>
3141
3142         canonicalize-lgpl: use common idiom
3143         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
3144         over newer POSIX -Rf.
3145         Reported by Bruno Haible.
3146
3147         canonicalize-lgpl: work around AIX realpath bug
3148         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
3149         * doc/posix-functions/realpath.texi (realpath): Document it.
3150         Reported by Bruno Haible.
3151
3152         strerror: work around FreeBSD bug
3153         * lib/strerror.c (strerror): Special case 0.
3154         Reported by Bruno Haible.
3155
3156         strerror-override: avoid bloating errno module
3157         * modules/errno (Files, configure.ac): Move replacement strings...
3158         * modules/strerror-override: ...to new module.
3159         * modules/strerror (Depends-on): Add strerror-override.
3160         * modules/strerror_r-posix (Depends-on): Likewise.
3161         * MODULES.html.sh: Document new module.
3162         Reported by Bruno Haible.
3163
3164 2011-06-06  Bruno Haible  <bruno@clisp.org>
3165
3166         spawn-pipe tests: Rename program.
3167         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
3168         * tests/test-spawn-pipe-child.c: Update comment.
3169         * tests/test-spawn-pipe.sh: Update.
3170         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
3171
3172         spawn-pipe tests: Link the child program only against libc.
3173         * tests/test-spawn-pipe-child.c: New file, extracted from
3174         tests/test-spawn-pipe.c.
3175         (main): Expect only one argument.
3176         (is_open): New function, copied from tests/test-pipe.c.
3177         * tests/test-spawn-pipe.c: Don't include <errno.h>.
3178         (child_main): Remove function.
3179         (test_pipe): Pass only one argument to the child program.
3180         (main): Remove child process code. Expect the child program's name as
3181         first argument.
3182         * tests/test-spawn-pipe.sh: Pass the child program's name as first
3183         argument.
3184         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
3185         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
3186         test-spawn-pipe-child against no libraries.
3187
3188 2011-06-06  Bruno Haible  <bruno@clisp.org>
3189
3190         careadlinkat: Avoid mismatch between ssize_t and int.
3191         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
3192         * lib/careadlinkat.c (careadlinkatcwd): Define always.
3193
3194 2011-06-06  Jim Meyering  <meyering@redhat.com>
3195
3196         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
3197         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
3198         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
3199
3200 2011-06-05  Bruno Haible  <bruno@clisp.org>
3201
3202         ansi-c++-opt: Interoperability with libtool.
3203         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
3204         set the variable to "no", not to ":".
3205         * NEWS: Mention the change.
3206
3207 2011-06-05  Bruno Haible  <bruno@clisp.org>
3208
3209         acl: Fix test failure on AIX 7.
3210         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
3211         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
3212
3213 2011-06-05  Bruno Haible  <bruno@clisp.org>
3214
3215         pipe-filter-ii: Fix test failure on AIX and IRIX.
3216         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
3217         with EAGAIN, retry with a smaller buffer size.
3218
3219 2011-06-05  Bruno Haible  <bruno@clisp.org>
3220
3221         localename: Fix link dependencies.
3222         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
3223         * modules/localename-tests (Makefile.am): Link test-localename with
3224         $(LIBTHREAD).
3225
3226 2011-06-05  Bruno Haible  <bruno@clisp.org>
3227
3228         error: Avoid gcc warning.
3229         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
3230
3231 2011-06-05  Bruno Haible  <bruno@clisp.org>
3232
3233         unsetenv: Avoid gcc warning.
3234         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
3235
3236 2011-06-05  Bruno Haible  <bruno@clisp.org>
3237
3238         setenv: Avoid gcc warning.
3239         * lib/setenv.c (setenv): Provide declaration if system lacks it.
3240
3241 2011-06-05  Bruno Haible  <bruno@clisp.org>
3242
3243         sys_select: Ensure memset is declared also on AIX 7.
3244         * lib/sys_select.in.h: Include <string.h> also on AIX.
3245         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
3246         self-contained also on AIX 7.1.
3247
3248 2011-06-04  Jim Meyering  <meyering@redhat.com>
3249
3250         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
3251         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
3252         function name, "error".
3253         (_gl_translatable_diag_func_re): New configurable variable.
3254
3255 2011-06-04  Bruno Haible  <bruno@clisp.org>
3256
3257         getopt: Avoid gcc warning.
3258         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
3259
3260 2011-06-04  Bruno Haible  <bruno@clisp.org>
3261
3262         strerror_r: Fix comments.
3263         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
3264         commit.
3265
3266 2011-06-04  Bruno Haible  <bruno@clisp.org>
3267
3268         perror: Fix compilation error.
3269         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
3270         Undefine fprintf, not sprintf.
3271         * modules/perror (Depends-on): Remove intprops, verify.
3272
3273 2011-06-04  Bruno Haible  <bruno@clisp.org>
3274
3275         setlocale: Enable replacement on Cygwin 1.5.
3276         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
3277         Cygwin 1.5.x.
3278         * doc/posix-functions/setlocale.texi: Mention that the problem with the
3279         LC_CTYPE category also exists on Cygwin 1.5.x.
3280
3281 2011-06-04  Bruno Haible  <bruno@clisp.org>
3282
3283         strerror-override: Don't disable symbol renamings.
3284         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
3285         * lib/strerror-override.c: Include config.h.
3286         (strerror_override): Don't undefine.
3287
3288 2011-06-03  Bruno Haible  <bruno@clisp.org>
3289
3290         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
3291         * lib/localename.h: Update copyright header.
3292         * lib/localename.c: Likewise.
3293         * lib/relocatable.h: Likewise.
3294         * lib/relocatable.c: Likewise.
3295
3296 2011-06-02  Bruno Haible  <bruno@clisp.org>
3297
3298         doc: Fix a module name.
3299         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
3300
3301 2011-06-02  Bruno Haible  <bruno@clisp.org>
3302
3303         pipe2: Remove dependency on 'nonblocking' module.
3304         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
3305         O_NONBLOCK is defined by gnulib.
3306         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
3307         is zero.
3308         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
3309         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
3310         defined by gnulib.
3311         (get_nonblocking_flag): New function.
3312         (main): Test O_NONBLOCK flag only if it is nonzero.
3313         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
3314
3315 2011-06-03  Jim Meyering  <meyering@redhat.com>
3316
3317         maint: three new prohibit-header-without-use rules
3318         Prohibit use of cloexec.h, posixver.h, same.h without use.
3319         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
3320         (sc_prohibit_posixver_without_use): Likewise.
3321         (sc_prohibit_same_without_use): Likewise.
3322
3323 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
3324
3325         allocator: 'die' routine is now given requested size
3326         * lib/allocator.h (struct allocator.die): New size arg.
3327         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
3328         If the actual problem is an ssize_t limitation, not a size_t or
3329         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
3330
3331 2011-06-01  Eric Blake  <eblake@redhat.com>
3332
3333         strerror: drop strerror_r dependency
3334         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
3335         * lib/strerror-override.c (strerror_override): ...to new file.
3336         * lib/strerror-override.h: Add prototype.
3337         * lib/strerror-impl.h: Delete.
3338         * lib/strerror.c (strerror): New implementation.
3339         * modules/errno (Files): Add new files.
3340         (configure.ac): Compile new file as appropriate.
3341         * modules/strerror (Files): Drop unused file.
3342         (Depends-on): Drop strerror_r-posix.
3343         * MODULES.html.sh: Document strerror_r-posix.
3344         Requested by Sam Steingold.
3345
3346         perror: call strerror_r directly
3347         * modules/perror (Files): Drop strerror-impl.h.
3348         * lib/perror.c (perror): Use our own stack buffer, rather than
3349         calling a wrapper that uses static storage.
3350         * doc/posix-functions/perror.texi (perror): Document a limitation
3351         of our replacement.
3352
3353         strerror_r: fix includes for FreeBSD
3354         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
3355         since we use abort on some platforms.
3356         Reported by Matthias Bolte.
3357
3358 2011-05-31  Bruno Haible  <bruno@clisp.org>
3359
3360         Fix link errors in tests: openat-die uses gettext-h.
3361         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
3362         against $(LIBINTL).
3363         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
3364         against $(LIBINTL).
3365         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
3366         $(LIBINTL).
3367         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
3368         against $(LIBINTL).
3369         * modules/linkat-tests (Makefile.am): Link test-linkat against
3370         $(LIBINTL).
3371         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
3372         $(LIBINTL).
3373         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
3374         against $(LIBINTL).
3375         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
3376         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
3377         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
3378         $(LIBINTL).
3379         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
3380         $(LIBINTL).
3381         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
3382         $(LIBINTL).
3383         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3384
3385 2011-05-31  Bruno Haible  <bruno@clisp.org>
3386
3387         Fix link errors in tests: wait-process uses gettext-h.
3388         * modules/nonblocking-pipe-tests (Makefile.am): Set
3389         test_nonblocking_pipe_main_LDADD.
3390         * modules/nonblocking-socket-tests (Makefile.am): Link
3391         test-nonblocking-socket-main against $(LIBINTL).
3392         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3393
3394 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
3395
3396         assert-h: work around 'verify' incompatibility
3397         * lib/verify.h: Use @...@ directives, not ifdef.
3398         * modules/assert-h (assert.h): Implement the directives.
3399         (assert.h): Substitute the symbol-prefix more consistently.
3400
3401 2011-05-29  Jim Meyering  <meyering@redhat.com>
3402
3403         trim: remove three superfluous assignments
3404         * lib/trim.c (trim2): Remove three superfluous assignments
3405         and correct brace positioning.
3406
3407 2011-05-29  Bruno Haible  <bruno@clisp.org>
3408
3409         wctype-h: Avoid namespace pollution on Solaris 2.6.
3410         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
3411         identifiers.
3412         * doc/posix-headers/wctype.texi: Mention the problem.
3413         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3414
3415 2011-05-28  Jim Meyering  <meyering@redhat.com>
3416
3417         parse-datetime.y: accommodate -Wstrict-overflow
3418         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
3419         placate -Wstrict-overflow.
3420
3421         trim: avoid a warning from -O2 -Wstrict-overflow
3422         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
3423
3424 2011-05-29  Bruno Haible  <bruno@clisp.org>
3425
3426         gnulib-tool: Fix bug in yesterday's commit.
3427         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
3428         twice.
3429
3430 2011-05-29  Bruno Haible  <bruno@clisp.org>
3431
3432         Allow multiple gnulib generated include files to be combined.
3433         * gnulib-tool (func_compute_include_guard_prefix): New function.
3434         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
3435         ${gl_include_guard_prefix} references.
3436         (func_import, func_create_testdir): Invoke
3437         func_compute_include_guard_prefix.
3438         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
3439         * lib/ctype.in.h: Likewise.
3440         * lib/dirent.in.h: Likewise.
3441         * lib/errno.in.h: Likewise.
3442         * lib/fcntl.in.h: Likewise.
3443         * lib/float.in.h: Likewise.
3444         * lib/getopt.in.h: Likewise.
3445         * lib/iconv.in.h: Likewise.
3446         * lib/langinfo.in.h: Likewise.
3447         * lib/locale.in.h: Likewise.
3448         * lib/math.in.h: Likewise.
3449         * lib/netdb.in.h: Likewise.
3450         * lib/netinet_in.in.h: Likewise.
3451         * lib/poll.in.h: Likewise.
3452         * lib/pthread.in.h: Likewise.
3453         * lib/pty.in.h: Likewise.
3454         * lib/sched.in.h: Likewise.
3455         * lib/se-selinux.in.h: Likewise.
3456         * lib/search.in.h: Likewise.
3457         * lib/signal.in.h: Likewise.
3458         * lib/spawn.in.h: Likewise.
3459         * lib/stdarg.in.h: Likewise.
3460         * lib/stddef.in.h: Likewise.
3461         * lib/stdint.in.h: Likewise.
3462         * lib/stdio.in.h: Likewise.
3463         * lib/stdlib.in.h: Likewise.
3464         * lib/string.in.h: Likewise.
3465         * lib/strings.in.h: Likewise.
3466         * lib/sys_file.in.h: Likewise.
3467         * lib/sys_ioctl.in.h: Likewise.
3468         * lib/sys_select.in.h: Likewise.
3469         * lib/sys_socket.in.h: Likewise.
3470         * lib/sys_stat.in.h: Likewise.
3471         * lib/sys_time.in.h: Likewise.
3472         * lib/sys_times.in.h: Likewise.
3473         * lib/sys_uio.in.h: Likewise.
3474         * lib/sys_utsname.in.h: Likewise.
3475         * lib/sys_wait.in.h: Likewise.
3476         * lib/sysexits.in.h: Likewise.
3477         * lib/termios.in.h: Likewise.
3478         * lib/time.in.h: Likewise.
3479         * lib/unistd.in.h: Likewise.
3480         * lib/wchar.in.h: Likewise.
3481         * lib/wctype.in.h: Likewise.
3482         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
3483         * modules/ctype (Makefile.am): Likewise.
3484         * modules/dirent (Makefile.am): Likewise.
3485         * modules/errno (Makefile.am): Likewise.
3486         * modules/fcntl-h (Makefile.am): Likewise.
3487         * modules/float (Makefile.am): Likewise.
3488         * modules/getopt-posix (Makefile.am): Likewise.
3489         * modules/iconv-h (Makefile.am): Likewise.
3490         * modules/langinfo (Makefile.am): Likewise.
3491         * modules/locale (Makefile.am): Likewise.
3492         * modules/math (Makefile.am): Likewise.
3493         * modules/netdb (Makefile.am): Likewise.
3494         * modules/netinet_in (Makefile.am): Likewise.
3495         * modules/poll-h (Makefile.am): Likewise.
3496         * modules/pthread (Makefile.am): Likewise.
3497         * modules/pty (Makefile.am): Likewise.
3498         * modules/sched (Makefile.am): Likewise.
3499         * modules/search (Makefile.am): Likewise.
3500         * modules/selinux-h (Makefile.am): Likewise.
3501         * modules/signal (Makefile.am): Likewise.
3502         * modules/spawn (Makefile.am): Likewise.
3503         * modules/stdarg (Makefile.am): Likewise.
3504         * modules/stddef (Makefile.am): Likewise.
3505         * modules/stdint (Makefile.am): Likewise.
3506         * modules/stdio (Makefile.am): Likewise.
3507         * modules/stdlib (Makefile.am): Likewise.
3508         * modules/string (Makefile.am): Likewise.
3509         * modules/strings (Makefile.am): Likewise.
3510         * modules/sys_file (Makefile.am): Likewise.
3511         * modules/sys_ioctl (Makefile.am): Likewise.
3512         * modules/sys_select (Makefile.am): Likewise.
3513         * modules/sys_socket (Makefile.am): Likewise.
3514         * modules/sys_stat (Makefile.am): Likewise.
3515         * modules/sys_time (Makefile.am): Likewise.
3516         * modules/sys_times (Makefile.am): Likewise.
3517         * modules/sys_uio (Makefile.am): Likewise.
3518         * modules/sys_utsname (Makefile.am): Likewise.
3519         * modules/sys_wait (Makefile.am): Likewise.
3520         * modules/sysexits (Makefile.am): Likewise.
3521         * modules/termios (Makefile.am): Likewise.
3522         * modules/time (Makefile.am): Likewise.
3523         * modules/unistd (Makefile.am): Likewise.
3524         * modules/wchar (Makefile.am): Likewise.
3525         * modules/wctype-h (Makefile.am): Likewise.
3526         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
3527
3528 2011-05-29  Bruno Haible  <bruno@clisp.org>
3529
3530         assert-h: Allow multiple gnulib generated replacements to coexist.
3531         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
3532
3533 2011-05-29  Bruno Haible  <bruno@clisp.org>
3534
3535         argp: Allow coexistence with strerror_r-posix module.
3536         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
3537         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
3538         by gnulib's <string.h> replacement), assume it has the POSIX signature,
3539         not the glibc signature.
3540
3541 2011-05-28  Bruno Haible  <bruno@clisp.org>
3542
3543         gnulib-tool: Alternative structure of testdirs, similar to --import.
3544         * gnulib-tool: New option --single-configure.
3545         (func_usage): Document it.
3546         (single_configure): New variable.
3547         (func_modules_transitive_closure_separately,
3548         func_modules_transitive_closure_separately,
3549         func_determine_use_libtests, func_modules_add_dummy_separately,
3550         func_modules_to_filelist_separately): New functions, extracted from
3551         func_import.
3552         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
3553         (func_import): Use the new functions.
3554         (func_create_testdir): Set final_modules. Handle $single_configure =
3555         true case.
3556
3557 2011-05-28  Bruno Haible  <bruno@clisp.org>
3558
3559         getloadavg: Remove an unreliable safety check.
3560         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
3561         getloadavg.c is in place.
3562         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
3563         Reported by Sam Steingold <sds@gnu.org>.
3564
3565 2011-05-28  Bruno Haible  <bruno@clisp.org>
3566
3567         doc: Cleanup yet another file produced by texinfo.tex.
3568         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
3569
3570 2011-05-28  Bruno Haible  <bruno@clisp.org>
3571
3572         Finish the conditional dependencies mechanism.
3573         * gnulib-tool: New option --no-conditional-dependencies.
3574         (func_usage): Document it. Don't mark --conditional-dependencies as
3575         experimental.
3576         (cond_dependencies): The possible values can now be true, false, empty.
3577         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
3578         (func_import): Store setting in gnulib-cache.m4 and read it from there.
3579         * doc/gnulib-tool.texi (Conditional dependencies): New section.
3580
3581 2011-05-28  Bruno Haible  <bruno@clisp.org>
3582
3583         doc: Use a recent texinfo.tex.
3584         * doc/Makefile (tex_opts): New variable.
3585         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
3586
3587 2011-05-28  Jim Meyering  <meyering@redhat.com>
3588
3589         intprops.h: adjust comment to match code change
3590         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
3591         only once, it *may* have side effects.  Also fix an unrelated typo.
3592         (_GL_INT_SIGNED): Likewise.
3593
3594 2011-05-26  Simon Josefsson  <simon@josefsson.org>
3595
3596         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
3597
3598 2011-05-26  Bruno Haible  <bruno@clisp.org>
3599
3600         mbsrchr: Avoid collision with system function on Interix.
3601         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
3602         Reported by Markus Duft <mduft@gentoo.org>.
3603
3604 2011-05-15  James Youngman  <jay@gnu.org>
3605
3606         getopt: for ambiguous options, enumerate the possibilities.
3607         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
3608         the ambiguous options when an ambiguous prefix is given. This was
3609         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
3610         glibc change was
3611         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
3612
3613 2011-05-25  Eric Blake  <eblake@redhat.com>
3614
3615         getcwd: work around mingw bug
3616         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
3617         * doc/posix-functions/getcwd.texi (getcwd): Document it.
3618         Reported by Matthias Bolte.
3619
3620 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
3621
3622         test-intprops: disable -Wtype-limits diagnostics
3623         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
3624         diagnostics.  Otherwise, the integer overflow macros generate many
3625         diagnostics.  Reported by Jim Meyering in
3626         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
3627
3628         intprops: shorten, to pacify gcc -Woverlength-strings
3629         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
3630         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
3631         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
3632         likely to run afoul of C compiler limits for string constant lengths.
3633         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
3634
3635 2011-05-24  Eric Blake  <eblake@redhat.com>
3636
3637         docs: document recently fixed glibc printf bug
3638         * doc/posix-functions/fprintf.texi (fprintf): Document it.
3639         * doc/posix-functions/printf.texi (printf): Likewise.
3640         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
3641         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
3642
3643         closein-tests: convert to init.sh
3644         * modules/closein-tests (Files): Add init.sh
3645         * tests/test-closein.sh Use it.
3646
3647         yesno-tests: convert to init.sh
3648         * modules/yesno-tests (Files): Add init.sh.
3649         * tests/test-yesno.sh: Use it.
3650
3651         atexit-tests: ensure reliable exit status
3652         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
3653         Reported by Bruno Haible.
3654
3655 2011-05-24  Bruno Haible  <bruno@clisp.org>
3656
3657         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
3658         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
3659         gl_PREREQ_STRERROR_R invocations from here...
3660         * modules/strerror_r-posix (configure.ac): ... to here.
3661
3662 2011-05-24  Eric Blake  <eblake@redhat.com>
3663
3664         strerror_r: fix missing header
3665         * lib/strerror_r.c: Avoid compiler warning about snprintf.
3666
3667         strerror_r: fix AIX test failures
3668         * lib/strerror_r.c (strerror_r): Convert silent truncation to
3669         ERANGE failure.
3670
3671         strerror_r: fix Solaris test failures
3672         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
3673         failures.
3674         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
3675
3676         strerror_r: enforce POSIX recommendations
3677         * lib/strerror_r.c (safe_copy): New helper method.
3678         (strerror_r): Guarantee a non-empty string.
3679         * tests/test-strerror_r.c (main): Enhance tests to incorporate
3680         recent POSIX rulings and to match our strerror guarantees.
3681         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
3682
3683 2011-05-24  Jim Meyering  <meyering@redhat.com>
3684
3685         test-perror2.c: avoid warning about unused variable
3686         * tests/test-perror2.c (main): Remove declaration of unused "fp".
3687
3688 2011-05-24  Eric Blake  <eblake@redhat.com>
3689
3690         perror: avoid spurious test failure on HP-UX
3691         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
3692
3693         tests: fix logic bug in init.sh
3694         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
3695         shell.
3696
3697 2011-05-24  Jim Meyering  <meyering@redhat.com>
3698
3699         utimensat: do not reference an out-of-scope buffer
3700         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
3701         declared in an inner scope, yet "times" would be dereferenced outside
3702         the scope in which "ts" was valid.
3703         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
3704         of ts[2] "out/up", so that the use of aliased "times" (via
3705         "times = ts;") does not end up referencing an out-of-scope "ts"
3706
3707         opendir-safer.c: don't clobber errno; don't close negative FD
3708         * lib/opendir-safer.c (opendir_safer):
3709         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
3710         file descriptor, and more importantly, don't clobber the
3711         offending errno value with EINVAL.  Before, upon failure
3712         of dup_safer, we would pass the negative file descriptor to
3713         fdopendir, which would clobber errno.
3714
3715 2011-05-23  Bruno Haible  <bruno@clisp.org>
3716
3717         idcache: Fix module description.
3718         * modules/idcache (Include): Set to "idcache.h".
3719
3720 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3721
3722         gnulib-tool: fix portability problem with MacOS sed
3723         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
3724         before the "}".  Problem reported by Leo in
3725         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
3726         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
3727         sed_extract_condition1, sed_extract_condition2.
3728
3729 2011-05-23  Bruno Haible  <bruno@clisp.org>
3730
3731         hash: Simplify autoconf macro.
3732         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
3733
3734 2011-05-23  Bruno Haible  <bruno@clisp.org>
3735
3736         getugroups: Fix module description.
3737         * modules/getugroups (Include): Set to "getugroups.h".
3738
3739 2011-05-23  Bruno Haible  <bruno@clisp.org>
3740
3741         linkat: Simplify autoconf macro.
3742         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
3743
3744 2011-05-23  Bruno Haible  <bruno@clisp.org>
3745             Eric Blake  <eblake@redhat.com>
3746
3747         linkat, renameat: Update dependencies.
3748         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
3749         * modules/linkat (Depends-on): Likewise. Remove also readlink,
3750         symlinkat.
3751
3752 2011-05-23  Jim Meyering  <meyering@redhat.com>
3753
3754         maint.mk: more tight_scope improvements
3755         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
3756         (_gl_TS_headers): Define only in if-0'd block.
3757         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
3758         sometimes we must *not* use it.  Adjust uses accordingly.
3759         (sc_tight_scope): Use much simpler grep-based test to determine
3760         whether we skip this rule.
3761
3762         maint.mk: generalize/improve the tight-scope rule
3763         * top/maint.mk: Emit a warning when the test is skipped.
3764         (_gl_TS_dir): Add $(srcdir)/ prefix.
3765         (_gl_TS_function_match): Simplify, rather than trying
3766         to enumerate common types.  Otherwise, it would fail to match an
3767         "extern unsigned char const *" declaration in idutils.
3768         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
3769         a way to support use of that type of macro.
3770         (_gl_TS_var_match): Simplify regexp.
3771         (_gl_TS_obj_files): New configurable variable.
3772         (_gl_TS_headers): Likewise.
3773
3774 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
3775
3776         verify: fix bug when gnulib <assert.h> is also included
3777         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
3778         is defined, not if _GL_STATIC_ASSERT_H is not defined.
3779         Perhaps there's a better way, but this fixes the immediate problem.
3780         Problem reported by Bruno Haible in
3781         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
3782
3783 2011-05-22  Bruno Haible  <bruno@clisp.org>
3784
3785         xgetcwd: Simplify autoconf macro.
3786         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
3787
3788 2011-05-22  Bruno Haible  <bruno@clisp.org>
3789
3790         New module 'mktime-internal'.
3791         * modules/mktime-internal: New file.
3792         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
3793         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
3794         mktime_internal as a C macro if libc has __mktime_internal.
3795         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
3796         conditions.
3797         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
3798
3799 2011-05-22  Bruno Haible  <bruno@clisp.org>
3800
3801         timegm: Correct mktime replacement statements.
3802         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
3803         defining mktime as a C macro. This completes a 2009-07-28 commit.
3804
3805 2011-05-22  Bruno Haible  <bruno@clisp.org>
3806
3807         timegm: Simplify autoconf macro.
3808         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
3809
3810 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3811
3812         clock-time: change to LGPLv2+.
3813         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
3814         BSD-like but we have no mark for that; this is good enough for now.
3815
3816 2011-05-21  Bruno Haible  <bruno@clisp.org>
3817
3818         strerror_r: Fix comments.
3819         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
3820
3821 2011-05-21  Bruno Haible  <bruno@clisp.org>
3822
3823         relocatable-prog-wrapper: Fix possible link error.
3824         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
3825         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
3826         (gl_FUNC_SETENV): ... to here.
3827         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
3828         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
3829
3830 2011-05-21  Bruno Haible  <bruno@clisp.org>
3831
3832         relocatable-prog-wrapper: Assume strerror() exists.
3833         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
3834         m4/strerror.m4.
3835         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
3836         * lib/relocwrapper.c: Remove mention of strerror module.
3837         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
3838         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
3839         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
3840         C macro.
3841
3842 2011-05-21  Bruno Haible  <bruno@clisp.org>
3843
3844         select: Simplify replacement idiom.
3845         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
3846         Win32 platforms.
3847         * lib/sys_select.in.h (select): Simplify accordingly.
3848         * modules/select (Depends-on): Likewise.
3849
3850 2011-05-21  Bruno Haible  <bruno@clisp.org>
3851
3852         mkdir-p: Simplify autoconf macro.
3853         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
3854         gl_FUNC_LCHOWN.
3855
3856 2011-05-21  Eric Blake  <eblake@redhat.com>
3857
3858         strerror_r: avoid clobbering strerror on cygwin
3859         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
3860         fall back instead to sys_errlist.
3861         * modules/strerror (configure.ac): Add witness.
3862         * tests/test-strerror_r.c (main): Enhance test.
3863         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3864         * tests/test-perror2.c (main): Free memory before exit.
3865
3866 2011-05-21  Bruno Haible  <bruno@clisp.org>
3867
3868         mkdtemp: Use gnulib naming conventions.
3869         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
3870         * modules/mkdtemp (configure.ac): Update.
3871
3872 2011-05-20  Eric Blake  <eblake@redhat.com>
3873
3874         strerror_r: avoid corrupting errno on Solaris
3875         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
3876         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3877
3878         strerror_r: avoid compiler warning
3879         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
3880
3881         strerror_r: simplify AIX code
3882         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
3883
3884         test-perror: avoid spurious failure on FreeBSD
3885         * modules/perror-tests (Depends-on): Add strerror, now that
3886         strerror_r no longer pulls it in.
3887
3888 2011-05-20  Bruno Haible  <bruno@clisp.org>
3889
3890         strerror_r-posix: Remove unused dependencies.
3891         * modules/strerror_r-posix (Depends-on): Remove strerror.
3892         Reported by Eric Blake.
3893
3894 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
3895
3896         intprops: remove assumption about A|B representation
3897         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
3898         is a valid integer if both A and B are.  Although this is true for
3899         all known practical hosts, the C standard doesn't guarantee it,
3900         and the code need not assume it.  Also, this change may work around
3901         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
3902         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
3903
3904 2011-05-20  Eric Blake  <eblake@redhat.com>
3905
3906         perror: work around FreeBSD bug
3907         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
3908         is broken.  Move AC_LIBOBJ...
3909         * modules/perror (configure.ac): Here.
3910         * doc/posix-functions/perror.texi (perror): Document this.
3911         * tests/test-perror2.c (main): Enhance test.
3912
3913         test-perror: check for strerror interactions
3914         * tests/macros.h (STREQ): Add macro.
3915         * modules/perror-tests (Files): Add second test.
3916         * tests/test-perror2.c (main): New file.
3917         * doc/posix-functions/perror.texi (perror): Document glibc bug.
3918
3919         test-perror: rewrite to use init script
3920         * modules/perror-tests (Files): Add init.sh.
3921         * tests/test-perror.sh: Use temporary directory.
3922
3923 2011-05-20  Jim Meyering  <meyering@redhat.com>
3924
3925         maint: replace misused "a" with "an"
3926         * doc/intprops.texi: "a integer"
3927         * doc/regex.texi: "a explanation"
3928         * lib/alignof.h: "a object"
3929         * lib/argmatch.h: "a explanation"
3930         * lib/argp-help.c: "a option" and "a OPTION_DOC"
3931         * lib/stdint.in.h: "a integer"
3932         * lib/userspec.c: "a owner"
3933         * doc/gnulib.texi: Fix "a idea", and reword.
3934
3935 2011-05-19  Jim Meyering  <meyering@redhat.com>
3936
3937         maint: correct misuse of "a" and "an"
3938         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
3939         * lib/argp-help.c: "an docum...": s/an/a/
3940         * lib/argp-parse.c: "An vector": s/An/A/
3941         * lib/execute.c: "an native": s/an/a/
3942         * lib/spawn-pipe.c: Likewise.
3943         * lib/gc.h: "an Gc_rc": s/an/a/
3944         * lib/unigbrk.in.h: "an grapheme": s/an/a/
3945         * lib/fts.c: "an stat.st_dev": s/an/a/
3946
3947 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3948
3949         intprops-tests: work around HP-UX 11.23 cc bug with constants
3950         * tests/test-intprops.c (VERIFY): New macro.
3951         (main): Use it, instead of verify, to work around the compiler bug; see
3952         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3953
3954         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
3955         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
3956         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
3957         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
3958         (_GL_REMAINDER_OVERFLOW): Use it.
3959
3960         intprops-tests: revert unsigned part of previous change
3961         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
3962         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
3963         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
3964         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
3965
3966 2011-05-19  Bruno Haible  <bruno@clisp.org>
3967
3968         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
3969         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
3970         strerror_r() returned without filling the buffer.
3971         Reported by Eric Blake.
3972
3973 2011-05-19  Eric Blake  <eblake@redhat.com>
3974
3975         strerror_r: guarantee unchanged errno
3976         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
3977         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
3978         failure.
3979         * tests/test-strerror_r.c (main): Enhance test.
3980
3981 2011-05-19  Bruno Haible  <bruno@clisp.org>
3982
3983         strerror_r: Reorder #if blocks.
3984         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
3985         for consistency with the previous commit.
3986
3987 2011-05-19  Bruno Haible  <bruno@clisp.org>
3988
3989         perror: Avoid clobbering the strerror buffer when possible.
3990         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
3991         * lib/strerror.c: Include it.
3992         * modules/strerror (Files): Add lib/strerror-impl.h.
3993         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
3994         (my_strerror): New function, defined through lib/strerror-impl.h.
3995         (perror): Use it instead of strerror.
3996         * modules/perror (Files): Add lib/strerror-impl.h.
3997         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
3998
3999 2011-05-19  Eric Blake  <eblake@redhat.com>
4000
4001         strerror_r: fix on newer cygwin
4002         * lib/strerror_r.c (strerror_r): Cygwin now has
4003         __xpg_strerror_r, use it.
4004
4005 2011-05-19  Bruno Haible  <bruno@clisp.org>
4006
4007         strerror_r: Avoid clobbering the strerror buffer when possible.
4008         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
4009         (sys_nerr, sys_errlist): New declarations.
4010         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
4011         HP-UX, native Win32, IRIX, and 32-bit Solaris.
4012         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
4013
4014 2011-05-19  Bruno Haible  <bruno@clisp.org>
4015
4016         strerror_r: Fix test failure on mingw.
4017         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
4018         EXTEND_STRERROR_R.
4019         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
4020         macros from errno.in.h instead.
4021
4022 2011-05-19  Eric Blake  <eblake@redhat.com>
4023
4024         strerror: relax test for Solaris
4025         * tests/test-strerror.c (main): Permit Solaris behavior.
4026         * tests/test-strerror_r.c (main): Likewise.
4027
4028         strerror: enforce POSIX ruling on strerror(0)
4029         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
4030         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
4031         * lib/strerror_r.c (rpl_strerror_r): Work around it.
4032         * doc/posix-functions/strerror.texi (strerror): Document it.
4033         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
4034         * tests/test-strerror.c (main): Strengthen test.
4035         * tests/test-strerror_r.c (main): Likewise.
4036
4037 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4038
4039         intprop-tests: port to older and more-pedantic compilers
4040         * modules/intprops-tests (Files): Add tests/macros.h.
4041         * tests/test-intprops.c: Include macros.h.
4042         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
4043         it's no longer documented to expand to an integer constant expression.
4044         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
4045         argument is floating point, as it's no longer documented to expand
4046         to an integer constant expression in that case.
4047         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
4048         compiler bugs reported by Bruno Haible.  See
4049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4050         (U0, U1): New constants, to work around the same bugs.  Also,
4051         in tests, use e.g., "(unsigned int) 39" rather than "39u".
4052
4053         intprops: work around C compiler bugs
4054         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
4055         bug in Sun C 5.11 2010/08/13 and other compilers; see
4056         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
4057
4058         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
4059         * doc/intprops.texi (Integer Type Determination): Fix
4060         documentation for TYPE_IS_INTEGER: it returns an constant
4061         expression, not an integer constant expression.  Fix doc for
4062         TYPE_SIGNED: it returns an integer constant expression only if its
4063         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
4064         hardly worth documented that way....)
4065
4066 2011-05-18  Bruno Haible  <bruno@clisp.org>
4067
4068         strerror_r: Avoid clobbering the strerror buffer when possible.
4069         * lib/strerror_r.c (strerror_r): Merge the three implementations.
4070         Handle gnulib defined errno values here. When strerror() returns NULL
4071         or an empty string, return EINVAL.
4072         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
4073         gnulib defined errno values here.
4074         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
4075
4076 2011-05-18  Eric Blake  <eblake@redhat.com>
4077
4078         fnmatch: avoid compiler warning
4079         * lib/fnmatch_loop.c (FCT): Use correct type.
4080         Reported by Matthias Bolte.
4081
4082 2011-05-13  Jim Meyering  <meyering@redhat.com>
4083
4084         maint.mk: three new prohibit_<HDR>_without_use rules
4085         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
4086         (sc_prohibit_stdio-safer_without_use): Likewise.
4087         (sc_prohibit_xfreopen_without_use): Likewise.
4088
4089 2011-05-17  Jim Meyering  <meyering@redhat.com>
4090
4091         announce-gen: fail if the NEWS delta is empty
4092         If there's nothing noteworthy in NEWS, then either you forgot
4093         or you shouldn't be releasing.
4094         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
4095
4096 2011-05-17  Pádraig Brady <P@draigBrady.com>
4097
4098         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
4099         reserved symbols starting with double underscore from the check.
4100
4101 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
4102
4103         intprops: add doc
4104         * doc/intprops.texi: New file, documenting intprops.
4105         * doc/gnulib.texi (Particular Modules): Include it.
4106
4107         verify: add doc to gnulib manual and fix example
4108         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
4109         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
4110         (Compile-time Assertions): Fix example so it can't overflow.
4111
4112 2011-05-17  Jim Meyering  <meyering@redhat.com>
4113
4114         warnings.m4: don't usurp save_CPPFLAGS variable name
4115         * m4/warnings.m4: Prefix local temporary variable name with gl_.
4116
4117         doc: fix typo
4118         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
4119
4120 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4121             Bruno Haible  <bruno@clisp.org>
4122
4123         doc: Tweak recent change.
4124         * README (Portability guidelines): Tweak new text.
4125         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
4126         Interix 6.1.
4127
4128 2011-05-16  Eric Blake  <eblake@redhat.com>
4129
4130         inttypes: avoid autoconf warning
4131         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
4132         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4133
4134 2011-05-16  Sam Steingold <sds@gnu.org>
4135         and Eric Blake  <eblake@redhat.com>
4136
4137         vc-list-files: accept multiple directory operands
4138         * build-aux/vc-list-files: Iterate over all remaining operands.
4139
4140 2011-05-16  Bruno Haible  <bruno@clisp.org>
4141
4142         Fix confusion regarding deprecated modules.
4143         * modules/calloc (Status, Notice): Mark module as deprecated, not
4144         obsolete.
4145         * modules/fnmatch-posix (Status, Notice): Likewise.
4146         * modules/getdate (Status, Notice): Likewise.
4147         * modules/getopt (Status, Notice): Likewise.
4148         * modules/malloc (Status, Notice): Likewise.
4149         * modules/pipe (Status, Notice): Likewise.
4150         * modules/realloc (Status, Notice): Likewise.
4151         * modules/rename-dest-slash (Status, Notice): Likewise.
4152         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
4153         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
4154         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
4155         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
4156         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
4157
4158 2011-05-16  Bruno Haible  <bruno@clisp.org>
4159
4160         doc: List the target platforms.
4161         * doc/gnulib-intro.texi (Target Platforms): New section.
4162         * doc/gnulib.texi (Introduction): Update menu.
4163         * README (Portability guidelines): Refer to the new section. Update
4164         statement about oldest supported environment. Remove rationale why
4165         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
4166         unportable C89 function.
4167         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
4168         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
4169
4170 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
4171
4172         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
4173
4174 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
4175
4176         intprops-tests: new module
4177         * modules/intprops-tests, tests/test-intprops.c: New files.
4178
4179         intprops: add safe, portable integer overflow checking
4180         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
4181         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
4182         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
4183         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
4184         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
4185         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
4186         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
4187         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
4188         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
4189         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
4190         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
4191
4192 2011-05-12  James Youngman  <jay@gnu.org>
4193
4194         Add a test for glibc's Bugzilla bug #12378.
4195         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
4196         doesn't allow the literal matching of a lone "[" (which is
4197         required by POSIX).
4198         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
4199
4200 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
4201
4202         Sync glibc change fixing Bugzilla bug #12378.
4203         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
4204         beginning and fall back to matching as normal character if the
4205         string ends before the matching ']' is found.  This is what POSIX
4206         requires.
4207
4208 2011-05-13  Eric Blake  <eblake@redhat.com>
4209
4210         getcwd-lgpl: relax test for FreeBSD
4211         * doc/posix-functions/getcwd.texi (getcwd): Document portability
4212         issue.
4213         * tests/test-getcwd-lgpl.c (main): Relax test.
4214         Reported by Matthias Bolte.
4215
4216 2011-05-11  Eric Blake  <eblake@redhat.com>
4217
4218         test-fflush: silence compiler warning
4219         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
4220
4221 2011-05-11  Bruno Haible  <bruno@clisp.org>
4222
4223         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
4224         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
4225         * modules/canonicalize (Depends-on): Add 'nocrash'.
4226         * modules/canonicalize-lgpl (Depends-on): Likewise.
4227         * doc/posix-functions/realpath.texi: Update platforms list.
4228         Reported by Ryan Schmidt <ryandesign@macports.org>.
4229
4230 2011-05-11  Bruno Haible  <bruno@clisp.org>
4231
4232         group-member: Declare function in <unistd.h>.
4233         * lib/unistd.in.h (group_member): New declaration.
4234         * lib/group-member.h: Remove file.
4235         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
4236         * tests/test-unistd-c++.cc: Check signature of group_member.
4237         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
4238         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
4239         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
4240         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
4241         HAVE_GROUP_MEMBER.
4242         * modules/group-member (Files): Remove lib/group-member.h.
4243         (Depends-on): Add unistd. Specify conditions.
4244         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4245         (Include): Change to <unistd.h>.
4246         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
4247         HAVE_GROUP_MEMBER.
4248         * NEWS: Mention the change.
4249         * lib/euidaccess.c: Don't include group-member.h.
4250
4251 2011-05-11  Bruno Haible  <bruno@clisp.org>
4252
4253         group-member: Document module.
4254         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
4255         module.
4256
4257 2011-05-11  Bruno Haible  <bruno@clisp.org>
4258
4259         fclose: Fix mistake earlier today.
4260         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
4261
4262 2011-05-11  Eric Blake  <eblake@redhat.com>
4263
4264         fclose: preserve fflush errors
4265         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
4266         Reported by Jim Meyering.
4267
4268         bootstrap: support a prereq of 'rpcgen -' on RHEL5
4269         * build-aux/bootstrap (check_versions): When no specific version
4270         is required, merely check that the app produces an exit status
4271         that indicates its existence.
4272
4273         maint.mk: drop redundant check
4274         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
4275         the same but better.
4276
4277 2011-05-11  Bruno Haible  <bruno@clisp.org>
4278
4279         fclose: Fix possible link error.
4280         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
4281         unregister_shadow_fd. Improve comments.
4282         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
4283         Eric Blake.
4284
4285 2011-05-11  Jim Meyering  <meyering@redhat.com>
4286
4287         maint.mk: improve "can not" detection and generalize rule name
4288         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
4289         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
4290         Use the same technique as in sc_prohibit_doubled_word, so that
4291         we recognize "can not" also when the words are separated by a newline.
4292         Suggested by Eric Blake.
4293         (perl_filename_lineno_text_): Define.  Factored out of...
4294         (prohibit_doubled_word_): ...here.  Use the new definition.
4295         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
4296         (prohibit_undesirable_word_seq_RE_): New overridable variable.
4297         (ignore_undesirable_word_sequence_RE_): New overridable variable.
4298
4299 2011-05-10  Eric Blake  <eblake@redhat.com>
4300
4301         fclose: avoid double close race when possible
4302         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
4303         all but WINDOWS_SOCKETS.
4304
4305 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
4306
4307         openat: correct new comment
4308         * lib/openat-proc.c (openat_proc_name): Correct the comment.
4309
4310 2011-05-10  Jim Meyering  <meyering@redhat.com>
4311
4312         openat: add comments
4313         * lib/openat-proc.c (openat_proc_name): Add comments,
4314         mostly from Eric Blake.
4315
4316 2011-05-09  Eric Blake  <eblake@redhat.com>
4317
4318         openat: reduce syscalls in first probe of /proc
4319         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
4320         be a directory.  Simplify the probe for .. bugs.
4321         * modules/openat (Depends-on): Drop same-inode.
4322         Reported by Bastien ROUCARIES.
4323
4324 2011-05-09  Jim Meyering  <meyering@redhat.com>
4325
4326         maint.mk: change semantics/name of tight_scope variables
4327         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
4328         Rename variables to align with semantics that make them more useful.
4329
4330         maint.mk: tweak new rule's name not to impinge
4331         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
4332         (sc_tight_scope): Use new rule name rather than $@-0.
4333
4334         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
4335         * top/maint.mk (sc_tight_scope): New rule.
4336         (sc_tight_scope-0): New rule, ifdef'd out.
4337         (_gl_TS_dir): Default.
4338         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
4339         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
4340
4341 2011-05-09  Simon Josefsson  <simon@josefsson.org>
4342
4343         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
4344         Haible <bruno@clisp.org>.
4345
4346 2011-05-08  Bruno Haible  <bruno@clisp.org>
4347
4348         Comments.
4349         * m4/isnanf.m4: Add comment.
4350         * m4/isnanl.m4: Likewise.
4351
4352 2011-05-08  Bruno Haible  <bruno@clisp.org>
4353
4354         glob: Remove obsolete macro.
4355         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
4356
4357 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
4358
4359         intprops: Sun C 5.11 supports __typeof__
4360         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
4361         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
4362         which is new.
4363         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
4364
4365         intprops: switch to usual gnulib indenting and naming
4366         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
4367         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
4368
4369         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
4370
4371 2011-05-08  Jim Meyering  <meyering@redhat.com>
4372
4373         maint.mk: suppress "Entering/Leaving directory" diag in announcement
4374         * top/maint.mk (release-prep): Use make's --no-print-directory
4375         option when generating the announcement.  This eliminates the
4376         pesky "make[2]: Entering/Leaving directory" diagnostics in the
4377         generated announcement template.
4378
4379 2011-05-08  Bruno Haible  <bruno@clisp.org>
4380
4381         tzset: Fix gettimeofday wrapper on Solaris 2.6.
4382         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
4383         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
4384
4385 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
4386
4387         ignore-value, verify: Omit include files from lib_SOURCES.
4388         * modules/ignore-value, modules/verify (Makefile.am):
4389         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
4390         that leads Automake to duplicate use of am__objects_... variables
4391         in Makefile.in.  See
4392         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
4393
4394 2011-05-07  Bruno Haible  <bruno@clisp.org>
4395
4396         fclose: Simplify autoconf macro.
4397         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
4398         defined.
4399
4400 2011-05-07  Bruno Haible  <bruno@clisp.org>
4401
4402         canonicalize-lgpl: Fix autoconf macro ordering bug.
4403         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
4404         gl_STDLIB_H_DEFAULTS.
4405
4406 2011-05-06  Eric Blake  <eblake@redhat.com>
4407
4408         maintainer-makefile: make sc_po_check easier to tune
4409         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
4410         to probe for strings, such as an alternate location for gnulib.
4411
4412         fclose: guarantee behavior on seekable stdin
4413         * modules/fclose (Depends-on): Add fflush.
4414         * doc/posix-functions/fclose.texi (fclose): Document this.
4415         * tests/test-fclose.c (main): Make test for this unconditional.
4416
4417 2011-05-06  Bruno Haible  <bruno@clisp.org>
4418
4419         fflush, fpurge: Relicense under LGPLv2+.
4420         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
4421         * modules/fpurge (License): Likewise.
4422         With permission from Eric Blake and Jim Meyering.
4423         Suggested by Eric Blake.
4424
4425 2011-05-06  Karl Berry  <karl@gnu.org>
4426
4427         * MODULES.html.sh (func_all_modules): remove exit.
4428
4429 2011-05-06  Jim Meyering  <meyering@redhat.com>
4430
4431         maint.mk: use info-gnu@ as the default only for a stable release
4432         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
4433         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
4434         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
4435         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
4436
4437 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
4438
4439         assert-h: new module, which supports C1X-style static_assert
4440         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
4441         * lib/verify.h: Revamp so that this can be copied into assert.h,
4442         while retaining the ability to use it standalone as before.
4443         Rename private identifiers so as not to encroach on the
4444         standard C namespace, since this is now used by assert.h.
4445         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
4446         the old verify_true.
4447         (_GL_VERIFY_TRUE): New macro, with much of the contents of
4448         the old verify_true.  Use _GL_VERIFY_TYPE.
4449         (_GL_VERIFY): New macro, with much of the contents of the old verify.
4450         (static_assert): New macro, if _GL_STATIC_ASSERT_H
4451         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
4452         defined when this file is copied into the replacement assert.h.
4453         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
4454         and _Static_assert is not built in.
4455         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
4456         defined, and use the new macros mentioned above.
4457         * doc/posix-headers/assert.texi: Document this.
4458
4459 2011-05-05  Bruno Haible  <bruno@clisp.org>
4460
4461         fclose, fflush: Respect rules for use of AC_LIBOBJ.
4462         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
4463         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
4464         gl_REPLACE_FCLOSE here.
4465         * modules/fflush (Depends-on): Remove fclose.
4466         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
4467         combination with module 'fclose'.
4468
4469 2011-05-05  Bruno Haible  <bruno@clisp.org>
4470
4471         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
4472         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
4473         gl_FUNC_FFLUSH.
4474         (gl_FUNC_FFLUSH): Use it.
4475         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
4476         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
4477         gl_REPLACE_FSEEKO here.
4478
4479 2011-05-05  Bruno Haible  <bruno@clisp.org>
4480
4481         tzset: Relicense under LGPL.
4482         * modules/tzset (License): Change to LGPL.
4483         No agreement needed; it's a no-op.
4484
4485         strtoimax, strtoumax: Relicense under LGPL.
4486         * modules/strtoimax (License): Change to LGPL.
4487         * modules/strtoumax (License): Likewise.
4488         With permission from Jim Meyering, Paul Eggert:
4489         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
4490         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
4491
4492         getgroups: Relicense under LGPL.
4493         * modules/getgroups (License): Change to LGPL.
4494         With permission from Jim Meyering, Paul Eggert, Eric Blake:
4495         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
4496         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
4497         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4498
4499         nanosleep: Relicense under LGPL.
4500         * modules/nanosleep (License): Change to LGPL.
4501         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
4502         Haible:
4503         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
4504         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
4505         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4506         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
4507
4508         futimens: Relicense under LGPL.
4509         * modules/futimens (License): Change to LGPL.
4510         With permission from Eric Blake:
4511         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4512
4513         fflush: Relicense under LGPL.
4514         * modules/fflush (License): Change to LGPL.
4515         With permission from Eric Blake, Bruno Haible, Jim Meyering:
4516         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
4517         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
4518         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
4519
4520         tmpfile: Relicense under LGPL.
4521         * modules/tmpfile (License): Change to LGPL.
4522         With permission from Ben Pfaff:
4523         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
4524
4525         isfinite: Relicense under LGPL.
4526         * modules/isfinite (License): Change to LGPL.
4527         With permission from Ben Pfaff, Bruno Haible:
4528         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
4529         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
4530
4531         acosl..tanl: Relicense under LGPL.
4532         * modules/acosl (License): Change to LGPL.
4533         * modules/asinl (License): Likewise.
4534         * modules/atanl (License): Likewise.
4535         * modules/cosl (License): Likewise.
4536         * modules/expl (License): Likewise.
4537         * modules/logl (License): Likewise.
4538         * modules/sinl (License): Likewise.
4539         * modules/sqrtl (License): Likewise.
4540         * modules/tanl (License): Likewise.
4541         Source code originally from glibc and Paolo Bonzini. Agreements:
4542         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
4543         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
4544
4545 2011-05-05  Bruno Haible  <bruno@clisp.org>
4546
4547         signal: Define sighandler_t.
4548         * lib/signal.in.h (sighandler_t): New type.
4549         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
4550         whether sighandler_t is defined.
4551         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
4552         * modules/signal (Depends-on): Add extensions.
4553         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
4554         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
4555         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
4556
4557 2011-05-05  Eric Blake  <eblake@redhat.com>
4558
4559         maint: remove useless REPLACE_*_H macros
4560         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
4561         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4562         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4563         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
4564         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4565         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4566         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
4567         * m4/btowc.m4: Update callers.
4568         * m4/dirfd.m4: Likewise.
4569         * m4/duplocale.m4: Likewise.
4570         * m4/fchdir.m4: Likewise.
4571         * m4/fdopendir.m4: Likewise.
4572         * m4/inet_ntop.m4: Likewise.
4573         * m4/inet_pton.m4: Likewise.
4574         * m4/ioctl.m4: Likewise.
4575         * m4/mbrlen.m4: Likewise.
4576         * m4/mbrtowc.m4: Likewise.
4577         * m4/mbsinit.m4: Likewise.
4578         * m4/mbsnrtowcs.m4: Likewise.
4579         * m4/mbsrtowcs.m4: Likewise.
4580         * m4/poll.m4: Likewise.
4581         * m4/setlocale.m4: Likewise.
4582         * m4/wcrtomb.m4: Likewise.
4583         * m4/wcsnrtombs.m4: Likewise.
4584         * m4/wcsrtombs.m4: Likewise.
4585         * m4/wctob.m4: Likewise.
4586         * m4/wcwidth.m4: Likewise.
4587         * modules/posix_spawn: Likewise.
4588         * modules/posix_spawn_file_actions_addclose: Likewise.
4589         * modules/posix_spawn_file_actions_adddup2: Likewise.
4590         * modules/posix_spawn_file_actions_addopen: Likewise.
4591         * modules/posix_spawn_file_actions_destroy: Likewise.
4592         * modules/posix_spawn_file_actions_init: Likewise.
4593         * modules/posix_spawnattr_destroy: Likewise.
4594         * modules/posix_spawnattr_getflags: Likewise.
4595         * modules/posix_spawnattr_getpgroup: Likewise.
4596         * modules/posix_spawnattr_getschedparam: Likewise.
4597         * modules/posix_spawnattr_getschedpolicy: Likewise.
4598         * modules/posix_spawnattr_getsigdefault: Likewise.
4599         * modules/posix_spawnattr_getsigmask: Likewise.
4600         * modules/posix_spawnattr_init: Likewise.
4601         * modules/posix_spawnattr_setflags: Likewise.
4602         * modules/posix_spawnattr_setpgroup: Likewise.
4603         * modules/posix_spawnattr_setschedparam: Likewise.
4604         * modules/posix_spawnattr_setschedpolicy: Likewise.
4605         * modules/posix_spawnattr_setsigdefault: Likewise.
4606         * modules/posix_spawnattr_setsigmask: Likewise.
4607         * modules/posix_spawnp: Likewise.
4608
4609 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
4610
4611         Add option to do-release-commit-and-tag to specify branch.
4612         * build-aux/do-release-commit-and-tag: Add --branch.
4613
4614 2011-05-03  Bruno Haible  <bruno@clisp.org>
4615
4616         Avoid unnecessary compilation units, through conditional dependencies.
4617         * modules/accept (Depends-on): Add conditions to the dependencies.
4618         * modules/acosl (Depends-on): Likewise.
4619         * modules/argz (Depends-on): Likewise.
4620         * modules/asinl (Depends-on): Likewise.
4621         * modules/atanl (Depends-on): Likewise.
4622         * modules/atoll (Depends-on): Likewise.
4623         * modules/bind (Depends-on): Likewise.
4624         * modules/btowc (Depends-on): Likewise.
4625         * modules/canonicalize-lgpl (Depends-on): Likewise.
4626         * modules/ceil (Depends-on): Likewise.
4627         * modules/ceilf (Depends-on): Likewise.
4628         * modules/ceill (Depends-on): Likewise.
4629         * modules/chdir-long (Depends-on): Likewise.
4630         * modules/chown (Depends-on): Likewise.
4631         * modules/close (Depends-on): Likewise.
4632         * modules/connect (Depends-on): Likewise.
4633         * modules/cosl (Depends-on): Likewise.
4634         * modules/dirfd (Depends-on): Likewise.
4635         * modules/dprintf (Depends-on): Likewise.
4636         * modules/dprintf-posix (Depends-on): Likewise.
4637         * modules/error (Depends-on): Likewise.
4638         * modules/euidaccess (Depends-on): Likewise.
4639         * modules/expl (Depends-on): Likewise.
4640         * modules/faccessat (Depends-on): Likewise.
4641         * modules/fchdir (Depends-on): Likewise.
4642         * modules/fclose (Depends-on): Likewise.
4643         * modules/fcntl (Depends-on): Likewise.
4644         * modules/fdopendir (Depends-on): Likewise.
4645         * modules/fflush (Depends-on): Likewise.
4646         * modules/floor (Depends-on): Likewise.
4647         * modules/floorf (Depends-on): Likewise.
4648         * modules/floorl (Depends-on): Likewise.
4649         * modules/fnmatch (Depends-on): Likewise.
4650         * modules/fopen (Depends-on): Likewise.
4651         * modules/fprintf-posix (Depends-on): Likewise.
4652         * modules/frexp (Depends-on): Likewise.
4653         * modules/frexp-nolibm (Depends-on): Likewise.
4654         * modules/frexpl (Depends-on): Likewise.
4655         * modules/frexpl-nolibm (Depends-on): Likewise.
4656         * modules/fseek (Depends-on): Likewise.
4657         * modules/fsusage (Depends-on): Likewise.
4658         * modules/ftell (Depends-on): Likewise.
4659         * modules/ftello (Depends-on): Likewise.
4660         * modules/futimens (Depends-on): Likewise.
4661         * modules/getcwd (Depends-on): Likewise.
4662         * modules/getcwd-lgpl (Depends-on): Likewise.
4663         * modules/getdelim (Depends-on): Likewise.
4664         * modules/getdomainname (Depends-on): Likewise.
4665         * modules/getgroups (Depends-on): Likewise.
4666         * modules/gethostname (Depends-on): Likewise.
4667         * modules/getline (Depends-on): Likewise.
4668         * modules/getlogin_r (Depends-on): Likewise.
4669         * modules/getopt-posix (Depends-on): Likewise.
4670         * modules/getpeername (Depends-on): Likewise.
4671         * modules/getsockname (Depends-on): Likewise.
4672         * modules/getsockopt (Depends-on): Likewise.
4673         * modules/getsubopt (Depends-on): Likewise.
4674         * modules/getusershell (Depends-on): Likewise.
4675         * modules/glob (Depends-on): Likewise.
4676         * modules/grantpt (Depends-on): Likewise.
4677         * modules/iconv_open (Depends-on): Likewise.
4678         * modules/iconv_open-utf (Depends-on): Likewise.
4679         * modules/inet_ntop (Depends-on): Likewise.
4680         * modules/inet_pton (Depends-on): Likewise.
4681         * modules/ioctl (Depends-on): Likewise.
4682         * modules/isapipe (Depends-on): Likewise.
4683         * modules/isfinite (Depends-on): Likewise.
4684         * modules/isinf (Depends-on): Likewise.
4685         * modules/lchown (Depends-on): Likewise.
4686         * modules/ldexpl (Depends-on): Likewise.
4687         * modules/link (Depends-on): Likewise.
4688         * modules/linkat (Depends-on): Likewise.
4689         * modules/listen (Depends-on): Likewise.
4690         * modules/logl (Depends-on): Likewise.
4691         * modules/lstat (Depends-on): Likewise.
4692         * modules/mbrlen (Depends-on): Likewise.
4693         * modules/mbrtowc (Depends-on): Likewise.
4694         * modules/mbsinit (Depends-on): Likewise.
4695         * modules/mbsnrtowcs (Depends-on): Likewise.
4696         * modules/mbsrtowcs (Depends-on): Likewise.
4697         * modules/mbtowc (Depends-on): Likewise.
4698         * modules/memcmp (Depends-on): Likewise.
4699         * modules/mkdir (Depends-on): Likewise.
4700         * modules/mkdtemp (Depends-on): Likewise.
4701         * modules/mkfifo (Depends-on): Likewise.
4702         * modules/mkfifoat (Depends-on): Likewise.
4703         * modules/mknod (Depends-on): Likewise.
4704         * modules/mkostemp (Depends-on): Likewise.
4705         * modules/mkostemps (Depends-on): Likewise.
4706         * modules/mkstemp (Depends-on): Likewise.
4707         * modules/mkstemps (Depends-on): Likewise.
4708         * modules/mktime (Depends-on): Likewise.
4709         * modules/nanosleep (Depends-on): Likewise.
4710         * modules/open (Depends-on): Likewise.
4711         * modules/openat (Depends-on): Likewise.
4712         * modules/perror (Depends-on): Likewise.
4713         * modules/poll (Depends-on): Likewise.
4714         * modules/popen (Depends-on): Likewise.
4715         * modules/posix_spawn (Depends-on): Likewise.
4716         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
4717         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
4718         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
4719         * modules/posix_spawnp (Depends-on): Likewise.
4720         * modules/pread (Depends-on): Likewise.
4721         * modules/printf-posix (Depends-on): Likewise.
4722         * modules/ptsname (Depends-on): Likewise.
4723         * modules/putenv (Depends-on): Likewise.
4724         * modules/pwrite (Depends-on): Likewise.
4725         * modules/readline (Depends-on): Likewise.
4726         * modules/readlink (Depends-on): Likewise.
4727         * modules/readlinkat (Depends-on): Likewise.
4728         * modules/recv (Depends-on): Likewise.
4729         * modules/recvfrom (Depends-on): Likewise.
4730         * modules/regex (Depends-on): Likewise.
4731         * modules/remove (Depends-on): Likewise.
4732         * modules/rename (Depends-on): Likewise.
4733         * modules/renameat (Depends-on): Likewise.
4734         * modules/rmdir (Depends-on): Likewise.
4735         * modules/round (Depends-on): Likewise.
4736         * modules/roundf (Depends-on): Likewise.
4737         * modules/roundl (Depends-on): Likewise.
4738         * modules/rpmatch (Depends-on): Likewise.
4739         * modules/select (Depends-on): Likewise.
4740         * modules/send (Depends-on): Likewise.
4741         * modules/sendto (Depends-on): Likewise.
4742         * modules/setenv (Depends-on): Likewise.
4743         * modules/setlocale (Depends-on): Likewise.
4744         * modules/setsockopt (Depends-on): Likewise.
4745         * modules/shutdown (Depends-on): Likewise.
4746         * modules/sigaction (Depends-on): Likewise.
4747         * modules/signbit (Depends-on): Likewise.
4748         * modules/sigprocmask (Depends-on): Likewise.
4749         * modules/sinl (Depends-on): Likewise.
4750         * modules/sleep (Depends-on): Likewise.
4751         * modules/snprintf (Depends-on): Likewise.
4752         * modules/snprintf-posix (Depends-on): Likewise.
4753         * modules/socket (Depends-on): Likewise.
4754         * modules/sprintf-posix (Depends-on): Likewise.
4755         * modules/sqrtl (Depends-on): Likewise.
4756         * modules/stat (Depends-on): Likewise.
4757         * modules/strchrnul (Depends-on): Likewise.
4758         * modules/strdup-posix (Depends-on): Likewise.
4759         * modules/strerror (Depends-on): Likewise.
4760         * modules/strerror_r-posix (Depends-on): Likewise.
4761         * modules/strndup (Depends-on): Likewise.
4762         * modules/strnlen (Depends-on): Likewise.
4763         * modules/strptime (Depends-on): Likewise.
4764         * modules/strsep (Depends-on): Likewise.
4765         * modules/strsignal (Depends-on): Likewise.
4766         * modules/strstr-simple (Depends-on): Likewise.
4767         * modules/strtod (Depends-on): Likewise.
4768         * modules/strtoimax (Depends-on): Likewise.
4769         * modules/strtok_r (Depends-on): Likewise.
4770         * modules/strtoumax (Depends-on): Likewise.
4771         * modules/symlink (Depends-on): Likewise.
4772         * modules/symlinkat (Depends-on): Likewise.
4773         * modules/tanl (Depends-on): Likewise.
4774         * modules/tcgetsid (Depends-on): Likewise.
4775         * modules/tmpfile (Depends-on): Likewise.
4776         * modules/trunc (Depends-on): Likewise.
4777         * modules/truncf (Depends-on): Likewise.
4778         * modules/truncl (Depends-on): Likewise.
4779         * modules/uname (Depends-on): Likewise.
4780         * modules/unlink (Depends-on): Likewise.
4781         * modules/unlockpt (Depends-on): Likewise.
4782         * modules/unsetenv (Depends-on): Likewise.
4783         * modules/usleep (Depends-on): Likewise.
4784         * modules/utimensat (Depends-on): Likewise.
4785         * modules/vasprintf (Depends-on): Likewise.
4786         * modules/vdprintf (Depends-on): Likewise.
4787         * modules/vdprintf-posix (Depends-on): Likewise.
4788         * modules/vfprintf-posix (Depends-on): Likewise.
4789         * modules/vprintf-posix (Depends-on): Likewise.
4790         * modules/vsnprintf (Depends-on): Likewise.
4791         * modules/vsnprintf-posix (Depends-on): Likewise.
4792         * modules/vsprintf-posix (Depends-on): Likewise.
4793         * modules/wcrtomb (Depends-on): Likewise.
4794         * modules/wcscasecmp (Depends-on): Likewise.
4795         * modules/wcscspn (Depends-on): Likewise.
4796         * modules/wcsdup (Depends-on): Likewise.
4797         * modules/wcsncasecmp (Depends-on): Likewise.
4798         * modules/wcsnrtombs (Depends-on): Likewise.
4799         * modules/wcspbrk (Depends-on): Likewise.
4800         * modules/wcsrtombs (Depends-on): Likewise.
4801         * modules/wcsspn (Depends-on): Likewise.
4802         * modules/wcsstr (Depends-on): Likewise.
4803         * modules/wcstok (Depends-on): Likewise.
4804         * modules/wcswidth (Depends-on): Likewise.
4805         * modules/wctob (Depends-on): Likewise.
4806         * modules/wctomb (Depends-on): Likewise.
4807         * modules/wctype (Depends-on): Likewise.
4808         * modules/wcwidth (Depends-on): Likewise.
4809         * modules/write (Depends-on): Likewise.
4810
4811 2011-05-03  Bruno Haible  <bruno@clisp.org>
4812
4813         Support for conditional dependencies.
4814         * doc/gnulib.texi (Module description): Document the syntax of
4815         conditional dependencies.
4816         * gnulib-tool: New option --conditional-dependencies.
4817         (func_usage): Document it.
4818         (cond_dependencies): New variable.
4819         (func_get_automake_snippet_conditional,
4820         func_get_automake_snippet_unconditional): New functions, extracted from
4821         func_get_automake_snippet.
4822         (func_get_automake_snippet): Use them.
4823         (sed_first_32_chars): New variable.
4824         (func_module_shellfunc_name): New function.
4825         (func_module_shellvar_name): New function.
4826         (func_module_conditional_name): New function.
4827         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
4828         func_cond_module_condition): New functions.
4829         (func_modules_transitive_closure): Add support for conditional
4830         dependencies.
4831         (func_emit_lib_Makefile_am): For a conditional module, enclose the
4832         conditional automake snippet in an automake conditional.
4833         (func_emit_autoconf_snippets): Emit shell functions that contain the
4834         code for conditional modules.
4835         (func_import, func_create_testdir): Update specification.
4836
4837 2011-05-03  Eric Blake  <eblake@redhat.com>
4838
4839         test-getaddrinfo: report error information
4840         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
4841
4842 2011-05-03  Jim Meyering  <meyering@redhat.com>
4843
4844         bootstrap: avoid build failure when $GZIP is set
4845         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
4846         program name.  If defined at all, it is supposed to list gzip options.
4847         Reported by Alan Curry in http://debbugs.gnu.org/8609
4848
4849 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
4850
4851         readme-release: new module with release instructions
4852         * modules/readme-release: New module.
4853         * top/README-release: New file, from coreutils, grep, diffutils.
4854         * MODULES.html.sh (Support for maintaining and releasing): Add it.
4855
4856 2011-05-02  Eric Blake  <eblake@redhat.com>
4857
4858         fflush: also replace fclose when fixing fflush
4859         * modules/fflush (Depends-on): Add fclose.
4860         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
4861         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
4862         memstreams with no backing fd.
4863         * doc/posix-functions/fclose.texi (fclose): Document the use of
4864         fflush module to fix the bug.
4865         * tests/test-fclose.c (main): Relax test when fclose is used in
4866         isolation.
4867
4868         fclose: add some tests
4869         * modules/fclose-tests: New test module.
4870         * tests/test-fclose.c: New file.
4871         * doc/posix-functions/fclose.texi (fclose): Document the bug.
4872
4873         fclose: reduced dependencies
4874         * modules/fclose (Depends-on): Switch from fflush/fseeko to
4875         simpler lseek.
4876         * lib/fclose.c (rpl_fclose): Likewise.
4877         Reported by Simon Josefsson.
4878
4879         exit: drop remaining clients
4880         * modules/argmatch (Depends-on): Replace exit with stdlib.
4881         * modules/copy-file (Depends-on): Likewise.
4882         * modules/execute (Depends-on): Likewise.
4883         * modules/exitfail (Depends-on): Likewise.
4884         * modules/obstack (Depends-on): Likewise.
4885         * modules/pagealign_alloc (Depends-on): Likewise.
4886         * modules/pipe-filter-gi (Depends-on): Likewise.
4887         * modules/pipe-filter-ii (Depends-on): Likewise.
4888         * modules/savewd (Depends-on): Likewise.
4889         * modules/spawn-pipe (Depends-on): Likewise.
4890         * modules/wait-process (Depends-on): Likewise.
4891         * modules/xsetenv (Depends-on): Likewise.
4892         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
4893         * modules/git-merge-changelog (Depends-on): Likewise.
4894         * modules/long-options (Depends-on): Likewise.
4895         * modules/pt_chown (Depends-on): Likewise.
4896         * modules/sysexits (Depends-on): Likewise.
4897
4898         freading: relax license from LGPLv3+ to LGPLv2+
4899         * modules/freading (License): Relax LGPL version.
4900
4901 2011-05-02  Bruno Haible  <bruno@clisp.org>
4902
4903         fchdir: Remove unused dependencies.
4904         * modules/fchdir (Depends-on): Remove include_next.
4905
4906 2011-05-02  Bruno Haible  <bruno@clisp.org>
4907
4908         gnulib-tool: Refactor.
4909         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
4910         from func_emit_autoconf_snippets.
4911         (func_emit_autoconf_snippets): Use it.
4912
4913 2011-05-02  Simon Josefsson  <simon@josefsson.org>
4914
4915         * NEWS: Document removal of 'exit'.
4916         * modules/exit: Remove file.
4917
4918 2011-05-01  Bruno Haible  <bruno@clisp.org>
4919
4920         Update DEPENDENCIES.
4921         * DEPENDENCIES (gettext): Recommend the newest release.
4922         Reported by Simon Josefsson.
4923
4924 2011-05-01  Bruno Haible  <bruno@clisp.org>
4925
4926         gnulib-tool: Reduce code duplication.
4927         * gnulib-tool (func_emit_autoconf_snippets): New function.
4928         (func_import, func_create_testdir): Use it.
4929
4930 2011-04-30  Eric Blake  <eblake@redhat.com>
4931
4932         fclose: don't fail on non-seekable input stream
4933         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
4934         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
4935         since fflush is allowed to fail in that case.
4936
4937 2011-04-30  Bruno Haible  <bruno@clisp.org>
4938
4939         dup3: cleanup
4940         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
4941
4942 2011-04-30  Bruno Haible  <bruno@clisp.org>
4943
4944         netdb: Make it work in C++ mode.
4945         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
4946         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
4947         module.
4948         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
4949         gl_MODULE_INDICATOR_FOR_TESTS.
4950         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
4951         * modules/netdb-c++-tests: New file.
4952         * tests/test-netdb-c++.cc: New file.
4953
4954 2011-04-30  Bruno Haible  <bruno@clisp.org>
4955
4956         New modules 'vfscanf', 'vscanf'.
4957         * modules/vfscanf: New file.
4958         * modules/vscanf: New file.
4959         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
4960         here.
4961         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
4962         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
4963
4964 2011-04-30  Bruno Haible  <bruno@clisp.org>
4965
4966         passfd: Add comments.
4967         * lib/passfd.c: Add comments about platforms.
4968
4969 2011-04-30  Bruno Haible  <bruno@clisp.org>
4970
4971         sys_uio: Make <sys/uio.h> self-contained.
4972         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
4973         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
4974
4975 2011-04-30  Bruno Haible  <bruno@clisp.org>
4976
4977         sys_socket: Ensure 'struct iovec' definition.
4978         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
4979         <sys/socket.h>.
4980         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
4981
4982 2011-04-30  Bruno Haible  <bruno@clisp.org>
4983
4984         sys_uio: Protect definition of 'struct iovec'.
4985         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
4986         it as a C struct.
4987
4988 2011-04-30  Bruno Haible  <bruno@clisp.org>
4989
4990         manywarnings: fix indentation
4991         * m4/manywarnings.m4: Indent by 2 spaces consistently.
4992
4993 2011-04-30  Pádraig Brady <P@draigBrady.com>
4994
4995         manywarnings: add -Wno-missing-field-initializers if needed.
4996         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
4997         option if it's needed to allow initialization with { 0, }
4998
4999 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
5000
5001         announce-gen: cosmetic improvement
5002         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
5003
5004 2011-04-29  Jim Meyering  <meyering@redhat.com>
5005
5006         vc-list-files: indent with spaces, not TABs
5007         * build-aux/vc-list-files: Convert leading TABs to spaces,
5008         to match the style of most other files in gnulib.
5009
5010         announce-gen: indent with spaces, not TABs
5011         * build-aux/announce-gen: Convert all TABs to spaces, to match
5012         the style of most other files in gnulib.
5013
5014 2011-04-29  Eric Blake  <eblake@redhat.com>
5015
5016         quotearg: avoid uninitialized variable use
5017         * lib/quotearg.c (quoting_options_from_style): Initialize
5018         remaining fields, and ensure that custom styles are only used via
5019         quoting_options rather than quoting_style.
5020
5021 2011-04-29  Jim Meyering  <meyering@redhat.com>
5022
5023         maint.mk: remove unused VC-tag variable
5024         * top/maint.mk (VC-tag): Remove unused variable.
5025
5026 2011-04-29  Bruno Haible  <bruno@clisp.org>
5027
5028         netdb: fix gai_strerror replacements
5029         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
5030         * modules/netdb: Substitute it.
5031
5032 2011-04-29  Jim Meyering  <meyering@redhat.com>
5033
5034         test-getcwd.c: avoid new set-but-not-used warning
5035         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
5036         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
5037         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
5038         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
5039
5040         test-hash.c: avoid a new shadowing warning
5041         * tests/test-hash.c (main): Don't shadow "dup".
5042
5043 2011-04-28  Eric Blake  <eblake@redhat.com>
5044
5045         getaddrinfo: fix gai_strerror signature
5046         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
5047         and work around mingw with UNICODE defined.
5048         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
5049         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
5050         * modules/netdb (Makefile.am): Substitute it.
5051         * lib/netdb.in.h (gai_strerror): Declare replacement.
5052         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
5053         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
5054         the fix.
5055
5056         getsockopt: avoid compiler warning
5057         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
5058         Reported by Matthias Bolte.
5059
5060         tests: drop unused link dependency
5061         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
5062         * modules/dirent-safer-tests (Makefile.am): Likewise.
5063         * modules/fdopendir-tests (Makefile.am): Likewise.
5064         * modules/mkfifoat-tests (Makefile.am): Likewise.
5065         * modules/openat-safer-tests (Makefile.am): Likewise.
5066         * modules/openat-tests (Makefile.am): Likewise.
5067         * modules/readlinkat-tests (Makefile.am): Likewise.
5068         * modules/symlinkat-tests (Makefile.am): Likewise.
5069         * modules/linkat-tests (Makefile.am): Likewise.
5070         (Depends-on): Switch to filenamecat-lgpl.
5071         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
5072         LIBINTL.
5073         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
5074         * tests/test-linkat.c (main): Don't require xalloc.
5075
5076         hash, mgetgroups: drop xalloc dependency
5077         * lib/hash.c (includes): Adjust includes.
5078         * lib/mgetgroups.c (includes): Likewise.
5079         (xgetgroups): Move...
5080         * lib/xgetgroups.c: ...to new file.
5081         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
5082         * modules/xgetgroups: New file, split from...
5083         * modules/mgetgroups: ...here.
5084         (Depends-on): Add xalloc-oversized.
5085         * modules/hash (Depends-on): Likewise.
5086         * modules/hash-tests (Depends-on): Drop xalloc.
5087         (test_hash_LDADD): Drop unused library.
5088         * tests/test-hash.c (main): Break xalloc dependency.
5089         (includes): Drop unused include.
5090
5091         xalloc-oversized: new module
5092         * modules/xalloc-oversized: New module.
5093         * modules/xalloc (Depends-on): Add it.
5094         * lib/xalloc.h (xalloc_oversized): Move...
5095         * lib/xalloc-oversized.h: ...into new file.
5096
5097         utimecmp: drop dependency on xmalloc
5098         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
5099         due to memory pressure.
5100         * modules/utimecmp (Depends-on): Drop xalloc.
5101
5102 2011-04-27  Eric Blake  <eblake@redhat.com>
5103
5104         getcwd: fix mingw bugs
5105         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
5106         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
5107         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
5108
5109 2011-04-27  Bruno Haible  <bruno@clisp.org>
5110
5111         mkstemps: Ensure declaration on MacOS X 10.5.
5112         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
5113         * doc/glibc-functions/mkstemps.texi: Document header file problem on
5114         MacOS X.
5115
5116 2011-04-27  Bruno Haible  <bruno@clisp.org>
5117
5118         mkstemp: More documentation.
5119         * doc/posix-functions/mkstemp.texi: Document header file problem on
5120         MacOS X.
5121
5122 2011-04-27  Bruno Haible  <bruno@clisp.org>
5123
5124         mkstemp: Tweak configure message when cross-compiling.
5125         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
5126         result as a guess.
5127
5128 2011-04-27  Bruno Haible  <bruno@clisp.org>
5129
5130         clean-temp: Clarify what it does.
5131         * lib/clean-temp.h: Add more comments.
5132         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
5133         module.
5134         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
5135         * doc/glibc-functions/mkstemps.texi: Likewise.
5136         * doc/glibc-functions/mkostemps.texi: Likewise.
5137
5138 2011-04-27  Eric Blake  <eblake@redhat.com>
5139
5140         fchdir: avoid extra chdir and fix test
5141         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
5142         getcwd-lgpl.
5143         * lib/fchdir.c (get_name): Any absolute name will do; it does not
5144         have to be canonical.
5145         (canonicalize_file_name): Drop unused macro.
5146         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
5147
5148         filenamecat-lgpl: fix licence
5149         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
5150         when it was first created.
5151
5152         linkat, renameat: add missing dependency
5153         * modules/linkat (Depends-on): Require getcwd-lgpl.
5154         * modules/renameat (Depends-on): Likewise.
5155
5156         tests: reduce dependencies
5157         * tests/test-linkat.c (main): Use lighter-weight getcwd.
5158         * tests/test-renameat.c (main): Likewise.
5159         * modules/linkat-tests (Depends-on): Relax dependency.
5160         * modules/renameat-tests (Depends-on): Likewise.
5161         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
5162         dependency explicit.
5163
5164         save-cwd: reduce default dependency
5165         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
5166         * lib/save-cwd.c: Update comments.
5167         * NEWS: Document the semantic change.
5168
5169         getcwd: enhance tests
5170         * tests/test-getcwd-lgpl.c: New file, taken from...
5171         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
5172         repeat long path stress tests from m4 probe.
5173         * modules/getcwd-lgpl-tests: New module.
5174         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
5175         * m4/getcwd-abort-bug.m4: Update comment.
5176         * m4/getcwd-path-max.m4: Likewise.
5177
5178         getcwd-lgpl: new module
5179         * modules/getcwd-lgpl: New module.
5180         * lib/getcwd-lgpl.c: New file.
5181         * doc/posix-functions/getcwd.texi (getcwd): Document it.
5182         * MODULES.html.sh (lacking POSIX:2008): Likewise.
5183         * modules/getcwd (configure.ac): Set C witness.
5184         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
5185
5186         getcwd: tweak comments
5187         * m4/getcwd-abort-bug.m4: Fix comments.
5188         * m4/getcwd-path-max.m4: Likewise.
5189         * m4/getcwd.m4: Likewise.
5190
5191 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
5192         and Eric Blake  <eblake@redhat.com>
5193
5194         mkstemp: replace if system version uses wrong permissions
5195         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
5196         read/write mode bits set in file created by mkstemp.
5197         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
5198
5199 2011-04-27  Eric Blake  <eblake@redhat.com>
5200
5201         passfd: avoid compiler warning
5202         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
5203         Reported by Laine Stump.
5204
5205 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
5206
5207         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
5208         required by the NetBSD (and perhaps other 4.4BSD derived) join.
5209
5210 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
5211         and Eric Blake  <eblake@redhat.com>
5212
5213         mkstemp: mention clean-temp module
5214         * lib/mkstemp.c: Add comment.
5215         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
5216
5217 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
5218
5219         inttypes: also provide default values for 32-bit tests
5220         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
5221         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
5222
5223 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
5224
5225         strtoumax: remove dependency on strtoimax
5226         This is like the strtoull change of yesterday.
5227         * modules/strtoumax (Files): Add lib/strtoimax.c.
5228         (Depends-on): Remove strtoimax and add verify.
5229
5230         inttypes-incomplete: new module
5231         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
5232         all but the PRI* and SCN* parts of gl_INTTYPES_H.
5233         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
5234         of gl_INTTYPES_H.
5235         (gl_INTTYPES_H): Rewrite in terms of these new macros.
5236         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
5237         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
5238         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
5239         * modules/strtoumax, modules/xstrtol (Depends-on):
5240         Depend on inttypes-incomplete, not inttypes.
5241         * modules/inttypes-incomplete: New module, containing the contents
5242         of the old modules/inttypes module, except that the Files: section
5243         omits m4/inttypes-pri.m4, and the configure.ac section invokes
5244         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
5245         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
5246         (Depends-on): Depend only on inttypes-incomplete.
5247         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
5248
5249         inttypes: omit now-redundant strtoimax and strtoumax work
5250         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
5251         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
5252
5253         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
5254         This supports apps that need pointers to strtoimax and strtoumax,
5255         and ports to HP-UX 11.00 64.bit, which has macros that expand to
5256         nonexistent functions.  See
5257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
5258         et seq.
5259         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
5260         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
5261         a macro.
5262         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
5263
5264 2011-04-25  Simon Josefsson  <simon@josefsson.org>
5265
5266         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
5267
5268 2011-04-25  Bruno Haible  <bruno@clisp.org>
5269
5270         strtol, strtoul: Mark modules as obsolete.
5271         * modules/strtol (Status, Notice): New sections.
5272         * modules/strtoul (Status, Notice): New sections.
5273
5274 2011-04-25  Bruno Haible  <bruno@clisp.org>
5275
5276         strtod: Remove check for strtod, unless supporting old platforms.
5277         * modules/strtod-obsolete: New file.
5278         * m4/strtod-obsolete.m4: New file.
5279         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
5280         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
5281         * modules/strtod (Depends-on): Add strtod-obsolete.
5282         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
5283
5284 2011-04-25  Bruno Haible  <bruno@clisp.org>
5285
5286         strcase: Make module obsolete.
5287         * modules/strcase (Status, Notice): New sections.
5288
5289 2011-04-25  Bruno Haible  <bruno@clisp.org>
5290
5291         dup2: Remove check for dup2, unless supporting old obsolete platforms.
5292         * modules/dup2-obsolete: New file.
5293         * m4/dup2-obsolete.m4: New file.
5294         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
5295         gl_FUNC_DUP2_OBSOLETE is not also defined.
5296         * modules/dup2 (Depends-on): Add dup2-obsolete.
5297         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
5298
5299 2011-04-25  Bruno Haible  <bruno@clisp.org>
5300
5301         strnlen: Avoid memchr related link error on old obsolete platforms.
5302         * modules/memchr-obsolete: New file.
5303         * m4/memchr-obsolete.m4: New file.
5304         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
5305         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
5306         * modules/memchr (Depends-on): Add memchr-obsolete.
5307         * modules/strnlen (Depends-on): Likewise.
5308         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
5309
5310 2011-04-25  Jim Meyering  <meyering@redhat.com>
5311
5312         maint.mk: makefile_at_at_check extend and clean up
5313         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
5314         in addition to */Makefile.am.
5315         Exempt legitimate uses of @VAR@ notation, e.g.,
5316         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
5317         Remove obsolete coreutils-specific comment.
5318         Prompted by discussion here:
5319         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
5320
5321 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
5322
5323         strtoul: remove dependency on strtol
5324         This is so that 'configure' need not check for strtol merely because
5325         the application needs strtoul.
5326         * modules/strtoul (Files): Add lib/strtol.c.
5327         (Depends-on): Remove strtol.
5328
5329         strtoull: remove dependency on strtoul
5330         This is like the strtoll change.
5331         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
5332         (Depends-on): Remove strtoul.
5333
5334         strtoll: remove dependency on strtol
5335         This is so that 'configure' need not check for strtol merely because
5336         the application needs strtoll.
5337         * modules/strtoll (Files): Add lib/strtol.c.
5338         (Depends-on): Remove strtol.
5339
5340 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5341
5342         inttypes: Move some configure check to module 'imaxdiv'.
5343         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
5344         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
5345         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
5346
5347 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5348
5349         inttypes: Move some configure check to module 'imaxabs'.
5350         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
5351         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
5352         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
5353
5354 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5355
5356         inttypes: Remove configure tests that are not needed since 2009-12-31.
5357         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
5358         gl_cv_header_working_inttypes_h.
5359
5360 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
5361
5362         * modules/strnlen (Depends-on): Remove memchr.
5363         The strnlen implementation doesn't need the memchr module's fixes; see
5364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
5365
5366         strtol: remove dependency on wchar
5367         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
5368         * modules/strtol (Depends-on): Remove wchar.
5369
5370 2011-04-21  Eric Blake  <eblake@redhat.com>
5371
5372         passfd: fix test regression on Linux
5373         * modules/passfd-tests (configure.ac): Correct socketpair check.
5374
5375         passfd: speed up configure and drop unused code
5376         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
5377         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
5378         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
5379         Instead of probing at configure for unix_scm_rights_bsd44_way,
5380         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
5381         check to a struct member probe.
5382         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
5383         (sendfd, recvfd): Update preprocessor checks.
5384         * modules/passfd (Files): Reflect rename, and drop unused file.
5385         (Depends-on): Drop unused dependency.
5386
5387         passfd: allow compilation on mingw
5388         * modules/sys_socket (Depends-on): Add sys_uio.
5389         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
5390         iovec and a minimal struct msghdr.
5391         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
5392         * tests/test-sys_socket.c (main): Enhance test.
5393         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
5394         guaranteed to provide what we need.
5395         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
5396         * modules/passfd-tests (Depends-on): Add sys_wait.
5397         * tests/test-passfd.c (main): Skip test on mingw, for now.
5398         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
5399         partial 'struct msghdr' implementation.
5400
5401         sys_uio: new module
5402         * modules/sys_uio: New module.
5403         * modules/sys_uio-tests: Likewise.
5404         * lib/sys_uio.in.h: New file.
5405         * m4/sys_uio_h.m4: Likewise.
5406         * tests/test-sys_uio.c: Likewise.
5407         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
5408         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
5409
5410 2011-04-20  Jim Meyering  <meyering@redhat.com>
5411
5412         useless-if-before-free: avoid false-positive
5413         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
5414         disjunct so that it too requires a terminating ";".  Without that,
5415         this script would identify as useless one statement from gcc that
5416         was not:
5417           if (aligned_ptr)
5418             free (((void **) aligned_ptr) [-1]);
5419
5420 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
5421
5422         doc: update users.txt.
5423         * users.txt: Add barcode.
5424
5425 2011-04-19  Bruno Haible  <bruno@clisp.org>
5426
5427         ioctl: Remove link dependency on native Windows.
5428         * lib/fd-hook.h: Renamed from lib/close-hook.h.
5429         (gl_close_fn, gl_ioctl_fn): New types.
5430         (struct fd_hook): Renamed from struct close_hook. Change type of
5431         private_close_fn field. Add private_ioctl_fn field.
5432         (close_hook_fn): Add parameter for primary close method.
5433         (execute_close_hooks, execute_all_close_hooks): Likewise.
5434         (ioctl_hook_fn): New type.
5435         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
5436         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
5437         argument.
5438         (unregister_fd_hook): Renamed from unregister_close_hook.
5439         * lib/fd-hook.c: Renamed from lib/close-hook.c.
5440         Don't include <unistd.h>.
5441         (close): Remove undef.
5442         (anchor): Update.
5443         (execute_close_hooks): Add argument for primary close method.
5444         (execute_all_close_hooks): Likewise.
5445         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
5446         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
5447         argument. Allow each argument to be NULL.
5448         (unregister_fd_hook): Renamed from unregister_close_hook.
5449         * lib/close.c (rpl_close): Pass 'close' function pointer to
5450         execute_all_close_hooks.
5451         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
5452         (primary_ioctl): New function.
5453         (ioctl): Don't call ioctlsocket here. Instead, call
5454         execute_all_ioctl_hooks.
5455         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
5456         close method.
5457         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
5458         (fd_sockets_hook): Renamed from close_sockets_hook.
5459         (gl_sockets_startup, gl_sockets_cleanup): Update.
5460         * modules/fd-hook: Renamed from modules/close-hook. Update.
5461         * modules/close (Depends-on): Add fd-hook, remove close-hook.
5462         * modules/sockets (Depends-on): Likewise.
5463         * modules/ioctl (Depends-on): Add fd-hook.
5464         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
5465         GNULIB_SOCKET.
5466
5467 2011-04-19  Bruno Haible  <bruno@clisp.org>
5468
5469         Move the support of O_NONBLOCK in open() to the 'open' module.
5470         * modules/nonblocking (Depends-on): Remove 'open'.
5471         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
5472         gl_cv_have_open_O_NONBLOCK.
5473         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
5474         O_NONBLOCK support.
5475         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
5476
5477 2011-04-17  Bruno Haible  <bruno@clisp.org>
5478
5479         pipe2: Simplify code.
5480         * lib/pipe2.c (pipe2): Reduce code duplication.
5481
5482 2011-04-17  Bruno Haible  <bruno@clisp.org>
5483
5484         nonblocking: Add comment.
5485         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
5486
5487 2011-04-17  Bruno Haible  <bruno@clisp.org>
5488
5489         nonblocking: Add tests for sockets.
5490         * tests/test-nonblocking-socket.sh: New file.
5491         * tests/test-nonblocking-socket-main.c: New file.
5492         * tests/test-nonblocking-socket-child.c: New file.
5493         * tests/test-nonblocking-socket.h: New file.
5494         * tests/socket-server.h: New file.
5495         * tests/socket-client.h: New file.
5496         * modules/nonblocking-socket-tests: New file.
5497         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
5498
5499 2011-04-17  Bruno Haible  <bruno@clisp.org>
5500
5501         nonblocking: Add tests for pipes.
5502         * tests/test-nonblocking-pipe.sh: New file.
5503         * tests/test-nonblocking-pipe-main.c: New file.
5504         * tests/test-nonblocking-pipe-child.c: New file.
5505         * tests/test-nonblocking-pipe.h: New file.
5506         * tests/test-nonblocking-writer.h: New file.
5507         * tests/test-nonblocking-reader.h: New file.
5508         * tests/test-nonblocking-misc.h: New file.
5509         * modules/nonblocking-pipe-tests: New file.
5510         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
5511
5512 2011-04-16  Bruno Haible  <bruno@clisp.org>
5513
5514         gettext: Clarify the needed programmer actions.
5515         * modules/gettext (Notice): New field.
5516         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
5517
5518 2011-04-16  Bruno Haible  <bruno@clisp.org>
5519
5520         strchrnul: Tweak last commit.
5521         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
5522         bug.
5523         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
5524         as in _GL_FUNCDECL_SYS.
5525         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
5526         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
5527
5528 2011-04-15  Eric Blake  <eblake@redhat.com>
5529
5530         strchrnul: work around cygwin bug
5531         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
5532         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
5533         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
5534         * modules/string (Makefile.am): Substitute it.
5535         * lib/string.in.h (strchrnul): Use it.
5536
5537 2011-04-15  Bruno Haible  <bruno@clisp.org>
5538
5539         Don't require lib/stdio-write.c when only module 'stdio' is used.
5540         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
5541         invocation.
5542         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
5543
5544 2011-04-14  Bruno Haible  <bruno@clisp.org>
5545
5546         Support non-blocking pipe I/O in read() on native Windows.
5547         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
5548         (read): New declaration.
5549         * lib/read.c: New file.
5550         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
5551         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
5552         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
5553         vscanf): New declarations.
5554         * lib/stdio-read.c: New file.
5555         * m4/read.m4: New file.
5556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
5557         REPLACE_READ.
5558         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
5559         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
5560         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
5561         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
5562         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
5563         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
5564         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
5565         * modules/read: New file.
5566         * modules/nonblocking (Files): Add lib/stdio-read.c.
5567         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
5568         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
5569         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
5570         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
5571         * modules/pread (Depends-on): Add read.
5572         * modules/safe-read (Depends-on): Likewise.
5573         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
5574         gets, scanf, vfscanf, vscanf): Verify signatures.
5575         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
5576         problem with non-blocking pipes.
5577         * doc/posix-functions/fgetc.texi: Likewise.
5578         * doc/posix-functions/fgets.texi: Likewise.
5579         * doc/posix-functions/fread.texi: Likewise.
5580         * doc/posix-functions/fscanf.texi: Likewise.
5581         * doc/posix-functions/getc.texi: Likewise.
5582         * doc/posix-functions/getchar.texi: Likewise.
5583         * doc/posix-functions/gets.texi: Likewise.
5584         * doc/posix-functions/scanf.texi: Likewise.
5585         * doc/posix-functions/vfscanf.texi: Likewise.
5586         * doc/posix-functions/vscanf.texi: Likewise.
5587
5588 2011-04-14  Bruno Haible  <bruno@clisp.org>
5589
5590         Support non-blocking pipe I/O in write() on native Windows.
5591         * lib/write.c (rpl_write): Split a write request that failed merely
5592         because the byte count was larger than the pipe buffer's size.
5593         * doc/posix-functions/write.texi: Mention the problem with large byte
5594         counts.
5595
5596 2011-04-14  Bruno Haible  <bruno@clisp.org>
5597
5598         wchar: Ensure that wchar_t gets defined on uClibc.
5599         * lib/wchar.in.h: On uClibc, include <stddef.h>.
5600         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
5601
5602 2011-04-13  Bruno Haible  <bruno@clisp.org>
5603
5604         safe-write, full-read: Avoid unnecessary compilation units.
5605         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
5606         (Depends-on): Remove safe-read. Add ssize_t.
5607         * modules/full-read (Files): Add lib/full-write.c.
5608         (Depends-on): Add full-write.
5609
5610 2011-04-13  Bruno Haible  <bruno@clisp.org>
5611
5612         Support non-blocking pipe I/O and SIGPIPE in pwrite().
5613         * modules/pwrite (Depends-on): Add 'write'.
5614
5615 2011-04-13  Bruno Haible  <bruno@clisp.org>
5616
5617         Support non-blocking pipe I/O in write() on native Windows.
5618         * lib/unistd.in.h (write): Enable replacement also if
5619         GNULIB_UNISTD_H_NONBLOCKING is 1.
5620         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
5621         (rpl_write): When failing to write on a non-blocking pipe, change
5622         errno from ENOSPC to EAGAIN.
5623         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
5624         putchar, puts, vfprintf, vprintf): Enable replacement also if
5625         GNULIB_STDIO_H_NONBLOCKING is 1.
5626         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
5627         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
5628         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
5629         CALL_WITH_SIGPIPE_EMULATION.
5630         (CALL_WITH_SIGPIPE_EMULATION): Use them.
5631         * m4/nonblocking.m4: New file.
5632         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
5633         for non-blocking I/O support.
5634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5635         GNULIB_UNISTD_H_NONBLOCKING.
5636         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
5637         required for non-blocking I/O support.
5638         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
5639         * modules/nonblocking (Files): Add m4/nonblocking.m4,
5640         lib/stdio-write.c, m4/asm-underscore.m4.
5641         (Depends-on): Add stdio, unistd.
5642         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
5643         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
5644         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
5645         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
5646         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
5647         problem with non-blocking pipes.
5648         * doc/posix-functions/fputc.texi: Likewise.
5649         * doc/posix-functions/fputs.texi: Likewise.
5650         * doc/posix-functions/fwrite.texi: Likewise.
5651         * doc/posix-functions/printf.texi: Likewise.
5652         * doc/posix-functions/putc.texi: Likewise.
5653         * doc/posix-functions/putchar.texi: Likewise.
5654         * doc/posix-functions/puts.texi: Likewise.
5655         * doc/posix-functions/vfprintf.texi: Likewise.
5656         * doc/posix-functions/vprintf.texi: Likewise.
5657         * doc/posix-functions/write.texi: Likewise.
5658
5659 2011-04-10  Jim Meyering  <meyering@redhat.com>
5660
5661         maint.mk: prohibit doubled words
5662         Detect them also when they're separated by a newline.
5663         There are 3 ways to customize it:
5664           - disable the test on a per file basis, as usual with rules using
5665             $(VC_LIST_EXCEPT)
5666           - replace the default doubled-word-selecting regexp (affects all files)
5667           - ignore a particular file-vs-doubled-word match
5668         I nearly used that last one to ignore the "is is" match in
5669         coreutils' NEWS file, since the text was "ls -is is ..."
5670         To do that, I would have added this line to cfg.mk:
5671           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
5672         but it would have ignored any "is is" match in NEWS.
5673         Low probability, but still...
5674         Instead, I changed the text, slightly:
5675           -  ls -is is now consistent with ls -lis in ignoring values returned
5676           +  "ls -is" is now consistent with ls -lis in ignoring values returned
5677         * top/maint.mk (prohibit_double_word_RE_): Provide default.
5678         (prohibit_doubled_word_): Define.
5679         (sc_prohibit_doubled_word): New rule.
5680         (sc_prohibit_the_the): Remove.  Subsumed by the above.
5681
5682 2011-04-10  Jim Meyering  <meyering@redhat.com>
5683
5684         maint: fix doubled-word typo in comment
5685         * m4/gethostname.m4: s/is is/it is/
5686         * m4/getdomainname.m4: Likewise.
5687
5688 2011-04-10  Jim Meyering  <meyering@redhat.com>
5689
5690         maint: remove doubled word: s/it it/it/
5691         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
5692
5693 2011-04-10  Jim Meyering  <meyering@redhat.com>
5694
5695         maint.mk: remove useless semicolon and backslash
5696         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
5697         semicolon and backslash.
5698
5699 2011-04-10  Bruno Haible  <bruno@clisp.org>
5700
5701         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
5702         * modules/stdint-tests (Depends-on): Add wchar.
5703
5704 2011-04-10  Jim Meyering  <meyering@redhat.com>
5705
5706         maint: remove doubled words in comments, e.g., s/a a/a/
5707         * lib/strptime.c (day_of_the_week): s/the the/the/
5708         * tests/test-chown.h (test_chown): s/a a/a/
5709
5710         test-chown.h: correct a cast
5711         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
5712         when the destination is a stat.st_gid.
5713
5714 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
5715
5716         getaddrinfo: Fix test for sa_len member.
5717         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
5718         include <sys/types.h> before <sys/socket.h>.
5719
5720 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
5721
5722         maint: change "can not" to "cannot"
5723         * doc/posix-functions/iconv.texi (iconv): This one crossed line
5724         boundaries.
5725
5726 2011-04-09  Jim Meyering  <meyering@redhat.com>
5727
5728         maint: change "a a" to "a"
5729         * tests/test-lchown.h (test_lchown): s/a a/a/
5730
5731         maint.mk: prohibit \<the the\>
5732         * top/maint.mk (sc_prohibit_the_the): New rule.
5733
5734         maint: fix "the the" in comment
5735         * lib/count-one-bits.h: s/the the/the/
5736
5737         maint: change "can not" to "cannot"
5738         But do not change the occurrences in maintain.texi or in
5739         build-aux/po/Makefile.in.in, which I presume comes from gettext.
5740         * doc/gnulib-tool.texi: s/can not/cannot/
5741         * doc/posix-functions/accept.texi (accept): Likewise.
5742         * doc/posix-functions/socket.texi (socket): Likewise.
5743         * lib/mbrtowc.c: Likewise.
5744
5745         maint.mk: prohibit use of "can not"
5746         * top/maint.mk (sc_prohibit_can_not): New rule.
5747         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
5748
5749 2011-04-09  Bruno Haible  <bruno@clisp.org>
5750
5751         careadlinkat: Guard against misuse of careadlinkatcwd.
5752         * lib/careadlinkat.c: Include <stdlib.h>.
5753         (careadlinkatcwd): Check that the fd argument is as expected.
5754
5755 2011-04-09  Bruno Haible  <bruno@clisp.org>
5756
5757         careadlinkat: Use common coding style.
5758         * lib/careadlinkat.c: Move gnulib includes after system includes.
5759
5760 2011-04-09  Bruno Haible  <bruno@clisp.org>
5761
5762         careadlinkat: Clarify specification.
5763         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
5764         (careadlinkatcwd): Add comment.
5765         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
5766
5767 2011-04-09  Bruno Haible  <bruno@clisp.org>
5768
5769         areadlinkat: Avoid link error on many platforms.
5770         * modules/areadlinkat (Depends-on): Add areadlink.
5771
5772 2011-04-09  Bruno Haible  <bruno@clisp.org>
5773
5774         allocator, careadlinkat: Fix double-inclusion guard.
5775         * lib/allocator.h: Fix double-inclusion guard.
5776         * lib/careadlinkat.h: Likewise.
5777
5778 2011-04-09  Bruno Haible  <bruno@clisp.org>
5779
5780         relocatable-prog-wrapper: Update after module 'areadlink' changed.
5781         * lib/relocwrapper.c: Update dependencies hierarchy.
5782         * build-aux/install-reloc: Update list of files to be compiled.
5783         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
5784         lib/allocator.[hc].
5785
5786 2011-04-08  Eric Blake  <eblake@redhat.com>
5787
5788         strftime: silence gnulib-tool warning
5789         * modules/strftime-tests (Depends-on): Drop automatic dependency.
5790
5791 2011-04-08  Bruno Haible  <bruno@clisp.org>
5792
5793         verify: Fix syntax error with GCC 4.6 in C++ mode.
5794         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
5795         (HAVE_STATIC_ASSERT): New macro.
5796         (verify_true, verify): Use 'static_assert' if it is supported and
5797         '_Static_assert' is not supported.
5798
5799 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
5800
5801         allocator: New module.
5802         * modules/allocator, lib/allocator.c: New files.
5803         * lib/allocator.h (stdlib_allocator): New decl.
5804         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
5805         Remove.  Do not include <stdlib.h>.
5806         (careadlinkat): Use stdlib_allocator instead of rolling our own.
5807         * modules/careadlinkat (Files): Remove lib/allocator.h.
5808         (Depends-on): Add allocator.
5809
5810         stdlib: let modules use system malloc, realloc
5811         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
5812         if !_GL_USE_STDLIB_ALLOC.
5813         (malloc, realloc): Limit this change to a smaller scope.
5814
5815         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
5816         (malloc, realloc): Don't #undef; no longer needed.
5817         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5818         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5819         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
5820         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5821         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5822         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5823         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
5824         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
5825
5826         careadlinkat: rename members to avoid problem
5827         * lib/allocator.h (struct allocator): Rename members from
5828         malloc/realloc to allocate/reallocate, to avoid problems if malloc
5829         and realloc are #define'd.  Reported by Eric Blake in
5830         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
5831         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
5832
5833 2011-04-08  Eric Blake  <eblake@redhat.com>
5834
5835         nonblocking: reduce dependency
5836         * tests/test-nonblocking.c: Only test sockets when in use.
5837         * modules/nonblocking-tests (Depends-on): Drop socket.
5838         (Makefile.am): Link even if sockets are not present.
5839         * modules/pipe2-tests (Makefile.am): Likewise.
5840         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
5841
5842         pipe2: fix O_NONBLOCK support on mingw
5843         * modules/pipe2 (Depends-on): Add nonblocking.
5844         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
5845         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
5846         * tests/test-nonblocking.c (main): Likewise.
5847         * modules/pipe2-tests (Makefile.am): Avoid link failure.
5848
5849         fcntl-h: fix O_ACCMODE on cygwin
5850         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
5851         * lib/fcntl.in.h (O_ACCMODE): Fix it.
5852
5853         pipe-filter: drop O_NONBLOCK workarounds
5854         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
5855         * modules/pipe-filter-ii (Depends-on): Likewise.
5856         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
5857
5858         nonblocking: provide O_NONBLOCK for mingw
5859         * modules/nonblocking (Depends-on): Add open.
5860         (configure.ac): Set new witness macro.
5861         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
5862         * modules/fcntl-h (Makefile.am): Substitute it.
5863         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
5864         nonblocking module is in use.
5865         * lib/nonblocking.c: Adjust portability test.
5866         * lib/open.c (open): Don't let native open see gnulib flag.
5867         * tests/test-fcntl-h.c (main): Enhance test.
5868         * tests/test-open.h (test_open): Likewise.
5869         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
5870
5871         careadlinkat: fix compilation error on mingw
5872         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
5873         within struct allocator.
5874
5875 2011-04-06  Eric Blake  <eblake@redhat.com>
5876
5877         binary-io: relicense under LGPLv2+
5878         * modules/binary-io (License): Relax to LGPLv2+.
5879         Requested for libvirt, and required by pipe2.
5880
5881 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
5882
5883         verify: use _Static_assert if available
5884         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
5885         (verify_true, verify): Use it if available.  This generates better
5886         diagnostics with GCC 4.6.0 and later.
5887
5888 2011-04-05  Bruno Haible  <bruno@clisp.org>
5889
5890         Remove leftover generated .h files after config.status changed.
5891
5892         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
5893         GL_GENERATE_ALLOCA_H.
5894         * modules/alloca-opt (Makefile.am): Remove alloca.h if
5895         GL_GENERATE_ALLOCA_H evaluates to false.
5896
5897         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
5898         GL_GENERATE_ARGZ_H.
5899         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
5900         evaluates to false.
5901
5902         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
5903         GL_GENERATE_BYTESWAP_H.
5904         * modules/byteswap (Makefile.am): Remove byteswap.h if
5905         GL_GENERATE_BYTESWAP_H evaluates to false.
5906
5907         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
5908         GL_GENERATE_ERRNO_H.
5909         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
5910         evaluates to false.
5911
5912         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
5913         GL_GENERATE_FLOAT_H.
5914         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
5915         evaluates to false.
5916
5917         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
5918         GL_GENERATE_FNMATCH_H.
5919         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
5920         GL_GENERATE_FNMATCH_H evaluates to false.
5921
5922         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
5923         GL_GENERATE_GLOB_H.
5924         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
5925         evaluates to false.
5926
5927         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
5928         automake conditional GL_GENERATE_ICONV_H.
5929         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
5930         evaluates to false.
5931
5932         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
5933         GL_GENERATE_NETINET_IN_H.
5934         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
5935         GL_GENERATE_NETINET_IN_H evaluates to false.
5936
5937         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
5938         conditional GL_GENERATE_PTHREAD_H.
5939         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
5940         * modules/pthread (Makefile.am): Remove pthread.h if
5941         GL_GENERATE_PTHREAD_H evaluates to false.
5942
5943         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
5944         GL_GENERATE_SCHED_H.
5945         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
5946         evaluates to false.
5947
5948         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
5949         conditional GL_GENERATE_SELINUX_CONTEXT_H.
5950         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
5951         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
5952
5953         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
5954         GL_GENERATE_STDARG_H.
5955         * modules/stdarg (Makefile.am): Remove stdarg.h if
5956         GL_GENERATE_STDARG_H evaluates to false.
5957
5958         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
5959         GL_GENERATE_STDBOOL_H.
5960         * modules/stdbool (Makefile.am): Remove stdbool.h if
5961         GL_GENERATE_STDBOOL_H evaluates to false.
5962
5963         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
5964         conditional GL_GENERATE_STDDEF_H.
5965         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
5966         * modules/stddef (Makefile.am): Remove stddef.h if
5967         GL_GENERATE_STDDEF_H evaluates to false.
5968
5969         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
5970         GL_GENERATE_STDINT_H.
5971         * modules/stdint (Makefile.am): Remove stdint.h if
5972         GL_GENERATE_STDINT_H evaluates to false.
5973
5974         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
5975         GL_GENERATE_SYSEXITS_H.
5976         * modules/sysexits (Makefile.am): Remove sysexits.h if
5977         GL_GENERATE_SYSEXITS_H evaluates to false.
5978
5979         Reported by Karl Berry and Ralf Wildenhues.
5980
5981 2011-04-05  Bruno Haible  <bruno@clisp.org>
5982
5983         Ensure to rebuild generated .h files when config.status has changed.
5984         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
5985         config.status.
5986         * modules/ctype (Makefile.am): Likewise.
5987         * modules/dirent (Makefile.am): Likewise.
5988         * modules/errno (Makefile.am): Likewise.
5989         * modules/fcntl-h (Makefile.am): Likewise.
5990         * modules/float (Makefile.am): Likewise.
5991         * modules/getopt-posix (Makefile.am): Likewise.
5992         * modules/glob (Makefile.am): Likewise.
5993         * modules/iconv-h (Makefile.am): Likewise.
5994         * modules/inttypes (Makefile.am): Likewise.
5995         * modules/langinfo (Makefile.am): Likewise.
5996         * modules/locale (Makefile.am): Likewise.
5997         * modules/math (Makefile.am): Likewise.
5998         * modules/netdb (Makefile.am): Likewise.
5999         * modules/netinet_in (Makefile.am): Likewise.
6000         * modules/poll-h (Makefile.am): Likewise.
6001         * modules/pthread (Makefile.am): Likewise.
6002         * modules/pty (Makefile.am): Likewise.
6003         * modules/sched (Makefile.am): Likewise.
6004         * modules/search (Makefile.am): Likewise.
6005         * modules/selinux-h (Makefile.am): Likewise.
6006         * modules/signal (Makefile.am): Likewise.
6007         * modules/spawn (Makefile.am): Likewise.
6008         * modules/stdarg (Makefile.am): Likewise.
6009         * modules/stdbool (Makefile.am): Likewise.
6010         * modules/stddef (Makefile.am): Likewise.
6011         * modules/stdint (Makefile.am): Likewise.
6012         * modules/stdio (Makefile.am): Likewise.
6013         * modules/stdlib (Makefile.am): Likewise.
6014         * modules/string (Makefile.am): Likewise.
6015         * modules/strings (Makefile.am): Likewise.
6016         * modules/sys_file (Makefile.am): Likewise.
6017         * modules/sys_ioctl (Makefile.am): Likewise.
6018         * modules/sys_select (Makefile.am): Likewise.
6019         * modules/sys_socket (Makefile.am): Likewise.
6020         * modules/sys_stat (Makefile.am): Likewise.
6021         * modules/sys_time (Makefile.am): Likewise.
6022         * modules/sys_times (Makefile.am): Likewise.
6023         * modules/sys_utsname (Makefile.am): Likewise.
6024         * modules/sys_wait (Makefile.am): Likewise.
6025         * modules/sysexits (Makefile.am): Likewise.
6026         * modules/termios (Makefile.am): Likewise.
6027         * modules/time (Makefile.am): Likewise.
6028         * modules/unistd (Makefile.am): Likewise.
6029         * modules/wchar (Makefile.am): Likewise.
6030         * modules/wctype-h (Makefile.am): Likewise.
6031         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
6032
6033 2011-04-05  Bruno Haible  <bruno@clisp.org>
6034
6035         pipe2: Relicense under LGPLv2+.
6036         * modules/pipe2 (License): Change to LGPLv2+.
6037         Requested by Eric Blake, for libvirt.
6038
6039 2011-04-05  Bruce Korb  <bkorb@gnu.org>
6040
6041         bootstrap: compute gnulib_extra_files after updating build_aux
6042         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
6043         change build_aux or also supply gnulib_extra_files.  Handle correctly.
6044
6045 2011-04-05  Eric Blake  <eblake@redhat.com>
6046
6047         bootstrap: preserve git whitelist item sorting
6048         * build-aux/bootstrap (sort_patterns): New function.
6049         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
6050
6051 2011-04-05  Simon Josefsson  <simon@josefsson.org>
6052
6053         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
6054         sc_space_tab check.
6055
6056 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
6057
6058         areadlink, areadlinkat: rewrite in terms of careadlinkat
6059         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
6060         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
6061         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
6062         (malloc, realloc): Remove #undefs.
6063         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
6064         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
6065         readlink, ssize_t, stdint, unistd.
6066         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
6067         areadlink, stdint.
6068
6069         careadlinkat: new module
6070         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
6071         * modules/careadlinkat: New files, written by me with
6072         a review and feedback from Ben Pfaff in
6073         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
6074
6075 2011-04-01  Bruno Haible  <bruno@clisp.org>
6076
6077         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
6078         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
6079         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
6080         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
6081         Reported by Bruce Korb <bruce.korb@gmail.com>.
6082
6083 2011-04-01  Bruno Haible  <bruno@clisp.org>
6084
6085         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
6086         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
6087         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
6088         * modules/wcpcpy (Depends-on): Add extensions.
6089         * modules/wcpncpy (Depends-on): Likewise.
6090         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
6091         systems.
6092         * doc/posix-functions/wcpncpy.texi: Likewise.
6093         * doc/posix-functions/wcwidth.texi: Likewise.
6094
6095 2011-03-31  Eric Blake  <eblake@redhat.com>
6096
6097         nonblocking: fix mingw test failures
6098         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
6099         non-blocking flag on regular file.
6100         (get_nonblocking_flag): Set errno on invalid fd.
6101         * tests/test-nonblocking.c (main): Avoid test failure on
6102         directories if fchdir is not active.
6103         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
6104
6105 2011-03-31  Bruno Haible  <bruno@clisp.org>
6106
6107         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
6108         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
6109         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
6110         Reported by Simon Josefsson <simon@josefsson.org>.
6111
6112 2011-03-31  Bruno Haible  <bruno@clisp.org>
6113         and Eric Blake  <eblake@redhat.com>
6114
6115         nonblocking: new module
6116         * modules/nonblocking: New module.
6117         * modules/nonblocking-tests: Likewise.
6118         * lib/nonblocking.h: New file.
6119         * lib/nonblocking.c: Likewise.
6120         * tests/test-nonblocking.c: New test.
6121         * lib/ioctl.c (ioctl) [mingw]: Update comment.
6122
6123 2011-03-30  Bruno Haible  <bruno@clisp.org>
6124
6125         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
6126         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
6127         instead of 'printf' format for GCC >= 4.4.
6128         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
6129         (fprintf, printf, vfprintf, vprintf): Declare with
6130         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
6131         the system's vfprintf() function.
6132         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
6133
6134 2011-03-30  Eric Blake  <eblake@redhat.com>
6135
6136         passfd: fix scoping bug
6137         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
6138         before sendmsg/recvmsg.
6139
6140         passfd: standardize coding conventions
6141         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
6142         can be learned at compile time.
6143         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
6144         ifdefs.
6145         (sendfd, recvfd): Follow gnulib code conventions.
6146
6147         passfd: fix incorrect sendmsg arguments
6148         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
6149         incorrect msg_controllen value.
6150         * modules/passfd-tests (Depends-on): Check for alarm.
6151         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
6152         Reported by Bastien ROUCARIES.
6153
6154 2011-03-30  Bruno Haible  <bruno@clisp.org>
6155
6156         c-strcasestr: Relicense under LGPLv2+.
6157         * modules/c-strcasestr (License): Change to LGPLv2+.
6158         Requested by Eric Blake, for libvirt.
6159
6160 2011-03-30  Simon Josefsson  <simon@josefsson.org>
6161
6162         * users.txt: Add libidn2.  Fix libtasn1 link.
6163
6164 2011-03-30  Jim Meyering  <meyering@redhat.com>
6165
6166         tests: readlink* ("",... fails with EINVAL on newer kernels
6167         readlink and readlinkat have typically failed with ENOENT for
6168         the invalid, empty file name,  "".  However, with the advent
6169         of linux-2.6.39, they fail with EINVAL.
6170         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
6171         when operating on the empty file name.
6172         * tests/test-readlink.h (test_readlink): Likewise.
6173
6174 2011-03-29  Bruno Haible  <bruno@clisp.org>
6175
6176         Relicense some modules under LGPLv2+, for libidn2.
6177         * modules/array-mergesort (License): Change to LGPLv2+.
6178         * modules/c-strcaseeq (License): Likewise.
6179         * modules/striconveh (License): Likewise.
6180         * modules/striconveha (License): Likewise.
6181         * modules/uniconv/base (License): Likewise.
6182         * modules/uniconv/u8-conv-from-enc (License): Likewise.
6183         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
6184         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
6185         * modules/unictype/base (License): Likewise.
6186         * modules/unictype/bidiclass-of (License): Likewise.
6187         * modules/unictype/category-M (License): Likewise.
6188         * modules/unictype/category-none (License): Likewise.
6189         * modules/unictype/category-of (License): Likewise.
6190         * modules/unictype/category-test (License): Likewise.
6191         * modules/unictype/category-test-withtable (License): Likewise.
6192         * modules/unictype/combining-class (License): Likewise.
6193         * modules/unictype/joiningtype-of (License): Likewise.
6194         * modules/unictype/scripts (License): Likewise.
6195         * modules/uninorm/base (License): Likewise.
6196         * modules/uninorm/canonical-decomposition (License): Likewise.
6197         * modules/uninorm/composition (License): Likewise.
6198         * modules/uninorm/decompose-internal (License): Likewise.
6199         * modules/uninorm/decomposition-table (License): Likewise.
6200         * modules/uninorm/nfc (License): Likewise.
6201         * modules/uninorm/nfd (License): Likewise.
6202         * modules/uninorm/u32-normalize (License): Likewise.
6203         * modules/unistr/base (License): Likewise.
6204         * modules/unistr/u32-cpy (License): Likewise.
6205         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
6206         * modules/unistr/u32-to-u8 (License): Likewise.
6207         * modules/unistr/u32-uctomb (License): Likewise.
6208         * modules/unistr/u8-check (License): Likewise.
6209         * modules/unistr/u8-mblen (License): Likewise.
6210         * modules/unistr/u8-mbtouc (License): Likewise.
6211         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
6212         * modules/unistr/u8-mbtoucr (License): Likewise.
6213         * modules/unistr/u8-prev (License): Likewise.
6214         * modules/unistr/u8-strlen (License): Likewise.
6215         * modules/unistr/u8-to-u32 (License): Likewise.
6216         * modules/unistr/u8-uctomb (License): Likewise.
6217         * modules/unitypes (License): Likewise.
6218         Requested by Simon Josefsson.
6219
6220 2011-03-29  Simon Josefsson  <simon@josefsson.org>
6221
6222         lib-symbol-visibility: Add a notice.
6223         * modules/lib-symbol-visibility (Notice): New field.
6224
6225 2011-03-29  Bruno Haible  <bruno@clisp.org>
6226
6227         getaddrinfo: Doc fix.
6228         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
6229         section "fixed in Gnulib".
6230
6231 2011-03-28  Simon Josefsson  <simon@josefsson.org>
6232
6233         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
6234         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
6235
6236 2011-03-26  Bruno Haible  <bruno@clisp.org>
6237
6238         unictype/property-byname: Reduce the number of load-time relocations.
6239         * lib/unictype/pr_byname.c: Include <stdlib.h>.
6240         (UC_PROPERTY_INDEX_*): New enumeration values.
6241         (uc_property_byname): Convert an index from the lookup table to an
6242         uc_property_t.
6243         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
6244         values.
6245
6246 2011-03-26  Bruno Haible  <bruno@clisp.org>
6247
6248         unictype/property-byname: Allow omitted word separators and aliases.
6249         * lib/unictype/pr_byname.gperf: Add property names without word
6250         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
6251         for 'space'.
6252
6253 2011-03-26  Bruno Haible  <bruno@clisp.org>
6254
6255         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
6256         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
6257         also hyphens to space.
6258         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
6259         without spaces.
6260         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
6261
6262 2011-03-26  Bruno Haible  <bruno@clisp.org>
6263
6264         unictype/joiningtype-byname: Recognize long names as well.
6265         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
6266         a long name.
6267         * lib/unictype/joiningtype_byname.c: Include <string.h>,
6268         unictype/joiningtype_byname.h.
6269         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
6270         * lib/unictype/joiningtype_byname.gperf: New file.
6271         * modules/unictype/joiningtype-byname (Files): Add
6272         lib/unictype/joiningtype_byname.gperf.
6273         (Depends-on): Add gperf.
6274         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
6275         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
6276         long names.
6277
6278         Tests for module 'unictype/joiningtype-longname'.
6279         * modules/unictype/joiningtype-longname-tests: New file.
6280         * tests/unictype/test-joiningtype_longname.c: New file.
6281
6282         New module 'unictype/joiningtype-longname'.
6283         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
6284         * lib/unictype/joiningtype_longname.c: New file.
6285         * modules/unictype/joiningtype-longname: New file.
6286         * modules/unictype/joiningtype-all (Depends-on): Add
6287         unictype/joiningtype-longname.
6288
6289 2011-03-26  Bruno Haible  <bruno@clisp.org>
6290
6291         unictype/bidiclass-byname: Recognize long names as well.
6292         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
6293         name.
6294         * lib/unictype/bidi_byname.c: Include <string.h>,
6295         unictype/bidi_byname.h.
6296         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
6297         * lib/unictype/bidi_byname.gperf: New file.
6298         * modules/unictype/bidiclass-byname (Files): Add
6299         lib/unictype/bidi_byname.gperf.
6300         (Depends-on): Add gperf.
6301         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
6302         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
6303         long names.
6304
6305         Tests for module 'unictype/bidiclass-longname'.
6306         * modules/unictype/bidiclass-longname-tests: New file.
6307         * tests/unictype/test-bidi_longname.c: New file.
6308
6309         New module 'unictype/bidiclass-longname'.
6310         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
6311         * lib/unictype/bidi_longname.c: New file.
6312         * modules/unictype/bidiclass-longname: New file.
6313         * modules/unictype/bidiclass-all (Depends-on): Add
6314         unictype/bidiclass-longname.
6315
6316 2011-03-26  Bruno Haible  <bruno@clisp.org>
6317
6318         unictype/bidi*: Rename modules.
6319         * modules/unictype/bidiclass-all: Renamed from
6320         modules/unictype/bidicategory-all.
6321         * modules/unictype/bidiclass-name: Renamed from
6322         modules/unictype/bidiclass-name.
6323         (Description): Update.
6324         * modules/unictype/bidiclass-name-tests: Renamed from
6325         modules/unictype/bidicategory-name-tests.
6326         * modules/unictype/bidiclass-byname: Renamed from
6327         modules/unictype/bidicategory-byname.
6328         (Description): Update.
6329         * modules/unictype/bidiclass-byname-tests: Renamed from
6330         modules/unictype/bidicategory-byname-tests.
6331         * modules/unictype/bidiclass-of: Renamed from
6332         modules/unictype/bidicategory-of.
6333         (Description): Update.
6334         * modules/unictype/bidiclass-of-tests: Renamed from
6335         modules/unictype/bidicategory-of-tests.
6336         * modules/unictype/bidiclass-test: Renamed from
6337         modules/unictype/bidicategory-test.
6338         (Description): Update.
6339         * modules/unictype/bidiclass-test-tests: Renamed from
6340         modules/unictype/bidicategory-test-tests.
6341         * modules/unictype/bidicategory-all: New file, a simple redirection.
6342         * modules/unictype/bidicategory-name: Likewise.
6343         * modules/unictype/bidicategory-byname: Likewise.
6344         * modules/unictype/bidicategory-of: Likewise.
6345         * modules/unictype/bidicategory-test: Likewise.
6346         * modules/unictype/property-bidi-* (Dependencies): Update.
6347         * lib/unictype/bidi_*.c: Update comment.
6348
6349 2011-03-26  Bruno Haible  <bruno@clisp.org>
6350
6351         unictype/bidi*: Rename functions, part 2.
6352         * modules/unictype/bidicategory-name (configure.ac): Update required
6353         libunistring version.
6354         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
6355
6356 2011-03-25  Bruno Haible  <bruno@clisp.org>
6357
6358         New module 'unictype/combining-class-all'.
6359         * modules/unictype/combining-class-all: New file.
6360
6361         Tests for module 'unictype/combining-class-byname'.
6362         * modules/unictype/combining-class-byname-tests: New file.
6363         * tests/unictype/test-combiningclass_byname.c: New file.
6364
6365         New module 'unictype/combining-class-byname'.
6366         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
6367         * lib/unictype/combiningclass_byname.c: New file.
6368         * lib/unictype/combiningclass_byname.gperf: New file.
6369         * modules/unictype/combining-class-byname: New file.
6370
6371         Tests for module 'unictype/combining-class-longname'.
6372         * modules/unictype/combining-class-longname-tests: New file.
6373         * tests/unictype/test-combiningclass_longname.c: New file.
6374
6375         New module 'unictype/combining-class-longname'.
6376         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
6377         * lib/unictype/combiningclass_longname.c: New file.
6378         * modules/unictype/combining-class-longname: New file.
6379
6380         Tests for module 'unictype/combining-class-name'.
6381         * modules/unictype/combining-class-name-tests: New file.
6382         * tests/unictype/test-combiningclass_name.c: New file.
6383
6384         New module 'unictype/combining-class-name'.
6385         * lib/unictype.in.h (uc_combining_class_name): New declaration.
6386         * lib/unictype/combiningclass_name.c: New file.
6387         * modules/unictype/combining-class-name: New file.
6388
6389 2011-03-25  Bruno Haible  <bruno@clisp.org>
6390
6391         unictype/combining-class: Rename source files.
6392         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
6393         of unictype/combining.h.
6394         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
6395         Update.
6396         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
6397         * modules/unictype/combining-class (Description): Fix.
6398         (Files, Makefile.am): Update.
6399         * tests/unictype/test-combiningclass.c: Renamed from
6400         tests/unictype/test-combining.c.
6401         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
6402
6403 2011-03-25  Bruno Haible  <bruno@clisp.org>
6404
6405         unictype: Update list of canonical combining classes.
6406         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
6407
6408 2011-03-25  Bruno Haible  <bruno@clisp.org>
6409
6410         unictype/category-byname: Recognize long names as well.
6411         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
6412         a long name.
6413         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
6414         unictype/categ_byname.h.
6415         (UC_CATEGORY_INDEX_*): New enumeration values.
6416         (uc_general_category_byname): Use uc_general_category_lookup and
6417         convert from index to value.
6418         * lib/unictype/categ_byname.gperf: New file.
6419         * modules/unictype/category-byname (Files): Add
6420         lib/unictype/categ_byname.gperf.
6421         (Depends-on): Add gperf.
6422         (Makefile.am): Add rule for generating unictype/categ_byname.h.
6423         * tests/unictype/test-categ_byname.c (main): Test the recognition of
6424         long names.
6425
6426         Tests for module 'unictype/category-longname'.
6427         * modules/unictype/category-longname-tests: New file.
6428         * tests/unictype/test-categ_longname.c: New file.
6429
6430         New module 'unictype/category-longname'.
6431         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
6432         * lib/unictype/categ_longname.c: New file.
6433         * modules/unictype/category-longname: New file.
6434         * modules/unictype/category-all (Depends-on): Add it.
6435
6436 2011-03-25  Bruno Haible  <bruno@clisp.org>
6437
6438         Tests for module 'unictype/category-LC'.
6439         * modules/unictype/category-LC-tests: New file.
6440         * tests/unictype/test-categ_LC.c: New file, automatically generated.
6441
6442         New module 'unictype/category-LC'.
6443         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
6444         (UC_CATEGORY_LC): New declaration.
6445         (UC_CASED_LETTER): New macro.
6446         * lib/gen-uni-tables.c (is_category_LC): New function.
6447         (output_categories): Also handle category LC.
6448         (UC_CATEGORY_MASK_LC): New enumeration value.
6449         (general_category_byname): Also handle category LC.
6450         * lib/unictype/categ_LC.c: New file.
6451         * lib/unictype/categ_LC.h: New file, automatically generated.
6452         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
6453         category LC.
6454         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
6455         * modules/unictype/category-LC: New file.
6456         * modules/unictype/category-byname (Depends-on): Add
6457         unictype/category-LC.
6458         * modules/unictype/category-all (Depends-on): Likewise.
6459
6460 2011-03-25  Eric Blake  <eblake@redhat.com>
6461
6462         xmalloc: revert yesterday's regression
6463         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
6464         realloc's underlying behavior (allowing allocation of zero-size
6465         objects, especially if malloc-gnu is also in use).
6466
6467 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
6468
6469         maint.mk: add missing version to VC-tag
6470         * top/maint.mk: git tag was missing actual tag name; add it.
6471
6472         valgrind: do leak checking, and exit with code 1 on error (not 0)
6473         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
6474         to VALGRIND.
6475
6476 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
6477
6478         posix-modules: say what it does.
6479         * posix-modules: Add a line to the --help output saying what it does.
6480
6481 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
6482
6483         xmalloc: Do not leak if underlying realloc is C99 compatible.
6484         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
6485         This avoids a leak on C99-based systems.  See
6486         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
6487
6488 2011-03-24  Eric Blake  <eblake@redhat.com>
6489
6490         realloc: document portability problem
6491         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
6492         passing 0 size to realloc.
6493
6494 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
6495
6496         doc: update users.txt
6497         * users.txt: Add cvsps, tmpwatch
6498
6499 2011-03-23  Matt Rice  <ratmice@gmail.com>
6500
6501         doc: update users.txt
6502         * users.txt: Add gdb.
6503
6504 2011-03-23  Jim Meyering  <meyering@redhat.com>
6505
6506         doc: update users.txt
6507         Looking through matches up to the following URL (there are still
6508         several more pages), I found several projects that use gnulib:
6509         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
6510         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
6511         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
6512
6513 2011-03-22  Bruno Haible  <bruno@clisp.org>
6514
6515         unictype/bidi*: Rename functions.
6516         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
6517         uc_bidi_class, uc_is_bidi_class): New declarations.
6518         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
6519         uc_bidi_category_byname.
6520         (uc_bidi_category_byname): New function.
6521         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
6522         u_bidi_category_name.
6523         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
6524         (uc_bidi_category_name): New function.
6525         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
6526         uc_bidi_category.
6527         (uc_bidi_category): New function.
6528         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
6529         uc_is_bidi_category. Invoke uc_bidi_class.
6530         (uc_is_bidi_category): New function.
6531         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
6532         instead of uc_bidi_category_byname.
6533         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
6534         instead of uc_bidi_category_name.
6535         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
6536         uc_bidi_category.
6537         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
6538         instead of uc_is_bidi_category.
6539
6540 2011-03-21  Bruno Haible  <bruno@clisp.org>
6541
6542         New module 'unictype/joininggroup-all'.
6543         * modules/unictype/joininggroup-all: New file.
6544
6545         Tests for module 'unictype/joininggroup-of'.
6546         * modules/unictype/joininggroup-of-tests: New file.
6547         * tests/unictype/test-joininggroup_of.c: New file.
6548         * tests/unictype/test-joininggroup_of.h: New file, automatically
6549         generated by gen-uni-tables.
6550
6551         New module 'unictype/joininggroup-of'.
6552         * modules/unictype/joininggroup-of: New file.
6553         * lib/unictype/joininggroup_of.c: New file.
6554         * lib/unictype/joininggroup_of.h: New file, automatically generated by
6555         gen-uni-tables.
6556
6557         Tests for module 'unictype/joininggroup-byname'.
6558         * modules/unictype/joininggroup-byname-tests: New file.
6559         * tests/unictype/test-joininggroup_byname.c: New file.
6560
6561         New module 'unictype/joininggroup-byname'.
6562         * modules/unictype/joininggroup-byname: New file.
6563         * lib/unictype/joininggroup_byname.c: New file.
6564         * lib/unictype/joininggroup_byname.gperf: New file.
6565
6566         Tests for module 'unictype/joininggroup-name'.
6567         * modules/unictype/joininggroup-name-tests: New file.
6568         * tests/unictype/test-joininggroup_name.c: New file.
6569
6570         New module 'unictype/joininggroup-name'.
6571         * modules/unictype/joininggroup-name: New file.
6572         * lib/unictype/joininggroup_name.c: New file.
6573         * lib/unictype/joininggroup_name.h: New file.
6574
6575         New module 'unictype/joiningtype-all'.
6576         * modules/unictype/joiningtype-all: New file.
6577
6578         Tests for module 'unictype/joiningtype-of'.
6579         * modules/unictype/joiningtype-of-tests: New file.
6580         * tests/unictype/test-joiningtype_of.c: New file.
6581         * tests/unictype/test-joiningtype_of.h: New file, automatically
6582         generated by gen-uni-tables.
6583
6584         New module 'unictype/joiningtype-of'.
6585         * modules/unictype/joiningtype-of: New file.
6586         * lib/unictype/joiningtype_of.c: New file.
6587         * lib/unictype/joiningtype_of.h: New file, automatically generated by
6588         gen-uni-tables.
6589
6590         Tests for module 'unictype/joiningtype-byname'.
6591         * modules/unictype/joiningtype-byname-tests: New file.
6592         * tests/unictype/test-joiningtype_byname.c: New file.
6593
6594         New module 'unictype/joiningtype-byname'.
6595         * modules/unictype/joiningtype-byname: New file.
6596         * lib/unictype/joiningtype_byname.c: New file.
6597
6598         Tests for module 'unictype/joiningtype-name'.
6599         * modules/unictype/joiningtype-name-tests: New file.
6600         * tests/unictype/test-joiningtype_name.c: New file.
6601
6602         New module 'unictype/joiningtype-name'.
6603         * modules/unictype/joiningtype-name: New file.
6604         * lib/unictype/joiningtype_name.c: New file.
6605
6606         unictype: Add support for Arabic shaping properties.
6607         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
6608         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
6609         declarations.
6610         (UC_JOINING_GROUP_*): New enumeration values.
6611         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
6612         declarations.
6613         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
6614         (unicode_joining_type): New variable.
6615         (UC_JOINING_GROUP_*): New enumeration values.
6616         (unicode_joining_group): New variable.
6617         (fill_arabicshaping, joining_type_as_c_identifier,
6618         output_joining_type_test, output_joining_type,
6619         joining_group_as_c_identifier, output_joining_group_test,
6620         output_joining_group): New functions.
6621         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
6622         fill_arabicshaping and output_joining_type_test, output_joining_type,
6623         output_joining_group_test, output_joining_group.
6624         Reported by Simon Josefsson.
6625
6626 2011-03-21  Jim Meyering  <meyering@redhat.com>
6627
6628         strftime: fix a bug in yesterday's change
6629         * lib/strftime.c (add): Accommodate width's initial value of -1.
6630         Otherwise, nstrftime would copy uninitialized data into
6631         the result buffer.
6632
6633 2011-03-21  Jim Meyering  <meyering@redhat.com>
6634
6635         tests: add strftime-tests module
6636         * tests/test-strftime.c: New file.
6637         * modules/strftime-tests: New module.
6638
6639 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6640
6641         strftime: don't assume a byte count fits in 'int'
6642         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
6643         found this problem by static analysis, using gcc -Wstrict-overflow
6644         (GCC 4.5.2, x86-64).  This reported an optimization that depended
6645         on an integer overflow having undefined behavior, but it turns out
6646         that the argument is a size, which might not fit in 'int' anyway,
6647
6648 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6649
6650         stdio: don't require ignore_value around fwrite
6651
6652         This patch works around libc bug 11959
6653         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
6654         Without this patch, applications must often write
6655         ignore_value (fwrite (...)) even though the ignore_value is
6656         not helpful here.  It's common to write many objects, using
6657         fwrite/printf/etc., and then use ferror to detect output error.
6658
6659         I considered making this patch optional, but decided against it,
6660         because libc is obviously being inconsistent here: there is no
6661         reason libc should insist that user code must inspect fwrite
6662         return's value without also insisting that it inspect printf's,
6663         putchar's, etc.  If user code wants to have a strict style where
6664         all these functions' values are checked (so that ferror need not
6665         be checked), we could add support for that style in a new gnulib
6666         module, but in the meantime it's better to be consistent and to
6667         support common usage.
6668
6669         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
6670         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
6671         that we are compiling in checking mode, and if not C++, and
6672         if not already wrapping fwrite for some other reason.
6673         (fwrite): #define to rpl_fwrite if the latter is defined.
6674
6675 2011-03-20  Bruno Haible  <bruno@clisp.org>
6676
6677         verror: Fix compilation error introduced on 2011-02-13.
6678         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
6679         instead of __attribute__.
6680         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6681
6682 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
6683             Bruno Haible  <bruno@clisp.org>
6684
6685         socklen: do not depend on sys_socket
6686         While trying to modify Emacs to use gnulib's socklen module,
6687         I discovered a circular dependency: socklen depends on sys_socket
6688         and vice versa.  Emacs can use socklen, but it does not need
6689         sys_socket because it has its own substitute for sys/socket.h.
6690         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
6691         gl_TYPE_SOCKLEN_T.
6692         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
6693         gl_PREREQ_SYS_H_SOCKET.
6694         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
6695         gl_PREREQ_SYS_H_SOCKET.
6696         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
6697         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
6698         * modules/socklen (Depends-on): Do not depend on sys_socket.
6699         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
6700
6701 2011-03-20  Jim Meyering  <meyering@redhat.com>
6702
6703         maint.mk: sort file names *after* new transformation
6704         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
6705         prefix would have led to an unwarranted failure in GNU parted.
6706         Sort after that transformation.
6707
6708 2011-03-19  Jim Meyering  <meyering@redhat.com>
6709
6710         maint.mk: fix po-file syntax-check rule
6711         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
6712         Patch by Bruno Haible.
6713
6714 2011-03-19  Bruno Haible  <bruno@clisp.org>
6715
6716         socklen: Update comment.
6717         * m4/socklen.m4: Update comment about platforms.
6718
6719 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6720             Bruno Haible  <bruno@clisp.org>
6721
6722         inet_ntop, inet_pton: Simplify.
6723         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
6724         documented to provide socklen_t and we already depend on sys_socket.
6725         * modules/inet_pton (Depends-on): Likewise.
6726         * lib/arpa_inet.in.h: Adjust comment.
6727
6728 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6729             Bruno Haible  <bruno@clisp.org>
6730
6731         netdb: Simplify.
6732         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
6733         documented to provide socklen_t and we already depend on sys_socket.
6734         * lib/netdb.in.h: Adjust comment.
6735
6736 2011-03-19  Bruno Haible  <bruno@clisp.org>
6737
6738         sys_socket, netdb: Document problem with socklen_t.
6739         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
6740         platforms.
6741         * doc/posix-headers/netdb.texi: Likewise.
6742
6743 2011-03-18  Eric Blake  <eblake@redhat.com>
6744
6745         maint.mk: let po check work in VPATH build
6746         * top/maint.mk (po_file): Allow cfg.mk override.
6747         (sc_po_check): Allow VPATH use.
6748         Reported by Jiri Denemark.
6749
6750 2011-03-16  Jim Meyering  <meyering@redhat.com>
6751
6752         maint.mk: allow fine-grained syntax-check exclusion via Make variables
6753         Before, you would have had to create one .x-sc_ file per rule in order
6754         to exempt offending files.  Now, you may instead use a Make variable --
6755         usually defined in cfg.mk -- whose name identifies the affected rule.
6756         * top/maint.mk (_sc_excl): Define.
6757         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
6758         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
6759
6760 2011-03-13  Bruno Haible  <bruno@clisp.org>
6761
6762         ignore-value tests: Avoid warnings.
6763         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
6764         empty for gcc < 3.4.
6765
6766 2011-03-13  Bruno Haible  <bruno@clisp.org>
6767
6768         passfd: Fix link error on Solaris.
6769         * modules/passfd (Description): Correct.
6770         (Depends-on): Add socketlib.
6771         (Link): New section.
6772         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
6773
6774 2011-03-13  Bruno Haible  <bruno@clisp.org>
6775
6776         passfd: Fix link error on AIX 5.2.
6777         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
6778
6779 2011-03-13  Bruno Haible  <bruno@clisp.org>
6780
6781         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
6782         * lib/sys_socket.in.h: Include <stddef.h>.
6783         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
6784         CMSG_FIRSTHDR. Remove unused variable.
6785
6786 2011-03-13  Bruno Haible  <bruno@clisp.org>
6787
6788         passfd: Fix compilation error on OpenBSD.
6789         * lib/passfd.c: Include <sys/uio.h>.
6790
6791 2011-03-13  Bruno Haible  <bruno@clisp.org>
6792
6793         passfd test: Fix warnings.
6794         * tests/test-passfd.c: Include <sys/wait.h>.
6795         (main): Fix typo.
6796
6797 2011-03-13  Bruno Haible  <bruno@clisp.org>
6798
6799         passfd module, part 4, tweaks.
6800         * tests/test-passfd.c: Reorder includes.
6801         (main): Fix perror and printf calls.
6802
6803 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6804
6805         passfd module, part 4.
6806         * modules/passfd-tests: New file.
6807         * tests/test-passfd.c: New file.
6808
6809 2011-03-13  Jim Meyering  <meyering@redhat.com>
6810
6811         Makefile: rely on GNU make; derive syntax-check rule names
6812         Rather than requiring that each sc_ rule be listed as a dependent
6813         of "check", use features of GNU make to derive the list.
6814         * Makefile (syntax-check-rules): Define.
6815         (check): Depend on the new variable, not the hard-coded list.
6816
6817 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
6818             Bruno Haible  <bruno@clisp.org>
6819
6820         passfd module, part 3.
6821         * lib/passfd.h (recvfd): Add a flags argument.
6822         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
6823         (recvfd): Add a flags argument.
6824         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
6825         exists.
6826         * modules/passfd (Depends-on): Add cloexec.
6827         Suggested by Eric Blake.
6828
6829 2011-03-13  Bruno Haible  <bruno@clisp.org>
6830
6831         passfd module, part 2, tweaks.
6832         * modules/passfd (Files): Reorder.
6833         (Depends-on): Remove errno.
6834         (Include): Remove <sys/socket.h>, <sys/un.h>.
6835         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
6836         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
6837         specification header. Include <sys/socket.h> always. Don't include
6838         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
6839         (sendfd): Clarify that it sets errno when it fails.
6840         (recvfd): Fix specification.
6841
6842 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6843
6844         passfd module, part 2.
6845         * modules/passfd: New file.
6846         * lib/passfd.h: New file.
6847         * lib/passfd.c: New file.
6848
6849 2011-03-12  Bruno Haible  <bruno@clisp.org>
6850
6851         wcswidth, mbswidth: Avoid integer overflow.
6852         * lib/wcswidth.c: Include <limits.h>.
6853         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
6854         * lib/mbswidth.c: Include <limits.h>.
6855         (mbsnwidth): Avoid 'int' overflow.
6856         Reported by Jim Meyering.
6857
6858 2011-03-12  Bruno Haible  <bruno@clisp.org>
6859
6860         futimens, utimensat: Avoid endless recursion on Solaris 10.
6861         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
6862         Solaris.
6863         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
6864         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
6865
6866 2011-03-11  Jim Meyering  <meyering@redhat.com>
6867
6868         maint.mk: relax a regexp to accommodate other formatting styles
6869         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
6870         between "ngettext" and the following "(".
6871
6872 2011-03-11  Pádraig Brady <P@draigBrady.com>
6873
6874         maint.mk: suppress a false positive warning
6875         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
6876         diagnostics are marked with ngettext.
6877
6878 2011-03-10  Eric Blake  <eblake@redhat.com>
6879
6880         wchar: add explicit dependencies, for Tru64
6881         * modules/mbmemcasecoll (Depends-on): Add wchar.
6882         * modules/mbtowc (Depends-on): Likewise.
6883         * modules/vasnprintf (Depends-on): Likewise.
6884         * modules/unistdio/u-printf-args (Depends-on): Likewise.
6885         * modules/wctomb (Depends-on): Likewise.
6886         Reported by Peter O'Gorman.
6887
6888 2011-03-08  Bruno Haible  <bruno@clisp.org>
6889
6890         passfd module, part 1, tweaks.
6891         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
6892         Improve indentation. Improve AC_MSG_CHECKING messages.
6893         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
6894         gl_SOCKET_FAMILIES.
6895
6896 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
6897
6898         passfd module, part 1.
6899         * m4/afunix.m4: New file.
6900         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
6901         sockets.
6902
6903 2011-03-08  Bruno Haible  <bruno@clisp.org>
6904
6905         regex-quote: New API.
6906         * lib/regex-quote.h: Include <stdbool.h>.
6907         (struct regex_quote_spec): New type.
6908         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
6909         New declarations.
6910         (regex_quote_length, regex_quote_copy, regex_quote): Take a
6911         'const struct regex_quote_spec *' argument.
6912         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
6913         (pcre_special): New constant.
6914         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
6915         New functions.
6916         (regex_quote_length, regex_quote_copy, regex_quote): Take a
6917         'const struct regex_quote_spec *' argument.
6918         * modules/regex-quote (Depends-on): Add stdbool.
6919         * tests/test-regex-quote.c (check): Update for new API. Add test for
6920         anchored results.
6921         * NEWS: Mention the API change.
6922         Reported by Reuben Thomas and Eric Blake.
6923
6924 2011-03-06  Bruno Haible  <bruno@clisp.org>
6925
6926         regex-quote: Fix creation of POSIX extended regular expressions.
6927         * lib/regex-quote.c (ere_special): Add grouping and alternation
6928         operators.
6929
6930 2011-03-05  Bruno Haible  <bruno@clisp.org>
6931
6932         doc: Improve doc regarding autopoint vs. gnulib.
6933         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
6934         disable autopoint while running autoreconf.
6935         Suggested by Ralf Wildenhues.
6936
6937 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6938
6939         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
6940         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
6941
6942 2011-03-03  Bruce Korb  <bkorb@gnu.org>
6943
6944         parse-duration: remove xalloc.h dependency
6945         * lib/parse-duration.c (parse_period): handle NULL return from
6946         strdup instead of calling xstrdup().
6947         * modules/parse-duration: remove "xalloc" dependency
6948
6949 2011-03-03  Matthew Booth  <mbooth@redhat.com>
6950
6951         bootstrap: honor m4_base when running aclocal
6952         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
6953
6954 2011-03-02  Jim Meyering  <meyering@redhat.com>
6955
6956         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
6957         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
6958         on request from Matt Booth.
6959
6960 2011-03-01  Eric Blake  <eblake@redhat.com>
6961
6962         test-link: work on Hurd
6963         * tests/test-link.h (test_link): Hurd rejects linking directories
6964         with EISDIR instead of the POSIX-mandated EPERM.
6965
6966 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
6967
6968         stdio: simplify by moving files to printf-posix, sigpipe
6969         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
6970         since this symbol is needed only if printf is replaced.
6971         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
6972         Require gl_ASM_SYMBOL_PREFIX.
6973         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
6974         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
6975         (Depends-on): Add 'raise'.
6976         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
6977         * modules/stdio (Files): Remove lib/stdio-write.c,
6978         m4/asm-underscore.m4.
6979         (Depends-on): Remove 'raise'.
6980
6981         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
6982         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
6983         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
6984         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
6985
6986 2011-02-28  Bruno Haible  <bruno@clisp.org>
6987
6988         localcharset: Assume ANSI C behaviour of free().
6989         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
6990         calling free().
6991         Suggested by Simon Josefsson <simon@josefsson.org>.
6992
6993 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
6994             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
6995             Bruno Haible  <bruno@clisp.org>  (tiny change)
6996
6997         On Cygwin, use /proc file system instead of win32 API.
6998         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
6999         Win32 file names.
7000         (DllMain): Simplify by removing Cygwin specific code.
7001         (find_shared_library_fullname): Use Linux specific implementation also
7002         for Cygwin.
7003         (get_shared_library_fullname): Update accordingly.
7004         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
7005         Win32 file names.
7006         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
7007         Cygwin specific code.
7008
7009 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
7010             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
7011
7012         Fix OpenMP flag detection for various Fortran compilers.
7013         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
7014         OpenMP-conditional compilation construct, to force compile
7015         failure with missing OpenMP flag.
7016         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
7017
7018 2011-02-25  Eric Blake  <eblake@redhat.com>
7019
7020         strstr: expand test coverage
7021         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
7022         compilation.
7023         * tests/test-memmem.c (main): Duplicate tests.
7024         * tests/test-strcasestr.c (main): Likewise.
7025         * tests/test-c-strcasestr.c (main): Likewise.
7026
7027 2011-02-25  Jim Meyering  <meyering@redhat.com>
7028
7029         maint.mk: detect missing-NL-at-EOF, too
7030         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
7031         it also detects when a file lacks a newline at EOF.
7032         (require_exactly_one_NL_at_EOF_): Renamed from
7033         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
7034         since people may well have .x-sc_... file names tied to the
7035         existing name.  Suggested by Eric Blake.
7036
7037 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
7038
7039         dirname: move m4/dos.m4 functionality into lib/dosname.h
7040
7041         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
7042         extracts symbols from it, puts them into config.h; but it's much
7043         easier to use the symbols directly.  filename.h already does this,
7044         but it disagrees with dos.m4 in some respects.  This patch
7045         introduces a different include file dosname.h that packages up
7046         dos.m4, and then later we can work on merging filename.h and
7047         dosname.h.  Applications that need only the easy-to-configure
7048         symbols should consider including dosname.h rather than dirname.h.
7049         * NEWS: Mention incompatible changes.
7050         * m4/dos.m4: Remove.
7051         * lib/dosname.h, modules/dosname: New files.
7052         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
7053         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
7054         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
7055         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
7056         Include dosname.h, not dirname.h.
7057         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
7058         Include dosname.h, for definitions of symbols like ISSLASH
7059         that used to be in config.h.
7060         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
7061         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7062         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7063         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7064         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
7065         * modules/rmdir (Files): Likewise.
7066         * modules/stat (Files): Likewise.
7067         * modules/unlink (Files): Likewise.
7068         * modules/dirname-lgpl (Depends-on): Add dosname.
7069         * modules/lstat (Depends-on): Likewise.
7070         * modules/openat (Depends-on): Likewise.
7071         * modules/rmdir (Depends-on): Likewise.
7072         * modules/savewd (Depends-on): Likewise.
7073         * modules/stat (Depends-on): Likewise.
7074         * modules/unlink (Depends-on): Likewise.
7075         * modules/openat (Depends-on): Remove dirname-lgpl.
7076         * modules/savewd (Depends-on): Likewise.
7077         * tests/test-dirname.c: Do not use removed symbols like
7078         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
7079         the remaining symbols, e.g., ISSLASH ('\\').
7080
7081 2011-02-25  Eric Blake  <eblake@redhat.com>
7082
7083         strstr: revert patches that introduced bug and pessimization
7084         * lib/str-two-way.h: Add another reference.
7085         (two_way_short_needle, two_way_long_needle): Revert changes from
7086         2011-02-24; they pessimize search speed.
7087         (critical_factorization): Partially revert changes from
7088         2010-06-22; they violate the requirement that the left half of the
7089         needle be smaller than the period of the needle.
7090
7091 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7092
7093         filenamecat: remove unnecessary dependency on dirname-lgpl
7094         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
7095         is no direct dependency, just an indirect one via filenamecat-lgpl.
7096
7097         remove: remove unnecessary use of m4/dos.m4
7098         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
7099         * modules/remove (FILES): Remove m4/dos.m4.
7100
7101         * lib/openat-proc.c: Don't include dirname.h; not needed.
7102
7103         backupfile: remove unnecessary use of m4/dos.m4
7104         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
7105         of its symbols are used by the backupfile code.  backupfile.c does
7106         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
7107         for the rare case of programs that want all their backup file
7108         names to live within 8+3 limits, and dos.m4 doesn't address that.
7109         * modules/backupfile (Files): Remove m4/dos.m4.
7110
7111 2011-02-24  Jim Meyering  <meyering@redhat.com>
7112
7113         strstr: fix a bug whereby strstr would mistakenly return NULL
7114         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
7115         in period calculation.
7116         (two_way_long_needle): Likewise.
7117         The original problem was reported by Mike Stump in
7118         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
7119         Ralf Wildenhues provided the short needle and haystack.
7120         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
7121         Add a more involved test to trigger the bug in two_way_long_needle.
7122
7123 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7124
7125         gnulib-tool: remove use of bold display in help screen
7126         * gnulib-tool (func_usage): Do not use bold display anymore in the
7127         help screen.  That was just meant to be a temporary emphasis for a
7128         backward-incompatible change.
7129
7130 2011-02-23  Bruno Haible  <bruno@clisp.org>
7131
7132         Fix misindentation of preprocessor directives.
7133         * lib/argp-namefrob.h: Reindent preprocessor directives.
7134         * lib/getopt_int.h (struct _getopt_data): Likewise.
7135         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
7136         * lib/vasnprintf.c (decode_long_double): Likewise.
7137         * tests/test-argmatch.c: Insert blank lines, for clarity.
7138         * tests/test-exclude.c: Likewise.
7139
7140 2011-02-22  Bruno Haible  <bruno@clisp.org>
7141
7142         ioctl: Fix for MacOS X in 64-bit mode.
7143         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
7144         value.
7145         Suggested by Eric Blake.
7146         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
7147
7148 2011-02-22  Jim Meyering  <meyering@redhat.com>
7149
7150         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
7151         * Makefile (sc_cpp_indent_check): Don't limit the check to files
7152         in lib/.
7153
7154 2011-02-22  Eric Blake  <eblake@redhat.com>
7155
7156         maint: avoid any CDPATH issue
7157         * Makefile (sc_cpp_indent_check): Anchor cd argument.
7158
7159         maint: adjust cpp indentation for my modules, as well
7160         * Makefile (sc_cpp_indent_check): Add my name.
7161         * lib/fbufmode.c: Filter through cppi.
7162         * lib/fpurge.c: Likewise.
7163         * lib/freadable.c: Likewise.
7164         * lib/freading.c: Likewise.
7165         * lib/fwritable.c: Likewise.
7166         * lib/fwriting.c: Likewise.
7167         * lib/sigaction.c: Likewise.
7168
7169 2011-02-22  Jim Meyering  <meyering@redhat.com>
7170
7171         maint: adjust cpp indentation to reflect nesting depth
7172         I.e., in a block of code that begins with an unnested "#if",
7173         put one space between the "#" in column 1 and following token.
7174         For example,
7175         -#include <sys/vfs.h>
7176         +# include <sys/vfs.h>
7177         Do this only in .c files that are part of a module I maintain.
7178         * lib/linkat.c: Filter through cppi.
7179         * lib/nanosleep.c: Likewise.
7180         * lib/openat.c: Likewise.
7181         * lib/openat-die.c: Likewise.
7182         * lib/dup3.c: Likewise.
7183         * lib/fchownat.c: Likewise.
7184         * lib/flock.c: Likewise.
7185         * lib/fsync.c: Likewise.
7186         * lib/fts.c: Likewise.
7187         * lib/getpass.c: Likewise.
7188         * lib/gettimeofday.c: Likewise.
7189         * lib/userspec.c: Likewise.
7190         * Makefile (sc_cpp_indent_check): New rule, to check this.
7191
7192 2011-02-22  Bruno Haible  <bruno@clisp.org>
7193
7194         New module 'wctomb'.
7195         * lib/stdlib.in.h (wctomb): New declaration.
7196         * lib/wctomb.c: New file.
7197         * lib/wctomb-impl.h: New file.
7198         * m4/wctomb.m4: New file.
7199         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
7200         REPLACE_WCTOMB.
7201         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
7202         REPLACE_WCTOMB.
7203         * modules/wctomb: New file.
7204         * tests/test-stdlib-c++.cc: Test signature of wctomb.
7205         * doc/posix-functions/wctomb.texi: Mention the new module.
7206         * modules/wctob (Depends-on): Add wctomb.
7207
7208 2011-02-22  Bruno Haible  <bruno@clisp.org>
7209
7210         New module 'mbtowc'.
7211         * lib/stdlib.in.h (mbtowc): New declaration.
7212         * lib/mbtowc.c: New file.
7213         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
7214         * m4/mbtowc.m4: New file.
7215         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
7216         REPLACE_MBTOWC.
7217         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
7218         REPLACE_MBTOWC.
7219         * modules/mbtowc: New file.
7220         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
7221         * doc/posix-functions/mbtowc.texi: Mention the new module.
7222         * modules/btowc (Depends-on): Add mbtowc.
7223
7224 2011-02-22  Bruno Haible  <bruno@clisp.org>
7225
7226         wcrtomb: Add more tests for native Windows platforms.
7227         * tests/test-wcrtomb-w32-1.sh: New file.
7228         * tests/test-wcrtomb-w32-2.sh: New file.
7229         * tests/test-wcrtomb-w32-3.sh: New file.
7230         * tests/test-wcrtomb-w32-4.sh: New file.
7231         * tests/test-wcrtomb-w32-5.sh: New file.
7232         * tests/test-wcrtomb-w32.c: New file.
7233         * modules/wcrtomb-tests (Files): Add them.
7234         (Makefile.am): Arrange to run these tests.
7235         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
7236         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
7237
7238 2011-02-20  Bruno Haible  <bruno@clisp.org>
7239
7240         wcrtomb: Enhance test.
7241         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
7242
7243 2011-02-20  Bruno Haible  <bruno@clisp.org>
7244
7245         mbrtowc: Tiny optimization.
7246         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
7247
7248 2011-02-20  Jim Meyering  <meyering@redhat.com>
7249
7250         test-exclude.c: remove unmatched #endif
7251         * tests/test-exclude.c: Remove stray #endif, left over from
7252         the change of a week ago.
7253
7254 2011-02-19  Jim Meyering  <meyering@redhat.com>
7255
7256         git-version-gen: skip "-dirty" check when appropriate
7257         * build-aux/git-version-gen: Don't run any git commands when the
7258         version string comes from .tarball-version.  Prior to this, we
7259         would run git update-index --refresh even from a just-unpacked
7260         tarball directory, and that could affect a .git/ directory in a
7261         parent of the build directory.  Reported by Mike Frysinger.
7262
7263 2011-02-19  Bruno Haible  <bruno@clisp.org>
7264
7265         unictype/property-byname: Reduce the size of the 'data' segment.
7266         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
7267
7268 2011-02-19  Bruno Haible  <bruno@clisp.org>
7269
7270         unictype/scripts: Reduce the size of the 'data' segment.
7271         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
7272         '%pic'.
7273         * lib/unictype/scripts_byname.gperf: Regenerated.
7274
7275 2011-02-19  Bruno Haible  <bruno@clisp.org>
7276
7277         stdint: Update documentation.
7278         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
7279
7280 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
7281
7282         stdint: omit redundant check for wchar.h
7283         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
7284         always tests whether wchar.h exists, so remove the now-redundant test.
7285
7286 2011-02-18  Bruno Haible  <bruno@clisp.org>
7287
7288         stdint: Cut dependency to module 'wchar'.
7289         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
7290         include the necessary prerequisites.
7291         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
7292         * modules/stdint (Depends-on): Remove wchar.
7293         (Makefile.am): Substitute HAVE_WCHAR_H.
7294         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
7295
7296 2011-02-18  Eric Blake  <eblake@redhat.com>
7297
7298         longlong: skip, rather than fail, on cross-compilation
7299         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
7300         when cross-compiling; regression from 2011-02-16.
7301
7302 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
7303
7304         * NEWS: Mention 2011-02-08 change to stdlib.
7305
7306 2011-02-17  Bruno Haible  <bruno@clisp.org>
7307
7308         getloadavg: Add comments about platforms.
7309         * m4/getloadavg.m4: Add comment.
7310         * lib/getloadavg.c: Likewise.
7311
7312 2011-02-17  Bruno Haible  <bruno@clisp.org>
7313
7314         getloadavg: Fix link error on Solaris 2.6.
7315         * modules/getloadavg (Link): New section.
7316         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
7317         linking test-getloadavg.
7318         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
7319         getloadavg.
7320
7321 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
7322
7323         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
7324         It was 'int', but this doesn't match the IRIX 6.5 manual.
7325         Suggested by Bruno Haible in
7326         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
7327
7328 2011-02-17  Bruno Haible  <bruno@clisp.org>
7329
7330         havelib: Fix comments.
7331         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
7332         change.
7333
7334 2011-02-17  Bruno Haible  <bruno@clisp.org>
7335
7336         havelib: Update config.rpath.
7337         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
7338
7339 2011-02-17  Bruno Haible  <bruno@clisp.org>
7340
7341         getloadavg test: Add some plausibility checks.
7342         * tests/test-getloadavg.c (check_avg): Print a warning when the value
7343         is improbable.
7344
7345 2011-02-16  Eric Blake  <eblake@redhat.com>
7346
7347         maintainer-makefile: make syntax-check a no-op from tarballs
7348         * top/maint.mk (no-vc-detected): New rule.
7349         (local-checks-available): Use it to avoid hanging if someone tries
7350         'make syntax-check' from a tarball.  Also append to any non-syntax
7351         checks already defined in cfg.mk.
7352
7353 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
7354
7355         longlong: tune, particularly for common case of c99
7356
7357         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
7358         or running anything if c99, or if unsigned long long int does not
7359         work.  In either case, we know the answer without further tests.
7360         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
7361         it at most once, and use its results for both long long int and
7362         unsigned long long int.  This is more likely to be efficient in
7363         the common case where the program wants to check for both long
7364         long int and unsigned long long int.
7365         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
7366         since the answer is already known.
7367
7368 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
7369
7370         getloadavg: set errno
7371         * lib/getloadavg.c: Set errno when returning -1.  If no other
7372         error number looks appropriate, set it to ENOSYS if the getloadavg
7373         looks like it can't possibly ever work, ENOTSUP otherwise.
7374         Suggested by Bruno Haible in
7375         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
7376
7377         getloadavg: trim unused parts and speed up 'configure'
7378         * NEWS: Document this.
7379         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
7380         always compiled if getloadavg is absent.
7381         Move test code to ...
7382         * tests/test-getloadavg.c: New file, containing previous
7383         contents of test from lib/getloadavg.c.  It also contains
7384         suggestions by Bruno Haible in
7385         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
7386         * modules/getloadavg-tests: New file.
7387         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
7388         Do tests in the same order as they're needed for getloadavg.c.
7389         Omit setgid-related tests that generate symbols KMEM_GROUP,
7390         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
7391         Do only the tests that are needed to see whether the system has
7392         getloadavg, moving the other tests into ...
7393         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
7394         NLIST_NAME_UNION; nobody should be using it.  Do not define
7395         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
7396         relevant, as the user of this module shouldn't care how getloadavg
7397         is implemented.
7398
7399         getloadavg: omit unused var
7400         * lib/getloadavg.c (getloadavg): Omit unused local variable.
7401
7402 2011-02-15  Jim Meyering  <meyering@redhat.com>
7403
7404         doc: update users.txt
7405         * users.txt: Update iwhd's URL.
7406
7407 2011-02-13  Bruno Haible  <bruno@clisp.org>
7408
7409         Consistent macro naming for macros that use GCC __attribute__.
7410         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
7411         _ATTRIBUTE_NONNULL_.
7412         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
7413         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
7414         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
7415         ATTRIBUTE_DEPRECATED.
7416         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
7417         ATTRIBUTE_NORETURN.
7418         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7419         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7420         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7421         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
7422         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
7423         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
7424         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
7425         ATTRIBUTE_SENTINEL.
7426         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
7427         ATTRIBUTE_RETURN_CHECK.
7428         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
7429         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
7430         ATTRIBUTE_NORETURN.
7431         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
7432         Reported by Paul Eggert.
7433
7434 2011-02-13  Bruno Haible  <bruno@clisp.org>
7435
7436         Don't interfere with a program's definition of __attribute__.
7437         * lib/argp.h (__attribute__): Remove definition.
7438         (_GL_ATTRIBUTE_FORMAT): New macro.
7439         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
7440         * lib/argp-fmtstream.h (__attribute__): Remove definition.
7441         (_GL_ATTRIBUTE_FORMAT): New macro.
7442         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
7443         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
7444         GCC 3 or newer.
7445         * lib/error.h (__attribute__): Remove definition.
7446         (_GL_ATTRIBUTE_FORMAT): New macro.
7447         (error, error_at_line): Use it.
7448         * lib/hash.h (__attribute__): Remove definition.
7449         (ATTRIBUTE_WUR): Update definition. Define always.
7450         * lib/openat.h (__attribute__): Remove definition.
7451         (ATTRIBUTE_NORETURN): Update definition. Define always.
7452         * lib/sigpipe-die.h (__attribute__): Remove definition.
7453         (ATTRIBUTE_NORETURN): Update definition. Define always.
7454         * lib/vasnprintf.h (__attribute__): Remove definition.
7455         (_GL_ATTRIBUTE_FORMAT): New macro.
7456         (asnprintf, vasnprintf): Use it.
7457         * lib/xalloc.h (__attribute__): Remove definition.
7458         (ATTRIBUTE_NORETURN): Update definition. Define always.
7459         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
7460         * lib/xmemdup0.h (__attribute__): Remove definition.
7461         (ATTRIBUTE_NORETURN): Update definition. Define always.
7462         * lib/xprintf.h (__attribute__): Remove definition.
7463         (_GL_ATTRIBUTE_FORMAT): New macro.
7464         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
7465         * lib/xstrtol.h (__attribute__): Remove definition.
7466         (ATTRIBUTE_NORETURN): Update definition. Define always.
7467         * lib/xvasprintf.h (__attribute__): Remove definition.
7468         (_GL_ATTRIBUTE_FORMAT): New macro.
7469         (xasprintf, xvasprintf): Use it.
7470         * tests/test-argmatch.c (__attribute__): Remove definition.
7471         (ATTRIBUTE_NORETURN): Update definition. Define always.
7472         * tests/test-exclude.c (__attribute__): Remove definition.
7473         (ATTRIBUTE_NORETURN): Update definition. Define always.
7474         Reported by Paul Eggert.
7475
7476 2011-02-13  Bruno Haible  <bruno@clisp.org>
7477
7478         mbrtowc: Add more tests for native Windows platforms.
7479         * tests/test-mbrtowc-w32-1.sh: New file.
7480         * tests/test-mbrtowc-w32-2.sh: New file.
7481         * tests/test-mbrtowc-w32-3.sh: New file.
7482         * tests/test-mbrtowc-w32-4.sh: New file.
7483         * tests/test-mbrtowc-w32-5.sh: New file.
7484         * tests/test-mbrtowc-w32.c: New file.
7485         * modules/mbrtowc-tests (Files): Add them.
7486         (Makefile.am): Arrange to run these tests.
7487         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
7488         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
7489
7490 2011-02-13  Bruno Haible  <bruno@clisp.org>
7491
7492         mbrtowc: Work around native Windows bug.
7493         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
7494         guess when no suitable locale for testing was found.
7495         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
7496
7497 2011-02-13  Bruno Haible  <bruno@clisp.org>
7498
7499         mbsinit: Work around mingw bug.
7500         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
7501         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
7502         Windows.
7503         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
7504
7505 2011-02-13  Bruno Haible  <bruno@clisp.org>
7506
7507         mbsinit: Don't crash for a NULL argument.
7508         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
7509         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
7510
7511 2011-02-13  Bruno Haible  <bruno@clisp.org>
7512
7513         Don't interfere with a program's definition of __attribute__.
7514         * lib/stdio.in.h (__attribute__): Remove definition.
7515         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
7516         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
7517         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
7518         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
7519         * lib/string.in.h (__attribute__): Remove definition.
7520         Reported by Paul Eggert.
7521
7522 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7523
7524         stdlib: don't get in the way of non-GCC __attribute__
7525         See thread starting at
7526         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
7527         Revert previous stdlib change, installing the following instead:
7528         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
7529         to get in the way of a non-GCC compiler that supports __attribute__.
7530         (_GL_ATTRIBUTE_RETURN): New macro.
7531         (_Exit): Use it instead of __attribute__.
7532
7533 2011-02-12  Bruno Haible  <bruno@clisp.org>
7534
7535         quotearg test: Avoid test failure on mingw.
7536         * tests/test-quotearg.sh: Convert the locale identifier from native
7537         Windows syntax to Unix syntax.
7538
7539 2011-02-12  Bruno Haible  <bruno@clisp.org>
7540
7541         setlocale: Prefer gnulib's override over libintl's override.
7542         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
7543         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
7544         GNULIB_defined_setlocale is set.
7545
7546 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7547
7548         stdlib: support non-GCC __attribute__
7549
7550         Fix a serious and tricky problem encountered when attempting to
7551         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
7552         5.5, but it crashed due to memory corruption on Solaris 10 with
7553         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
7554         bits that are otherwise zero.  This tagging is optional inside
7555         Emacs but is preferred and is used when __attribute__ ((__aligned
7556         (8))) works, as it does with both recent-enough GCC and with Sun C
7557         5.11.  However, Sun C 5.11 is not GCC and does not #define
7558         __GNUC__ and __GNUC_MINOR__.
7559
7560         When I added the getloadavg module to Emacs, it brought in
7561         stdlib.in.h, which contained this fragment:
7562
7563            #ifndef __attribute__
7564            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
7565            #  define __attribute__(Spec)   /* empty */
7566            # endif
7567            #endif
7568
7569         When files that include <stdlib.h> were compiled with Sun C 5.11,
7570         the above code disabled __attribute__ ((__aligned (8))), which
7571         caused variables to not be properly aligned, which eventually led
7572         to the pointer corruption mentioned above.  (This was a bit hard
7573         to diagnose, unfortunately.)
7574
7575         Several "#define __attribute__(X) /* empty */" code snippets need
7576         to be eradicated from Gnulib to work with non-GCC compilers that
7577         support __attribute__.  The Autoconf way to do this is to test for
7578         each kind of attribute that we want support for, and selectively
7579         enable that in source code.
7580
7581         Fix this problem just for stdlib.h, by adding a test for the
7582         __noreturn__ attribute, and change stdlib.in.h to use that test
7583         when needed.  This technique can be easily generalized to the
7584         other *.in.h files and attributes, and a similar technique can be
7585         used for *.h and *.c files.  This patch is enough to solve the
7586         problem for Emacs + getloadavg, and I thought I'd publish it for
7587         feedback before undertaking further, similar fixes in other
7588         modules.
7589
7590         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
7591         because it's not needed for stdlib.h.  It merely substitutes the
7592         value directly into stdlib.h.  We may well need to #define it, or
7593         similar symbols, for other modules, but it's nice to also have an
7594         option to not #define it for applications like Emacs that do not
7595         need it.
7596
7597         * lib/stdlib.in.h (__attribute__): Do not #define.
7598         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
7599         be defined only if the _Exit module is also used.
7600         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
7601         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
7602         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
7603         platforms.
7604         * modules/_Exit (Files): Add m4/attribute.m4.
7605         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
7606         * m4/attribute.m4: New file.
7607
7608 2011-02-12  Bruno Haible  <bruno@clisp.org>
7609
7610         wcsrtombs: Work around bug on native Windows.
7611         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
7612         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
7613         instead of len.
7614         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
7615
7616 2011-02-12  Bruno Haible  <bruno@clisp.org>
7617
7618         mbsrtowcs: Work around bug on native Windows.
7619         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
7620         against mingw bug.
7621         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
7622
7623 2011-02-12  Bruno Haible  <bruno@clisp.org>
7624
7625         Avoid setlocale bugs in tests.
7626         * modules/btowc (Dependencies): Add setlocale.
7627         * modules/c-strcase (Dependencies): Likewise.
7628         * modules/mbmemcasecmp (Dependencies): Likewise.
7629         * modules/mbmemcasecoll (Dependencies): Likewise.
7630         * modules/mbrtowc (Dependencies): Likewise.
7631         * modules/mbscasecmp (Dependencies): Likewise.
7632         * modules/mbscasestr (Dependencies): Likewise.
7633         * modules/mbschr (Dependencies): Likewise.
7634         * modules/mbscspn (Dependencies): Likewise.
7635         * modules/mbsinit (Dependencies): Likewise.
7636         * modules/mbsncasecmp (Dependencies): Likewise.
7637         * modules/mbsnrtowcs (Dependencies): Likewise.
7638         * modules/mbspbrk (Dependencies): Likewise.
7639         * modules/mbspcasecmp (Dependencies): Likewise.
7640         * modules/mbsrchr (Dependencies): Likewise.
7641         * modules/mbsrtowcs (Dependencies): Likewise.
7642         * modules/mbsspn (Dependencies): Likewise.
7643         * modules/mbsstr (Dependencies): Likewise.
7644         * modules/nl_langinfo (Dependencies): Likewise.
7645         * modules/quotearg (Dependencies): Likewise.
7646         * modules/unicase/locale-language (Dependencies): Likewise.
7647         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
7648         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
7649         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
7650         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
7651         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
7652         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
7653         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
7654         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
7655         * modules/vasnprintf-posix (Dependencies): Likewise.
7656         * modules/wcrtomb (Dependencies): Likewise.
7657         * modules/wcsnrtombs (Dependencies): Likewise.
7658         * modules/wcsrtombs (Dependencies): Likewise.
7659
7660 2011-02-12  Bruno Haible  <bruno@clisp.org>
7661
7662         setlocale: Workaround native Windows bug.
7663         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
7664         succeeds but sets LC_CTYPE to "C", report a failure.
7665         * tests/test-setlocale2.sh: New file.
7666         * tests/test-setlocale2.c: New file.
7667         * modules/setlocale-tests (Files): Add the new files.
7668         (Makefile.am): Enable test-setlocale2.sh test.
7669         * doc/posix-functions/setlocale.texi: Mention workaround.
7670
7671 2011-02-11  Bruno Haible  <bruno@clisp.org>
7672
7673         Tests for module 'setlocale'.
7674         * modules/setlocale-tests: New file.
7675         * tests/test-setlocale1.sh: New file.
7676         * tests/test-setlocale1.c: New file.
7677
7678         New module 'setlocale'.
7679         * lib/locale.in.h (setlocale): New declaration.
7680         * lib/setlocale.c: New file, based on
7681         gettext/gettext-runtime/intl/setlocale.c.
7682         * m4/setlocale.m4: New file.
7683         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
7684         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
7685         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
7686         REPLACE_SETLOCALE.
7687         * modules/setlocale: New file.
7688         * tests/test-locale-c++.cc: Test the declaration of setlocale.
7689         * doc/posix-functions/setlocale.texi: Mention the new module.
7690
7691 2011-02-11  Bruno Haible  <bruno@clisp.org>
7692
7693         Prepare for locale dependent tests on mingw.
7694         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
7695         because it has the wrong locale encoding.
7696         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
7697         French_France.1252 instead of "fr".
7698         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
7699         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
7700         because it has the wrong locale encoding.
7701         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
7702         native Windows, try Turkish_Turkey.65001.
7703         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
7704         Chinese_China.54936.
7705
7706         Prepare for locale dependent tests on mingw.
7707         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
7708         differently.
7709         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
7710         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
7711         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
7712         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7713
7714 2011-02-11  Eric Blake  <eblake@redhat.com>
7715
7716         strptime: avoid compiler warnings
7717         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
7718         compiler warnings about dead code.
7719         Reported by Daniel P. Berrange.
7720
7721 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
7722
7723         doc: update users.txt
7724         * users.txt: Add rcs.
7725
7726 2011-02-10  John W. Eaton  <jwe@gnu.org>
7727
7728         doc: update users.txt
7729         * users.txt: Add octave.
7730
7731 2011-02-10  Jim Meyering  <meyering@redhat.com>
7732
7733         doc: update users.txt
7734         * users.txt: Add iwhd.
7735
7736 2011-02-09  Bruno Haible  <bruno@clisp.org>
7737
7738         gnulib-tool: Make copyright notice adjustment more robust.
7739         * gnulib-tool (func_import): In sed_transform_main_lib_file,
7740         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
7741         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
7742         License".
7743         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
7744
7745 2011-02-06  Bruno Haible  <bruno@clisp.org>
7746
7747         New module 'towctrans'.
7748         * modules/towctrans: New file.
7749         * lib/wctype.in.h (towctrans): New declaration.
7750         * lib/towctrans.c: New file.
7751         * lib/towctrans-impl.h: New file.
7752         * m4/towctrans.m4: New file.
7753         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
7754         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
7755         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
7756         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
7757         * doc/posix-functions/towctrans.texi: Mention the new module.
7758
7759 2011-02-06  Bruno Haible  <bruno@clisp.org>
7760
7761         New module 'wctrans'.
7762         * modules/wctrans: New file.
7763         * lib/wctype.in.h (wctrans): New declaration.
7764         * lib/wctrans.c: New file.
7765         * lib/wctrans-impl.h: New file.
7766         * m4/wctrans.m4: New file.
7767         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
7768         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
7769         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
7770         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
7771         * doc/posix-functions/wctrans.texi: Mention the new module.
7772
7773 2011-02-06  Bruno Haible  <bruno@clisp.org>
7774
7775         New module 'iswctype'.
7776         * modules/iswctype: New file.
7777         * lib/wctype.in.h (iswctype): New declaration.
7778         * lib/iswctype.c: New file.
7779         * lib/iswctype-impl.h: New file.
7780         * m4/iswctype.m4: New file.
7781         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
7782         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
7783         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
7784         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
7785         * doc/posix-functions/iswctype.texi: Mention the new module and the
7786         HP-UX 11.00 problem.
7787
7788 2011-02-06  Bruno Haible  <bruno@clisp.org>
7789
7790         New module 'wctype'.
7791         * modules/wctype: Change to represent the wctype() substitute.
7792         * lib/wctype.in.h (wctype): New declaration.
7793         * lib/wctype.c: New file.
7794         * lib/wctype-impl.h: New file.
7795         * m4/wctype.m4: New file.
7796         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
7797         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
7798         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
7799         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
7800         * doc/posix-functions/wctype.texi: Mention the new module and the
7801         HP-UX 11.00 problem.
7802
7803 2011-02-06  Bruno Haible  <bruno@clisp.org>
7804
7805         wctype-h: Ensure wctype_t and wctrans_t are defined.
7806         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
7807         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
7808         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
7809         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
7810         HAVE_WCTRANS_T.
7811         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
7812
7813 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7814
7815         flock: fix license typo
7816
7817         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
7818         omitted.
7819
7820 2011-02-08  Bruno Haible  <bruno@clisp.org>
7821
7822         Split large sed scripts, for HP-UX sed.
7823         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
7824         to avoid HP-UX limit of 99 commands, in the near future.
7825         * modules/stdlib (Makefile.am): Likewise.
7826         * modules/unistd (Makefile.am): Likewise.
7827         * modules/wchar (Makefile.am): Likewise.
7828         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7829         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
7830         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
7831
7832 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7833             Bruno Haible  <bruno@clisp.org>
7834
7835         stdlib: improve random_r modularization
7836         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
7837         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
7838         you also need the random_r module to get this material right.
7839         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
7840         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
7841         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
7842
7843 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7844
7845         stdlib: don't depend on stdint
7846         * lib/stdlib.in.h: Don't include <stdint.h> merely because
7847         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
7848         be independent of whether stdint.h is needed.
7849         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
7850         here, instead of ...
7851         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
7852         struct random_data should be using the random_r module, not just
7853         the stdlib module (which wouldn't make sense: what package needs
7854         just struct random_data without also needing random_r?).
7855         * modules/stdlib (Depends-on): Remove stdint.
7856
7857         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
7858         See the thread rooted at
7859         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
7860         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
7861         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
7862         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
7863         __VMS)); previously it was always included (via fcntl--.h).
7864         (getloadavg): Do not use c_strtod.  Instead, approximate it by
7865         hand; this is good enough for load averages.  Also, do not use
7866         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
7867         flags directly if available and don't bother otherwise.  (Packages
7868         that need the extra reliability should use the modules that define
7869         these flags on older platforms that lack them.)
7870         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
7871         fcntl-safer.
7872
7873 2011-02-08  Jim Meyering  <meyering@redhat.com>
7874
7875         di-set.h, ino-map.h: add multiple-inclusion guard
7876         Technically, the guard is required only for ino-map.h, due to its
7877         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
7878         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
7879         * lib/ino-map.h: Likewise.
7880
7881 2011-02-06  Bruno Haible  <bruno@clisp.org>
7882
7883         iswblank: Ensure declaration on glibc systems.
7884         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
7885         * modules/iswblank (Dependencies): Add 'extensions'.
7886         * doc/posix-functions/iswblank.texi: Document the glibc problem.
7887
7888 2011-02-06  Bruno Haible  <bruno@clisp.org>
7889
7890         New module 'iswblank'.
7891         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
7892         * modules/iswblank: New file.
7893         * modules/wctype-h (Files): Remove lib/iswblank.c.
7894         (Makefile.am): Substitute GNULIB_ISWBLANK.
7895         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
7896         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
7897         (gl_WCTYPE_H_DEFAULTS): New macro.
7898         (gl_WCTYPE_H): Require it. Remove iswblank related code.
7899         * modules/iswblank-tests: New file.
7900         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
7901         * tests/test-wctype-h.c (main): Remove iswblank tests.
7902         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
7903         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
7904         of 'wctype-h'.
7905         * NEWS: Mention the change.
7906         * modules/mbchar (Depends-on): Add iswblank.
7907
7908 2011-02-08  Bruno Haible  <bruno@clisp.org>
7909
7910         di-set tests: Refactor.
7911         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
7912         unnecessary includes.
7913         (ASSERT): Remove macro.
7914         (main): Make C90 compliant by avoiding variable declaration after
7915         statement.
7916         * modules/di-set-tests (Files): Add tests/macros.h.
7917
7918 2011-02-08  Bruno Haible  <bruno@clisp.org>
7919
7920         ino-map tests: Refactor.
7921         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
7922         unnecessary includes.
7923         (ASSERT): Remove macro.
7924         (main): Make C90 compliant by avoiding variable declaration after
7925         statement.
7926         * modules/ino-map-tests (Files): Add tests/macros.h.
7927
7928 2011-02-08  Jim Meyering  <meyering@redhat.com>
7929
7930         di-set: add "const" to a cast
7931         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
7932         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
7933
7934 2011-02-06  Bruno Haible  <bruno@clisp.org>
7935
7936         Rename module 'wctype' to 'wctype-h'.
7937         * modules/wctype-h: Renamed from modules/wctype.
7938         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
7939         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
7940         (Files, Depends-on, Makefile.am): Update.
7941         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
7942         (Files, Makefile.am): Update.
7943         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
7944         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
7945         * doc/posix-headers/wctype.texi: Update.
7946         * doc/posix-functions/iswalnum.texi: Update.
7947         * doc/posix-functions/iswalpha.texi: Update.
7948         * doc/posix-functions/iswblank.texi: Update.
7949         * doc/posix-functions/iswcntrl.texi: Update.
7950         * doc/posix-functions/iswdigit.texi: Update.
7951         * doc/posix-functions/iswgraph.texi: Update.
7952         * doc/posix-functions/iswlower.texi: Update.
7953         * doc/posix-functions/iswprint.texi: Update.
7954         * doc/posix-functions/iswpunct.texi: Update.
7955         * doc/posix-functions/iswspace.texi: Update.
7956         * doc/posix-functions/iswupper.texi: Update.
7957         * doc/posix-functions/iswxdigit.texi: Update.
7958         * doc/posix-functions/towlower.texi: Update.
7959         * doc/posix-functions/towupper.texi: Update.
7960         * NEWS: Mention the change.
7961         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
7962         * modules/mbchar (Dependencies): Likewise.
7963         * modules/mbswidth (Dependencies): Likewise.
7964         * modules/quotearg (Dependencies): Likewise.
7965         * modules/regex (Dependencies): Likewise.
7966         * modules/wcscasecmp (Dependencies): Likewise.
7967         * modules/wcsncasecmp (Dependencies): Likewise.
7968         * modules/wcwidth (Dependencies): Likewise.
7969
7970 2011-02-06  Bruno Haible  <bruno@clisp.org>
7971
7972         New module 'wcswidth'.
7973         * modules/wcswidth: New file.
7974         * lib/wchar.in.h (wcswidth): New declaration.
7975         * lib/wcswidth.c: New file.
7976         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
7977         * m4/wcswidth.m4: New file.
7978         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
7979         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
7980         REPLACE_WCSWIDTH.
7981         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
7982         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
7983         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
7984         * doc/posix-functions/wcswidth.texi: Mention the new module.
7985
7986 2011-02-06  Bruno Haible  <bruno@clisp.org>
7987
7988         New module 'wcstok'.
7989         * modules/wcstok: New file.
7990         * lib/wchar.in.h (wcstok): New declaration.
7991         * lib/wcstok.c: New file.
7992         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
7993         * m4/wcstok.m4: New file.
7994         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
7995         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
7996         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
7997         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
7998         * doc/posix-functions/wcstok.texi: Mention the new module.
7999
8000 2011-02-06  Bruno Haible  <bruno@clisp.org>
8001
8002         New module 'wcsstr'.
8003         * modules/wcsstr: New file.
8004         * lib/wchar.in.h (wcsstr): New declaration.
8005         * lib/wcsstr.c: New file.
8006         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
8007         * m4/wcsstr.m4: New file.
8008         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
8009         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
8010         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
8011         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
8012         * doc/posix-functions/wcsstr.texi: Mention the new module.
8013
8014 2011-02-06  Bruno Haible  <bruno@clisp.org>
8015
8016         New module 'wcspbrk'.
8017         * modules/wcspbrk: New file.
8018         * lib/wchar.in.h (wcspbrk): New declaration.
8019         * lib/wcspbrk.c: New file.
8020         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
8021         * m4/wcspbrk.m4: New file.
8022         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
8023         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
8024         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
8025         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
8026         * doc/posix-functions/wcspbrk.texi: Mention the new module.
8027
8028 2011-02-06  Bruno Haible  <bruno@clisp.org>
8029
8030         New module 'wcsspn'.
8031         * modules/wcsspn: New file.
8032         * lib/wchar.in.h (wcsspn): New declaration.
8033         * lib/wcsspn.c: New file.
8034         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
8035         * m4/wcsspn.m4: New file.
8036         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
8037         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
8038         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
8039         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
8040         * doc/posix-functions/wcsspn.texi: Mention the new module.
8041
8042 2011-02-06  Bruno Haible  <bruno@clisp.org>
8043
8044         New module 'wcscspn'.
8045         * modules/wcscspn: New file.
8046         * lib/wchar.in.h (wcscspn): New declaration.
8047         * lib/wcscspn.c: New file.
8048         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
8049         * m4/wcscspn.m4: New file.
8050         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
8051         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
8052         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
8053         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
8054         * doc/posix-functions/wcscspn.texi: Mention the new module.
8055
8056 2011-02-06  Bruno Haible  <bruno@clisp.org>
8057
8058         New module 'wcsrchr'.
8059         * modules/wcsrchr: New file.
8060         * lib/wchar.in.h (wcsrchr): New declaration.
8061         * lib/wcsrchr.c: New file.
8062         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
8063         * m4/wcsrchr.m4: New file.
8064         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
8065         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
8066         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
8067         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
8068         * doc/posix-functions/wcsrchr.texi: Mention the new module.
8069
8070 2011-02-06  Bruno Haible  <bruno@clisp.org>
8071
8072         New module 'wcschr'.
8073         * modules/wcschr: New file.
8074         * lib/wchar.in.h (wcschr): New declaration.
8075         * lib/wcschr.c: New file.
8076         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
8077         * m4/wcschr.m4: New file.
8078         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
8079         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
8080         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
8081         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
8082         * doc/posix-functions/wcschr.texi: Mention the new module.
8083
8084 2011-02-06  Bruno Haible  <bruno@clisp.org>
8085
8086         New module 'wcsdup'.
8087         * modules/wcsdup: New file.
8088         * lib/wchar.in.h (wcsdup): New declaration.
8089         * lib/wcsdup.c: New file.
8090         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
8091         * m4/wcsdup.m4: New file.
8092         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
8093         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
8094         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
8095         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
8096         * doc/posix-functions/wcsdup.texi: Mention the new module.
8097
8098 2011-02-06  Bruno Haible  <bruno@clisp.org>
8099
8100         New module 'wcsxfrm'.
8101         * modules/wcsxfrm: New file.
8102         * lib/wchar.in.h (wcsxfrm): New declaration.
8103         * lib/wcsxfrm.c: New file.
8104         * lib/wcsxfrm-impl.h: New file.
8105         * m4/wcsxfrm.m4: New file.
8106         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
8107         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
8108         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
8109         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
8110         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
8111
8112 2011-02-06  Bruno Haible  <bruno@clisp.org>
8113
8114         New module 'wcscoll'.
8115         * modules/wcscoll: New file.
8116         * lib/wchar.in.h (wcscoll): New declaration.
8117         * lib/wcscoll.c: New file.
8118         * lib/wcscoll-impl.h: New file.
8119         * m4/wcscoll.m4: New file.
8120         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
8121         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
8122         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
8123         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
8124         * doc/posix-functions/wcscoll.texi: Mention the new module.
8125
8126 2011-02-06  Bruno Haible  <bruno@clisp.org>
8127
8128         New module 'wcsncasecmp'.
8129         * modules/wcsncasecmp: New file.
8130         * lib/wchar.in.h (wcsncasecmp): New declaration.
8131         * lib/wcsncasecmp.c: New file.
8132         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
8133         * m4/wcsncasecmp.m4: New file.
8134         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
8135         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
8136         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
8137         HAVE_WCSNCASECMP.
8138         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
8139         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
8140
8141 2011-02-06  Bruno Haible  <bruno@clisp.org>
8142
8143         New module 'wcscasecmp'.
8144         * modules/wcscasecmp: New file.
8145         * lib/wchar.in.h (wcscasecmp): New declaration.
8146         * lib/wcscasecmp.c: New file.
8147         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
8148         * m4/wcscasecmp.m4: New file.
8149         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
8150         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
8151         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
8152         HAVE_WCSCASECMP.
8153         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
8154         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
8155
8156 2011-02-05  Bruno Haible  <bruno@clisp.org>
8157
8158         New module 'wcsncmp'.
8159         * modules/wcsncmp: New file.
8160         * lib/wchar.in.h (wcsncmp): New declaration.
8161         * lib/wcsncmp.c: New file.
8162         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
8163         * m4/wcsncmp.m4: New file.
8164         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
8165         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
8166         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
8167         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
8168         * doc/posix-functions/wcsncmp.texi: Mention the new module.
8169
8170 2011-02-05  Bruno Haible  <bruno@clisp.org>
8171
8172         New module 'wcscmp'.
8173         * modules/wcscmp: New file.
8174         * lib/wchar.in.h (wcscmp): New declaration.
8175         * lib/wcscmp.c: New file.
8176         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
8177         * m4/wcscmp.m4: New file.
8178         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
8179         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
8180         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
8181         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
8182         * doc/posix-functions/wcscmp.texi: Mention the new module.
8183
8184 2011-02-05  Bruno Haible  <bruno@clisp.org>
8185
8186         New module 'wcsncat'.
8187         * modules/wcsncat: New file.
8188         * lib/wchar.in.h (wcsncat): New declaration.
8189         * lib/wcsncat.c: New file.
8190         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
8191         * m4/wcsncat.m4: New file.
8192         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
8193         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
8194         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
8195         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
8196         * doc/posix-functions/wcsncat.texi: Mention the new module.
8197
8198 2011-02-05  Bruno Haible  <bruno@clisp.org>
8199
8200         New module 'wcscat'.
8201         * modules/wcscat: New file.
8202         * lib/wchar.in.h (wcscat): New declaration.
8203         * lib/wcscat.c: New file.
8204         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
8205         * m4/wcscat.m4: New file.
8206         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
8207         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
8208         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
8209         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
8210         * doc/posix-functions/wcscat.texi: Mention the new module.
8211
8212 2011-02-05  Bruno Haible  <bruno@clisp.org>
8213
8214         New module 'wcpncpy'.
8215         * modules/wcpncpy: New file.
8216         * lib/wchar.in.h (wcpncpy): New declaration.
8217         * lib/wcpncpy.c: New file.
8218         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
8219         * m4/wcpncpy.m4: New file.
8220         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
8221         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
8222         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
8223         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
8224         * doc/posix-functions/wcpncpy.texi: Mention the new module.
8225
8226 2011-02-05  Bruno Haible  <bruno@clisp.org>
8227
8228         New module 'wcsncpy'.
8229         * modules/wcsncpy: New file.
8230         * lib/wchar.in.h (wcsncpy): New declaration.
8231         * lib/wcsncpy.c: New file.
8232         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
8233         * m4/wcsncpy.m4: New file.
8234         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
8235         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
8236         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
8237         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
8238         * doc/posix-functions/wcsncpy.texi: Mention the new module.
8239
8240 2011-02-05  Bruno Haible  <bruno@clisp.org>
8241
8242         New module 'wcpcpy'.
8243         * modules/wcpcpy: New file.
8244         * lib/wchar.in.h (wcpcpy): New declaration.
8245         * lib/wcpcpy.c: New file.
8246         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
8247         * m4/wcpcpy.m4: New file.
8248         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
8249         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
8250         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
8251         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
8252         * doc/posix-functions/wcpcpy.texi: Mention the new module.
8253
8254 2011-02-05  Bruno Haible  <bruno@clisp.org>
8255
8256         New module 'wcscpy'.
8257         * modules/wcscpy: New file.
8258         * lib/wchar.in.h (wcscpy): New declaration.
8259         * lib/wcscpy.c: New file.
8260         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
8261         * m4/wcscpy.m4: New file.
8262         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
8263         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
8264         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
8265         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
8266         * doc/posix-functions/wcscpy.texi: Mention the new module.
8267
8268 2011-02-05  Bruno Haible  <bruno@clisp.org>
8269
8270         New module 'wcsnlen'.
8271         * modules/wcsnlen: New file.
8272         * lib/wchar.in.h (wcsnlen): New declaration.
8273         * lib/wcsnlen.c: New file.
8274         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
8275         * m4/wcsnlen.m4: New file.
8276         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
8277         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
8278         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
8279         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
8280         * doc/posix-functions/wcsnlen.texi: Mention the new module.
8281
8282 2011-02-05  Bruno Haible  <bruno@clisp.org>
8283
8284         New module 'wcslen'.
8285         * modules/wcslen: New file.
8286         * lib/wchar.in.h (wcslen): New declaration.
8287         * lib/wcslen.c: New file.
8288         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
8289         * m4/wcslen.m4: New file.
8290         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
8291         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
8292         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
8293         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
8294         * doc/posix-functions/wcslen.texi: Mention the new module.
8295
8296 2011-02-05  Bruno Haible  <bruno@clisp.org>
8297
8298         New module 'wmemset'.
8299         * modules/wmemset: New file.
8300         * lib/wchar.in.h (wmemset): New declaration.
8301         * lib/wmemset.c: New file.
8302         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
8303         * m4/wmemset.m4: New file.
8304         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
8305         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
8306         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
8307         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
8308         * doc/posix-functions/wmemset.texi: Mention the new module.
8309
8310 2011-02-05  Bruno Haible  <bruno@clisp.org>
8311
8312         New module 'wmemmove'.
8313         * modules/wmemmove: New file.
8314         * lib/wchar.in.h (wmemmove): New declaration.
8315         * lib/wmemmove.c: New file.
8316         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
8317         * m4/wmemmove.m4: New file.
8318         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
8319         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
8320         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
8321         HAVE_WMEMMOVE.
8322         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
8323         * doc/posix-functions/wmemmove.texi: Mention the new module.
8324
8325 2011-02-05  Bruno Haible  <bruno@clisp.org>
8326
8327         New module 'wmemcpy'.
8328         * modules/wmemcpy: New file.
8329         * lib/wchar.in.h (wmemcpy): New declaration.
8330         * lib/wmemcpy.c: New file.
8331         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
8332         * m4/wmemcpy.m4: New file.
8333         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
8334         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
8335         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
8336         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
8337         * doc/posix-functions/wmemcpy.texi: Mention the new module.
8338
8339 2011-02-05  Bruno Haible  <bruno@clisp.org>
8340
8341         New module 'wmemcmp'.
8342         * modules/wmemcmp: New file.
8343         * lib/wchar.in.h (wmemcmp): New declaration.
8344         * lib/wmemcmp.c: New file.
8345         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
8346         * m4/wmemcmp.m4: New file.
8347         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
8348         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
8349         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
8350         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
8351         * doc/posix-functions/wmemcmp.texi: Mention the new module.
8352
8353 2011-02-07  Jim Meyering  <meyering@redhat.com>
8354
8355         di-set, ino-map: new modules, from coreutils
8356         * lib/di-set.c: New file.
8357         * lib/di-set.h: Likewise.
8358         * lib/ino-map.c: Likewise.
8359         * lib/ino-map.h: Likewise.
8360         * modules/di-set: Likewise.
8361         * modules/di-set-tests: Likewise.
8362         * modules/ino-map: Likewise.
8363         * modules/ino-map-tests: Likewise.
8364         * tests/test-di-set.c: Likewise.
8365         * tests/test-ino-map.c: Likewise.
8366
8367 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
8368
8369         getloadavg: merge minor changes from Emacs
8370
8371         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
8372         (getloadavg): Use memset, not bzero.
8373
8374         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
8375         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8376         clash (bug#86).
8377
8378 2010-11-14  Bruno Haible  <bruno@clisp.org>
8379
8380         Allow multiple gnulib generated replacements to coexist.
8381         * lib/getopt.in.h (struct option): Avoid identical redefinition.
8382         * lib/inttypes.in.h (imaxdiv_t): Likewise.
8383         * lib/langinfo.in.h (nl_item): Likewise.
8384         * lib/math.in.h (_NaN, NAN): Likewise.
8385         * lib/netdb.in.h (struct addrinfo): Likewise.
8386         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
8387         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
8388         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
8389         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
8390         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
8391         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
8392         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
8393         pthread_mutexattr_init, pthread_mutexattr_settype,
8394         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
8395         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
8396         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
8397         pthread_spin_trylock, pthread_spin_unlock): Likewise.
8398         * lib/sched.in.h (struct sched_param): Likewise.
8399         * lib/se-selinux.in.h (security_class_t, security_context_t,
8400         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
8401         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
8402         lsetfilecon, fsetfilecon, security_check_context,
8403         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
8404         Likewise.
8405         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
8406         Likewise.
8407         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
8408         _gl_function_taking_int_returning_void_t, union sigval,
8409         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
8410         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
8411         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
8412         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
8413         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
8414         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
8415         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
8416         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
8417         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
8418         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
8419         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
8420         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
8421         socklen_t, rpl_fd_isset): Likewise.
8422         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
8423         * lib/sys_time.in.h (struct timeval): Likewise.
8424         * lib/sys_times.in.h (struct tms): Likewise.
8425         * lib/sys_utsname.in.h (struct utsname):
8426         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
8427         * lib/unistd.in.h (getpagesize): Likewise.
8428         * lib/wchar.in.h (mbstate_t): Likewise.
8429         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
8430         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
8431         towlower, towupper): Likewise.
8432         Reported by Sam Steingold <sds@gnu.org>.
8433
8434 2011-02-05  Eric Blake  <eblake@redhat.com>
8435
8436         unsetenv: work around Haiku issues
8437         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
8438         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
8439
8440 2010-12-30  Bruce Korb  <bkorb@gnu.org>
8441
8442         libposix: avoid calling error() within libposix
8443         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
8444         is defined.
8445
8446 2011-02-05  Eric Blake  <eblake@redhat.com>
8447
8448         strerror_r-posix: port to cygwin
8449         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
8450         implementation.
8451         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
8452         * tests/test-strerror_r.c (main): Fix test.
8453         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
8454         issue.
8455
8456 2011-02-05  Bruno Haible  <bruno@clisp.org>
8457
8458         New module 'wmemchr'.
8459         * modules/wmemchr: New file.
8460         * lib/wchar.in.h (wmemchr): New declaration.
8461         * lib/wmemchr.c: New file.
8462         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
8463         * m4/wmemchr.m4: New file.
8464         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
8465         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
8466         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
8467         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
8468         * doc/posix-functions/wmemchr.texi: Mention the new module.
8469
8470 2011-02-04  Eric Blake  <eblake@redhat.com>
8471
8472         fdopendir: detect FreeBSD bug
8473         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
8474         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
8475
8476 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
8477
8478         stdbool: do not define HAVE_STDBOOL_H
8479         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
8480         AC_HEADER_STDBOOL.  All uses changed.  Do not define
8481         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
8482         imported from the latest Autoconf git.  It was motivated by Emacs,
8483         which uses gnulib but does not need HAVE_STDBOOL_H.
8484
8485 2011-02-04  Bruno Haible  <bruno@clisp.org>
8486
8487         wcsnrtombs: Prepare for new module wwcsnrtombs.
8488         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
8489         * lib/wcsnrtombs.c: Include it.
8490         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
8491
8492         wcsrtombs: Prepare for new module wwcsrtombs.
8493         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
8494         * lib/wcsrtombs.c: Include it.
8495         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
8496
8497         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
8498         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
8499         * lib/mbsnrtowcs.c: Include it.
8500         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
8501
8502         mbsrtowcs: Prepare for new module mbsrtowwcs.
8503         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
8504         * lib/mbsrtowcs.c: Include it.
8505         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
8506
8507 2011-02-04  Bruno Haible  <bruno@clisp.org>
8508
8509         vasnprintf: Reduce use of malloc for small format strings.
8510         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
8511         (arguments): Add room for the first 7 arguments.
8512         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
8513         (char_directives, u8_directives, u16_directives, u32_directives): Add
8514         room for the first 7 directives.
8515         * lib/printf-parse.c: Include <string.h>.
8516         (PRINTF_PARSE): Change memory handling code so that it uses the first
8517         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
8518         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
8519         Reported by Pádraig Brady <P@draigbrady.com>.
8520
8521 2011-01-31  Eric Blake  <eblake@redhat.com>
8522
8523         dup2: work around Haiku bug
8524         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
8525         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
8526         * doc/posix-functions/dup2.texi (dup2): Document the bug.
8527         * tests/test-dup2.c (main): Enhance test.
8528
8529 2011-01-31  Simon Josefsson  <simon@josefsson.org>
8530
8531         doc: off_t is not available in eglibc 2.11.2 stdio.h.
8532         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
8533         declared by eglibc 2.11.2.
8534         * lib/stdio.in.h: Likewise.
8535
8536 2011-01-31  Eric Blake  <eblake@redhat.com>
8537
8538         ignore-value: add missing test dependency
8539         * tests/test-ignore-value.c: Revert previous change; stdio.h
8540         provides off_t.
8541         * modules/ignore-value-tests (Depends-on): Add missing dependency.
8542
8543 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
8544
8545         mktime: clarify long_int width checking
8546         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
8547         the top level, to make it clearer that the assumption about
8548         long_int width is being checked.  See
8549         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
8550
8551 2011-01-30  Simon Josefsson  <simon@josefsson.org>
8552
8553         ignore-value: Fix self-test.
8554         * tests/test-ignore-value.c: Include sys/types.h for off_t.
8555
8556 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
8557
8558         TYPE_MAXIMUM: avoid theoretically undefined behavior
8559         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
8560         negative number, which the C Standard says has undefined behavior.
8561         In practice this is not a problem, but might as well do it by the book.
8562         Reported by Rich Felker and Eric Blake; see
8563         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
8564         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
8565         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
8566         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8567         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
8568         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8569         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
8570
8571         mktime: #undef mktime before #defining it
8572         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
8573
8574         mktime: systematically normalize tm_isdst comparisons
8575         * lib/mktime.c (isdst_differ): New function.
8576         (__mktime_internal): Use it systematically for all isdst comparisons.
8577         This completes the fix for libc BZ #6723, and removes the need for
8578         normalizing tm_isdst.  See
8579         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
8580         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
8581
8582         mktime: fix some integer overflow issues and sidestep the rest
8583
8584         This was prompted by a bug report by Benjamin Lindner for MinGW
8585         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
8586         His bug is due to signed integer overflow (0 - INT_MIN), and I
8587         I scanned through mktime.c looking for other integer overflow
8588         problems, fixing all the bugs I found.
8589
8590         Although the C Standard says the resulting code is still not safe
8591         in the presence of integer overflow, in practice it should be good
8592         enough for all real-world two's-complement implementations, except
8593         for debugging environments that deliberately trap on integer
8594         overflow (e.g., gcc -ftrapv).
8595
8596         * lib/mktime.c (WRAPV): New macro.
8597         (SHR): Also check that long_int and time_t shift right in the
8598         usual way, before using the fast-but-unportable method.
8599         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
8600         used.  The code already assumed two's complement, so there's
8601         no need to test for alternatives.  All uses removed.
8602         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
8603         the C standard.  Problem reported by Rich Felker in
8604         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
8605         (twos_complement_arithmetic): Also check long_int and time_t.
8606         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
8607         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
8608         (__mktime_internal): Avoid integer overflow with unary subtraction
8609         in two instances where -1 - X is an adequate replacement for -X,
8610         since the calculations are approximate.
8611
8612 2011-01-29  Eric Blake  <eblake@redhat.com>
8613
8614         mktime: avoid infinite loop
8615         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
8616         type; behavior is still undefined but portable to all known targets.
8617         Reported by Rich Felker.
8618
8619 2011-01-29  Simon Josefsson  <simon@josefsson.org>
8620
8621         rename, unlink, same-inode: Relicense.
8622         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
8623         * modules/unlink (License): Likewise.
8624         * modules/same-inode (License): Likewise.
8625
8626 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8627
8628         mktime: avoid problems on NetBSD 5 / i386
8629         * lib/mktime.c (long_int): New type.  This works around a problem
8630         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
8631         but time_t is 64 bits, and where I expect the existing code is
8632         wrong in some cases.
8633         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
8634         (ydhms_diff): Bring back the compile-time check for wide-enough
8635         year and yday.
8636
8637         mktime: fix misspelling in comment
8638         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
8639         This merges all recent glibc changes of importance.
8640
8641 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8642
8643         move-if-change: cope with concurrent mv of identical file.
8644         * build-aux/move-if-change (CMPPROG): Accept environment
8645         variable as an override for `cmp'.
8646         (usage): Document CMPPROG.
8647         Adjust comparison to drop stdout.  Cope with failure of mv if
8648         the target file exists and is identical to the source, for
8649         parallel builds.
8650         Report from H.J. Lu against binutils in PR binutils/12283.
8651
8652 2011-01-28  Bruce Korb  <bkorb@gnu.org>
8653
8654         * users.txt: Mention sharutils.
8655
8656 2011-01-28  Simon Josefsson  <simon@josefsson.org>
8657
8658         * users.txt: Mention OATH Toolkit.
8659
8660 2011-01-27  Bruno Haible  <bruno@clisp.org>
8661
8662         Prepare for supporting FreeBSD 10.
8663         * build-aux/config.libpath: Remove handling of freebsd1*.
8664
8665 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
8666
8667         Prepare for supporting FreeBSD 10.
8668         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
8669         match FreeBSD 10.0.
8670
8671 2011-01-27  Bruno Haible  <bruno@clisp.org>
8672
8673         vma-iter, get-rusage-as: Add OpenBSD support.
8674         * modules/vma-iter (configure.ac): Test for mquery.
8675         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
8676         * lib/vma-iter.c: Include <sys/mman.h>.
8677         (vma_iterate): Add an implementation based on mquery().
8678         * lib/resource-ext.h (get_rusage_as): Update comments.
8679         * lib/get-rusage-as.c: Likewise.
8680         * lib/get-rusage-data.c: Likewise.
8681
8682 2011-01-26  Karl Berry  <karl@gnu.org>
8683
8684         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
8685         variables to make it easier to override the makeinfo program used.
8686
8687 2011-01-26  Eric Blake  <eblake@redhat.com>
8688
8689         fcntl: work around Haiku F_DUPFD bugs
8690         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
8691         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
8692         cloexec bit on duplication.
8693         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
8694
8695 2011-01-26  Bruno Haible  <bruno@clisp.org>
8696
8697         Enable memory leak tests on AIX.
8698         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
8699         * tests/test-fprintf-posix3.c (main): Likewise.
8700
8701 2011-01-26  Bruno Haible  <bruno@clisp.org>
8702
8703         Tests for module 'get-rusage-data'.
8704         * modules/get-rusage-data-tests: New file.
8705         * tests/test-get-rusage-data.c: New file.
8706
8707         New module 'get-rusage-data'.
8708         * lib/resource-ext.h (get_rusage_data): New declaration.
8709         * lib/get-rusage-data.c: New file.
8710         * modules/get-rusage-data: New file.
8711
8712 2011-01-25  Bruno Haible  <bruno@clisp.org>
8713
8714         get-rusage-as: Allow for easier testing.
8715         * lib/resource-ext.h (get_rusage_as): Add comment.
8716         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
8717         (main): New function for interactive testing.
8718
8719 2011-01-25  Bruno Haible  <bruno@clisp.org>
8720
8721         vma-iter: Treat Haiku like BeOS.
8722         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
8723         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
8724
8725 2011-01-25  Eric Blake  <eblake@redhat.com>
8726
8727         c-stack: fix regression on cygwin when libsigsegv is present
8728         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
8729
8730 2011-01-24  Bruno Haible  <bruno@clisp.org>
8731
8732         vma-iter: Avoid empty intervals.
8733         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
8734         on an empty interval.
8735
8736 2011-01-24  Jim Meyering  <meyering@redhat.com>
8737
8738         u64: remove unnecessary #include
8739         * lib/u64.h: Don't include <stddef.h>.  It was not used.
8740
8741 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8742
8743         Allow the user to avoid the HAVE_RAW_DECL_* macros.
8744         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
8745
8746 2011-01-23  Bruno Haible  <bruno@clisp.org>
8747
8748         New module 'vma-iter'.
8749         * lib/vma-iter.h: New file.
8750         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
8751         * modules/vma-iter: New file.
8752         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
8753         for get_rusage_as_via_iterator.
8754         (vma_iterate_callback): New function.
8755         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
8756         * modules/get-rusage-as (Depends-on): Add vma-iter.
8757
8758 2011-01-23  Bruno Haible  <bruno@clisp.org>
8759
8760         uninorm: Tweak includes.
8761         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
8762         Reported by Jim Meyering.
8763
8764 2011-01-23  Bruno Haible  <bruno@clisp.org>
8765
8766         get-rusage-as: Improve on NetBSD.
8767         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
8768         /proc, like on FreeBSD.
8769
8770 2011-01-23  Jim Meyering  <meyering@redhat.com>
8771
8772         xreadlink.h: remove unnecessary #include
8773         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
8774
8775         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
8776         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
8777
8778 2011-01-23  Bruno Haible  <bruno@clisp.org>
8779
8780         get-rusage-as: Fix bug.
8781         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
8782         original limit when aborting the first loop.
8783
8784 2011-01-23  Bruno Haible  <bruno@clisp.org>
8785
8786         wctype: Ensure valid C syntax.
8787         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
8788         unconditionally, instead of gl_NEXT_HEADERS conditionally.
8789
8790 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
8791
8792         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
8793         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
8794         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
8795         as they are needed only for configure's test case.
8796         This removes two unnecessary symbols from config.h.
8797
8798         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
8799         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
8800         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
8801         AC_CHECK_HEADERS_ONCE on a header that we also invoke
8802         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
8803         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
8804         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
8805         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
8806         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8807         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8808         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
8809         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8810         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8811         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8812         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
8813         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8814         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8815         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8816
8817 2011-01-21  Eric Blake  <eblake@redhat.com>
8818
8819         maintainer-makefile: work with older git for submodule check
8820         * top/maint.mk (public-submodule-commit): Rewrite to avoid
8821         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
8822         Reported by Matthias Bolte.
8823
8824         bootstrap: minor portability fixes
8825         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
8826         (usage): Omit leading capital and trailing . on help phrases, per
8827         GNU Coding Standards.
8828         (check_versions, top level): Prefix messages with script name.
8829
8830 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
8831
8832         bootstrap: support --no-git option
8833         * build-aux/bootstrap: Add --no-git option, to be used when
8834         --gnulib-srcdir points to the exact desired checkout.
8835
8836 2011-01-21  Eric Blake  <eblake@redhat.com>
8837
8838         strerror_r-posix: work with glibc 2.13
8839         * lib/strerror_r.c (strerror_r): Fix return type.
8840
8841 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8842             Bruno Haible  <bruno@clisp.org>
8843
8844         uN_strstr: New unit tests.
8845         * modules/unistr/u8-strstr-tests: New file.
8846         * modules/unistr/u16-strstr-tests: New file.
8847         * modules/unistr/u32-strstr-tests: New file.
8848         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
8849         * tests/unistr/test-u8-strstr.c: New file.
8850         * tests/unistr/test-u16-strstr.c: New file.
8851         * tests/unistr/test-u32-strstr.c: New file.
8852
8853 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8854             Bruno Haible  <bruno@clisp.org>
8855
8856         Make uN_strstr functions O(n) worst-case.
8857         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
8858         16-bit and 32-bit unit cases, use the unibyte algorithm from
8859         lib/mbsstr.c.
8860         * lib/unistr/u8-strstr.c: Include <string.h>.
8861         (UNIT_IS_UINT8_T): New macro.
8862         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
8863         (U_STRLEN, U_STRNLEN): New macros.
8864         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
8865         (U_STRLEN, U_STRNLEN): New macros.
8866         * modules/unistr/u8-strstr (Depends-on): Add strstr.
8867         (configure.ac): Update required libunistring version.
8868         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
8869         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
8870         malloca.
8871         (configure.ac): Update required libunistring version.
8872         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
8873         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
8874         malloca.
8875         (configure.ac): Update required libunistring version.
8876
8877 2011-01-21  Pádraig Brady  <P@draigBrady.com>
8878             Bruno Haible  <bruno@clisp.org>
8879
8880         Prepare for faster uN_strstr functions.
8881         * lib/str-kmp.h: Support definable UNITs.
8882         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
8883         needle_len argument.
8884         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
8885         * lib/mbscasestr.c (mbscasestr): Likewise.
8886
8887 2011-01-21  Pádraig Brady <P@draigBrady.com>
8888
8889         malloca-tests: make faster by unsetting MALLOC_PERTURB_
8890         * tests/test-malloca.c (main): Unset the environment variable
8891         to greatly speed up the test.
8892         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
8893         * modules/malloca-tests: Depend on unsetenv.
8894
8895 2011-01-21  Pádraig Brady <P@draigBrady.com>
8896
8897         ignore-value: remove stdint dependency
8898         * lib/ignore-value.h: Remove <stdint.h>
8899         * modules/ignore-value: Remove stdint dependency.
8900
8901 2011-01-21  Jim Meyering  <meyering@redhat.com>
8902
8903         maint.mk: adjust variable name to be consistent with other gl_ vars
8904         * top/maint.mk (gl_public_submodule_commit): Rename the variable
8905         to be lower case.
8906
8907 2011-01-20  Jim Meyering  <meyering@redhat.com>
8908
8909         maint.mk: make "check" depend on public-submodule-commit by default
8910         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
8911
8912 2011-01-20  Bruno Haible  <bruno@clisp.org>
8913
8914         mbfile, mbiter: Complete change from 2008-12-21.
8915         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
8916         * m4/mbiter.m4 (gl_MBITER): Likewise.
8917
8918 2011-01-20  Jim Meyering  <meyering@redhat.com>
8919
8920         init.sh: insert space between each function name and "()"
8921         * tests/init.sh: Make it a little easier to see that a function's
8922         name is "warn_", and not "warn" when looking at the first part of
8923         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
8924
8925 2011-01-20  Jim Meyering  <meyering@redhat.com>
8926
8927         mountlist: clean up code formatting
8928         * lib/mountlist.c (read_file_system_list): Split a long line,
8929         correct bracing style, use NULL in place of "(struct statfs *)0",
8930         don't parenthesize return value, add spaces around "=" and after
8931         ";-in-for-stmt".
8932
8933 2011-01-14  Markus Duft <mduft@gentoo.org>
8934
8935         mountlist: add support for Interix
8936         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
8937         Apply statvfs to all entries of /dev/fs.
8938         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
8939         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
8940
8941 2011-01-20  Jim Meyering  <meyering@redhat.com>
8942
8943         maint.mk: improve the public-submodule-commit rule
8944         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
8945         to suppress printing of its commands... unless V=1.
8946         Add git submodule's --quiet option to suppress printing of e.g.,
8947         "Entering gnulib" output.
8948         "cd" into $(srcdir) before running git submodule.
8949
8950 2011-01-20  Bruno Haible  <bruno@clisp.org>
8951
8952         include_next: Fix bug introduced on 2011-01-18.
8953         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
8954         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
8955         ac_cv_header_... variable if the second argument is not 'check'.
8956         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
8957         gl_NEXT_HEADERS_INTERNAL.
8958
8959 2011-01-20  Bruno Haible  <bruno@clisp.org>
8960
8961         Allow the user to avoid the GNULIB_TEST_* macros.
8962         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
8963         Suggested by Paul Eggert.
8964
8965 2011-01-14  Jim Meyering  <meyering@redhat.com>
8966
8967         bootstrap: avoid failure when there is no .gitmodules file
8968         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
8969         has been assigned to, even when its value is the empty string.
8970         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
8971         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
8972         Reported by John W. Eaton <jwe@gnu.org>.
8973
8974 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
8975
8976         assume <ctype.h>, ..., <time.h> exist
8977         For years gnulib has been assuming the existence of the headers
8978         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
8979         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
8980         them, since they don't appear to be needed.
8981         * README (Portability guidelines): Document this.
8982         * lib/flock.c: Assume <fcntl.h> exists.
8983         * lib/regex_internal.h: Assume <locale.h> exists.
8984         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
8985         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
8986         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
8987         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
8988         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
8989         * m4/regex.m4 (gl_REGEX): Likewise.
8990         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
8991         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
8992         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
8993         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
8994         * tests/test-argp.c: Likewise.
8995         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
8996
8997         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
8998         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
8999         AA_APPLE_UNIVERSAL_BUILD.  See
9000         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
9001         * NEWS: Document this.
9002
9003 2011-01-19  Eric Blake  <eblake@redhat.com>
9004
9005         c-stack: assume stack overflow if SA_SIGINFO unsupported
9006         * lib/c-stack.c (SIGACTION_WORKS): Rename...
9007         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
9008         sigaction will work.
9009         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
9010         behavior match Linux.
9011         * tests/test-c-stack.c (main): Prefer NULL for pointers.
9012
9013         stdbool-tests: accomodate Haiku
9014         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
9015
9016         binary-io: fix O_TEXT on Haiku
9017         * modules/binary-io (Depends-on): Add fcntl-h.
9018         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
9019         than blindly undefining O_TEXT.
9020         Reported by Scott McCreary.
9021
9022 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9023
9024         include_next: do not check for standard headers like stddef.h
9025
9026         I found this problem when modifying Emacs to use gnulib.
9027         I noticed that it added HAVE_STDDEF_H to config.h, even though
9028         gnulib always assumes <stddef.h> exists as per README and this
9029         symbol is unnecessary.
9030         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
9031         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
9032         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
9033         faster for headers like stddef.h that are known to exist.
9034         (gl_CHECK_NEXT_HEADERS): Use it.
9035         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
9036         rather than gl_CHECK_NEXT_HEADERS.
9037         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
9038         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
9039
9040 2011-01-18  Eric Blake  <eblake@redhat.com>
9041
9042         ansi-c++-opt: skip C++ dependency style if C++ is unused
9043         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
9044         tests when we know C++ compilation is not desired.
9045         Reported by Scott McCreary.
9046
9047 2011-01-18  Bruno Haible  <bruno@clisp.org>
9048
9049         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
9050         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
9051         (main): Perform test also when getrlimit and setrlimit don't exist or
9052         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
9053         limiting the address space size using setrlimit, compare the address
9054         space size before and after the the test.
9055         * tests/test-dprintf-posix2.c: Likewise.
9056         * tests/test-fprintf-posix3.sh: Update skip messages.
9057         * tests/test-dprintf-posix2.sh: Likewise.
9058         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
9059         * modules/dprintf-posix-tests (Depends-on): Likewise.
9060         Reported by Bruce Korb <bkorb@gnu.org> and
9061         Gary V. Vaughan <gary@gnu.org>.
9062
9063 2011-01-18  Bruno Haible  <bruno@clisp.org>
9064
9065         get-rusage-as: Improvement for Cygwin.
9066         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
9067         areas that are merely reserved.
9068
9069 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
9070
9071         strftime: remove dependencies on multibyte modules
9072
9073         strftime depended on mbrlen, mbsinit, and wchar, but these modules
9074         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
9075         only if __osf__ is defined, and I suspect OSF doesn't need these
9076         other modules.  If my guess is wrong, we'll need to come up with a
9077         variant of strftime that doesn't need the multibyte modules.
9078
9079         I discovered this problem when attempting modify Emacs to use the
9080         strftime module.  With the previous gnulib, this caused Emacs to
9081         need 31 new files, ranging from lib/config.charset to
9082         m4/wint_t.m4.  This was overkill and I expect would be offputting
9083         to the Emacs maintainers.  After this change, only 6 new files are
9084         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
9085         stdbool.m4, and tm_gmtoff.m4.
9086
9087         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
9088         Suggested by Bruno Haible in
9089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
9090         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
9091         and do not check for wchar.h.
9092         * modules/strftime (Files): Remove m4/mbstate_t.m4.
9093         (Depends-on): Remove mbrlen, mbsinit, wchar.
9094
9095 2011-01-18  Bruno Haible  <bruno@clisp.org>
9096
9097         Tests for module 'get-rusage-as'.
9098         * modules/get-rusage-as-tests: New file.
9099         * tests/test-get-rusage-as.c: New file.
9100
9101         New module 'get-rusage-as'.
9102         * modules/get-rusage-as: New file.
9103         * lib/resource-ext.h: New file.
9104         * lib/get-rusage-as.c: New file.
9105
9106 2011-01-17  Eric Blake  <eblake@redhat.com>
9107
9108         sigaction: relax license from LGPLv3+ to LGPLv2+
9109         * modules/sigaction (License): Relax to LGPLv2+.
9110
9111 2011-01-14  Bruno Haible  <bruno@clisp.org>
9112
9113         filemode: Make function declarations usable in C++ mode.
9114         * lib/filemode.h: Enclose function declarations in extern "C" block.
9115         Reported by John W. Eaton <jwe@gnu.org>.
9116
9117 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
9118
9119         save-cwd: no longer include "xgetcwd.h"
9120         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
9121         This avoids a compilation failure in projects that use save-cwd
9122         without also using the xgetcwd module.
9123
9124 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9125
9126         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
9127         This is so that a program like Emacs, which needs only dtoastr,
9128         does not have to bother with distributing and compiling ftoastr
9129         and ldtoastr.
9130         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
9131         * modules/dtoastr, modules/ldtoastr: New files.
9132         * modules/ftoastr: Now works just for 'float'.
9133         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
9134         (Makefile.am): Remove ftoastr.h (not needed and no effect),
9135         dtoastr.c, ldtoastr.c.
9136
9137 2011-01-11  Jim Meyering  <meyering@redhat.com>
9138
9139         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
9140         There is no need to work around the lack of the fchdir function,
9141         since gnulib can now provide a replacement when required.
9142         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
9143         * modules/save-cwd (Depends-on): Add fchdir.
9144
9145 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9146
9147         openat, save-cwd: avoid xmalloc
9148
9149         This removes a direct (but undocumented) dependency of openat on
9150         xalloc, along with an indirect dependency via save-cwd.  It also
9151         removes a dependency of save-cwd on xgetcwd, and thereby
9152         indirectly on xalloc.  This change causes the openat substitute
9153         to fall back on save_cwd when memory is tight, and for save_cwd to
9154         fail instead of dying when memory is tight, but that's good enough.
9155         Problem and initial idea for fix reported by Bastien Roucaries in
9156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
9157
9158         * lib/openat-proc.c: Include stdlib.h (for malloc), not
9159         xalloc.h (for xmalloc).
9160         (openat_proc_name): Use malloc, not xmalloc.
9161         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
9162         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
9163
9164         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
9165         This avoids heap allocation for file names whose lengths are in
9166         the range 512..1023, with the upper bound increasing to at most
9167         4031 depending on the platform's PATH_MAX.  (We do not want
9168         pathmax.h here as it might supply a non-constant PATH_MAX.)
9169         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
9170         Perhaps they should be moved to malloca.h?
9171         (OPENAT_BUFFER_SIZE): Use them.
9172
9173 2011-01-10  Bruno Haible  <bruno@clisp.org>
9174
9175         doc: Update users.txt.
9176         * users.txt: Add recutils.
9177
9178 2011-01-09  Karl Berry  <karl@gnu.org>
9179
9180         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
9181
9182         * doc/configmake.texi: New file.
9183         * doc/gnulib.texi: Include it.
9184         * modules/configmake: Move documentation from here.
9185
9186 2011-01-09  Bruno Haible  <bruno@clisp.org>
9187
9188         Update to Unicode 6.0.0.
9189         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
9190         (get_lbp): Update for Unicode 6.0.0.
9191         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
9192         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
9193         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
9194         U+11001, U+11038..U+11046. Remove U+06DE.
9195         (uc_width): Fix bounds of planes.
9196         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9197         lib/uniwidth/width.c.
9198         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
9199         trailing whitespace removed.
9200         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
9201         without comments, but with the original copyright notice.
9202         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
9203         * lib/unicase/ignorable.h: Likewise.
9204         * lib/unicase/tocasefold.h: Likewise.
9205         * lib/unicase/tolower.h: Likewise.
9206         * lib/unicase/totitle.h: Likewise.
9207         * lib/unicase/toupper.h: Likewise.
9208         * lib/unictype/bidi_of.h: Likewise.
9209         * lib/unictype/blocks.h: Likewise.
9210         * lib/unictype/categ_C.h: Likewise.
9211         * lib/unictype/categ_Cn.h: Likewise.
9212         * lib/unictype/categ_L.h: Likewise.
9213         * lib/unictype/categ_Ll.h: Likewise.
9214         * lib/unictype/categ_Lm.h: Likewise.
9215         * lib/unictype/categ_Lo.h: Likewise.
9216         * lib/unictype/categ_Lu.h: Likewise.
9217         * lib/unictype/categ_M.h: Likewise.
9218         * lib/unictype/categ_Mc.h: Likewise.
9219         * lib/unictype/categ_Me.h: Likewise.
9220         * lib/unictype/categ_Mn.h: Likewise.
9221         * lib/unictype/categ_N.h: Likewise.
9222         * lib/unictype/categ_Nd.h: Likewise.
9223         * lib/unictype/categ_No.h: Likewise.
9224         * lib/unictype/categ_P.h: Likewise.
9225         * lib/unictype/categ_Po.h: Likewise.
9226         * lib/unictype/categ_S.h: Likewise.
9227         * lib/unictype/categ_Sc.h: Likewise.
9228         * lib/unictype/categ_Sk.h: Likewise.
9229         * lib/unictype/categ_Sm.h: Likewise.
9230         * lib/unictype/categ_So.h: Likewise.
9231         * lib/unictype/categ_of.h: Likewise.
9232         * lib/unictype/combining.h: Likewise.
9233         * lib/unictype/ctype_alnum.h: Likewise.
9234         * lib/unictype/ctype_alpha.h: Likewise.
9235         * lib/unictype/ctype_graph.h: Likewise.
9236         * lib/unictype/ctype_lower.h: Likewise.
9237         * lib/unictype/ctype_print.h: Likewise.
9238         * lib/unictype/ctype_punct.h: Likewise.
9239         * lib/unictype/ctype_upper.h: Likewise.
9240         * lib/unictype/decdigit.h: Likewise.
9241         * lib/unictype/digit.h: Likewise.
9242         * lib/unictype/numeric.h: Likewise.
9243         * lib/unictype/pr_alphabetic.h: Likewise.
9244         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9245         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9246         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9247         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9248         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9249         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9250         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9251         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9252         * lib/unictype/pr_case_ignorable.h: Likewise.
9253         * lib/unictype/pr_cased.h: Likewise.
9254         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
9255         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
9256         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
9257         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
9258         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
9259         * lib/unictype/pr_combining.h: Likewise.
9260         * lib/unictype/pr_composite.h: Likewise.
9261         * lib/unictype/pr_currency_symbol.h: Likewise.
9262         * lib/unictype/pr_decimal_digit.h: Likewise.
9263         * lib/unictype/pr_deprecated.h: Likewise.
9264         * lib/unictype/pr_format_control.h: Likewise.
9265         * lib/unictype/pr_grapheme_base.h: Likewise.
9266         * lib/unictype/pr_grapheme_extend.h: Likewise.
9267         * lib/unictype/pr_grapheme_link.h: Likewise.
9268         * lib/unictype/pr_id_continue.h: Likewise.
9269         * lib/unictype/pr_id_start.h: Likewise.
9270         * lib/unictype/pr_ideographic.h: Likewise.
9271         * lib/unictype/pr_lowercase.h: Likewise.
9272         * lib/unictype/pr_math.h: Likewise.
9273         * lib/unictype/pr_numeric.h: Likewise.
9274         * lib/unictype/pr_other_alphabetic.h: Likewise.
9275         * lib/unictype/pr_other_id_continue.h: Likewise.
9276         * lib/unictype/pr_other_math.h: Likewise.
9277         * lib/unictype/pr_punctuation.h: Likewise.
9278         * lib/unictype/pr_sentence_terminal.h: Likewise.
9279         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9280         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9281         * lib/unictype/pr_unified_ideograph.h: Likewise.
9282         * lib/unictype/pr_uppercase.h: Likewise.
9283         * lib/unictype/pr_xid_continue.h: Likewise.
9284         * lib/unictype/pr_xid_start.h: Likewise.
9285         * lib/unictype/scripts.h: Likewise.
9286         * lib/unictype/scripts_byname.gperf: Likewise.
9287         * lib/unictype/sy_java_ident.h: Likewise.
9288         * lib/unigbrk/gbrkprop.h: Likewise.
9289         * lib/unilbrk/lbrkprop1.h: Likewise.
9290         * lib/unilbrk/lbrkprop2.h: Likewise.
9291         * lib/uninorm/decomposition-table2.h: Likewise.
9292         * lib/uniwbrk/wbrkprop.h: Likewise.
9293         * tests/unicase/test-cased.c: Likewise.
9294         * tests/unicase/test-ignorable.c: Likewise.
9295         * tests/unicase/test-uc_tolower.c: Likewise.
9296         * tests/unicase/test-uc_totitle.c: Likewise.
9297         * tests/unicase/test-uc_toupper.c: Likewise.
9298         * tests/unictype/test-categ_C.c: Likewise.
9299         * tests/unictype/test-categ_Cn.c: Likewise.
9300         * tests/unictype/test-categ_L.c: Likewise.
9301         * tests/unictype/test-categ_Ll.c: Likewise.
9302         * tests/unictype/test-categ_Lm.c: Likewise.
9303         * tests/unictype/test-categ_Lo.c: Likewise.
9304         * tests/unictype/test-categ_Lu.c: Likewise.
9305         * tests/unictype/test-categ_M.c: Likewise.
9306         * tests/unictype/test-categ_Mc.c: Likewise.
9307         * tests/unictype/test-categ_Me.c: Likewise.
9308         * tests/unictype/test-categ_Mn.c: Likewise.
9309         * tests/unictype/test-categ_N.c: Likewise.
9310         * tests/unictype/test-categ_Nd.c: Likewise.
9311         * tests/unictype/test-categ_No.c: Likewise.
9312         * tests/unictype/test-categ_P.c: Likewise.
9313         * tests/unictype/test-categ_Po.c: Likewise.
9314         * tests/unictype/test-categ_S.c: Likewise.
9315         * tests/unictype/test-categ_Sc.c: Likewise.
9316         * tests/unictype/test-categ_Sk.c: Likewise.
9317         * tests/unictype/test-categ_Sm.c: Likewise.
9318         * tests/unictype/test-categ_So.c: Likewise.
9319         * tests/unictype/test-ctype_alnum.c: Likewise.
9320         * tests/unictype/test-ctype_alpha.c: Likewise.
9321         * tests/unictype/test-ctype_graph.c: Likewise.
9322         * tests/unictype/test-ctype_lower.c: Likewise.
9323         * tests/unictype/test-ctype_print.c: Likewise.
9324         * tests/unictype/test-ctype_punct.c: Likewise.
9325         * tests/unictype/test-ctype_upper.c: Likewise.
9326         * tests/unictype/test-decdigit.h: Likewise.
9327         * tests/unictype/test-digit.h: Likewise.
9328         * tests/unictype/test-numeric.h: Likewise.
9329         * tests/unictype/test-pr_alphabetic.c: Likewise.
9330         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9331         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
9332         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
9333         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9334         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9335         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9336         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9337         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9338         * tests/unictype/test-pr_case_ignorable.c: Likewise.
9339         * tests/unictype/test-pr_cased.c: Likewise.
9340         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
9341         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
9342         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
9343         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
9344         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
9345         * tests/unictype/test-pr_combining.c: Likewise.
9346         * tests/unictype/test-pr_composite.c: Likewise.
9347         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9348         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9349         * tests/unictype/test-pr_deprecated.c: Likewise.
9350         * tests/unictype/test-pr_format_control.c: Likewise.
9351         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9352         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9353         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9354         * tests/unictype/test-pr_id_continue.c: Likewise.
9355         * tests/unictype/test-pr_id_start.c: Likewise.
9356         * tests/unictype/test-pr_ideographic.c: Likewise.
9357         * tests/unictype/test-pr_lowercase.c: Likewise.
9358         * tests/unictype/test-pr_math.c: Likewise.
9359         * tests/unictype/test-pr_numeric.c: Likewise.
9360         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9361         * tests/unictype/test-pr_other_id_continue.c: Likewise.
9362         * tests/unictype/test-pr_other_math.c: Likewise.
9363         * tests/unictype/test-pr_punctuation.c: Likewise.
9364         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9365         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9366         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9367         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9368         * tests/unictype/test-pr_uppercase.c: Likewise.
9369         * tests/unictype/test-pr_xid_continue.c: Likewise.
9370         * tests/unictype/test-pr_xid_start.c: Likewise.
9371         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
9372         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
9373         changes.
9374         * lib/unictype/categ_Cc.h: Likewise.
9375         * lib/unictype/categ_Cf.h: Likewise.
9376         * lib/unictype/categ_Co.h: Likewise.
9377         * lib/unictype/categ_Cs.h: Likewise.
9378         * lib/unictype/categ_Lt.h: Likewise.
9379         * lib/unictype/categ_Nl.h: Likewise.
9380         * lib/unictype/categ_Pc.h: Likewise.
9381         * lib/unictype/categ_Pd.h: Likewise.
9382         * lib/unictype/categ_Pe.h: Likewise.
9383         * lib/unictype/categ_Pf.h: Likewise.
9384         * lib/unictype/categ_Pi.h: Likewise.
9385         * lib/unictype/categ_Ps.h: Likewise.
9386         * lib/unictype/categ_Z.h: Likewise.
9387         * lib/unictype/categ_Zl.h: Likewise.
9388         * lib/unictype/categ_Zp.h: Likewise.
9389         * lib/unictype/categ_Zs.h: Likewise.
9390         * lib/unictype/ctype_blank.h: Likewise.
9391         * lib/unictype/ctype_cntrl.h: Likewise.
9392         * lib/unictype/ctype_digit.h: Likewise.
9393         * lib/unictype/ctype_space.h: Likewise.
9394         * lib/unictype/ctype_xdigit.h: Likewise.
9395         * lib/unictype/mirror.h: Likewise.
9396         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9397         * lib/unictype/pr_bidi_block_separator.h: Likewise.
9398         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9399         * lib/unictype/pr_bidi_control.h: Likewise.
9400         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9401         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9402         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9403         * lib/unictype/pr_bidi_pdf.h: Likewise.
9404         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9405         * lib/unictype/pr_bidi_whitespace.h: Likewise.
9406         * lib/unictype/pr_dash.h: Likewise.
9407         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9408         * lib/unictype/pr_diacritic.h: Likewise.
9409         * lib/unictype/pr_extender.h: Likewise.
9410         * lib/unictype/pr_hex_digit.h: Likewise.
9411         * lib/unictype/pr_hyphen.h: Likewise.
9412         * lib/unictype/pr_ids_binary_operator.h: Likewise.
9413         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9414         * lib/unictype/pr_ignorable_control.h: Likewise.
9415         * lib/unictype/pr_iso_control.h: Likewise.
9416         * lib/unictype/pr_join_control.h: Likewise.
9417         * lib/unictype/pr_left_of_pair.h: Likewise.
9418         * lib/unictype/pr_line_separator.h: Likewise.
9419         * lib/unictype/pr_logical_order_exception.h: Likewise.
9420         * lib/unictype/pr_non_break.h: Likewise.
9421         * lib/unictype/pr_not_a_character.h: Likewise.
9422         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9423         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9424         * lib/unictype/pr_other_id_start.h: Likewise.
9425         * lib/unictype/pr_other_lowercase.h: Likewise.
9426         * lib/unictype/pr_other_uppercase.h: Likewise.
9427         * lib/unictype/pr_paired_punctuation.h: Likewise.
9428         * lib/unictype/pr_paragraph_separator.h: Likewise.
9429         * lib/unictype/pr_pattern_syntax.h: Likewise.
9430         * lib/unictype/pr_pattern_white_space.h: Likewise.
9431         * lib/unictype/pr_private_use.h: Likewise.
9432         * lib/unictype/pr_quotation_mark.h: Likewise.
9433         * lib/unictype/pr_radical.h: Likewise.
9434         * lib/unictype/pr_soft_dotted.h: Likewise.
9435         * lib/unictype/pr_space.h: Likewise.
9436         * lib/unictype/pr_titlecase.h: Likewise.
9437         * lib/unictype/pr_variation_selector.h: Likewise.
9438         * lib/unictype/pr_white_space.h: Likewise.
9439         * lib/unictype/pr_zero_width.h: Likewise.
9440         * lib/unictype/sy_c_ident.h: Likewise.
9441         * lib/unictype/sy_c_whitespace.h: Likewise.
9442         * lib/unictype/sy_java_whitespace.h: Likewise.
9443         * lib/uninorm/composition-table.gperf: Likewise.
9444         * lib/uninorm/decomposition-table1.h: Likewise.
9445         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
9446         LB8.
9447         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
9448         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
9449         * modules/unictype/*: Bump version number of expected libunistring
9450         version.
9451
9452 2011-01-09  Bruno Haible  <bruno@clisp.org>
9453
9454         Update to Unicode 5.2.0.
9455         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
9456         trailing whitespace removed.
9457
9458 2011-01-09  Bruno Haible  <bruno@clisp.org>
9459
9460         New Unicode character properties, from Unicode 5.2.0.
9461         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
9462         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
9463         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
9464         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
9465         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
9466         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
9467         uc_is_property_cased, uc_is_property_case_ignorable,
9468         uc_is_property_changes_when_lowercased,
9469         uc_is_property_changes_when_uppercased,
9470         uc_is_property_changes_when_titlecased,
9471         uc_is_property_changes_when_casefolded,
9472         uc_is_property_changes_when_casemapped): New declarations.
9473         * lib/unictype/pr_byname.gperf: Add the new properties.
9474         * modules/unictype/property-byname (Depends-on): Depend on the new
9475         properties modules.
9476         * modules/unictype/property-all (Depends-on): Likewise.
9477         * MODULES.html.sh (Unicode string functions): Add
9478         unictype/property-case-ignorable, unictype/property-cased,
9479         unictype/property-changes-when-casefolded,
9480         unictype/property-changes-when-casemapped,
9481         unictype/property-changes-when-lowercased,
9482         unictype/property-changes-when-titlecased,
9483         unictype/property-changes-when-uppercased.
9484
9485         New module 'unictype/property-changes-when-casemapped'.
9486         * modules/unictype/property-changes-when-casemapped: New file.
9487         * lib/unictype/pr_changes_when_casemapped.c: New file.
9488         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
9489         generated by gen-uni-tables.
9490         * modules/unictype/property-changes-when-casemapped-tests: New file.
9491         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
9492         automatically generated by gen-uni-tables.
9493
9494         New module 'unictype/property-changes-when-casefolded'.
9495         * modules/unictype/property-changes-when-casefolded: New file.
9496         * lib/unictype/pr_changes_when_casefolded.c: New file.
9497         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
9498         generated by gen-uni-tables.
9499         * modules/unictype/property-changes-when-casefolded-tests: New file.
9500         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
9501         automatically generated by gen-uni-tables.
9502
9503         New module 'unictype/property-changes-when-titlecased'.
9504         * modules/unictype/property-changes-when-titlecased: New file.
9505         * lib/unictype/pr_changes_when_titlecased.c: New file.
9506         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
9507         generated by gen-uni-tables.
9508         * modules/unictype/property-changes-when-titlecased-tests: New file.
9509         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
9510         automatically generated by gen-uni-tables.
9511
9512         New module 'unictype/property-changes-when-uppercased'.
9513         * modules/unictype/property-changes-when-uppercased: New file.
9514         * lib/unictype/pr_changes_when_uppercased.c: New file.
9515         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
9516         generated by gen-uni-tables.
9517         * modules/unictype/property-changes-when-uppercased-tests: New file.
9518         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
9519         automatically generated by gen-uni-tables.
9520
9521         New module 'unictype/property-changes-when-lowercased'.
9522         * modules/unictype/property-changes-when-lowercased: New file.
9523         * lib/unictype/pr_changes_when_lowercased.c: New file.
9524         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
9525         generated by gen-uni-tables.
9526         * modules/unictype/property-changes-when-lowercased-tests: New file.
9527         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
9528         automatically generated by gen-uni-tables.
9529
9530         New module 'unictype/property-case-ignorable'.
9531         * modules/unictype/property-case-ignorable: New file.
9532         * lib/unictype/pr_case_ignorable.c: New file.
9533         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
9534         by gen-uni-tables.
9535         * modules/unictype/property-case-ignorable-tests: New file.
9536         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
9537         generated by gen-uni-tables.
9538
9539         New module 'unictype/property-cased'.
9540         * modules/unictype/property-cased: New file.
9541         * lib/unictype/pr_cased.c: New file.
9542         * lib/unictype/pr_cased.h: New file, automatically generated by
9543         gen-uni-tables.
9544         * modules/unictype/property-cased-tests: New file.
9545         * tests/unictype/test-pr_cased.c: New file, automatically generated by
9546         gen-uni-tables.
9547
9548 2011-01-09  Bruno Haible  <bruno@clisp.org>
9549
9550         Update to Unicode 5.2.0.
9551         * lib/gen-uni-tables.c (output_predicate, output_category,
9552         output_combclass, output_bidi_category, output_decimal_digit_test,
9553         output_decimal_digit, output_digit_test, output_digit,
9554         output_numeric_test, output_numeric, output_mirror, output_scripts,
9555         output_scripts_byname, output_blocks, output_ident_category): Fix
9556         comment header.
9557         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
9558         get_wbp.
9559         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
9560         items.
9561         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
9562         Changes_When_Lowercased, Changes_When_Uppercased,
9563         Changes_When_Titlecased, Changes_When_Casefolded,
9564         Changes_When_Casemapped.
9565         (is_property_alphabetic, is_property_default_ignorable_code_point):
9566         Update for Unicode 5.2.0.
9567         (is_property_cased, is_property_case_ignorable,
9568         is_property_changes_when_lowercased,
9569         is_property_changes_when_uppercased,
9570         is_property_changes_when_titlecased,
9571         is_property_changes_when_casefolded,
9572         is_property_changes_when_casemapped): New functions.
9573         (output_properties): Output also the properties cased, case_ignorable,
9574         changes_when_lowercased, changes_when_uppercased,
9575         changes_when_titlecased, changes_when_casefolded,
9576         changes_when_casemapped.
9577         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
9578         Unicode TR#11 revision 17 -> 19.
9579         (LBP_CP): New enumeration value.
9580         (LBP_*): Adjust values accordingly.
9581         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
9582         TR#14 revision 22 -> 24.
9583         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
9584         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
9585         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
9586         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
9587         is_WBP_MIDLETTER.
9588         (output_composition_tables): Allow for 24 bits instead of 16 bits in
9589         the code1 and code2 of each composition rule.
9590         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
9591         * lib/unicase/ignorable.h: Likewise.
9592         * lib/unicase/tocasefold.h: Likewise.
9593         * lib/unicase/tolower.h: Likewise.
9594         * lib/unicase/totitle.h: Likewise.
9595         * lib/unicase/toupper.h: Likewise.
9596         * lib/unictype/bidi_of.h: Likewise.
9597         * lib/unictype/blocks.h: Likewise.
9598         * lib/unictype/categ_C.h: Likewise.
9599         * lib/unictype/categ_Cf.h: Likewise.
9600         * lib/unictype/categ_Cn.h: Likewise.
9601         * lib/unictype/categ_L.h: Likewise.
9602         * lib/unictype/categ_Ll.h: Likewise.
9603         * lib/unictype/categ_Lm.h: Likewise.
9604         * lib/unictype/categ_Lo.h: Likewise.
9605         * lib/unictype/categ_Lu.h: Likewise.
9606         * lib/unictype/categ_M.h: Likewise.
9607         * lib/unictype/categ_Mc.h: Likewise.
9608         * lib/unictype/categ_Mn.h: Likewise.
9609         * lib/unictype/categ_N.h: Likewise.
9610         * lib/unictype/categ_Nd.h: Likewise.
9611         * lib/unictype/categ_Nl.h: Likewise.
9612         * lib/unictype/categ_No.h: Likewise.
9613         * lib/unictype/categ_P.h: Likewise.
9614         * lib/unictype/categ_Pd.h: Likewise.
9615         * lib/unictype/categ_Po.h: Likewise.
9616         * lib/unictype/categ_S.h: Likewise.
9617         * lib/unictype/categ_Sc.h: Likewise.
9618         * lib/unictype/categ_So.h: Likewise.
9619         * lib/unictype/categ_of.h: Likewise.
9620         * lib/unictype/combining.h: Likewise.
9621         * lib/unictype/ctype_alnum.h: Likewise.
9622         * lib/unictype/ctype_alpha.h: Likewise.
9623         * lib/unictype/ctype_graph.h: Likewise.
9624         * lib/unictype/ctype_lower.h: Likewise.
9625         * lib/unictype/ctype_print.h: Likewise.
9626         * lib/unictype/ctype_punct.h: Likewise.
9627         * lib/unictype/ctype_upper.h: Likewise.
9628         * lib/unictype/decdigit.h: Likewise.
9629         * lib/unictype/digit.h: Likewise.
9630         * lib/unictype/numeric.h: Likewise.
9631         * lib/unictype/pr_alphabetic.h: Likewise.
9632         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9633         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9634         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9635         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9636         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9637         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9638         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9639         * lib/unictype/pr_combining.h: Likewise.
9640         * lib/unictype/pr_composite.h: Likewise.
9641         * lib/unictype/pr_currency_symbol.h: Likewise.
9642         * lib/unictype/pr_dash.h: Likewise.
9643         * lib/unictype/pr_decimal_digit.h: Likewise.
9644         * lib/unictype/pr_deprecated.h: Likewise.
9645         * lib/unictype/pr_diacritic.h: Likewise.
9646         * lib/unictype/pr_extender.h: Likewise.
9647         * lib/unictype/pr_grapheme_base.h: Likewise.
9648         * lib/unictype/pr_grapheme_extend.h: Likewise.
9649         * lib/unictype/pr_grapheme_link.h: Likewise.
9650         * lib/unictype/pr_id_continue.h: Likewise.
9651         * lib/unictype/pr_id_start.h: Likewise.
9652         * lib/unictype/pr_ideographic.h: Likewise.
9653         * lib/unictype/pr_ignorable_control.h: Likewise.
9654         * lib/unictype/pr_logical_order_exception.h: Likewise.
9655         * lib/unictype/pr_lowercase.h: Likewise.
9656         * lib/unictype/pr_numeric.h: Likewise.
9657         * lib/unictype/pr_other_alphabetic.h: Likewise.
9658         * lib/unictype/pr_punctuation.h: Likewise.
9659         * lib/unictype/pr_sentence_terminal.h: Likewise.
9660         * lib/unictype/pr_terminal_punctuation.h: Likewise.
9661         * lib/unictype/pr_unassigned_code_value.h: Likewise.
9662         * lib/unictype/pr_unified_ideograph.h: Likewise.
9663         * lib/unictype/pr_uppercase.h: Likewise.
9664         * lib/unictype/pr_xid_continue.h: Likewise.
9665         * lib/unictype/pr_xid_start.h: Likewise.
9666         * lib/unictype/pr_zero_width.h: Likewise.
9667         * lib/unictype/scripts.h: Likewise.
9668         * lib/unictype/scripts_byname.gperf: Likewise.
9669         * lib/unictype/sy_java_ident.h: Likewise.
9670         * lib/unigbrk/gbrkprop.h: Likewise.
9671         * lib/unilbrk/lbrkprop1.h: Likewise.
9672         * lib/unilbrk/lbrkprop2.h: Likewise.
9673         * lib/unilbrk/lbrktables.h: Likewise.
9674         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
9675         LBP_CP. Implement rule LB30.
9676         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
9677         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
9678         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
9679         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
9680         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
9681         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
9682         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
9683         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
9684         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
9685         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
9686         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
9687         bits instead of 16 bits in the code1 and code2 of each composition
9688         rule.
9689         (uc_composition): Update for Unicode 5.2.0.
9690         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
9691         * lib/uninorm/decomposition-table2.h: Likewise.
9692         * lib/uniwbrk/wbrkprop.h: Likewise.
9693         * tests/unicase/test-cased.c: Likewise.
9694         * tests/unicase/test-ignorable.c: Likewise.
9695         * tests/unicase/test-uc_tolower.c: Likewise.
9696         * tests/unicase/test-uc_totitle.c: Likewise.
9697         * tests/unicase/test-uc_toupper.c: Likewise.
9698         * tests/unictype/test-categ_C.c: Likewise.
9699         * tests/unictype/test-categ_Cf.c: Likewise.
9700         * tests/unictype/test-categ_Cn.c: Likewise.
9701         * tests/unictype/test-categ_L.c: Likewise.
9702         * tests/unictype/test-categ_Ll.c: Likewise.
9703         * tests/unictype/test-categ_Lm.c: Likewise.
9704         * tests/unictype/test-categ_Lo.c: Likewise.
9705         * tests/unictype/test-categ_Lu.c: Likewise.
9706         * tests/unictype/test-categ_M.c: Likewise.
9707         * tests/unictype/test-categ_Mc.c: Likewise.
9708         * tests/unictype/test-categ_Mn.c: Likewise.
9709         * tests/unictype/test-categ_N.c: Likewise.
9710         * tests/unictype/test-categ_Nd.c: Likewise.
9711         * tests/unictype/test-categ_Nl.c: Likewise.
9712         * tests/unictype/test-categ_No.c: Likewise.
9713         * tests/unictype/test-categ_P.c: Likewise.
9714         * tests/unictype/test-categ_Pd.c: Likewise.
9715         * tests/unictype/test-categ_Po.c: Likewise.
9716         * tests/unictype/test-categ_S.c: Likewise.
9717         * tests/unictype/test-categ_Sc.c: Likewise.
9718         * tests/unictype/test-categ_So.c: Likewise.
9719         * tests/unictype/test-ctype_alnum.c: Likewise.
9720         * tests/unictype/test-ctype_alpha.c: Likewise.
9721         * tests/unictype/test-ctype_graph.c: Likewise.
9722         * tests/unictype/test-ctype_lower.c: Likewise.
9723         * tests/unictype/test-ctype_print.c: Likewise.
9724         * tests/unictype/test-ctype_punct.c: Likewise.
9725         * tests/unictype/test-ctype_upper.c: Likewise.
9726         * tests/unictype/test-decdigit.h: Likewise.
9727         * tests/unictype/test-digit.h: Likewise.
9728         * tests/unictype/test-numeric.h: Likewise.
9729         * tests/unictype/test-pr_alphabetic.c: Likewise.
9730         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9731         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9732         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
9733         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9734         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9735         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9736         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9737         * tests/unictype/test-pr_combining.c: Likewise.
9738         * tests/unictype/test-pr_composite.c: Likewise.
9739         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9740         * tests/unictype/test-pr_dash.c: Likewise.
9741         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9742         * tests/unictype/test-pr_deprecated.c: Likewise.
9743         * tests/unictype/test-pr_diacritic.c: Likewise.
9744         * tests/unictype/test-pr_extender.c: Likewise.
9745         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9746         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9747         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9748         * tests/unictype/test-pr_id_continue.c: Likewise.
9749         * tests/unictype/test-pr_id_start.c: Likewise.
9750         * tests/unictype/test-pr_ideographic.c: Likewise.
9751         * tests/unictype/test-pr_ignorable_control.c: Likewise.
9752         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
9753         * tests/unictype/test-pr_lowercase.c: Likewise.
9754         * tests/unictype/test-pr_numeric.c: Likewise.
9755         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9756         * tests/unictype/test-pr_punctuation.c: Likewise.
9757         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9758         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9759         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9760         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9761         * tests/unictype/test-pr_uppercase.c: Likewise.
9762         * tests/unictype/test-pr_xid_continue.c: Likewise.
9763         * tests/unictype/test-pr_xid_start.c: Likewise.
9764         * tests/unictype/test-pr_zero_width.c: Likewise.
9765         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
9766         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
9767         changed behaviour: line breaking is now disallowed between a letter
9768         or '=' and '('.
9769         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
9770         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
9771         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
9772         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
9773         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9774         lib/uniwidth/width.c.
9775         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
9776         without comments, but with the original copyright notice.
9777         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
9778         changes.
9779         * lib/unictype/categ_Cc.h: Likewise.
9780         * lib/unictype/categ_Co.h: Likewise.
9781         * lib/unictype/categ_Cs.h: Likewise.
9782         * lib/unictype/categ_Lt.h: Likewise.
9783         * lib/unictype/categ_Me.h: Likewise.
9784         * lib/unictype/categ_Pc.h: Likewise.
9785         * lib/unictype/categ_Pe.h: Likewise.
9786         * lib/unictype/categ_Pf.h: Likewise.
9787         * lib/unictype/categ_Pi.h: Likewise.
9788         * lib/unictype/categ_Ps.h: Likewise.
9789         * lib/unictype/categ_Sk.h: Likewise.
9790         * lib/unictype/categ_Sm.h: Likewise.
9791         * lib/unictype/categ_Z.h: Likewise.
9792         * lib/unictype/categ_Zl.h: Likewise.
9793         * lib/unictype/categ_Zp.h: Likewise.
9794         * lib/unictype/categ_Zs.h: Likewise.
9795         * lib/unictype/ctype_blank.h: Likewise.
9796         * lib/unictype/ctype_cntrl.h: Likewise.
9797         * lib/unictype/ctype_digit.h: Likewise.
9798         * lib/unictype/ctype_space.h: Likewise.
9799         * lib/unictype/ctype_xdigit.h: Likewise.
9800         * lib/unictype/mirror.h: Likewise.
9801         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9802         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9803         * lib/unictype/pr_bidi_block_separator.h: Likewise.
9804         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9805         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9806         * lib/unictype/pr_bidi_control.h: Likewise.
9807         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9808         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9809         * lib/unictype/pr_bidi_pdf.h: Likewise.
9810         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9811         * lib/unictype/pr_bidi_whitespace.h: Likewise.
9812         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9813         * lib/unictype/pr_format_control.h: Likewise.
9814         * lib/unictype/pr_hex_digit.h: Likewise.
9815         * lib/unictype/pr_hyphen.h: Likewise.
9816         * lib/unictype/pr_ids_binary_operator.h: Likewise.
9817         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9818         * lib/unictype/pr_iso_control.h: Likewise.
9819         * lib/unictype/pr_join_control.h: Likewise.
9820         * lib/unictype/pr_left_of_pair.h: Likewise.
9821         * lib/unictype/pr_line_separator.h: Likewise.
9822         * lib/unictype/pr_math.h: Likewise.
9823         * lib/unictype/pr_non_break.h: Likewise.
9824         * lib/unictype/pr_not_a_character.h: Likewise.
9825         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9826         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9827         * lib/unictype/pr_other_id_continue.h: Likewise.
9828         * lib/unictype/pr_other_id_start.h: Likewise.
9829         * lib/unictype/pr_other_lowercase.h: Likewise.
9830         * lib/unictype/pr_other_math.h: Likewise.
9831         * lib/unictype/pr_other_uppercase.h: Likewise.
9832         * lib/unictype/pr_paired_punctuation.h: Likewise.
9833         * lib/unictype/pr_paragraph_separator.h: Likewise.
9834         * lib/unictype/pr_pattern_syntax.h: Likewise.
9835         * lib/unictype/pr_pattern_white_space.h: Likewise.
9836         * lib/unictype/pr_private_use.h: Likewise.
9837         * lib/unictype/pr_quotation_mark.h: Likewise.
9838         * lib/unictype/pr_radical.h: Likewise.
9839         * lib/unictype/pr_soft_dotted.h: Likewise.
9840         * lib/unictype/pr_space.h: Likewise.
9841         * lib/unictype/pr_titlecase.h: Likewise.
9842         * lib/unictype/pr_variation_selector.h: Likewise.
9843         * lib/unictype/pr_white_space.h: Likewise.
9844         * lib/unictype/sy_c_ident.h: Likewise.
9845         * lib/unictype/sy_c_whitespace.h: Likewise.
9846         * lib/unictype/sy_java_whitespace.h: Likewise.
9847         * modules/uni*/*: Bump version number of expected libunistring version.
9848         Reported by Simon Josefsson.
9849
9850 2011-01-09  Karl Heuer  <kwzh@gnu.org>
9851
9852         useless-if-before-free: fix typo in --help and make the internal,
9853         automatic version date update process work once again.
9854         --help output contained a NUL character instead of the
9855         backslash-zero that was intended.  Also, the "must lie within
9856         the first 8 lines" line is on line 9, and hence not getting
9857         automatically updated.
9858         * build-aux/useless-if-before-free: Fix the former by adding a
9859         backslash, and the latter by condensing the three lines of what-it-does
9860         to a single line, leaving one line of slack for the future.
9861
9862 2011-01-09  Bruno Haible  <bruno@clisp.org>
9863
9864         uniwidth/width: Fix width of U+1D173..U+1D17A.
9865         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
9866         symbolic_width, output_width_property_test): New functions.
9867         (main): Invoke output_nonspacing_property, output_width_property_test.
9868         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
9869         U+1D173..U+1D17A.
9870         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
9871         1.
9872         * modules/uniwidth/*: Bump version number of expected libunistring
9873         version.
9874         * modules/unilbrk/*: Likewise.
9875
9876 2011-01-08  Bruno Haible  <bruno@clisp.org>
9877
9878         uninorm tests: Preserve copyright of Unicode data file.
9879         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
9880         Mention modifications.
9881
9882 2011-01-08  Bruno Haible  <bruno@clisp.org>
9883
9884         gen-uni-tables: Prepare for Unicode 5.2.0.
9885         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
9886         (debug_output_lbp, output_lbp): Update.
9887
9888 2011-01-08  Bruno Haible  <bruno@clisp.org>
9889
9890         unilbrk: Clarify gen-uni-tables.c code.
9891         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
9892         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
9893         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
9894
9895 2011-01-07  Bruno Haible  <bruno@clisp.org>
9896
9897         strtod: Restore errno when successfully parsing Infinity or NaN.
9898         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
9899         restore the original errno.
9900
9901 2011-01-07  Bruno Haible  <bruno@clisp.org>
9902
9903         remove test: Avoid failure on HP-UX 11.
9904         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
9905
9906 2011-01-07  Bruno Haible  <bruno@clisp.org>
9907
9908         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
9909         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
9910         error code.
9911
9912 2011-01-07  Pádraig Brady <P@draigBrady.com>
9913
9914         ignore-value: fixup comments, and add Eric Blake
9915         as an author since he rewrote the macros.
9916         * lib/ignore-value.h (ignore_value):  State that
9917         we now support aggregates.  Also specify exactly
9918         when the GCC warn_unused_result feature was added.
9919
9920 2011-01-06  Eric Blake  <eblake@redhat.com>
9921
9922         ignore-value: support aggregate types
9923         * lib/ignore-value.h (ignore_value): Provide separate gcc
9924         definition.
9925         * modules/ignore-value-tests: New test module.
9926         * tests/test-ignore-value.c: New test.
9927
9928         maint.mk: improve sc_prohibit_strcmp regex
9929         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
9930         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
9931         definition of STRNEQ.
9932
9933         signal: work around Haiku issue with SIGBUS
9934         * lib/siglist.h: Add comment.
9935         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
9936         strsignal's favoring of SIGSEGV.
9937         * tests/test-signal.c (main): Avoid test failure.
9938         * doc/posix-headers/signal.texi (signal.h): Document the issue.
9939         Reported by Scott McCreary.
9940
9941         maint.mk: add pre-release check to ensure submodule commits are public
9942         * top/maint.mk (public-submodule-commit): New rule.
9943         (submodule-checks): New variable.
9944         (alpha beta stable): Depend on the variable.
9945
9946 2011-01-05  Pádraig Brady <P@draigBrady.com>
9947         and Jim Meyering  <meyering@redhat.com>
9948
9949         ignore-value: make ignore_value more generic; deprecate ignore_ptr
9950         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
9951         (ATTRIBUTE_DEPRECATED): Define.
9952         (_ignore_case): New function.
9953         (ignore_value): New macro, to replace the old function.
9954         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
9955         * modules/ignore-value (Depends-on): Add stdint.
9956
9957 2011-01-04  Eric Blake  <eblake@redhat.com>
9958
9959         doc: regenerate INSTALL
9960         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
9961         @firstparagraphindent support, now that autoconf dropped it.
9962         (INSTALL_PRELUDE): Reinstate old macro.
9963         * doc/install.texi: Resync from autoconf.
9964         * doc/INSTALL: Reflect recent autoconf update.
9965         * doc/INSTALL.ISO: Likewise.
9966         * doc/INSTALL.UTF-8: Likewise.
9967         Reported by Karl Berry.
9968
9969 2011-01-04  Bruce Korb  <address@hidden>
9970
9971         git-version-gen: avoid a sub-shell
9972         * build-aux/git-version-gen: Redirect stderr in `...` via
9973         "exec 2>...", rather than via an added sub-shell.
9974
9975 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
9976
9977         git-version-gen: use (...) rather than sh -c '...'
9978         * build-aux/git-version-gen: Rather than hard-coding a shell's name
9979         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
9980
9981 2011-01-03  Jim Meyering  <meyering@redhat.com>
9982
9983         git-version-gen: convert leading TABs to spaces
9984         * build-aux/git-version-gen: Expand leading TABs.
9985
9986         git-version-gen: handle failed "git rev-list"
9987         * build-aux/git-version-gen: Rather than leaking a "fatal" error
9988         from git and proceeding as if it had succeeded but printed no SHA1
9989         checksums, suppress the diagnostic and handle the failure.
9990         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
9991
9992         git-version-gen: include command name in one more diagnostic
9993         * build-aux/git-version-gen: When the required .tarball-version file
9994         was missing or unreadable, you might see the diagnostic from "cat",
9995         but no trace of the name of the invoking script.  Now, you still see
9996         the diagnostic from cat, but also get one from "git-version-gen: ".
9997         Inspired by a patch from Bruce Korb.
9998
9999         update-copyright: adjust test to match changed code
10000         * tests/test-update-copyright.sh: Change test's expected output
10001         to match new actual output.
10002
10003 2011-01-02  Bruno Haible  <bruno@clisp.org>
10004
10005         getlogin_r: Avoid test failure on HP-UX 11.
10006         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
10007         ERANGE when the second argument is zero.
10008         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
10009         portability problem.
10010
10011 2011-01-02  Bruce Korb  <bkorb@gnu.org>
10012
10013         * build-aux/update-copyright: doc Simon's changes
10014
10015 2011-01-02  Simon Josefsson  <simon@josefsson.org>
10016
10017         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
10018         environment variable.
10019
10020 2011-01-02  Bruno Haible  <bruno@clisp.org>
10021
10022         unigbrk: Avoid gcc warnings.
10023         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
10024         unused variable.
10025         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
10026         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
10027         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
10028         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
10029         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
10030         Change type of first argument to 'const char *'.
10031         (main): Remove unused variable.
10032         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
10033         type of first argument to 'const char *'.
10034         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
10035         Likewise.
10036         (main): Change type of variable 's'.
10037         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
10038         to 'int'.
10039
10040 2011-01-02  Bruno Haible  <bruno@clisp.org>
10041
10042         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
10043         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
10044         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
10045         bug.
10046         * lib/pwrite.c: Undo 2010-12-31 patch.
10047         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
10048
10049 2011-01-02  Bruno Haible  <bruno@clisp.org>
10050
10051         pread: Fix test whether it works.
10052         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
10053
10054 2011-01-02  Bruno Haible  <bruno@clisp.org>
10055
10056         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
10057         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
10058         ends in "6". Don't require a specific month name. Try also the locale
10059         names found on HP-UX 11 and Solaris 7.
10060
10061 2011-01-02  Bruno Haible  <bruno@clisp.org>
10062
10063         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
10064         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
10065         C linkage.
10066         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
10067
10068 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10069
10070         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
10071         for consistency, since the "cluster" term is not used elsewhere.
10072         * lib/unigbrk.in.h: Update name.
10073         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
10074         * lib/unigbrk/u16-grapheme-next.c: Update name.
10075         * lib/unigbrk/u16-grapheme-prev.c: Update name.
10076         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
10077         * lib/unigbrk/u32-grapheme-next.c: Update name.
10078         * lib/unigbrk/u32-grapheme-prev.c: Update name.
10079         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
10080         * lib/unigbrk/u8-grapheme-next.c: Update name.
10081         * lib/unigbrk/u8-grapheme-prev.c: Update name.
10082         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
10083         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
10084         Suggested by Bruno Haible.
10085
10086 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10087
10088         Remove module 'u8-grapheme-len' as too redundant with
10089         'u8-grapheme-next'.
10090         * modules/unigbrk/u8-grapheme-len: Delete file.
10091         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
10092         * lib/unigbrk.in.h: Remove prototype for deleted function.
10093         * lib/unigbrk/u8-grapheme-len.c: Delete file.
10094         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
10095
10096         Remove module 'u16-grapheme-len' as too redundant with
10097         'u16-grapheme-next'.
10098         * modules/unigbrk/u16-grapheme-len: Delete file.
10099         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
10100         * lib/unigbrk.in.h: Remove prototype for deleted function.
10101         * lib/unigbrk/u16-grapheme-len.c: Delete file.
10102         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
10103
10104         Remove module 'u32-grapheme-len' as too redundant with
10105         'u32-grapheme-next'.
10106         * modules/unigbrk/u32-grapheme-len: Delete file.
10107         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
10108         * lib/unigbrk.in.h: Remove prototype for deleted function.
10109         * lib/unigbrk/u32-grapheme-len.c: Delete file.
10110         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
10111
10112         Suggested by Bruno Haible.
10113
10114 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
10115
10116         * unigbrk.in.h: Fix typo: "ben" => "been".
10117         Reported by Bruno Haible.
10118
10119 2011-01-01  Jim Meyering  <meyering@redhat.com>
10120
10121         maint: update almost all copyright ranges to include 2011
10122         Run the new "make update-copyright" rule.
10123
10124 2011-01-01  Jim Meyering  <meyering@redhat.com>
10125
10126         maint: update-copyright: exempt doc/INSTALL*
10127         * Makefile (update-copyright): Also exclude doc/INSTALL*,
10128         since they are generated.  Suggested by Bruno Haible.
10129
10130 2011-01-01  Jim Meyering  <meyering@redhat.com>
10131
10132         maint: refine the update-copyright rule
10133         * Makefile (update-copyright): Also exclude any file that includes
10134         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
10135         code that merely generates the comment.
10136
10137 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
10138
10139         New module 'u8-grapheme-len'.
10140         * modules/unigbrk/u8-grapheme-len: New file.
10141         * modules/unigbrk/u8-grapheme-len-tests: New file.
10142         * lib/unigbrk.in.h: Add prototype for new function.
10143         * lib/unigbrk/u8-grapheme-len.c: New file.
10144         * tests/unigbrk/test-u8-grapheme-len.c: New file.
10145
10146         New module 'u16-grapheme-len'.
10147         * modules/unigbrk/u16-grapheme-len: New file.
10148         * modules/unigbrk/u16-grapheme-len-tests: New file.
10149         * lib/unigbrk.in.h: Add prototype for new function.
10150         * lib/unigbrk/u16-grapheme-len.c: New file.
10151         * tests/unigbrk/test-u16-grapheme-len.c: New file.
10152
10153         New module 'u32-grapheme-len'.
10154         * modules/unigbrk/u32-grapheme-len: New file.
10155         * modules/unigbrk/u32-grapheme-len-tests: New file.
10156         * lib/unigbrk.in.h: Add prototype for new function.
10157         * lib/unigbrk/u32-grapheme-len.c: New file.
10158         * tests/unigbrk/test-u32-grapheme-len.c: New file.
10159
10160         New module 'u8-grapheme-next'.
10161         * modules/unigbrk/u8-grapheme-next: New file.
10162         * modules/unigbrk/u8-grapheme-next-tests: New file.
10163         * lib/unigbrk.in.h: Add prototype for new function.
10164         * lib/unigbrk/u8-grapheme-next.c: New file.
10165         * tests/unigbrk/test-u8-grapheme-next.c: New file.
10166
10167         New module 'u16-grapheme-next'.
10168         * modules/unigbrk/u16-grapheme-next: New file.
10169         * modules/unigbrk/u16-grapheme-next-tests: New file.
10170         * lib/unigbrk.in.h: Add prototype for new function.
10171         * lib/unigbrk/u16-grapheme-next.c: New file.
10172         * tests/unigbrk/test-u16-grapheme-next.c: New file.
10173
10174         New module 'u32-grapheme-next'.
10175         * modules/unigbrk/u32-grapheme-next: New file.
10176         * modules/unigbrk/u32-grapheme-next-tests: New file.
10177         * lib/unigbrk.in.h: Add prototype for new function.
10178         * lib/unigbrk/u32-grapheme-next.c: New file.
10179         * tests/unigbrk/test-u32-grapheme-next.c: New file.
10180
10181         New module 'u8-grapheme-prev'.
10182         * modules/unigbrk/u8-grapheme-prev: New file.
10183         * modules/unigbrk/u8-grapheme-prev-tests: New file.
10184         * lib/unigbrk.in.h: Add prototype for new function.
10185         * lib/unigbrk/u8-grapheme-prev.c: New file.
10186         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
10187
10188         New module 'u16-grapheme-prev'.
10189         * modules/unigbrk/u16-grapheme-prev: New file.
10190         * modules/unigbrk/u16-grapheme-prev-tests: New file.
10191         * lib/unigbrk.in.h: Add prototype for new function.
10192         * lib/unigbrk/u16-grapheme-prev.c: New file.
10193         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
10194
10195         New module 'u32-grapheme-prev'.
10196         * modules/unigbrk/u32-grapheme-prev: New file.
10197         * modules/unigbrk/u32-grapheme-prev-tests: New file.
10198         * lib/unigbrk.in.h: Add prototype for new function.
10199         * lib/unigbrk/u32-grapheme-prev.c: New file.
10200         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
10201
10202         New module 'u8-grapheme-breaks'.
10203         * modules/unigbrk/u8-grapheme-breaks: New file.
10204         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
10205         * lib/unigbrk.in.h: Add prototype for new function.
10206         * lib/unigbrk/u8-grapheme-breaks.c: New file.
10207         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
10208
10209         New module 'u16-grapheme-breaks'.
10210         * modules/unigbrk/u16-grapheme-breaks: New file.
10211         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
10212         * lib/unigbrk.in.h: Add prototype for new function.
10213         * lib/unigbrk/u16-grapheme-breaks.c: New file.
10214         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
10215
10216         New module 'u32-grapheme-breaks'.
10217         * modules/unigbrk/u32-grapheme-breaks: New file.
10218         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
10219         * lib/unigbrk.in.h: Add prototype for new function.
10220         * lib/unigbrk/u32-grapheme-breaks.c: New file.
10221         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
10222
10223         New module 'ulc-grapheme-breaks'.
10224         * modules/unigbrk/ulc-grapheme-breaks: New file.
10225         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
10226         * m4/locale-ar.m4: New file.
10227         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
10228         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
10229         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
10230
10231 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
10232
10233         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
10234         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
10235         modified how this file was generated before I initially submitted
10236         the module, but failed to regenerate it.  This meant that several
10237         of the level2 entries were wrong.
10238         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
10239         Remove the division-by-2 that is folded into the table now that
10240         gbrkprop.h has been regenerated properly.  Now -1 entries are
10241         handled correctly.
10242
10243         New module 'unigbrk/uc-gbrk-prop-tests'.
10244         * modules/unigbrk/uc-gbrk-prop-tests: New file.
10245         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
10246         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
10247         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
10248
10249 2011-01-01  Bruno Haible  <bruno@clisp.org>
10250
10251         Avoid use of hexadecimal escapes.
10252         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
10253         instead of hexadecimal escapes.
10254
10255 2011-01-01  Jim Meyering  <meyering@redhat.com>
10256
10257         maint: new rule to update copyright year ranges
10258         * Makefile (update-copyright): New rule.
10259
10260         maint: indent with TABs in Makefile
10261         * Makefile: Expand leading sequences of spaces to TABs
10262
10263         version-etc: update the copyright year it reports
10264         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
10265
10266 2010-12-31  Bruno Haible  <bruno@clisp.org>
10267
10268         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
10269         * lib/isfinite.c (zerof, zerod, zerol): New variables.
10270         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
10271         zero.
10272
10273 2010-12-31  Bruno Haible  <bruno@clisp.org>
10274
10275         pwrite: Work around HP-UX 11.11 bug.
10276         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
10277         works and set REPLACE_PWRITE if not.
10278         * lib/pwrite.c (pwrite): Add an implementation that uses the system
10279         function.
10280         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
10281
10282 2010-12-31  Bruno Haible  <bruno@clisp.org>
10283
10284         pread: Work around HP-UX 11 bugs.
10285         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
10286         and set REPLACE_PREAD if not.
10287         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
10288
10289 2010-12-31  Eric Blake  <eblake@redhat.com>
10290
10291         nl_langinfo: fix YESEXPR on Irix 6.5
10292         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
10293         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
10294         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
10295         it.
10296
10297 2010-12-31  Bruno Haible  <bruno@clisp.org>
10298
10299         iconv: Document HP-UX 11 bug.
10300         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
10301
10302 2010-12-31  Bruno Haible  <bruno@clisp.org>
10303
10304         ldexpl: Fix link error on HP-UX 11.
10305         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
10306         LDEXPL_LIBM, using $ISNANL_LIBM.
10307
10308 2010-12-31  Eric Blake  <eblake@redhat.com>
10309
10310         ftello: avoid compilation failure with SunStudio c89
10311         * lib/ftello.c (ftello): Use lseek, not llseek.
10312
10313         tests: avoid failing coreutils tests on cygwin
10314         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
10315         (create_exe_shims_): Return 0 when skipping.
10316
10317 2010-12-31  Bruno Haible  <bruno@clisp.org>
10318
10319         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
10320         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
10321
10322 2010-12-31  Bruno Haible  <bruno@clisp.org>
10323
10324         waitpid: Fix link error in C++ mode.
10325         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
10326
10327 2010-12-31  Bruno Haible  <bruno@clisp.org>
10328
10329         isnan: Use GCC built-ins when possible.
10330         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
10331         __builtin_isnan.
10332         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
10333         (isnan): Define using GCC built-ins for GCC >= 4.0.
10334
10335 2010-12-31  Bruno Haible  <bruno@clisp.org>
10336
10337         isnand: Fix mistake.
10338         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
10339         __builtin_isnand.
10340
10341 2010-12-31  Bruno Haible  <bruno@clisp.org>
10342
10343         open: Avoid C++ error on HP-UX 11.
10344         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
10345
10346 2010-12-31  Bruno Haible  <bruno@clisp.org>
10347
10348         time_r: Add missing declarations on HP-UX 11.
10349         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
10350         instead of HAVE_LOCALTIME_R.
10351         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
10352         HAVE_LOCALTIME_R always.
10353         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
10354         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
10355         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
10356         HAVE_LOCALTIME_R.
10357         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
10358         * doc/posix-functions/localtime_r.texi: Likewise.
10359
10360 2010-12-29  Eric Blake  <eblake@redhat.com>
10361
10362         mountlist: tweak previous commit
10363         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
10364         Reported by Paul Eggert.
10365
10366         mountlist: fix local drive detection on cygwin
10367         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
10368         that works for cygwin.
10369
10370 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10371
10372         ftoastr, snprintf: ftoastr + snprintf module
10373         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
10374         since the snprintf module now should be good enough here.
10375         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
10376         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
10377         and gl_MODULE_INDICATOR([snprintf]), but the former enables
10378         GNULIB_SNPRINTF only for the test directory, and the latter
10379         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
10380         seems to suffice by itself.
10381
10382 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
10383
10384         alloca: one step towards thread-safety
10385         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
10386         need for a static variable.  All callers changed.  This does not
10387         make the alloca replacement thread-safe, but it's one step.
10388
10389         tests: minor indenting change
10390         * tests/init.sh: Sync from coreutils housekeeping patch
10391         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
10392         to keep lines within 80 columns.
10393
10394 2010-12-28  Jim Meyering  <meyering@redhat.com>
10395
10396         regex: don't infloop on persistent failing calloc
10397         * lib/regexec.c (build_trtable): Return failure indication upon
10398         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
10399         In glibc, this was fixed for version 2.13:
10400         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
10401
10402 2010-12-28  Bruno Haible  <bruno@clisp.org>
10403             Paul Eggert <eggert@cs.ucla.edu>
10404
10405         linkat: Make implementation robust against system behaviour variations.
10406         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
10407         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
10408         way, and to -2 if it needs a generic runtime test.
10409         * lib/linkat.c (solaris_optimized_link_immediate,
10410         solaris_optimized_link_follow): New functions.
10411         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
10412         (check_same_link): Use it.
10413
10414 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
10415
10416         New module 'unigbrk/base'.
10417         * modules/unigbrk/base: New file.
10418         * lib/unigbrk.in.h: New file.
10419
10420         New module 'unigbrk/uc-gbrk-prop'.
10421         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
10422         * modules/unigbrk/uc-gbrk-prop: New file.
10423         * lib/unigbrk/gbrkprop.h: New file.
10424         * lib/unigbrk/uc-gbrk-prop.c: New file.
10425
10426         New module 'unigbrk/uc-is-grapheme-break'.
10427         * modules/unigbrk/uc-is-grapheme-break: New file.
10428         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
10429         * lib/unigbrk/uc-is-grapheme-break.c: New file.
10430         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
10431         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
10432         * tests/unigbrk/GraphemeBreakTest.txt: New file.
10433
10434         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
10435
10436 2010-12-27  Bruno Haible  <bruno@clisp.org>
10437
10438         linkat test: Avoid failure on Solaris 11 2010-11.
10439         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
10440
10441 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
10442
10443         utimens: work around glibc rounding bug on more platforms
10444         * lib/utimens.c (fdutimens): Work around rounding bug even if
10445         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
10446         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
10447
10448 2010-12-27  Bruno Haible  <bruno@clisp.org>
10449
10450         select tests: Improve comments.
10451         * tests/test-select.c (do_select): Add comments.
10452
10453 2010-12-27  Bruno Haible  <bruno@clisp.org>
10454
10455         select tests: Safer way of handling timeout.
10456         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
10457         at every invocation.
10458
10459 2010-12-27  Bruno Haible  <bruno@clisp.org>
10460
10461         select tests: Use 'bool' where appropriate.
10462         * tests/test-select.c (connect_to_socket): Change argument type to
10463         'bool'.
10464
10465 2010-12-27  Bruno Haible  <bruno@clisp.org>
10466
10467         select tests: Use existing modules.
10468         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
10469         (configure.ac): Don't test for unistd.h.
10470         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
10471         declared in <unistd.h>.
10472
10473 2010-12-27  Bruno Haible  <bruno@clisp.org>
10474
10475         mbrtowc: Work around a Solaris 7 bug.
10476         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
10477         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
10478         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
10479         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
10480         MBRTOWC_NULL_ARG1_BUG.
10481         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
10482         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
10483         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
10484         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
10485
10486 2010-12-27  Jim Meyering  <meyering@redhat.com>
10487
10488         read-file.c: tweak syntax
10489         * lib/read-file.c (fread_file): Remove space after "*" in function
10490         definitions.
10491
10492 2010-12-27  Bruno Haible  <bruno@clisp.org>
10493
10494         times test: Avoid gcc warnings on OSF/1.
10495         * tests/test-times.c (main): Cast printf arguments from clock_t to
10496         'long int'.
10497
10498 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
10499
10500         utimens: work around glibc rounding bug on older Linux kernels
10501         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
10502         on Linux with a glibc whose utimes might not work, then work
10503         around a longstanding glibc bug involving rounding rather than
10504         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
10505         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
10506
10507 2010-12-26  Bruno Haible  <bruno@clisp.org>
10508
10509         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
10510         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
10511         _GL_CXXALIAS_SYS.
10512         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10513
10514 2010-12-26  Bruno Haible  <bruno@clisp.org>
10515
10516         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
10517         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
10518         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
10519         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
10520         looking for the declaration.
10521         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
10522         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
10523         problem.
10524         * doc/posix-functions/inet_pton.texi: Likewise.
10525
10526 2010-12-26  Bruno Haible  <bruno@clisp.org>
10527
10528         arpa_inet: Use the common idioms with C++ support.
10529         * lib/arpa_inet.in.h: Include c++defs.h.
10530         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
10531         support.
10532         * modules/arpa_inet (Depends-on): Add c++defs.
10533         (Makefile.am): Substitute the contents of c++defs.h.
10534         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
10535         * modules/arpa_inet-c++-tests: New file.
10536         * tests/test-arpa_inet-c++.cc: New file.
10537
10538 2010-12-25  Bruno Haible  <bruno@clisp.org>
10539
10540         Fix more C++ link errors on Solaris 8.
10541         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
10542         $(LIB_EACCESS).
10543         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
10544         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
10545         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
10546         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
10547         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
10548
10549 2010-12-25  Bruno Haible  <bruno@clisp.org>
10550
10551         printf-posix: Fix link error when a non-GCC compiler is used.
10552         * lib/stdio.in.h (printf): When not using GCC, override printf
10553         correctly.
10554         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10555
10556 2010-12-25  Bruno Haible  <bruno@clisp.org>
10557
10558         strerror_r-posix: Update doc.
10559         * doc/posix-functions/strerror_r.texi: Update doc about the return
10560         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
10561
10562 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10563
10564         utimens: simplify the logic of the previous change
10565         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
10566         This should not affect whether the test succeeds or fails.
10567
10568         utimens: configure better on hosts with NFS clock skew
10569         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
10570         uses the clock of the local host.  It might use the clock of the
10571         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
10572         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
10573
10574 2010-12-25  Bruno Haible  <bruno@clisp.org>
10575
10576         ptsname test: Avoid failure on Solaris.
10577         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
10578         open a pseudo-terminal; don't use BSD-style ptys.
10579         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
10580
10581 2010-12-25  Bruno Haible  <bruno@clisp.org>
10582
10583         ptsname: Avoid ERANGE failure on some systems.
10584         * lib/ptsname.c (buffer): Increase size.
10585
10586 2010-12-25  Bruno Haible  <bruno@clisp.org>
10587
10588         rename, renameat: Avoid test failures at NFS mounted locations.
10589         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
10590         so that subsequent mkdir calls succeed.
10591
10592 2010-12-25  Bruno Haible  <bruno@clisp.org>
10593
10594         iswblank: Fix C++ link error on Solaris 8.
10595         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
10596         _GL_FUNCDECL_SYS.
10597
10598 2010-12-25  Bruno Haible  <bruno@clisp.org>
10599
10600         unistd: Fix C++ link error on Solaris 8.
10601         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
10602
10603 2010-12-25  Bruno Haible  <bruno@clisp.org>
10604
10605         readlink doc: Mention an old glibc bug.
10606         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
10607
10608 2010-12-25  Bruno Haible  <bruno@clisp.org>
10609
10610         fcntl-h: Fix for use of C++ on glibc systems.
10611         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
10612         also on glibc systems in C++ mode.
10613         Reported by Gary V. Vaughan <gary@gnu.org>.
10614
10615 2010-12-25  Bruno Haible  <bruno@clisp.org>
10616
10617         roundl-ieee: Make it work on OSF/1 5.1 with cc.
10618         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
10619
10620 2010-12-25  Bruno Haible  <bruno@clisp.org>
10621
10622         truncl-ieee: Make it work on OSF/1 5.1 with cc.
10623         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
10624         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
10625         test whether truncl works according to ISO C 99 with IEC 60559.
10626         * m4/truncl-ieee.m4: New file.
10627         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
10628         m4/signbit.m4.
10629         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
10630
10631 2010-12-25  Bruno Haible  <bruno@clisp.org>
10632
10633         ceill-ieee: Make it work on OSF/1 5.1 with cc.
10634         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
10635         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
10636         test whether ceill works according to ISO C 99 with IEC 60559.
10637         * m4/ceill-ieee.m4: New file.
10638         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
10639         m4/signbit.m4.
10640         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
10641
10642 2010-12-25  Bruno Haible  <bruno@clisp.org>
10643
10644         Ensure all prerequisites of <wchar.h> are included.
10645         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
10646         before <wchar.h>.
10647         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
10648         gl_MBRLEN_NUL_RETVAL): Likewise.
10649         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10650         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
10651         AC_FUNC_MBRTOWC): Likewise.
10652         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10653         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
10654         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10655         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
10656         Likewise.
10657         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10658         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
10659         (gl_WCHAR_H): Improve comments.
10660         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
10661
10662 2010-12-25  Bruno Haible  <bruno@clisp.org>
10663
10664         strtok_r: Fix C syntax error in autoconf macro.
10665         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
10666         characters in test program.
10667
10668 2010-12-24  Bruno Haible  <bruno@clisp.org>
10669
10670         ceil, trunc, round: Fix gcc warnings.
10671         * lib/ceil.c (MIN): Undefine before redefining.
10672         * lib/trunc.c (MIN): Likewise.
10673         * lib/round.c (MIN): Likewise.
10674         Include <math.h> first.
10675
10676 2010-12-24  Bruno Haible  <bruno@clisp.org>
10677
10678         select tests: Avoid failures on OSF/1 5.1.
10679         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
10680         failure of closing the last socket; it may fail with ECONNRESET.
10681
10682 2010-12-24  Eric Blake  <eblake@redhat.com>
10683
10684         stdint: avoid HP-UX 10.20 preprocessor bug
10685         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
10686         than #if.
10687         * tests/test-floor2.c (main): Likewise.
10688         Reported by Peter O'Gorman.
10689
10690         pipe: make obsoletion transition easier
10691         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
10692         * modules/pipe (Files): Include revived file.
10693         (Include): Drop reference, to mirror getdate's behavior.
10694
10695 2010-12-24  Bruno Haible  <bruno@clisp.org>
10696
10697         sys_socket: Hide mismatch of declarations on NonStop Kernel.
10698         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
10699         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
10700         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10701
10702 2010-12-24  Bruno Haible  <bruno@clisp.org>
10703
10704         gethostname: Ensure declaration on NonStop Kernel.
10705         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
10706         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10707
10708 2010-12-24  Bruno Haible  <bruno@clisp.org>
10709
10710         sys_select: Ensure all necessary types on NonStop Kernel.
10711         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
10712         include <sys/time.h>.
10713         * doc/posix-headers/sys_select.texi: Mention that it's missing on
10714         NonStop Kernel.
10715         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10716
10717 2010-12-24  Bruno Haible  <bruno@clisp.org>
10718
10719         sys_select: Remove unneeded include.
10720         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
10721         have <sys/select.h>.
10722
10723 2010-12-24  Bruno Haible  <bruno@clisp.org>
10724
10725         gethostname: Provide a fallback for HOST_NAME_MAX.
10726         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
10727         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
10728         instead.
10729         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10730
10731 2010-12-24  Bruno Haible  <bruno@clisp.org>
10732
10733         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
10734         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
10735         (SA_RESTART): Likewise.
10736         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10737
10738 2010-12-24  Bruno Haible  <bruno@clisp.org>
10739
10740         signal: Define NSIG.
10741         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
10742         * tests/test-signal.c (nsig): New variable.
10743         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10744
10745 2010-12-24  Bruno Haible  <bruno@clisp.org>
10746
10747         rename, renameat: Avoid test failures on OSF/1 5.1.
10748         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
10749         alternative error codes.
10750         * tests/test-renameat.c (main): Likewise.
10751
10752 2010-12-24  Bruno Haible  <bruno@clisp.org>
10753
10754         *printf: Detect large precisions bug on Solaris 10/SPARC.
10755         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
10756         by Paul Eggert.
10757         * tests/test-snprintf-posix.h (test_function): Add this test code here
10758         too.
10759         * tests/test-sprintf-posix.h (test_function): Likewise.
10760         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10761         * tests/test-vasprintf-posix.c (test_function): Likewise.
10762         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
10763         around by gnulib.
10764         * doc/posix-functions/printf.texi: Likewise.
10765         * doc/posix-functions/snprintf.texi: Likewise.
10766         * doc/posix-functions/sprintf.texi: Likewise.
10767         * doc/posix-functions/vfprintf.texi: Likewise.
10768         * doc/posix-functions/vprintf.texi: Likewise.
10769         * doc/posix-functions/vsnprintf.texi: Likewise.
10770         * doc/posix-functions/vsprintf.texi: Likewise.
10771         * doc/posix-functions/dprintf.texi: Undo last commit.
10772         * doc/posix-functions/vdprintf.texi: Likewise.
10773
10774 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
10775
10776         tests: port test-fdutimensat.c to Solaris 8
10777         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
10778         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
10779         On Solaris 8, it fails with errno == ENOSYS, because there is no
10780         futimens (so it can't use the fd), and there is no lutimens (so it
10781         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
10782
10783         vsnprintf: make more consistent with snprintf; doc fixes
10784
10785         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
10786         the byte count return problem was promoted from the snprintf-posix
10787         to the snprintf module.
10788         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
10789         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
10790         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
10791         * tests/test-snprintf.c (main): Check the byte count returned.
10792         * tests/test-vsnprintf.c (main): Likewise.
10793
10794 2010-12-23  Eric Blake  <eblake@redhat.com>
10795
10796         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
10797         * modules/sigpipe (License): Relax license.
10798
10799 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10800
10801         doc: document Solaris printf bug with large float precisions
10802         * doc/posix-functions/dprintf.texi (dprintf):
10803         * doc/posix-functions/fprintf.texi (fprintf):
10804         * doc/posix-functions/printf.texi (printf):
10805         * doc/posix-functions/snprintf.texi (snprintf):
10806         * doc/posix-functions/sprintf.texi (sprintf):
10807         * doc/posix-functions/vdprintf.texi (vdprintf):
10808         * doc/posix-functions/vfprintf.texi (vfprintf):
10809         * doc/posix-functions/vprintf.texi (vprintf):
10810         * doc/posix-functions/vsnprintf.texi (vsnprintf):
10811         * doc/posix-functions/vsprintf.texi (vsprintf):
10812         Mention that these functions mishandle large floating point
10813         precisions on Solaris 10.  The same bug is also present in Solaris
10814         8, and I assume earlier.  This causes "cd gnulib-tests; make
10815         check" to fail on Solaris 8 (and I assume, later) when building
10816         the latest coreutils, in test-vasprintf-posix's call to
10817         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
10818         the wide flavors (e.g., wprintf) so this patch just updates the
10819         documentation for the narrow ones.
10820
10821         test-posixtm.c: add two tests
10822         * tests/test-posixtm.c: Add two tests, to highlight the
10823         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
10824         around this bug; this is merely to document it.
10825
10826 2010-12-22  Bruno Haible  <bruno@clisp.org>
10827
10828         getlogin_r: Work around portability problem on OSF/1.
10829         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
10830         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
10831         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
10832         test for a truncated result.
10833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
10834         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
10835         * modules/getlogin_r (Depends-on): Add memchr.
10836         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
10837
10838 2010-12-22  Bruno Haible  <bruno@clisp.org>
10839
10840         ptsname: Avoid test failure on OSF/1 5.1.
10841         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
10842         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
10843         (same_slave): New function.
10844         (main): Use it to compare ptsname's result with the expected file name.
10845
10846 2010-12-22  Bruno Haible  <bruno@clisp.org>
10847
10848         Port extended stdio modules to HP NonStop Kernel.
10849         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
10850         macros.
10851         * lib/fbufmode.c: Update comments.
10852         * lib/fflush.c: Likewise.
10853         * lib/fpurge.c: Likewise.
10854         * lib/freadable.c: Likewise.
10855         * lib/freadahead.c: Likewise.
10856         * lib/freading.c: Likewise.
10857         * lib/freadptr.c: Likewise.
10858         * lib/freadseek.c: Likewise.
10859         * lib/fseeko.c: Likewise.
10860         * lib/fseterr.c: Likewise.
10861         * lib/fwritable.c: Likewise.
10862         * lib/fwriting.c: Likewise.
10863         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
10864
10865 2010-12-22  Bruno Haible  <bruno@clisp.org>
10866
10867         ttyname_r: Work around bug on OSF/1 5.1.
10868         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
10869         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
10870         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
10871         present.
10872         * lib/ttyname_r.c (ttyname_r): Update comments.
10873
10874 2010-12-22  Bruno Haible  <bruno@clisp.org>
10875
10876         round: Implement result sign according to IEEE 754.
10877         * lib/round.c (MIN, MINUS_ZERO): New macros.
10878         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
10879         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
10880         * tests/test-round-ieee.c (main): Likewise.
10881         * tests/test-roundl-ieee.c (main): Likewise.
10882
10883         trunc: Implement result sign according to IEEE 754.
10884         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
10885         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
10886         * tests/test-trunc2.c: Include minus-zero.h.
10887         (MINUS_ZERO): New macro.
10888         (trunc_reference): Keep in sync with lib/trunc.c.
10889         * tests/test-truncf2.c: Include minus-zero.h.
10890         (MINUS_ZERO): New macro.
10891         (truncf_reference): Keep in sync with lib/trunc.c.
10892         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
10893         * tests/test-trunc-ieee.c (main): Likewise.
10894         * tests/test-truncl-ieee.c (main): Likewise.
10895
10896         ceil: Implement result sign according to IEEE 754.
10897         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
10898         (FUNC): Return -0.0 for -1 < x < 0.
10899         * tests/test-ceil2.c: Include minus-zero.h.
10900         (MINUS_ZERO): New macro.
10901         (ceil_reference): Keep in sync with lib/ceil.c.
10902         * tests/test-ceilf2.c: Include minus-zero.h.
10903         (MINUS_ZERO): New macro.
10904         (ceilf_reference): Keep in sync with lib/ceil.c.
10905         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
10906         * tests/test-ceil-ieee.c (main): Likewise.
10907         * tests/test-ceill-ieee.c (main): Likewise.
10908
10909         floor: Implement result sign according to IEEE 754.
10910         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
10911         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
10912         * tests/test-floorf2.c (floorf_reference): Likewise.
10913         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
10914         * tests/test-floor-ieee.c (main): Likewise.
10915         * tests/test-floorl-ieee.c (main): Likewise.
10916
10917 2010-12-22  Bruno Haible  <bruno@clisp.org>
10918
10919         getaddrinfo: Update doc.
10920         * doc/posix-functions/gai_strerror.texi: Return type is also different
10921         on AIX and HP-UX.
10922
10923 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10924
10925         getaddrinfo, inet_ntop: Update doc for Solaris.
10926         * doc/posix-functions/gai_strerror.texi: Return type is also an
10927         issue on Solaris 9 and earlier.
10928         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
10929         on Solaris 10 and earlier.
10930
10931 2010-12-21  Bruno Haible  <bruno@clisp.org>
10932
10933         New module 'roundl-ieee'.
10934         * modules/roundl-ieee: New file.
10935         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
10936         test whether roundl works according to ISO C 99 with IEC 60559.
10937         * m4/roundl-ieee.m4: New file.
10938         * modules/roundl-ieee-tests: New file.
10939         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
10940         * tests/test-roundl.c (main): Remove signbit tests.
10941         * modules/roundl-tests (Depends-on): Remove signbit.
10942         * doc/posix-functions/roundl.texi: Mention the new module.
10943
10944 2010-12-21  Bruno Haible  <bruno@clisp.org>
10945
10946         New module 'truncl-ieee'.
10947         * modules/truncl-ieee: New file.
10948         * modules/truncl-ieee-tests: New file.
10949         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
10950         * tests/test-truncl.c (main): Remove signbit tests.
10951         * modules/truncl-tests (Depends-on): Remove signbit.
10952         * doc/posix-functions/truncl.texi: Mention the new module.
10953
10954 2010-12-21  Bruno Haible  <bruno@clisp.org>
10955
10956         New module 'ceill-ieee'.
10957         * modules/ceill-ieee: New file.
10958         * modules/ceill-ieee-tests: New file.
10959         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
10960         * tests/test-ceill.c (main): Remove signbit tests.
10961         * modules/ceill-tests (Depends-on): Remove signbit.
10962         * doc/posix-functions/ceill.texi: Mention the new module.
10963
10964 2010-12-21  Bruno Haible  <bruno@clisp.org>
10965
10966         New module 'floorl-ieee'.
10967         * modules/floorl-ieee: New file.
10968         * modules/floorl-ieee-tests: New file.
10969         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
10970         * tests/test-floorl.c (main): Remove signbit tests.
10971         * modules/floorl-tests (Depends-on): Remove signbit.
10972         * doc/posix-functions/floorl.texi: Mention the new module.
10973
10974 2010-12-21  Bruno Haible  <bruno@clisp.org>
10975
10976         New module 'round-ieee'.
10977         * modules/round-ieee: New file.
10978         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
10979         whether round works according to ISO C 99 with IEC 60559.
10980         * m4/round-ieee.m4: New file.
10981         * modules/round-ieee-tests: New file.
10982         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
10983         * tests/test-round1.c (main): Remove signbit tests.
10984         * modules/round-tests (Depends-on): Remove 'signbit'.
10985         * doc/posix-functions/round.texi: Mention the new module.
10986
10987 2010-12-21  Bruno Haible  <bruno@clisp.org>
10988
10989         New module 'trunc-ieee'.
10990         * modules/trunc-ieee: New file.
10991         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
10992         whether trunc works according to ISO C 99 with IEC 60559.
10993         * m4/trunc-ieee.m4: New file.
10994         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
10995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
10996         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
10997         * modules/trunc-ieee-tests: New file.
10998         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
10999         * tests/test-trunc1.c (main): Remove signbit tests.
11000         * modules/trunc-tests (Depends-on): Remove 'signbit'.
11001         * doc/posix-functions/trunc.texi: Mention the new module.
11002
11003 2010-12-21  Bruno Haible  <bruno@clisp.org>
11004
11005         New module 'ceil-ieee'.
11006         * modules/ceil-ieee: New file.
11007         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
11008         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
11009         ISO C 99 with IEC 60559.
11010         * m4/ceil-ieee.m4: New file.
11011         * modules/ceil (Files): Add lib/ceil.c.
11012         (Depends-on): Add 'float'.
11013         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11014         * lib/math.in.h (ceil): New declaration.
11015         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
11016         REPLACE_CEIL.
11017         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
11018         * modules/ceil-ieee-tests: New file.
11019         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
11020         * tests/test-math-c++.cc: Check the signature of 'ceil'.
11021         * doc/posix-functions/ceil.texi: Mention the new module.
11022
11023 2010-12-21  Bruno Haible  <bruno@clisp.org>
11024
11025         New module 'floor-ieee'.
11026         * modules/floor-ieee: New file.
11027         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
11028         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
11029         ISO C 99 with IEC 60559.
11030         * m4/floor-ieee.m4: New file.
11031         * modules/floor (Files): Add lib/floor.c.
11032         (Depends-on): Add 'float'.
11033         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11034         * lib/math.in.h (floor): New declaration.
11035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
11036         REPLACE_FLOOR.
11037         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
11038         * modules/floor-ieee-tests: New file.
11039         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
11040         * tests/test-math-c++.cc: Check the signature of 'floor'.
11041         * doc/posix-functions/floor.texi: Mention the new module.
11042
11043 2010-12-21  Bruno Haible  <bruno@clisp.org>
11044
11045         New module 'roundf-ieee'.
11046         * modules/roundf-ieee: New file.
11047         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
11048         test whether roundf works according to ISO C 99 with IEC 60559.
11049         * m4/roundf-ieee.m4: New file.
11050         * modules/roundf-ieee-tests: New file.
11051         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
11052         * tests/test-roundf1.c (main): Remove signbit tests.
11053         * modules/roundf-tests (Depends-on): Remove 'signbit'.
11054         * doc/posix-functions/roundf.texi: Mention the new module.
11055
11056 2010-12-21  Bruno Haible  <bruno@clisp.org>
11057
11058         New module 'truncf-ieee'.
11059         * modules/truncf-ieee: New file.
11060         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
11061         test whether truncf works according to ISO C 99 with IEC 60559.
11062         * m4/truncf-ieee.m4: New file.
11063         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
11064         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
11065         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
11066         * modules/truncf-ieee-tests: New file.
11067         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
11068         * tests/test-truncf1.c (main): Remove signbit tests.
11069         * modules/truncf-tests (Depends-on): Remove 'signbit'.
11070         * doc/posix-functions/truncf.texi: Mention the new module.
11071
11072 2010-12-21  Bruno Haible  <bruno@clisp.org>
11073
11074         New module 'ceilf-ieee'.
11075         * modules/ceilf-ieee: New file.
11076         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
11077         test whether ceilf works according to ISO C 99 with IEC 60559.
11078         * m4/ceilf-ieee.m4: New file.
11079         * modules/ceilf-ieee-tests: New file.
11080         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
11081         * tests/test-ceilf1.c (main): Remove signbit tests.
11082         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
11083         * doc/posix-functions/ceilf.texi: Mention the new module.
11084
11085 2010-12-21  Bruno Haible  <bruno@clisp.org>
11086
11087         New module 'floorf-ieee'.
11088         * modules/floorf-ieee: New file.
11089         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
11090         test whether floorf works according to ISO C 99 with IEC 60559.
11091         * m4/floorf-ieee.m4: New file.
11092         * modules/floorf-ieee-tests: New file.
11093         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
11094         * tests/test-floorf1.c (main): Remove signbit tests.
11095         * modules/floorf-tests (Depends-on): Remove 'signbit'.
11096         * doc/posix-functions/floorf.texi: Mention the new module.
11097
11098 2010-12-21  Bruno Haible  <bruno@clisp.org>
11099
11100         Support for minus zero in autoconf macros.
11101         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
11102         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
11103         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
11104         * tests/minus-zero.h: Update comments.
11105
11106 2010-12-21  Bruno Haible  <bruno@clisp.org>
11107
11108         Tests for module 'ceil'.
11109         * modules/ceil-tests: New file.
11110         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
11111         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
11112
11113 2010-12-21  Bruno Haible  <bruno@clisp.org>
11114
11115         Tests for module 'floor'.
11116         * modules/floor-tests: New file.
11117         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
11118         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
11119
11120 2010-12-21  Bruno Haible  <bruno@clisp.org>
11121
11122         math: Fix indentation.
11123         * lib/math.in.h (floorf): Fix indentation.
11124
11125 2010-12-21  Bruno Haible  <bruno@clisp.org>
11126
11127         Fix cross-compilation guesses on Solaris.
11128         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
11129         not match "solaris2.10".
11130         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11131         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
11132         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
11133
11134 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
11135
11136         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
11137         This fixes a problem observed with the latest coreutils snapshot
11138         that caused a test to fail on Solaris 8.  src/csplit.c's call
11139         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
11140         earlier, instead of returning the number of bytes that would have
11141         been generated; this causes csplit to incorrectly report memory
11142         exhaustion.
11143         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
11144         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
11145         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
11146         comments to match.
11147         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
11148         Fix typo in matching older versions of Solaris: "solaris2.10"
11149         is matched by the shell pattern "solaris2.[0-9]*".  This matters
11150         only for guessing while cross-compiling.
11151         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
11152
11153 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
11154
11155         ftoastr: fix comment again
11156         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
11157         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
11158         Also, simplify example a bit by using flags = 0.
11159
11160 2010-12-20  Bruno Haible  <bruno@clisp.org>
11161
11162         round*, trunc*: Update documentation regarding glibc.
11163         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
11164         * doc/posix-functions/round.texi: Likewise.
11165         * doc/posix-functions/roundl.texi: Likewise.
11166         * doc/posix-functions/truncf.texi: Likewise.
11167         * doc/posix-functions/trunc.texi: Likewise.
11168         * doc/posix-functions/truncl.texi: Likewise.
11169
11170 2010-12-20  Bruno Haible  <bruno@clisp.org>
11171
11172         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
11173         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
11174         * doc/posix-functions/round.texi: Likewise.
11175         * doc/posix-functions/roundl.texi: Likewise.
11176
11177 2010-12-20  Bruno Haible  <bruno@clisp.org>
11178
11179         ttyname_r: Add missing declaration on HP-UX 11.
11180         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
11181         HAVE_TTYNAME_R.
11182         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
11183         declared. Set HAVE_TTYNAME_R always.
11184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11185         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
11186         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
11187         HAVE_TTYNAME_R.
11188         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
11189
11190 2010-12-20  Bruno Haible  <bruno@clisp.org>
11191
11192         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
11193         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
11194         * doc/posix-functions/getlogin_r.texi: Likewise.
11195         * tests/test-getlogin.c: Include <errno.h>.
11196         (main): Avoid test failure on HP-UX 11.11.
11197         * tests/test-getlogin_r.c (main): Likewise.
11198
11199 2010-12-20  Bruno Haible  <bruno@clisp.org>
11200
11201         getlogin_r: Add missing declaration on HP-UX 11.
11202         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
11203         declared also when it exists as a function.
11204         * doc/posix-functions/getlogin_r.texi: Document this workaround.
11205
11206 2010-12-20  Bruno Haible  <bruno@clisp.org>
11207
11208         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
11209         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
11210         through wcrtomb.
11211
11212 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
11213
11214         ftoastr: fix comment
11215         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
11216         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
11217
11218 2010-12-19  Bruno Haible  <bruno@clisp.org>
11219
11220         isnan: Ensure it is a macro.
11221         * lib/math.in.h (isnan): Define as a macro if not already a macro.
11222         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
11223         Solaris.
11224
11225 2010-12-19  Bruno Haible  <bruno@clisp.org>
11226
11227         ldexpl test: Fix link error on OSF/1 5.1.
11228         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
11229
11230 2010-12-19  Bruno Haible  <bruno@clisp.org>
11231
11232         wctype: Make it work in C++ mode on OSF/1 5.1.
11233         * lib/wctype.in.h (iswblank): Declare but not define here.
11234         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
11235         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
11236         * modules/wctype (Files): Add lib/iswblank.c.
11237
11238 2010-12-19  Bruno Haible  <bruno@clisp.org>
11239
11240         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
11241         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
11242         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
11243
11244 2010-12-19  Bruno Haible  <bruno@clisp.org>
11245
11246         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
11247         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
11248         _POSIX_PII_SOCKET.
11249         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
11250         * doc/posix-functions/recvfrom.texi: Likewise.
11251         * doc/posix-functions/send.texi: Likewise.
11252         * doc/posix-functions/sendto.texi: Likewise.
11253
11254 2010-12-19  Bruno Haible  <bruno@clisp.org>
11255
11256         tcgetsid: Add missing declaration on OSF/1 5.1.
11257         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
11258         HAVE_TCGETSID.
11259         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
11260         Don't set HAVE_TCGETSID.
11261         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
11262         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
11263         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
11264         HAVE_TCGETSID.
11265         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
11266
11267 2010-12-19  Bruno Haible  <bruno@clisp.org>
11268
11269         stdio: Fix problem with popen() declaration on OSF/1 5.1.
11270         * lib/stdio.in.h: During the include_next statement, let recursive
11271         includes of this file include only the system header file.
11272
11273 2010-12-19  Bruno Haible  <bruno@clisp.org>
11274
11275         iconv_open: Fix regression from 2010-12-04.
11276         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
11277         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
11278
11279 2010-12-19  Bruno Haible  <bruno@clisp.org>
11280
11281         stdbool test: Avoid a gcc warning.
11282         * tests/test-stdbool.c (main): Fail if e1 is false.
11283         Reported by Jim Meyering.
11284
11285 2010-12-19  Jim Meyering  <meyering@redhat.com>
11286
11287         setenv: restore to working order
11288         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
11289         mistakenly removed.
11290         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
11291         HAVE_SETENV.
11292         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
11293         HAVE_SETENV.
11294
11295 2010-12-19  Bruno Haible  <bruno@clisp.org>
11296
11297         Document some different function declarations on OSF/1 5.1.
11298         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
11299         * doc/posix-functions/inet_ntop.texi: Likewise.
11300         * doc/posix-functions/gethostname.texi: Likewise.
11301         * lib/unistd.in.h (gethostname): Update comment.
11302
11303 2010-12-19  Bruno Haible  <bruno@clisp.org>
11304
11305         doc: Mention vasprintf-posix module.
11306         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
11307         the 'vasprintf-posix' module.
11308         * doc/glibc-functions/vasprintf.texi: Likewise.
11309
11310 2010-12-19  Bruno Haible  <bruno@clisp.org>
11311
11312         unsetenv: Add missing declaration on OSF/1 5.1.
11313         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
11314         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
11315         Don't set HAVE_UNSETENV. In the test program, set _BSD.
11316         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
11317         not HAVE_UNSETENV.
11318         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
11319         HAVE_UNSETENV.
11320         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
11321
11322 2010-12-19  Bruno Haible  <bruno@clisp.org>
11323
11324         setenv: Add missing declaration on OSF/1 5.1.
11325         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
11326         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
11327         declared. Don't set HAVE_SETENV.
11328         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
11329         not HAVE_SETENV.
11330         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
11331         HAVE_SETENV.
11332         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
11333
11334 2010-12-19  Bruno Haible  <bruno@clisp.org>
11335
11336         nl_langinfo tests: Avoid gcc warning.
11337         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
11338
11339 2010-12-19  Bruno Haible  <bruno@clisp.org>
11340
11341         mknod: Avoid error in C++ mode on OSF/1 with GCC.
11342         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
11343         _GL_CXXALIAS_SYS.
11344
11345 2010-12-19  Bruno Haible  <bruno@clisp.org>
11346
11347         stdbool: Relax test.
11348         * tests/test-stdbool.c (e): Don't require that casts from a variable's
11349         address to 'bool' work in static initializer, for compilers other than
11350         GCC.
11351
11352 2010-12-19  Bruno Haible  <bruno@clisp.org>
11353
11354         ftello: Add missing declaration on OSF/1 5.1.
11355         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
11356         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
11357         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
11358         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
11359         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
11360
11361 2010-12-19  Bruno Haible  <bruno@clisp.org>
11362
11363         fseeko: Add missing declaration on OSF/1 5.1.
11364         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
11365         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
11366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
11367         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
11368         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
11369
11370 2010-12-19  Bruno Haible  <bruno@clisp.org>
11371
11372         fchdir: Add missing declaration on OSF/1 5.1.
11373         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
11374         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
11375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
11376         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
11377         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
11378
11379 2010-12-19  Bruno Haible  <bruno@clisp.org>
11380
11381         relocatable-prog-wrapper: Separate from relocatable-prog.
11382         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
11383         uninstall-relocwrapper rule here.
11384         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
11385         Reported by Ian Beckwith <ianb@erislabs.net>.
11386
11387 2010-12-19  Bruno Haible  <bruno@clisp.org>
11388
11389         unistr/u8-mbsnlen: Add missing dependency.
11390         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
11391         Reported by Ian Beckwith <ianb@erislabs.net>.
11392
11393 2010-12-19  Bruno Haible  <bruno@clisp.org>
11394
11395         iconv: Make it possible again to use this module without 'iconv-h'.
11396         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
11397         if it is not defined.
11398         Reported by Ian Beckwith <ianb@erislabs.net>.
11399
11400 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
11401
11402         acl: port to Solaris 8 when copying from tmpfs to ufs
11403         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
11404         error number.  Problem observed on Solaris 8 with latest
11405         coreutils, with "mv A B", where A is on a tmpfs file system and B
11406         is on a ufs file system.  This caused coreutils' mv/part-symlink
11407         test to fail.
11408
11409         tests: set fail=0 at start
11410         * tests/init.sh (setup_): Move fail=0 initialization here ...
11411         (mktempd_): ... from here, so that tests can rely on fail being
11412         set to 0 initially.  This fixes a problem in coreutils; see:
11413         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
11414
11415 2010-12-18  Bruno Haible  <bruno@clisp.org>
11416
11417         memmem-simple: Stylistic changes.
11418         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
11419         Fix preprocessor directive indentation.
11420
11421 2010-12-15  Pádraig Brady <P@draigBrady.com>
11422
11423         memmem, memmem-simple: reorganize and expand empty needle check
11424         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
11425         functional checks to memmem-simple so that one has a fully functional
11426         memmem by using just this module.
11427         Restrict the performance only check to the memmem module.
11428         Also expand the empty needle check to ensure the correct
11429         pointer is returned, not just a non NULL pointer.
11430         * doc/glibc-functions/memmem.texi: Rearrange the portability
11431         documentation to correlate with the rearranged checks.
11432         Clarify exactly how the memmem and memmem-simple modules
11433         relate to each other.
11434
11435 2010-12-15  Pádraig Brady <P@draigBrady.com>
11436             Bruno Haible  <bruno@clisp.org>
11437
11438         Improve cross-compilation guesses for uClibc.
11439         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
11440         that uClibc does not have the glibc bug.
11441         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
11442         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
11443
11444 2010-12-14  Eric Blake  <eblake@redhat.com>
11445
11446         configmake: provide fallbacks for oldest supported autotools
11447         * m4/configmake.m4: New file.
11448         * modules/configmake (Files): Ship it.
11449         (configure.ac): Use it to guarantee fallbacks.
11450
11451 2010-12-13  Pádraig Brady <P@draigBrady.com>
11452
11453         read-file: Improve handling of large files
11454         * lib/read-file.c (fread_file): Minimize realloc()s
11455         for regular files, and better manage sizes around SIZE_MAX.
11456
11457 2010-12-13  Eric Blake  <eblake@redhat.com>
11458
11459         cloexec, fcntl: relax license
11460         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
11461         consent from all contributors.
11462         * modules/fcntl (License): Likewise.
11463
11464 2010-12-10  Bruno Haible  <bruno@clisp.org>
11465
11466         Tests for module 'pipe-posix'.
11467         * modules/pipe-posix-tests: New file.
11468         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
11469
11470 2010-12-10  Bruno Haible  <bruno@clisp.org>
11471
11472         pipe-posix: Make it work in C++ mode.
11473         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
11474         (pipe): Use common idiom, not a macro definition.
11475         * lib/pipe.c: New file.
11476         * m4/pipe.m4: New file.
11477         * modules/pipe-posix (Description): Enhance.
11478         (Files): Add lib/pipe.c, m4/pipe.m4.
11479         (configure.ac): Invoke gl_FUNC_PIPE.
11480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
11481         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
11482         * tests/test-unistd-c++.cc: Check the signature of pipe.
11483
11484 2010-12-10  Bruno Haible  <bruno@clisp.org>
11485
11486         Rename module 'pipe' to 'spawn-pipe'.
11487         * modules/spawn-pipe: New file, renamed from modules/pipe.
11488         (Files, configure.ac, Makefile.am): Update.
11489         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
11490         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
11491         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
11492         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
11493         "spawn-pipe.h" instead of "pipe.h".
11494         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
11495         to gl_SPAWN_PIPE.
11496         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
11497         (Files, Makefile.am): Update.
11498         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
11499         Update.
11500         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
11501         Include "spawn-pipe.h" instead of "pipe.h".
11502         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
11503         * lib/javacomp.c: Likewise.
11504         * lib/javaversion.c: Likewise.
11505         * lib/pipe-filter-gi.c: Likewise.
11506         * lib/pipe-filter-ii.c: Likewise.
11507         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
11508         * modules/javacomp (Depends-on): Likewise.
11509         * modules/javaversion (Depends-on): Likewise.
11510         * modules/pipe-filter-gi (Depends-on): Likewise.
11511         * modules/pipe-filter-ii (Depends-on): Likewise.
11512         * MODULES.html.sh (Executing programs): Update.
11513         * NEWS: Mention the change.
11514
11515 2010-12-10  Eric Blake  <eblake@redhat.com>
11516
11517         pipe-posix: new module
11518         * modules/pipe-posix: New file.
11519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
11520         (gl_UNISTD_H): Check for declaration.
11521         * modules/unistd (Makefile.am): Substitute it.
11522         * lib/unistd.in.h (pipe): Provide it for mingw.
11523         * doc/posix-functions/pipe.texi (pipe): Update documentation.
11524         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
11525
11526 2010-12-07  Bruno Haible  <bruno@clisp.org>
11527
11528         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
11529         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
11530         u8_strcmp_gnu.
11531         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
11532
11533 2010-12-06  Bruno Haible  <bruno@clisp.org>
11534
11535         Update internal documentation.
11536         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
11537
11538 2010-12-04  Bruno Haible  <bruno@clisp.org>
11539
11540         Put more information about failed tests into the test return codes.
11541         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
11542         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
11543         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
11544         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11545         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
11546         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11547         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11548         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11549         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
11550         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11551         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
11552         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
11553         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11554         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11555         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
11556         returns a bit mask.
11557         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
11558         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
11559         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
11560         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
11561         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11562         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11563         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11564         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11565         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11566         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
11567         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11568         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11569         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11570         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11571         * m4/link.m4 (gl_FUNC_LINK): Likewise.
11572         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
11573         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
11574         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
11575         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11576         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
11577         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11578         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
11579         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
11580         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11581         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11582         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
11583         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
11584         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11585         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11586         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
11587         gl_PRINTF_PRECISION): Likewise.
11588         * m4/regex.m4 (gl_REGEX): Likewise.
11589         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11590         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
11591         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
11592         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11593         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11594         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11595         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11596         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
11597         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
11598         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11599         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
11600         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
11601         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
11602         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
11603         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
11604         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11605         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11606         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11607         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11608         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
11609         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
11610         enumerated value.
11611         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
11612
11613 2010-12-04  Bruno Haible  <bruno@clisp.org>
11614
11615         Update for Solaris 11 2010-11.
11616         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
11617         Express, released in November 2010.
11618
11619 2010-12-04  Bruno Haible  <bruno@clisp.org>
11620
11621         nproc: Relax license.
11622         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
11623         and Paul Eggert.
11624         Requested by Ludovic Courtès <ludo@gnu.org>.
11625
11626 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
11627
11628         utimecmp: fine-grained src to nearby coarse-grained dest
11629
11630         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
11631         and the source is on a file system with higher-resolution time
11632         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
11633         not work, and the time stamps are close together, the algorithm to
11634         determine the exact resolution from the read-back mtime was buggy:
11635         it had a "!=" where it should have had an "==".  This bug has been
11636         in the code ever since it was introduced to gnulib.
11637         Problem reported by Dan Jacobson in
11638         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
11639
11640 2010-11-30  Bruno Haible  <bruno@clisp.org>
11641
11642         strerror_r-posix: Fix autoconf test.
11643         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
11644
11645 2010-11-28  Bruno Haible  <bruno@clisp.org>
11646             Paul Eggert  <eggert@cs.ucla.edu>
11647
11648         Tests for module 'getdomainname'.
11649         * modules/getdomainname-tests: New file.
11650         * tests/test-getdomainname.c: New file, based on
11651         tests/test-gethostname.c.
11652
11653 2010-11-28  Bruno Haible  <bruno@clisp.org>
11654             Paul Eggert  <eggert@cs.ucla.edu>
11655
11656         getdomainname: Use the system function when possible.
11657         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
11658         (getdomainname): Replace if needed. Provide the declaration if it is
11659         missing. Don't use _GL_CXXALIAS_SYS_CAST.
11660         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
11661         (getdomainname): When the system has getdomainname, call the system
11662         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
11663         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
11664         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
11665         found in libnsl. Look for the declaration also in <netdb.h>. Replace
11666         the function if its second argument is of type 'int' or if it is found
11667         in libnsl.
11668         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
11669         <sys/systeminfo.h> and sysinfo().
11670         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
11671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11672         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
11673         HAVE_GETDOMAINNAME.
11674         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
11675         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
11676         * doc/glibc-functions/getdomainname.texi: Document the problems with
11677         the getdomainname declaration.
11678
11679 2010-11-28  Bruno Haible  <bruno@clisp.org>
11680
11681         sys_socket: Ensure ss_family field on AIX.
11682         * lib/sys_socket.in.h (ss_family): New macro definition.
11683         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
11684         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
11685         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11686         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
11687         * modules/sys_socket (Makefile.am): Substitute
11688         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
11689         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
11690
11691 2010-11-27  Bruno Haible  <bruno@clisp.org>
11692
11693         readline: Improve configure output.
11694         * m4/readline.m4 (gl_FUNC_READLINE): Make the
11695         "checking for readline..." result understandable.
11696
11697 2010-11-27  Bruno Haible  <bruno@clisp.org>
11698
11699         *printf-posix: Detect a bug on Solaris 10/x86.
11700         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
11701         for floating-point output.
11702         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
11703         directive.
11704         * tests/test-snprintf-posix.h (test_function): Likewise.
11705         * tests/test-sprintf-posix.h (test_function): Likewise.
11706         * tests/test-vasprintf-posix.c (test_function): Likewise.
11707         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
11708         * doc/posix-functions/printf.texi: Likewise.
11709         * doc/posix-functions/snprintf.texi: Likewise.
11710         * doc/posix-functions/sprintf.texi: Likewise.
11711         * doc/posix-functions/vfprintf.texi: Likewise.
11712         * doc/posix-functions/vprintf.texi: Likewise.
11713         * doc/posix-functions/vsnprintf.texi: Likewise.
11714         * doc/posix-functions/vsprintf.texi: Likewise.
11715         * doc/glibc-functions/obstack_printf.texi: Likewise.
11716         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11717
11718 2010-11-27  Bruno Haible  <bruno@clisp.org>
11719
11720         Fix link error when module libunistring-optional is in use.
11721         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
11722         * modules/striconveha-tests (Makefile.am): Likewise.
11723
11724 2010-11-27  Bruno Haible  <bruno@clisp.org>
11725
11726         regex: Mention link dependencies.
11727         * modules/regex (Link): New section.
11728         * modules/rpmatch (Link): Likewise.
11729         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
11730
11731 2010-11-27  Bruno Haible  <bruno@clisp.org>
11732
11733         ftoastr: Fix compilation error on Solaris.
11734         * lib/ftoastr.c: Include <config.h>.
11735
11736 2010-11-27  Bruno Haible  <bruno@clisp.org>
11737
11738         getloadavg: Update documentation.
11739         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
11740
11741 2010-11-27  Bruno Haible  <bruno@clisp.org>
11742
11743         sys_socket: Fix test whether the functions are declared.
11744         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
11745         not <sys/select.h>.
11746
11747 2010-11-27  Bruno Haible  <bruno@clisp.org>
11748
11749         getpass: Make sure to get system declaration on some platforms.
11750         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
11751         gl_USE_SYSTEM_EXTENSIONS.
11752         * modules/getpass (Depends-on): Add extensions.
11753
11754 2010-11-26  Bruno Haible  <bruno@clisp.org>
11755
11756         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
11757         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
11758         'iconv' module is present.
11759         (ICONV_CONST): New macro.
11760         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
11761         ICONV_CONST.
11762         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
11763         set ICONV_CONST.
11764         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
11765         here.
11766         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
11767         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
11768         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
11769         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
11770         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
11771         present.
11772
11773 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
11774
11775         ftoastr: comment fix
11776         * lib/ftoastr.c: "little" -> "little or no" in comment
11777
11778 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
11779
11780         stdint: port to GCC 4.3 + OSX + Octave
11781         On this platform, stdint.h is buggy and defines int64_t to long
11782         long int.  The replacement defined it to long int, causing
11783         problems with C++ style name mangling.  Instead, trust the system
11784         definition if INT64_MAX is defined, and likewise for the unsigned
11785         variant.   Problem reported by Jarno Rajahalme in
11786         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
11787         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
11788         and don't mess with int64_t and INT64_MAX in this case.
11789         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
11790
11791 2010-11-24  Bruno Haible  <bruno@clisp.org>
11792
11793         doc: Corrections regarding MacOS X 10.4 and 10.5.
11794         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
11795         MacOS X.
11796         Reported by Simon Josefsson.
11797
11798 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
11799
11800         Uninstall ".bin" files installed by relocwrapper.
11801         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
11802         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
11803         unless it is already there.
11804
11805 2010-11-21  Bruno Haible  <bruno@clisp.org>
11806
11807         Update for NetBSD 5.0.
11808         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
11809         NetBSD; the test fails on NetBSD 5.0.
11810         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
11811         about NetBSD.
11812
11813 2010-11-21  Bruno Haible  <bruno@clisp.org>
11814
11815         Update for HP-UX 11.23 and HP-UX 11.31.
11816         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
11817         HP-UX.
11818
11819 2010-11-21  Bruno Haible  <bruno@clisp.org>
11820
11821         Update for MacOS X 10.5.
11822         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
11823         MacOS X; the test fails on MacOS X 10.5.8.
11824         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
11825         about MacOS X.
11826
11827 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
11828
11829         bootstrap: add bootstrap_sync option.
11830         See discussion at
11831         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
11832         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
11833         * build-aux/bootstrap: Accept --bootstrap-sync to update
11834         bootstrap if it is not identical to the local gnulib's
11835         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
11836         enable this by default.  Accept --no-bootstrap-sync to disable
11837         it.
11838
11839 2010-11-20  Bruno Haible  <bruno@clisp.org>
11840
11841         Ensure that <features.h> is included before __GLIBC__ is tested.
11842         * lib/printf-parse.h: Include <features.h>.
11843         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
11844         Reported by Mike Frysinger <vapier@gentoo.org>.
11845
11846         Ensure that <features.h> is included before __GLIBC__ is tested.
11847         * lib/wchar.in.h: Include <features.h>.
11848         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
11849         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
11850         Reported by Mike Frysinger <vapier@gentoo.org>.
11851
11852         Ensure that <features.h> is included before __GLIBC__ is tested.
11853         * lib/arpa_inet.in.h: Include <features.h>.
11854         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
11855         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
11856         Reported by Mike Frysinger <vapier@gentoo.org>.
11857
11858         Ensure that <features.h> is included before __GLIBC__ is tested.
11859         * build-aux/link-warning.h: Include <features.h>.
11860         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
11861         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
11862         Reported by Mike Frysinger <vapier@gentoo.org>.
11863
11864         Ensure that <features.h> is included before __GLIBC__ is tested.
11865         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
11866         Reported by Mike Frysinger <vapier@gentoo.org>.
11867
11868 2010-11-20  Bruno Haible  <bruno@clisp.org>
11869
11870         memmem: Fix autoconf test.
11871         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
11872
11873 2010-11-20  Bruno Haible  <bruno@clisp.org>
11874
11875         Port to uClibc.
11876         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
11877         * lib/fcntl.in.h: Likewise.
11878         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
11879         * lib/mbrtowc.c (mbrtowc): Likewise.
11880         * lib/relocatable.c (find_shared_library_fullname): Likewise.
11881         * lib/strerror_r.c: Likewise.
11882         * lib/unistr/u8-strnlen.c: Likewise.
11883         * lib/vasnprintf.c (decimal_point_char): Likewise.
11884         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
11885         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11886         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11887         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
11888         * tests/test-sigaction.c (handler, main): Likewise.
11889         * lib/freading.h: Treat uClibc like a non-glibc platform.
11890         * lib/freading.c: Likewise.
11891         * lib/gettext.h: Likewise.
11892         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
11893         Likewise.
11894         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
11895         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
11896         * lib/propername.c (proper_name_utf8): Likewise.
11897         * lib/spawn.in.h: Likewise.
11898         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
11899         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
11900         mem_cd_iconveh_internal): Likewise.
11901         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
11902         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
11903         strstr, strcasestr): Likewise.
11904         * lib/unicodeio.c (unicode_to_mb): Likewise.
11905         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
11906         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
11907         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
11908         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
11909         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
11910         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
11911         * lib/unistr/u8-stpncpy.c: Likewise.
11912         * lib/vasnprintf.c (VASNPRINTF): Likewise.
11913         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
11914         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11915         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11916         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
11917         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
11918         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
11919         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
11920         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
11921         Likewise.
11922         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11923         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11924         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
11925         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11926         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11927         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11928         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11929         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11930         * tests/test-getopt.h (OPTIND_MIN): Likewise.
11931         * tests/test-striconveha.c (main): Likewise.
11932         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11933         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
11934         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
11935         * doc/posix-functions/getline.texi: Likewise.
11936         Reported by Mike Frysinger <vapier@gentoo.org>.
11937
11938 2010-11-20  Bruno Haible  <bruno@clisp.org>
11939
11940         nproc: Fix condition.
11941         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
11942         HAVE_PTHREAD_AFFINITY_NP.
11943
11944 2010-11-20  Bruno Haible  <bruno@clisp.org>
11945
11946         Fix a comment.
11947         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
11948
11949 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
11950
11951         ftoastr: don't assume snprintf
11952         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
11953         Implement a subset of snprintf here, by using sprintf safely.
11954         * modules/ftoastr (Depends-on): Remove snprintf.
11955
11956 2010-11-19  Jim Meyering  <meyering@redhat.com>
11957
11958         test-rename.h: fix compilation failure
11959         * tests/test-rename.h (test_rename): Add omitted "}".
11960
11961 2010-11-17  Jim Meyering  <meyering@redhat.com>
11962
11963         maint.mk: add a URL discussing the no-@acronym policy
11964         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
11965
11966 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11967
11968         ftoastr: depend on snprintf, improve comments
11969         * lib/ftoastr.c: Also mention Loitsch's draft.
11970         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
11971         needed in the current implementation, but it might simplify
11972         speeding up the code later.
11973         * modules/ftoastr: Depend on snprintf; this improves portability.
11974         Suggested by Bruno Haible in the same email.
11975
11976         ftoastr: port to hosts lacking strtof and strtold
11977         Problem reported by Bruno Haible in
11978         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
11979         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
11980         environment and strtold (and presumably strtof) are not available.
11981         * modules/ftoastr (Files): Add m4/c-strtod.m4.
11982         (configure.ac): Require gl_C99_STRTOLD.
11983
11984 2010-11-18  Bruno Haible  <bruno@clisp.org>
11985
11986         c-strtold: Avoid link error on AIX 7.
11987         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
11988         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
11989         (gl_C_STRTOLD): Test whether strtold_l exists.
11990         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11991
11992 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11993
11994         intprops: new macro INT_BITS_STRLEN_BOUND
11995         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
11996         ftoastr.h.  This exposes an internal of intprops.h that was formerly
11997         not exposed.  Also, it uses a slightly tighter bound than before;
11998         though this makes no practical difference, we might as well be as
11999         tight as we easily can.
12000
12001         ftoastr: new module, for lossless conversion of floats to short strings
12002         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
12003         * modules/ftoastr: New files.
12004
12005 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
12006
12007         bootstrap: port to Solaris sed
12008         * build-aux/bootstrap (get_version): Port to Solaris sed.
12009         See Ralf Wildenhues's note in
12010         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
12011
12012 2010-11-14  Jim Meyering  <meyering@redhat.com>
12013
12014         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
12015         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
12016         and move definition closer to sole use.
12017
12018 2010-11-13  Jim Meyering  <meyering@redhat.com>
12019
12020         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
12021         Now we require at least autoconf-2.59, which means the work-around
12022         is no longer needed.
12023         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
12024         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12025         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12026         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
12027         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12028
12029 2010-11-13  Bruno Haible  <bruno@clisp.org>
12030
12031         rename, renameat: Avoid test failures at NFS mounted locations.
12032         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
12033         functions.
12034         (test_rename): Use assert_nonexistent.
12035         * tests/test-rename.c: Include <dirent.h>.
12036         * tests/test-renameat.c: Likewise.
12037         Reported by Gary V. Vaughan <gary@gnu.org>.
12038
12039         rename, renameat: Document Linux bug with NFS
12040         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
12041         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
12042         * doc/posix-functions/renameat.texi: Likewise.
12043         Suggested by Eric Blake.
12044
12045 2010-11-13  Bruno Haible  <bruno@clisp.org>
12046
12047         rename test: Add comments.
12048         * tests/test-rename.h (test_rename): Add structure and comments.
12049
12050 2010-11-13  Eric Blake  <eblake@redhat.com>
12051
12052         maintainer-makefile: cover a few more files
12053         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
12054         scripts generated within C files, for libvirt.
12055
12056 2010-11-13  Bruno Haible  <bruno@clisp.org>
12057
12058         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
12059         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
12060         character, return the number of bytes that belong together, not always
12061         1.
12062         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
12063         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
12064         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
12065         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
12066         number of bytes of an invalid character.
12067         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
12068         (main): Invoke it.
12069         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
12070         results.
12071         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
12072         malformed byte sequences.
12073         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
12074         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
12075         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
12076         Reported by Ben Pfaff and Paolo Bonzini.
12077
12078 2010-11-13  Bruno Haible  <bruno@clisp.org>
12079
12080         openat: Work around glibc bug with fchownat() and empty file names.
12081         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
12082         (gl_FUNC_FCHOWNAT): Invoke it.
12083         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
12084         * doc/posix-functions/fchownat.texi: Document the glibc bug.
12085         Reported by Gary V. Vaughan <gary@gnu.org>.
12086
12087 2010-11-13  Bruno Haible  <bruno@clisp.org>
12088
12089         openat: Ensure autoconf macro ordering.
12090         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
12091         gl_USE_SYSTEM_EXTENSIONS.
12092         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
12093
12094 2010-11-13  Bruno Haible  <bruno@clisp.org>
12095
12096         Update comments.
12097         * lib/unistr/u8-check.c: Update file name in comments.
12098         * lib/unistr/u8-mblen.c: Likewise.
12099         * lib/unistr/u8-prev.c: Likewise.
12100         * lib/unistr/u8-strmblen.c: Likewise.
12101         * lib/unistr/u8-strmbtouc.c: Likewise.
12102
12103 2010-11-13  Jim Meyering  <meyering@redhat.com>
12104
12105         tests: avoid test failure on Solaris 10 due to lack of PATH export
12106         * tests/test-update-copyright.sh: Don't forget to export PATH.
12107
12108         init.sh: ensure that IFS is defined, just in case...
12109         * tests/init.sh (setup_): Ensure that IFS is defined,
12110         so that saving and restoring it works as expected.  This
12111         appears to be useful at least for an old version of dash
12112         from a long time ago (RH 6).  See here for details:
12113         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
12114
12115         maint.mk: tighten "test a == b" check
12116         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
12117         test to files that contain something like #!/bin/sh.
12118         Without this, coreutils would get two false positives in
12119         the comments of C source files.
12120
12121 2010-11-12  Eric Blake  <eblake@redhat.com>
12122
12123         bootstrap: fix typo in previous attempt
12124         * build-aux/bootstrap (buildreq): Correct the grouping.
12125         Reported by Paul Eggert.
12126
12127         maintainer-makefile: prohibit test x == x
12128         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
12129         Based on a report by Matthias Bolte.
12130
12131         bootstrap: allow FreeBSD gzip
12132         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
12133         which has no '.' and goes to stderr.
12134         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
12135         Reported by Matthias Bolte.
12136
12137         maintainer-makefile: check for i18n setup
12138         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
12139         will likely work.
12140
12141 2010-11-12  Bruno Haible  <bruno@clisp.org>
12142
12143         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
12144         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
12145         * lib/nanosleep.c (nanosleep): Likewise.
12146
12147 2010-11-11  Bruno Haible  <bruno@clisp.org>
12148
12149         fcntl-h: Fix for use of C++ on glibc systems.
12150         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
12151         also on glibc systems in C++ mode.
12152         Reported by Gary V. Vaughan <gary@gnu.org>.
12153
12154 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12155
12156         mknod: avoid false failure with dash
12157         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
12158
12159 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
12160
12161         unlink: Fix "is it should" typo in diagnostic.
12162         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
12163         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
12164
12165 2010-11-11  Bruno Haible  <bruno@clisp.org>
12166
12167         Tests for module 'strerror_r-posix'.
12168         * modules/strerror_r-posix-tests: New file.
12169         * tests/test-strerror_r.c: New file.
12170         * tests/test-string-c++.cc: Check the signature of strerror_r.
12171
12172         New module 'strerror_r-posix'.
12173         * lib/string.in.h (strerror_r): New declaration.
12174         * lib/strerror_r.c: New file.
12175         * m4/strerror_r.m4: New file.
12176         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
12177         of strerror_r.
12178         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
12179         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
12180         * modules/strerror_r-posix: New file.
12181         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
12182         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
12183         * doc/posix-functions/strerror_r.texi: Mention the new module and the
12184         portability problems.
12185
12186 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
12187
12188         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
12189         line is also considered for output. Quoted function name in shell
12190         command, so temporary files for functions like MyClass::operator()
12191         are removed correctly without errors.
12192
12193 2010-11-09  Bruno Haible  <bruno@clisp.org>
12194
12195         * doc/posix-functions/strerror.texi: List more failing platforms.
12196
12197         * doc/posix-functions/strerror.texi: Add a comment.
12198
12199 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
12200
12201         fdopendir: fix bug on MacOS X when low on file descriptors
12202
12203         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
12204         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
12205         All callers changed.
12206         (fdopendir): Invoke save_cwd at the top level, not after using
12207         multiple dup() calls to use up file descriptors.  Then retry
12208         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
12209         less than the maximum number of open file descriptors, because
12210         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
12211         on Mac OS X 10.6.4 for tar 1.24
12212         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
12213         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
12214         and for tar 1.25
12215         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
12216
12217 2010-11-07  Bruno Haible  <bruno@clisp.org>
12218
12219         vasnprintf: Support I flag on glibc systems.
12220         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
12221         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
12222         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
12223         snprintf function.
12224         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
12225         glibc systems.
12226         * tests/test-vasnprintf-posix3.c: New file.
12227         * modules/vasnprintf-posix-tests (Files): Add it.
12228         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
12229
12230 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12231
12232         [html] Fix copy/paste bug: Use unique name for compiler warnings.
12233         * MODULES.html.sh: For compiler warnings, use name
12234         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
12235
12236 2010-11-05  Eric Blake  <eblake@redhat.com>
12237
12238         ceil, floor: avoid spurious failure with icc
12239         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
12240         [denormals-as-zero] when optimizing without -mieee-fp option.
12241         * tests/test-floorf2.c (floorf_reference): Likewise.
12242         * tests/test-ceilf1.c (dummy): New function.
12243         (main): Use it to outsmart icc's optimization.
12244         * tests/test-floorf1.c (dummy, main): Likewise.
12245
12246         tests: require working signbit
12247         * modules/ceilf-tests (Depends-on): Add signbit.
12248         * modules/ceill-tests (Depends-on): Likewise.
12249         * modules/floorf-tests (Depends-on): Likewise.
12250         * modules/floorl-tests (Depends-on): Likewise.
12251         * modules/round-tests (Depends-on): Likewise.
12252         * modules/roundf-tests (Depends-on): Likewise.
12253         * modules/roundl-tests (Depends-on): Likewise.
12254         * modules/trunc-tests (Depends-on): Likewise.
12255         * modules/truncf-tests (Depends-on): Likewise.
12256         * modules/truncl-tests (Depends-on): Likewise.
12257
12258         strtod: work around icc bug
12259         * lib/strtod.c (minus_zero): Define to working value.
12260         (strtod): Use it to avoid icc bug.
12261
12262         copysign: enhance tests
12263         * modules/copysign-tests (Files): Add minus-zero.h.
12264         * tests/test-copysign.c (main): Also test zeros.
12265
12266 2010-11-04  Eric Blake  <eblake@redhat.com>
12267
12268         ceil, floor, round, trunc: enhance tests of -0
12269         * tests/test-ceilf1.c (main): Ensure correct sign of result.
12270         * tests/test-ceill.c (main): Likewise.
12271         * tests/test-floorf1.c (main): Likewise.
12272         * tests/test-floorl.c (main): Likewise.
12273         * tests/test-round1.c (main): Likewise.
12274         * tests/test-roundf1.c (main): Likewise.
12275         * tests/test-roundl.c (main): Likewise.
12276         * tests/test-trunc1.c (main): Likewise.
12277         * tests/test-truncf1.c (main): Likewise.
12278         * tests/test-truncl.c (main): Likewise.
12279
12280 2010-11-04  Eric Blake  <eblake@redhat.com>
12281
12282         frexp, tests: work around ICC bug with -zero
12283         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
12284         works with more compilers.
12285         * tests/minus-zero.h: New file.
12286         * modules/ceilf-tests (Files): Include it.
12287         * modules/ceill-tests (Files): Likewise.
12288         * modules/floorf-tests (Files): Likewise.
12289         * modules/floorl-tests (Files): Likewise.
12290         * modules/frexp-nolibm-tests (Files): Likewise.
12291         * modules/frexp-tests (Files): Likewise.
12292         * modules/frexpl-nolibm-tests (Files): Likewise.
12293         * modules/frexpl-tests (Files): Likewise.
12294         * modules/isnan-tests (Files): Likewise.
12295         * modules/isnand-nolibm-tests (Files): Likewise.
12296         * modules/isnand-tests (Files): Likewise.
12297         * modules/isnanf-nolibm-tests (Files): Likewise.
12298         * modules/isnanf-tests (Files): Likewise.
12299         * modules/isnanl-nolibm-tests (Files): Likewise.
12300         * modules/isnanl-tests (Files): Likewise.
12301         * modules/round-tests (Files): Likewise.
12302         * modules/roundf-tests (Files): Likewise.
12303         * modules/roundl-tests (Files): Likewise.
12304         * modules/ldexpl-tests (Files): Likewise.
12305         * modules/signbit-tests (Files): Likewise.
12306         * modules/snprintf-posix-tests (Files): Likewise.
12307         * modules/sprintf-posix-tests (Files): Likewise.
12308         * modules/strtod-tests (Files): Likewise.
12309         * modules/trunc-tests (Files): Likewise.
12310         * modules/truncf-tests (Files): Likewise.
12311         * modules/truncl-tests (Files): Likewise.
12312         * modules/vsnprintf-posix-tests (Files): Likewise.
12313         * modules/vsprintf-posix-tests (Files): Likewise.
12314         * modules/vasnprintf-posix-tests (Files): Likewise.
12315         * modules/vasprintf-posix-tests (Files): Likewise.
12316         * tests/test-ceilf1.c (main): Use it.
12317         * tests/test-ceill.c (main): Likewise.
12318         * tests/test-floorf1.c (main): Likewise.
12319         * tests/test-floorl.c (main): Likewise.
12320         * tests/test-frexp.c (main): Likewise.
12321         * tests/test-frexpl.c (main): Likewise.
12322         * tests/test-isnan.c (main): Likewise.
12323         * tests/test-isnand.h (main): Likewise.
12324         * tests/test-isnanf.h (main): Likewise.
12325         * tests/test-isnanl.h (main): Likewise.
12326         * tests/test-ldexpl.c (main): Likewise.
12327         * tests/test-round.c (main): Likewise.
12328         * tests/test-roundf.c (main): Likewise.
12329         * tests/test-roundl.c (main): Likewise.
12330         * tests/test-signbit.c (test_signbitf, test_signbitd)
12331         (test_signbitl): Likewise.
12332         * tests/test-snprintf-posix.h (test_function): Likewise.
12333         * tests/test-sprintf-posix.h (test_function): Likewise.
12334         * tests/test-strtod.c (main): Likewise.
12335         * tests/test-trunc1.c (main): Likewise.
12336         * tests/test-truncf1.c (main): Likewise.
12337         * tests/test-truncl.c (main): Likewise.
12338
12339         isnanl: work around icc bug
12340         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
12341
12342 2010-11-03  Eric Blake  <eblake@redhat.com>
12343
12344         tests: fix compiler warnings
12345         * tests/test-getopt.h (test_getopt): Fix condition.
12346         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12347         * tests/test-pipe2.c (main): Likewise.
12348         * tests/test-quotearg-simple.c (main): Avoid icc warning.
12349
12350         utimens: fix broken m4 test
12351         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
12352
12353 2010-10-28  Bruno Haible  <bruno@clisp.org>
12354
12355         posix_spawn*, getdtablesize: Relax license.
12356         * modules/posix_spawn (License): Change to LGPLv2+.
12357         * modules/posix_spawnp (License): Likewise.
12358         * modules/posix_spawn-internal (License): Likewise.
12359         * modules/posix_spawnattr_init (License): Likewise.
12360         * modules/posix_spawnattr_getflags (License): Likewise.
12361         * modules/posix_spawnattr_setflags (License): Likewise.
12362         * modules/posix_spawnattr_getpgroup (License): Likewise.
12363         * modules/posix_spawnattr_setpgroup (License): Likewise.
12364         * modules/posix_spawnattr_getschedparam (License): Likewise.
12365         * modules/posix_spawnattr_setschedparam (License): Likewise.
12366         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
12367         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
12368         * modules/posix_spawnattr_getsigdefault (License): Likewise.
12369         * modules/posix_spawnattr_setsigdefault (License): Likewise.
12370         * modules/posix_spawnattr_getsigmask (License): Likewise.
12371         * modules/posix_spawnattr_setsigmask (License): Likewise.
12372         * modules/posix_spawnattr_destroy (License): Likewise.
12373         * modules/posix_spawn_file_actions_init (License): Likewise.
12374         * modules/posix_spawn_file_actions_addclose (License): Likewise.
12375         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
12376         * modules/posix_spawn_file_actions_addopen (License): Likewise.
12377         * modules/posix_spawn_file_actions_destroy (License): Likewise.
12378         * modules/getdtablesize (License): Likewise.
12379         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
12380
12381 2010-10-26  Bruno Haible  <bruno@clisp.org>
12382
12383         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
12384         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
12385         Cygwin and mingw.
12386         Suggested by Eric Blake.
12387
12388 2010-10-26  Bruno Haible  <bruno@clisp.org>
12389
12390         stdio: Work around compilation error due to renameat() on Solaris 10.
12391         * lib/stdio.in.h: Include <unistd.h> on Solaris.
12392         * lib/renameat.c: Don't include <unistd.h> here.
12393         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
12394         Reported by Paul Eggert and Eric Blake.
12395
12396 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
12397
12398         renameat: port to Solaris 10, which declares renameat in unistd.h
12399
12400         * lib/renameat.c: Include unistd.h before stdio.h, because
12401         Solaris 10 declares renameat in unistd.h.  Problem encountered
12402         when building GNU tar 1.24 on Solaris 10.
12403
12404 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12405
12406         fdopendir: fix C89 compilation
12407         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
12408         compilers.
12409
12410 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
12411
12412         inttostr: simplify by removing unnecessary redundancy
12413         * lib/anytostr.c: Don't include verify.h.
12414         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
12415         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
12416         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
12417         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
12418         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
12419         Likewise.
12420         * modules/inttostr (Depends-on): Remove 'verify'.
12421
12422 2010-10-23  Bruno Haible  <bruno@clisp.org>
12423
12424         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
12425         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
12426         Reported by Eric Blake.
12427
12428 2010-10-23  Bruno Haible  <bruno@clisp.org>
12429
12430         Tests: Fix LOCALE_JA on MirBSD 10.
12431         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
12432         to an UTF-8 locale.
12433         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
12434         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12435         Reported by Eric Blake.
12436
12437 2010-10-21  Bruno Haible  <bruno@clisp.org>
12438
12439         nl_langinfo test: Avoid test failure on NetBSD 5.
12440         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
12441         Reported by Eric Blake.
12442
12443 2010-10-21  Eric Blake  <eblake@redhat.com>
12444
12445         c-stack: work around libsigsegv 2.8 bug
12446         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
12447         overflow on at least PowerPC64.
12448
12449 2010-10-17  Bruno Haible  <bruno@clisp.org>
12450
12451         userspec: Drop redundant file.
12452         * modules/userspec (Files): Remove lib/inttostr.h.
12453
12454 2010-10-17  Bruno Haible  <bruno@clisp.org>
12455
12456         nl_langinfo tests: Silence some warnings.
12457         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
12458         Reported by Jim Meyering.
12459
12460 2010-10-17  Bruno Haible  <bruno@clisp.org>
12461
12462         Make use of GCC's attribute __alloc_size__.
12463         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
12464         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
12465         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
12466         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
12467         __alloc_size__.
12468         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
12469         Suggested by Jim Meyering.
12470
12471 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
12472
12473         bootstrap: anchor .gitignore entries.
12474         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
12475         with...
12476         (insert_vc_ignore): ... this new function, which prepends `/' to
12477         all .gitignore entries before passing them to
12478         insert_sorted_if_absent.
12479
12480 2010-10-16  Bruno Haible  <bruno@clisp.org>
12481
12482         nextafter: Fix configure check.
12483         * modules/nextafter (configure.ac): Correct expected prototype.
12484
12485 2010-10-16  Bruno Haible  <bruno@clisp.org>
12486
12487         termios: Update documentation.
12488         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
12489
12490 2010-10-16  Bruno Haible  <bruno@clisp.org>
12491
12492         tests: Make them compile with TinyCC.
12493         * tests/test-strstr.c (main): Remove parentheses around array
12494         initializer.
12495
12496 2010-10-15  Eric Blake  <eblake@redhat.com>
12497
12498         ignore-value: make header idempotent
12499         * lib/ignore-value.h: Add double-inclusion guards.
12500         Reported by Stefan Berger.
12501
12502 2010-10-15  Jim Meyering  <meyering@redhat.com>
12503
12504         GNUmakefile: handle "stable" target, not "major"
12505         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
12506         lists in maint.mk and announce-gen.  Without this, "make stable"
12507         would fail to ensure that $(VERSION) is up to date.
12508
12509 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
12510
12511         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
12512         & co.
12513
12514 2010-10-14  Bruno Haible  <bruno@clisp.org>
12515
12516         vasnprintf: Don't set errno to 0.
12517         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
12518         block that sets it to 0.
12519         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
12520
12521 2010-10-14  Bruno Haible  <bruno@clisp.org>
12522
12523         socketlib: Fix.
12524         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
12525         gl_PREREQ_SYS_H_WINSOCK2.
12526         Reported by Ian Beckwith <ianb@erislabs.net>.
12527
12528 2010-10-13  Jim Meyering  <meyering@redhat.com>
12529
12530         test-select-stdin.c: avoid warn_unused_result warnings
12531         * tests/test-select-stdin.c: Include "macros.h".
12532         ASSERT that read and fflush succeed.
12533
12534 2010-10-13  Jim Meyering  <meyering@redhat.com>
12535
12536         git-version-gen: do require git-VC'd files in cwd
12537         * build-aux/git-version-gen: Reject a git version string
12538         if there are no commits associated with the current directory.
12539         This avoids an unlikely false-positive (unrelated dir whose parent
12540         repository also contains a tag matching v*), as pointed out
12541         by Giuseppe Scrivano in
12542         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
12543
12544 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
12545
12546         argv-iter: omit nonconforming declaration
12547         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
12548         enum arg_iter_err declaration, which doesn't conform to C99.
12549         Solaris 10 cc warns about this.
12550
12551 2010-10-13  Eric Blake  <eblake@redhat.com>
12552
12553         termios: fix compilation on mingw
12554         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
12555         (gl_TERMIOS_H): Adjust it on mingw.
12556         * modules/termios (Makefile.am): Substitute new key.
12557         * lib/termios.in.h (includes): Make include_next conditional.
12558         * doc/posix-headers/termios.texi (termios.h): Update
12559         documentation.
12560         Reported by Daniel P. Berrange.
12561
12562 2010-10-13  Jim Meyering  <meyering@redhat.com>
12563
12564         git-version-gen: don't require that .git/ be in the current dir
12565         * build-aux/git-version-gen: Adjust this script so that it works
12566         when run from any working directory beneath the top-level .git/-
12567         containing directory.  Inspired by a patch from Giuseppe Scrivano,
12568         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
12569
12570         test-select: avoid warn_unused_result warnings
12571         * tests/test-select.c: Include "macros.h".
12572         ASSERT that each call to read, write, and pipe succeeds.
12573         While not technically required, also check each "close".
12574         * modules/select-tests (Files): Add tests/macros.h.
12575
12576         test-symlinkat: remove declaration of unused local
12577         * tests/test-symlinkat.c (main): Remove unused local, "buf".
12578
12579         test-inttostr: avoid shadowing warnings
12580         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
12581         and use malloc rather than the stack for the same reason as
12582         mentioned in the comment justifying the other allocation.
12583
12584 2010-10-11  Bruno Haible  <bruno@clisp.org>
12585
12586         stdlib: Allow multiple gnulib generated replacements to coexist.
12587         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
12588         Reported by Sam Steingold <sds@gnu.org>.
12589
12590 2010-10-11  Jim Meyering  <meyering@redhat.com>
12591
12592         fix a documentation typo
12593         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
12594
12595 2010-10-11  Eric Blake  <eblake@redhat.com>
12596
12597         futimens: work around Solaris 11 bug
12598         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
12599         * tests/test-futimens.h (test_futimens): Enhance, rather than
12600         weaken test.
12601         * doc/posix-functions/futimens.texi (futimens): Document the bug.
12602
12603 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
12604
12605         Indentation.
12606         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
12607         higher-level operators more to the left.
12608
12609 2010-10-11  Jim Meyering  <meyering@redhat.com>
12610
12611         test-futimens: avoid unwarranted test failure on Solaris 5.11
12612         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
12613         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
12614         because it tries to dereference the NULL name argument.
12615
12616 2010-10-11  Bruno Haible  <bruno@clisp.org>
12617
12618         Indentation.
12619         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
12620         indentation.
12621
12622 2010-10-11  Jim Meyering  <meyering@redhat.com>
12623
12624         spawn.in.h: make indentation consistent with parentheses
12625         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
12626         Make indentation consistent with parentheses.
12627
12628 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
12629
12630         Fix mismatched parens in previous commit
12631         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
12632         parens.
12633
12634 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
12635
12636         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
12637
12638         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
12639         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
12640         * lib/malloca.c: Include "verify.h".
12641         (verify1): Remove, replacing with a verify call.
12642         * lib/relocwrapper.c (verify1): Likewise.
12643         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
12644         Likewise.
12645         * modules/malloca (Depends-on): Add 'verify'.
12646         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
12647         * modules/vasnprintf (Depends-on): Add 'verify'.
12648         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
12649         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12650         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12651         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12652         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12653         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12654         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12655
12656         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
12657
12658         Formerly the style was sometimes 2*X - 1, because the C standard
12659         was wrongly thought to disallow ?: in integral constant expressions.
12660         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
12661         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
12662         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
12663         * lib/stdint.in.h (_verify_intmax_size): Likewise.
12664         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
12665         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
12666         verify that time_t cannot be floating.
12667
12668 2010-10-08  Eric Blake  <eblake@redhat.com>
12669
12670         time: enforce recent POSIX ruling that time_t is integral
12671         * lib/time.in.h (__time_t_must_be_integral): Detect any
12672         problematic systems, allowing the rest of gnulib to assume POSIX.
12673
12674 2010-10-08  Jim Meyering  <meyering@redhat.com>
12675
12676         fdopendir: fix a bug on systems lacking openat and /proc support
12677         OpenBSD 4.7 is one such system.  The most noticeable effect was
12678         failure of any application making nontrivial use of fts: rm, du,
12679         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
12680           ./rm: traversal failed: `a': Bad file descriptor
12681         Debugging that, you see that even though FD 6 was closed just
12682         prior to the opendir call in fd_clone_opendir, its resulting
12683         dir->dd_fd was 8, rather than the expected value of 6:
12684
12685         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
12686         93                close (fd);
12687         (gdb) n
12688         94                dir = fd_clone_opendir (dupfd);
12689         (gdb) n
12690         95                saved_errno = errno;
12691         (gdb) p dir->dd_fd
12692         $11 = 8
12693
12694         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
12695         The problem is that on OpenBSD, fd_clone_opendir has to resort
12696         to using the old-style save/restore CWD mechanism, due to its
12697         lack of openat/proc support, and *that* would steal the FD (6)
12698         that opendir was supposed to use.
12699
12700         The fix is to squirrel away the desired FD so that save_cwd uses a
12701         different one, and then free the dest FD right before calling opendir.
12702         That guarantees opendir will use the required file descriptor.
12703
12704         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
12705
12706 2010-10-08  Bruno Haible  <bruno@clisp.org>
12707
12708         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
12709         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
12710
12711 2010-10-08  Bruno Haible  <bruno@clisp.org>
12712
12713         nanosleep: Make replacement POSIX compliant.
12714         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
12715         is out of range.
12716         Reported by Jim Meyering.
12717
12718 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
12719
12720         bootstrap: add hook for altering gnulib.mk, for Bison
12721         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
12722         the Bison bootstrapping process can rewrite file names and variables
12723         in this file before later parts of 'bootstrap' use the file.
12724         Bison wants to include lib/gnulib.mk from the top-level makefile,
12725         so it needs the file names in this file to be relative to the top
12726         level, not relative to lib; plus it needs variable names to be
12727         rewritten.
12728         (slurp): Use the new function.
12729
12730         bootstrap: reformat for readability
12731         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
12732
12733 2010-10-08  Eric Blake  <eblake@redhat.com>
12734
12735         docs: update cygwin progress
12736         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
12737         1.7.7.
12738         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
12739         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
12740         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
12741         * doc/posix-functions/carg.texi (carg): Likewise.
12742         * doc/posix-functions/cargf.texi (cargf): Likewise.
12743         * doc/posix-functions/casin.texi (casin): Likewise.
12744         * doc/posix-functions/casinf.texi (casinf): Likewise.
12745         * doc/posix-functions/casinh.texi (casinh): Likewise.
12746         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
12747         * doc/posix-functions/catan.texi (catan): Likewise.
12748         * doc/posix-functions/catanf.texi (catanf): Likewise.
12749         * doc/posix-functions/catanh.texi (catanh): Likewise.
12750         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
12751         * doc/posix-functions/ccos.texi (ccos): Likewise.
12752         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
12753         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
12754         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
12755         * doc/posix-functions/cexp.texi (cexp): Likewise.
12756         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
12757         * doc/posix-functions/cimag.texi (cimag): Likewise.
12758         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
12759         * doc/posix-functions/clog.texi (clog): Likewise.
12760         * doc/posix-functions/clogf.texi (clogf): Likewise.
12761         * doc/posix-functions/conj.texi (conj): Likewise.
12762         * doc/posix-functions/conjf.texi (conjf): Likewise.
12763         * doc/posix-functions/cpow.texi (cpow): Likewise.
12764         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
12765         * doc/posix-functions/cproj.texi (cproj): Likewise.
12766         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
12767         * doc/posix-functions/creal.texi (creal): Likewise.
12768         * doc/posix-functions/crealf.texi (crealf): Likewise.
12769         * doc/posix-functions/csin.texi (csin): Likewise.
12770         * doc/posix-functions/csinf.texi (csinf): Likewise.
12771         * doc/posix-functions/csinh.texi (csinh): Likewise.
12772         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
12773         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
12774         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
12775         * doc/posix-functions/ctan.texi (ctan): Likewise.
12776         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
12777         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
12778         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
12779         * doc/posix-headers/complex.texi (complex.h): Likewise.
12780
12781 2010-10-07  Jim Meyering  <meyering@redhat.com>
12782
12783         parse-datetime: avoid compilation failure on OpenBSD 4.7
12784         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
12785         This works around a compilation failure on OpenBSD 4.7:
12786         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
12787
12788 2010-10-07  Eric Blake  <eblake@redhat.com>
12789
12790         docs: update cygwin progress
12791         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
12792         1.7.6.
12793         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
12794         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
12795         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
12796         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
12797         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
12798         Likewise.
12799         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
12800         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
12801         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
12802         Likewise.
12803         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
12804         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
12805         Likewise.
12806         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
12807         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
12808         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
12809         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
12810         Likewise.
12811         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
12812         Likewise.
12813         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
12814
12815         docs: update parse-datetime history
12816         * doc/parse-datetime.texi (Authors of parse_datetime): Better
12817         documentation of this function's history and alternatives.
12818
12819         cygwin: use more robust version check
12820         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
12821         exclude an eventual cygwin 1.9.1.
12822         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12823         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
12824         (gl_FUNC_STRCASESTR): Likewise.
12825         Reported by Bruno Haible.
12826
12827 2010-10-06  Bruno Haible  <bruno@clisp.org>
12828
12829         string, sys_select: Avoid #including large headers unless necessary.
12830         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
12831         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
12832         OSF/1, BeOS, Haiku.
12833         Reported by Jim Meyering.
12834
12835 2010-10-05  Eric Blake  <eblake@redhat.com>
12836
12837         memmem, strstr, strcasestr: fix bug with long periodic needle
12838         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
12839         periodic needle having false positive.
12840         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
12841         and cygwin 1.7.7.
12842         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
12843         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
12844         (gl_FUNC_STRCASESTR): Likewise.
12845         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
12846         * tests/test-memmem.c (main): Expose the bug.
12847         * tests/test-strcasestr.c (main): Likewise.
12848         * tests/test-strstr.c (main): Likewise.
12849         * tests/test-c-strcasestr.c (main): Likewise.
12850         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
12851         * doc/posix-functions/strstr.texi (strstr): Likewise.
12852         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12853         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
12854
12855 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12856
12857         parse-datetime: do some more renaming
12858         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
12859         parse_datetime, not get_date.  Mention the renaming.
12860         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
12861         in comments.
12862         * m4/bison.m4: Likewise.
12863
12864 2010-10-05  Eric Blake  <eblake@redhat.com>
12865
12866         parse-datetime: better name than get_date
12867         * NEWS: Reword the deprecation notice.
12868         * modules/get_date: Rename to modules/parse-datetime.
12869         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
12870         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
12871         * lib/get_date.y: Rename to lib/parse-datetime.y.
12872         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
12873         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
12874         * doc/getdate.texi: Provide fallback wrapper.
12875         * lib/getdate.h: Move guts, and wrap...
12876         * lib/parse-datetime.h: ...new file.
12877         * lib/parse-datetime.y (get_date): Rename...
12878         (parse_datetime): ...to this.
12879         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
12880         (gl_PARSE_DATETIME): ...to this.
12881         * doc/posix-functions/getdate.texi (get_date): Provide fallback
12882         documentation.
12883         * modules/getdate (Files): Provide fallback docs and header.
12884         (Notice, Depends-on): Update references.
12885         * tests/test-parse-datetime.c: Likewise.
12886         * DEPENDENCIES: Likewise.
12887         * MODULES.html.sh (Date and time <time.h>): Likewise.
12888         * doc/parse-datetime.texi (Date input formats)
12889         (Authors of parse_datetime): Likewise.
12890         * modules/parse-datetime (Files, configure.ac, Makefile.am)
12891         (Include): Likewise.
12892         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
12893         * gnulib-tool: Likewise.
12894         * m4/bison.m4 (gl_BISON): Likewise.
12895         Suggested by Bruno Haible.
12896
12897 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12898
12899         more ports to Solaris tr, which needs [] around ranges
12900         * gnulib-tool: Solaris tr needs [] around ranges.
12901         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
12902         * tests/test-pipe-filter-gi1.c (main): Likewise.
12903         * tests/test-pipe-filter-ii1.c (main): Likewise.
12904
12905 2010-10-05  Eric Blake  <eblake@redhat.com>
12906
12907         bootstrap: fix Solaris regression
12908         * build-aux/bootstrap (check_versions): Solaris tr still needs []
12909         around ranges.
12910         Reported by Pádraig Brady.
12911
12912         bootstrap: work with pkg-config
12913         * build-aux/bootstrap (check_versions): Also transliterate - in
12914         prerequisite name.
12915         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
12916         prerequisites that were already found, to avoid confusion.
12917         Reported by Justin Clift.
12918
12919         faccessat: remove unused wrappers
12920         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
12921         presence of these wrappers dragged in -lgen on Solaris.
12922         Reported by Clemens Brogi; fix suggested by Paul Eggert.
12923
12924 2010-10-05  Jim Meyering  <meyering@redhat.com>
12925
12926         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
12927         * Makefile (sc_pragma_columns): New syntax-check rule.
12928
12929 2010-10-04  Bruno Haible  <bruno@clisp.org>
12930
12931         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
12932         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
12933         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
12934         Reported by Bruce Korb and Eric Blake.
12935
12936 2010-10-04  Bruno Haible  <bruno@clisp.org>
12937
12938         threadlib: Make option --with-libpth-prefix work.
12939         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
12940         use $LIBPTH, not just -lpth.
12941
12942 2010-10-04  Bruno Haible  <bruno@clisp.org>
12943
12944         Avoid line length limitation from HP NonStop system header files.
12945         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
12946         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
12947         * lib/ctype.in.h: Likewise.
12948         * lib/dirent.in.h: Likewise.
12949         * lib/errno.in.h: Likewise.
12950         * lib/fcntl.in.h: Likewise.
12951         * lib/float.in.h: Likewise.
12952         * lib/getopt.in.h: Likewise.
12953         * lib/iconv.in.h: Likewise.
12954         * lib/inttypes.in.h: Likewise.
12955         * lib/langinfo.in.h: Likewise.
12956         * lib/locale.in.h: Likewise.
12957         * lib/math.in.h: Likewise.
12958         * lib/netdb.in.h: Likewise.
12959         * lib/netinet_in.in.h: Likewise.
12960         * lib/poll.in.h: Likewise.
12961         * lib/pthread.in.h: Likewise.
12962         * lib/pty.in.h: Likewise.
12963         * lib/sched.in.h: Likewise.
12964         * lib/se-selinux.in.h: Likewise.
12965         * lib/search.in.h: Likewise.
12966         * lib/signal.in.h: Likewise.
12967         * lib/spawn.in.h: Likewise.
12968         * lib/stdarg.in.h: Likewise.
12969         * lib/stddef.in.h: Likewise.
12970         * lib/stdint.in.h: Likewise.
12971         * lib/stdio.in.h: Likewise.
12972         * lib/stdlib.in.h: Likewise.
12973         * lib/string.in.h: Likewise.
12974         * lib/strings.in.h: Likewise.
12975         * lib/sys_file.in.h: Likewise.
12976         * lib/sys_ioctl.in.h: Likewise.
12977         * lib/sys_select.in.h: Likewise.
12978         * lib/sys_socket.in.h: Likewise.
12979         * lib/sys_stat.in.h: Likewise.
12980         * lib/sys_time.in.h: Likewise.
12981         * lib/sys_times.in.h: Likewise.
12982         * lib/sys_utsname.in.h: Likewise.
12983         * lib/sys_wait.in.h: Likewise.
12984         * lib/sysexits.in.h: Likewise.
12985         * lib/termios.in.h: Likewise.
12986         * lib/time.in.h: Likewise.
12987         * lib/unistd.in.h: Likewise.
12988         * lib/wchar.in.h: Likewise.
12989         * lib/wctype.in.h: Likewise.
12990         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
12991         * modules/ctype (Makefile.am): Likewise.
12992         * modules/dirent (Makefile.am): Likewise.
12993         * modules/errno (Makefile.am): Likewise.
12994         * modules/fcntl-h (Makefile.am): Likewise.
12995         * modules/float (Makefile.am): Likewise.
12996         * modules/getopt-posix (Makefile.am): Likewise.
12997         * modules/iconv-h (Makefile.am): Likewise.
12998         * modules/inttypes (Makefile.am): Likewise.
12999         * modules/langinfo (Makefile.am): Likewise.
13000         * modules/locale (Makefile.am): Likewise.
13001         * modules/math (Makefile.am): Likewise.
13002         * modules/netdb (Makefile.am): Likewise.
13003         * modules/netinet_in (Makefile.am): Likewise.
13004         * modules/poll-h (Makefile.am): Likewise.
13005         * modules/pthread (Makefile.am): Likewise.
13006         * modules/pty (Makefile.am): Likewise.
13007         * modules/sched (Makefile.am): Likewise.
13008         * modules/search (Makefile.am): Likewise.
13009         * modules/selinux-h (Makefile.am): Likewise.
13010         * modules/signal (Makefile.am): Likewise.
13011         * modules/spawn (Makefile.am): Likewise.
13012         * modules/stdarg (Makefile.am): Likewise.
13013         * modules/stddef (Makefile.am): Likewise.
13014         * modules/stdint (Makefile.am): Likewise.
13015         * modules/stdio (Makefile.am): Likewise.
13016         * modules/stdlib (Makefile.am): Likewise.
13017         * modules/string (Makefile.am): Likewise.
13018         * modules/strings (Makefile.am): Likewise.
13019         * modules/sys_file (Makefile.am): Likewise.
13020         * modules/sys_ioctl (Makefile.am): Likewise.
13021         * modules/sys_select (Makefile.am): Likewise.
13022         * modules/sys_socket (Makefile.am): Likewise.
13023         * modules/sys_stat (Makefile.am): Likewise.
13024         * modules/sys_time (Makefile.am): Likewise.
13025         * modules/sys_times (Makefile.am): Likewise.
13026         * modules/sys_utsname (Makefile.am): Likewise.
13027         * modules/sys_wait (Makefile.am): Likewise.
13028         * modules/sysexits (Makefile.am): Likewise.
13029         * modules/termios (Makefile.am): Likewise.
13030         * modules/time (Makefile.am): Likewise.
13031         * modules/unistd (Makefile.am): Likewise.
13032         * modules/wchar (Makefile.am): Likewise.
13033         * modules/wctype (Makefile.am): Likewise.
13034
13035 2010-10-04  Bruno Haible  <bruno@clisp.org>
13036
13037         read-file tests: Avoid a test failure on NonStop Kernel.
13038         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
13039         a regular file.
13040         Reported by Joachim Schmitz <schmitz@hp.com>.
13041
13042 2010-10-03  Bruno Haible  <bruno@clisp.org>
13043
13044         gnulib-tool: Fixes for --create-testdir with --libtool.
13045         * gnulib-tool (func_get_automake_snippet): Don't augment
13046         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
13047         an executable.
13048         (func_create_testdir): Handle module 'alloca' like func_import.
13049         Reported by Bruce Korb <bruce.korb@gmail.com>.
13050
13051 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
13052
13053         Avoid some lines longer than 80 characters.
13054         * lib/stdint.in.h: Break long comment lines.
13055         * lib/math.in.h: Likewise.
13056         (_GL_NUM_UINT_WORDS): New macro, for readability.
13057         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
13058         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
13059         * lib/stdlib.in.h: Likewise.
13060         * lib/spawn.in.h: Likewise.
13061         * lib/sys_socket.in.h: Update an URL.
13062         * lib/sys_stat.in.h: Break long line.
13063
13064 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
13065
13066         Improve pmccabe2html.
13067         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
13068         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
13069         when the sources change. Remove the line in the HTML about "Used
13070         ranges" (which implied that there might be other unused ranges),
13071         rename "Resume" to "Summary" (easier to understand for more users).
13072         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
13073         styles, and some unnecessary blank lines.
13074
13075 2010-10-03  Bruno Haible  <bruno@clisp.org>
13076             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13077
13078         acl: Add support for ACLs on NonStop Kernel.
13079         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
13080         Check whether the function aclsort() exists.
13081         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
13082         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
13083         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13084         (acl_nontrivial [HAVE_ACLSORT]: New function.
13085         (file_has_acl): Implement for NonStop Kernel.
13086         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13087         (qset_acl): Implement for NonStop Kernel.
13088         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
13089         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13090         (main): Implement for NonStop Kernel.
13091         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
13092         Kernel. Handle this flavor.
13093         * tests/test-set-mode-acl.sh: Likewise.
13094         * tests/test-copy-acl.sh: Likewise.
13095         * tests/test-copy-file.sh: Likewise.
13096
13097 2010-10-03  Bruno Haible  <bruno@clisp.org>
13098
13099         Info about ACLs on NonStop Kernel.
13100         * doc/acl-resources.txt: Add info about NonStop Kernel.
13101         References by Joachim Schmitz <schmitz@hp.com>.
13102
13103 2010-10-02  Bruno Haible  <bruno@clisp.org>
13104
13105         Define missing EDQUOT on NonStop Kernel.
13106         * lib/errno.in.h (EDQUOT): Assign a value if missing.
13107         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
13108         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
13109         missing.
13110         * doc/posix-headers/errno.texi: Mention the NSK bug.
13111         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
13112         Reported by Joachim Schmitz <schmitz@hp.com>.
13113
13114 2010-10-02  Bruno Haible  <bruno@clisp.org>
13115
13116         Update doc for POSIX:2008.
13117         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
13118         Update URL of POSIX specification.
13119
13120 2010-10-02  Bruno Haible  <bruno@clisp.org>
13121
13122         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
13123         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
13124         from gnulib, not from Automake.
13125
13126 2010-10-02  Bruno Haible  <bruno@clisp.org>
13127
13128         New module 'system-posix'.
13129         * modules/system-posix: New file.
13130         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
13131         module is present.
13132         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
13133         GNULIB_SYSTEM_POSIX.
13134         * modules/stdlib (Depends-on): Remove sys_wait.
13135         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
13136         * doc/posix-functions/system.texi: Mention the new module.
13137         * doc/posix-headers/stdlib.texi: Likewise.
13138         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
13139         define test_sys_wait_macros to a no-op.
13140         Reported by Sam Steingold <sds@gnu.org>.
13141
13142 2010-09-30  Bruno Haible  <bruno@clisp.org>
13143
13144         More renaming from 'getdate' to 'get_date'.
13145         * doc/get_date.texi: Renamed from doc/getdate.texi.
13146         * modules/get_date (Files): Update.
13147         * MODULES.html.sh (Date and time <time.h>): Update.
13148         * DEPENDENCIES: Update.
13149         * gnulib-tool: Update comment.
13150         * m4/bison.m4 (gl_BISON): Likewise.
13151         * m4/get_date.m4 (gl_GET_DATE): Likewise.
13152
13153 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
13154
13155         bootstrap: support ACLOCAL_FLAGS during aclocal
13156         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
13157         can add additional -I dir for third-party .m4 files.
13158
13159 2010-09-30  Eric Blake  <eblake@redhat.com>
13160
13161         bootstrap: use glibtoolize on MacOS
13162         * build-aux/bootstrap (check_versions): Convert libtool into
13163         libtoolize.
13164         (tool search): Move libtool check earlier, and look for
13165         glibtoolize for MacOS.
13166         (gnulib_tool_options): Auto-add --libtool when appropriate.
13167         Reported by Justin Clift.
13168
13169         poll: fix typo that broke test on MacOS
13170         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
13171         Reported by Justin Clift.
13172
13173         getdate: rename to get_date
13174         Note: getdate.h is not renamed, to minimize client impact.
13175         * modules/getdate: Mark obsolete.  Move old contents...
13176         * modules/get_date: ...to new module name.
13177         * modules/getdate-tests: Move...
13178         * modules/get_date-tests: ...here.
13179         * m4/getdate.m4: Move...
13180         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
13181         * lib/getdate.y: Move...
13182         * lib/get_date.y: ...here.
13183         * tests/test-getdate.c: Move...
13184         * tests/test-get_date.c: ...here.
13185         * doc/posix-functions/getdate.texi (getdate): Update name.
13186         * NEWS: Mention the change.
13187
13188 2010-09-29  Bruno Haible  <bruno@clisp.org>
13189
13190         Separate the module 'waitpid' from the module 'sys_wait'.
13191         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
13192         present.
13193         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
13194         gl_MODULE_INDICATOR_FOR_TESTS.
13195         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
13196         * modules/sys_wait (Depends-on): Remove waitpid.
13197         (Makefile.am): Substitute GNULIB_WAITPID.
13198         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
13199         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
13200         signature only if the 'waitpid' module is present.
13201         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
13202         * NEWS: Mention the change.
13203         * modules/grantpt (Depends-on): Add waitpid.
13204         * modules/wait-process (Depends-on): Likewise.
13205
13206 2010-09-29  Bruno Haible  <bruno@clisp.org>
13207
13208         More tests for module 'sys_wait'.
13209         * modules/sys_wait-c++-tests: New file.
13210         * tests/test-sys_wait-c++.cc: New file.
13211         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
13212         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13213
13214 2010-09-29  Bruno Haible  <bruno@clisp.org>
13215
13216         New module 'waitpid'.
13217         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
13218         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
13219         Don't include <process.h>.
13220         (waitpid): Declare only, using modern idiom.
13221         * m4/waitpid.m4: New file.
13222         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
13223         * modules/waitpid: New file.
13224         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
13225         (Makefile.am): Update.
13226         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13227
13228 2010-09-28  Bruno Haible  <bruno@clisp.org>
13229
13230         poll: Assume ANSI C.
13231         * lib/poll.c (poll): Use an ANSI C declaration.
13232
13233 2010-09-28  Bruno Haible  <bruno@clisp.org>
13234
13235         poll-h: Create poll.h on all platforms.
13236         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
13237         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
13238         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
13239         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
13240         (gl_REPLACE_POLL_H): Don't set POLL_H.
13241         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
13242         * modules/poll-h (Depends-on): Add include_next.
13243         (Makefile.am): Create poll.h unconditionally. Substitute also
13244         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
13245
13246 2010-09-28  Bruno Haible  <bruno@clisp.org>
13247
13248         Tests for module 'poll-h'.
13249         * modules/poll-h-c++-tests: New file.
13250         * tests/test-poll-h-c++.cc: New file.
13251
13252         Tests for module 'poll-h'.
13253         * modules/poll-h-tests: New file.
13254         * tests/test-poll-h.c: New file.
13255
13256 2010-09-28  Bruno Haible  <bruno@clisp.org>
13257
13258         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
13259         * modules/poll-h (Depends-on): Add 'extensions'.
13260
13261 2010-09-28  Bruno Haible  <bruno@clisp.org>
13262
13263         New module 'poll-h'.
13264         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
13265         (poll): Use modern idiom.
13266         * modules/poll-h: New file.
13267         * modules/poll (Files): Remove lib/poll.in.h.
13268         (Depends-on): Add poll-h.
13269         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
13270         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
13271         * m4/poll_h.m4: New file.
13272         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
13273         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
13274         and invoke gl_REPLACE_POLL_H.
13275         * lib/poll.c: Use common idiom.
13276         * tests/test-poll.c: Likewise.
13277         * doc/posix-headers/poll.texi: Mention the poll-h module.
13278         Suggested by Eric Blake.
13279
13280 2010-09-26  Bruno Haible  <bruno@clisp.org>
13281
13282         sys_wait: Implement WSTOPSIG.
13283         * lib/sys_wait.in.h (WSTOPSIG): New macro.
13284         Reported by Simon Josefsson.
13285
13286 2010-09-26  Simon Josefsson  <simon@josefsson.org>
13287
13288         stdlib, sys_wait: Avoid compilation error on mingw.
13289         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
13290
13291 2010-09-26  Bruno Haible  <bruno@clisp.org>
13292
13293         stdlib tests: Avoid code duplication.
13294         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
13295         * modules/sys_wait-tests (Files): Likewise.
13296         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
13297         * tests/test-stdlib.c: Include test-sys_wait.h.
13298         (main): Invoke test_sys_wait_macros.
13299         * tests/test-sys_wait.c: Include test-sys_wait.h.
13300         (main): Invoke test_sys_wait_macros.
13301
13302 2010-09-25  Simon Josefsson  <simon@josefsson.org>
13303
13304         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
13305         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
13306         sure Windows sockets are working before calling getaddrinfo.
13307         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
13308         * doc/gnulib.texi (Windows sockets): Fix typo.
13309
13310 2010-09-25  Bruno Haible  <bruno@clisp.org>
13311
13312         Tests for module 'regex-quote'.
13313         * modules/regex-quote-tests: New file.
13314         * tests/test-regex-quote.c: New file.
13315
13316         New module 'regex-quote'.
13317         * lib/regex-quote.h: New file.
13318         * lib/regex-quote.c: New file.
13319         * modules/regex-quote: New file.
13320         Suggested by Reuben Thomas <rrt@sc3d.org>.
13321
13322 2010-09-24  Bruno Haible  <bruno@clisp.org>
13323
13324         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
13325         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
13326
13327 2010-09-23  Bruno Haible  <bruno@clisp.org>
13328
13329         setenv: Relax license.
13330         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
13331         Blake.
13332         Requested by Eric Blake.
13333
13334 2010-09-22  Bruno Haible  <bruno@clisp.org>
13335
13336         termios: Relax license.
13337         * modules/termios (License): Change to LGPLv2+.
13338         Requested by Eric Blake.
13339
13340 2010-09-22  Bruno Haible  <bruno@clisp.org>
13341
13342         threadlib: Allow the package to change the default to 'no'.
13343         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
13344         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
13345         Reported by Paul Eggert.
13346
13347 2010-09-22  Pádraig Brady  <P@draigbrady.com>
13348             Bruno Haible  <bruno@clisp.org>
13349
13350         Fix endless loop in mbmemcasecoll.
13351         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
13352         byte.
13353         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
13354
13355 2010-09-22  Bruno Haible  <bruno@clisp.org>
13356
13357         Tests for module 'memcoll'.
13358         * modules/memcoll-tests: New file.
13359         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
13360
13361         memcoll, xmemcoll: Clarify size vs. length.
13362         * modules/memcoll.c (memcoll0): Clarify specification.
13363         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
13364         passed to collate_error.
13365
13366 2010-09-22  Bruno Haible  <bruno@clisp.org>
13367
13368         Tests for module 'memcasecmp'.
13369         * modules/memcasecmp-tests: New file.
13370         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
13371
13372 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
13373
13374         * lib/pthread.in.h: Add split double-inclusion guard, and include
13375         system <pthread.h> if there is one.  Use @@-style as in other
13376         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
13377         pthread.h doesn't.
13378         (pthread_mutexattr_destroy, pthread_mutexattr_init):
13379         (pthread_mutexattr_settype, pthread_mutex_trylock):
13380         New static inline functions, if there's no system <pthread.h>.
13381         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
13382         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
13383         Approximate with mutexes if the system lacks spinlocks, as in
13384         MacOS.
13385         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
13386         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
13387         @@-style.  Check for spinlocks separately.
13388         (gl_PTHREAD_DEFAULTS): New macro.
13389         * modules/pthread: Redo to use a more typical style for in.h files.
13390
13391 2010-09-21  Eric Blake  <eblake@redhat.com>
13392
13393         net_if: enhance tests
13394         * tests/test-net_if.c (main): Move signature checks earlier.
13395         Print failures to stderr.
13396         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
13397         Document the bug that we do not yet fix.
13398
13399 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
13400
13401         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
13402         about gnulib, not GSS.
13403
13404 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
13405
13406         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
13407         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
13408         for Emacs.
13409         * build-aux/pmccabe2html: Make Makefile.am example code more
13410         cut-and-paste friendly.
13411
13412 2010-09-21  Simon Josefsson  <simon@josefsson.org>
13413
13414         * tests/test-net_if.c: New file.
13415         * modules/net_if-tests: New file.
13416
13417 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
13418
13419         pthread: add pthread_spin_destroy
13420         * lib/pthread.in.h (pthread_spin_destroy): New function.
13421
13422 2010-09-19  Bruno Haible  <bruno@clisp.org>
13423
13424         gnulib-tool: Fix --help output.
13425         * gnulib-tool (func_usage): Fix help message.
13426         Reported by Reuben Thomas <rrt@sc3d.org>.
13427
13428 2010-09-18  Jim Meyering  <meyering@redhat.com>
13429
13430         maint.mk: avoid unexpanded \n in two diagnostics
13431         * top/maint.mk (sc_prohibit_always_true_header_tests):
13432         Don't use a literal \n in a halt=... assignment.  It would not be
13433         expanded, and the two \n bytes would appear in the diagnostic output
13434         rather than the desired newline.  Use halt=$$(printf ... instead.
13435         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
13436
13437 2010-09-18  Bruno Haible  <bruno@clisp.org>
13438
13439         netinet_in: Doc tweak.
13440         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
13441         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13442
13443 2010-09-18  Jim Meyering  <meyering@redhat.com>
13444
13445         init.sh: correct an outdated comment
13446         * tests/init.sh (create_exe_shims_):  s/function/alias/
13447
13448         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
13449         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
13450         a file named "*.exe" is removed between the glob expansion and the
13451         processing of that oddly named file.
13452
13453 2010-09-17  Eric Blake  <eblake@redhat.com>
13454
13455         mirbsd: add some more support
13456         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
13457         in BSD family.
13458         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
13459         devices as OpenBSD.
13460         * m4/host-os.m4 (mirbsd): Add MirBSD.
13461
13462         tests: fix unportable assumption on sys/wait.h
13463         * tests/test-sys_wait.c (main): Relax test.
13464         * tests/test-stdlib.c (main): Likewise.
13465
13466         init.sh: accomodate directory with no .exes
13467         * tests/init.sh: Accomodate directory containing only scripts.
13468
13469         tests: avoid compiler warning
13470         * tests/test-stdlib.c (main): Use the variable.
13471
13472         fdutimens, fdutimensat: update signature, again
13473         * lib/utimens.h (gl_futimens): Delete, and move signature...
13474         (fdutimens): ...here.
13475         (fdutimensat): Rearrange signature.
13476         (lutimensat): Rename variable for clarity.
13477         * lib/fdutimensat.c (fdutimensat): Update signature.
13478         * lib/utimens.c (fdutimens): Likewise.
13479         (gl_futimens): Delete.
13480         (utimens, lutimens): Update callers.
13481         * lib/futimens.c (futimens): Likewise.
13482         * tests/test-fdutimensat.c: Likewise.
13483         * tests/test-utimens.c: Likewise.
13484         * tests/test-futimens.h: Update comment.
13485         * NEWS: Mention this.
13486         Suggested by Paul Eggert.
13487
13488 2010-09-17  Bruno Haible  <bruno@clisp.org>
13489
13490         Take over the maintenance of some older macros from Autoconf.
13491         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
13492         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
13493         GNU Autoconf.
13494         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
13495         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
13496
13497 2010-09-17  Eric Blake  <eblake@redhat.com>
13498
13499         fdutimensat: drop atflag validation
13500         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
13501         with valid fd, to close a race scenario where futimens is
13502         unsupported and FILE was replaced by a symlink.
13503         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
13504         accordingly.
13505         Suggested by Paul Eggert.
13506
13507 2010-09-16  Bruno Haible  <bruno@clisp.org>
13508
13509         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
13510         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
13511
13512 2010-09-16  Bruno Haible  <bruno@clisp.org>
13513
13514         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
13515         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
13516         login_tty exists.
13517         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13518
13519 2010-09-16  Bruno Haible  <bruno@clisp.org>
13520
13521         login_tty: Make the replacement code work on BSD systems.
13522         * lib/login_tty.c: Include <sys/ioctl.h>.
13523         (login_tty): Use ioctl TIOCSCTTY when available.
13524         * modules/login_tty (Depends-on): Add sys_ioctl.
13525         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13526
13527 2010-09-16  Bruno Haible  <bruno@clisp.org>
13528
13529         login_tty: Stricter unit test.
13530         * modules/login_tty-tests (Depends-on): Add tcgetsid.
13531         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
13532         and tcgetsid() after login_tty.
13533         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13534
13535 2010-09-16  Bruno Haible  <bruno@clisp.org>
13536
13537         New module 'tcgetsid'.
13538         * lib/tcgetsid.c: New file.
13539         * m4/tcgetsid.m4: New file.
13540         * modules/tcgetsid: New file.
13541         * modules/termios (Depends-on): Add c++defs, warn-on-use.
13542         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
13543         GNULIB_TCGETSID, HAVE_TCGETSID.
13544         * lib/termios.in.h: Include <sys/types.h>.
13545         (tcgetsid): New declaration.
13546         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
13547         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
13548         * doc/posix-functions/tcgetsid.texi: Mention the new module.
13549         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
13550
13551 2010-09-16  Bruno Haible  <bruno@clisp.org>
13552
13553         Tests for module 'termios'.
13554         * modules/termios-c++-tests: New file.
13555         * modules/termios-tests: New file.
13556         * tests/test-termios-c++.cc: New file.
13557         * tests/test-termios.c: New file.
13558
13559         New module 'termios'.
13560         * modules/termios: New file.
13561         * lib/termios.in.h: New file.
13562         * m4/termios_h.m4: New file.
13563         * doc/posix-headers/termios.texi: Mention the new module.
13564
13565 2010-09-16  Eric Blake  <eblake@redhat.com>
13566
13567         fdutimensat: add an atflag parameter
13568         * lib/fdutimensat.c (fdutimensat): Add new parameter.
13569         * lib/utimens.h (fdutimensat): Update prototype.
13570         * tests/test-fdutimensat.c: Adjust test to match.
13571         * NEWS: Document the change.
13572         Suggested by Paul Eggert.
13573
13574 2010-09-16  Bruno Haible  <bruno@clisp.org>
13575
13576         Fix typos in comments.
13577         * lib/striconveh.h: Fix typo in comment.
13578         * lib/login_tty.c (login_tty): Likewise.
13579
13580 2010-09-15  Bruno Haible  <bruno@clisp.org>
13581
13582         stdlib: clarify MirBSD WEXITSTATUS bug
13583         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
13584         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
13585
13586 2010-09-15  Eric Blake  <eblake@redhat.com>
13587
13588         stdlib: work around MirBSD WEXITSTATUS bug
13589         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
13590         * modules/stdlib (Depends-on): Add sys_wait.
13591         * tests/test-sys_wait.c (main): Enhance test.
13592         * tests/test-stdlib.c (main): Likewise.
13593         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
13594
13595         docs: mention MacOS issue with WEXITSTATUS(constant)
13596         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
13597         issue.
13598         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
13599
13600         strnlen: add tests
13601         * modules/strnlen-tests: New file.
13602         * tests/test-strnlen.c: Likewise.
13603
13604 2010-09-14  Bruno Haible  <bruno@clisp.org>
13605
13606         unistr/base: Avoid link errors when module 'libunistring' is also used.
13607         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
13608         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
13609         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
13610         Declare also when HAVE_LIBUNISTRING is set.
13611         Reported by Pádraig Brady <P@draigbrady.com>.
13612
13613 2010-09-14  Eric Blake  <eblake@redhat.com>
13614
13615         test-rawmemchr: make more robust
13616         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
13617         (Depends-on, configure.ac): Add needed prerequisites to use it.
13618         * modules/memchr-tests (Files, Depends-on, configure.ac):
13619         Likewise, to avoid implicit reliance on memchr module prereqs.
13620         * tests/test-memchr.c (main): Ensure proper masking.
13621         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
13622         reads.
13623
13624         memchr: detect glibc Alpha bug
13625         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
13626         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
13627         Alpha.
13628         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
13629         * tests/test-memchr.c (main): Enhance test.
13630         Reported by Nelson H. F. Beebe.
13631
13632 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13633
13634         fts, getcwd, glob: audit for dirfd returning -1
13635         * lib/fts.c (opendir): Remove #define; no longer used.
13636         (opendirat): New arg PDIR_FD.  All callers changed.
13637         (fts_build, _opendir2): Use new opendirat to avoid the need for
13638         dirfd, or for checking whether dirfd returns a negative value.
13639         Don't use opendir; always use openat followed by fdopendir.
13640         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
13641         it.
13642         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
13643         returns -1 here.
13644         * modules/fts (Depends-on): Remove dirfd.
13645         * modules/getcwd (Depends-on): Likewise.
13646
13647 2010-09-13  Eric Blake  <eblake@redhat.com>
13648
13649         float: fix broken MirBSD header
13650         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
13651         * doc/posix-headers/float.texi (float.h): Document it.
13652
13653 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
13654
13655         fts: use O_NOFOLLOW to avoid race condition when opening a directory
13656         * lib/fts.c (opendirat): New arg extra_flags.
13657         (__opendir2): Use it to avoid following symlinks when opening
13658         a directory, if symlinks are not supposed to be followed.  See
13659         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
13660
13661         fdopendir: preserve argument fd before returning
13662         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
13663         (fdopendir_with_dup, fd_clone_opendir): New static functions.
13664         (fdopendir): Use them, arranging for FD to be open to the same
13665         directory that it was when it started.  (It might be temporarily
13666         closed while fdopendir is running, so this not thread- or
13667         signal-safe.)  Be careful to do the right thing even when file
13668         descriptors are scarce and dup fails with errno == EMFILE.  See
13669         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
13670
13671 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
13672
13673         regex: Pass the system regex if its only problem is 32-bit regoff_t.
13674         * NEWS: Document change.
13675         * m4/regex.m4: Disable test for regoff_t size.
13676
13677 2010-09-13  Jim Meyering  <meyering@redhat.com>
13678
13679         fts: don't operate on an invalid file descriptor after failed dup
13680         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
13681         negative file descriptor.
13682
13683 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
13684
13685         savedir: add streamsavedir, deprecate fdsavedir
13686         * NEWS: Mention deprecation of fdsavedir.
13687         * lib/savedir.c (streamsavedir): New extern function, whose name
13688         ends in "savedir" to be consistent with the others.  This differs
13689         from savedirstream in that it doesn't close its argument.  The
13690         next version of GNU tar will use this instead of fdsavedir, to
13691         avoid some race conditions and conserve file descriptors.
13692         (savedirstream): Reimplement as a wrapper around streamsavedir.
13693         (fdsavedir): Add a comment deprecating this function.  As far as
13694         I know, only GNU tar used it, and GNU tar doesn't need it any more.
13695         * lib/savedir.h (streamsavedir): New decl.
13696         (fdsavedir): Add a comment deprecating this.
13697
13698 2010-09-10  Bruno Haible  <bruno@clisp.org>
13699
13700         langinfo: Fix last commit.
13701         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
13702         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
13703         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13704
13705 2010-09-10  Bruno Haible  <bruno@clisp.org>
13706
13707         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
13708         * lib/progreloc.c (O_EXEC): Define fallback.
13709
13710 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
13711
13712         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
13713         * NEWS: Document recent changes to fcntl-h.
13714         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
13715         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
13716         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
13717         Similarly for O_SEARCH; this last was already true, but not documented.
13718         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
13719         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
13720         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
13721         Likewise.
13722         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
13723         is zero, not whether it is defined.
13724         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
13725         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
13726         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
13727
13728 2010-09-10  Bruno Haible  <bruno@clisp.org>
13729
13730         langinfo, nl_langinfo: Fix for IRIX 5.3.
13731         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
13732         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
13733         HAVE_LANGINFO_YESEXPR.
13734         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
13735         HAVE_LANGINFO_YESEXPR.
13736         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
13737         HAVE_LANGINFO_T_FMT_AMPM is 0.
13738         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
13739         HAVE_LANGINFO_YESEXPR is 0.
13740         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
13741         NOEXPR.
13742         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
13743         * doc/posix-functions/nl_langinfo.texi: Likewise.
13744         Reported by Eric Blake.
13745
13746 2010-09-10  Bruno Haible  <bruno@clisp.org>
13747
13748         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
13749         * doc/glibc-functions/login_tty.texi: Mention the include file problem
13750         on FreeBSD 8.0 and OpenBSD 4.6.
13751         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
13752         * m4/pty_h.m4 (gl_PTY_H): Likewise.
13753         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
13754         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
13755         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
13756         ac_includes_default.
13757         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
13758
13759 2010-09-09  Eric Blake  <eblake@redhat.com>
13760
13761         strsignal: work around NetBSD bug
13762         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
13763         * lib/string.in.h (includes): Likewise.
13764         * doc/posix-functions/strsignal.texi (strsignal): Document the
13765         bug.
13766         Reported by Nelson H. F. Beebe.
13767
13768         gnulib-tool: work with NetBSD /bin/sh
13769         * gnulib-tool (func_cache_var, func_cache_lookup_module)
13770         (func_get_description, func_get_comment, func_get_status)
13771         (func_get_notice, func_get_applicability, func_get_filelist)
13772         (func_get_dependencies, func_get_autoconf_early_snippet)
13773         (func_get_autoconf_snippet, func_get_automake_snippet)
13774         (func_get_include_directive, func_get_link_directive)
13775         (func_get_license, func_get_maintainer, func_import): Avoid
13776         shell syntax errors from parsing syntax extensions.
13777
13778 2010-09-09  Bruno Haible  <bruno@clisp.org>
13779
13780         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
13781         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
13782         a reliable way to determine whether the 'alias' command works.
13783
13784 2010-09-08  Jim Meyering  <meyering@redhat.com>
13785
13786         init.sh: penalize a set-x-impaired shell; don't disqualify it
13787         * tests/init.sh: Too many shells corrupt application stderr when
13788         you set -x, so we can't afford to disqualify them, since at least
13789         on Irix-6.5, that would disqualify all bourne shells.
13790         Instead, use a two-pass approach.
13791         On the first pass, try to find a shell that meets the stricter
13792         condition that set -x does not corrupt stderr.
13793         If no shell meets the stricter condition, retest each candidate
13794         shell, but without that extra condition.  Finally, when
13795         VERBOSE=yes is requested and set -x might cause trouble, simply
13796         issue a warning and refrain from enabling debug output.
13797
13798 2010-09-08  Eric Blake  <eblake@redhat.com>
13799
13800         unsetenv: fix OpenBSD bug
13801         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
13802         * doc/posix-functions/unsetenv.texi (unsetenv): Update
13803         documentation.
13804         Reported by Jim Meyering.
13805
13806         strtod: work around IRIX 6.5 bug
13807         * lib/strtod.c (strtod): Reparse number on shorter string if
13808         exponent parse was invalid.
13809         * tests/test-strtod.c (main): Add check for "0x1p 2".
13810         Reported by Tom G. Christensen.
13811
13812         getopt: optimize previous patch
13813         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
13814         empty variable.  Speed up awk script.
13815         Reported by Paolo Bonzini.
13816
13817 2010-09-08  Jim Meyering  <meyering@redhat.com>
13818
13819         test.sh: disqualify shells for which set -x corrupts stderr
13820         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
13821         and OpenBSD 4.7.  They make it so with "set -x", environment settings
13822         appear in stderr output.  For example, this command:
13823             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
13824         prints "P=1" on those two systems:
13825
13826 2010-09-08  Bruno Haible  <bruno@clisp.org>
13827
13828         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
13829         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
13830         commands, because some shells ignore redirections when there is an
13831         error in the command lookup.
13832         Reported by Eric Blake.
13833
13834 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
13835
13836         * lib/regex.h: Fix a mention of `regex_compile' (should be
13837         `re_compile_pattern').
13838         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
13839         (re_set_registers): Correct name of parameter in comment.
13840
13841         * doc/regex.texi: Add documentation for missing syntax flags.
13842         Remove commented-out documentation of defunct syntax option
13843         RE_NO_EMPTY_ALTS.
13844         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
13845         Add documentation of re_set_registers.
13846         Document trick to re-use a pattern buffer by setting fastmap manually.
13847         Update documentation of struct re_pattern_buffer per public members.
13848         Uncomment documentation of equivalence class operators and
13849         collating symbol operators, since they are now implemented,
13850         Explain leftmost-longest matching in relation to alternatives.
13851         Tidy documentation of substring matching.
13852         Remove POSIX documentation, which is done better in
13853         glibc, and refer the reader there. Keep BSD API documentation, as
13854         that is not readily available elsewhere.
13855
13856 2010-09-07  Eric Blake  <eblake@redhat.com>
13857
13858         getopt: handle POSIXLY_CORRECT set but not exported
13859         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
13860         export state of POSIXLY_CORRECT, due to bash set -o posix.
13861         Reported by Dustin J. Mitchell.
13862
13863 2010-09-05  Bruno Haible  <bruno@clisp.org>
13864
13865         gnulib-tool: Highlight the changed options.
13866         * gnulib-tool (func_usage): Display the --import, --add-import,
13867         --remove-import explanations in bold font.
13868
13869 2010-09-06  Karl Berry  <karl@gnu.org>
13870
13871         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
13872
13873 2010-09-05  Bruno Haible  <bruno@clisp.org>
13874
13875         uniwidth/width: Update comment.
13876         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
13877         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
13878
13879 2010-09-05  Bruno Haible  <bruno@clisp.org>
13880
13881         isinf, isnan: Relax license.
13882         * modules/isinf (License): Change from GPL to LGPL, with consent from
13883         Ben Pfaff.
13884         * modules/isnan (License): Likewise.
13885         Requested by Ludovic Courtès.
13886
13887 2010-09-04  Bruno Haible  <bruno@clisp.org>
13888
13889         gnulib-tool: Help migration from --import to --add-import or --update.
13890         * gnulib-tool: Emit a verbose error message when --import is used
13891         without any module name.
13892
13893 2010-09-04  Bruno Haible  <bruno@clisp.org>
13894
13895         Update doc about gnulib-tool.
13896         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
13897         'gnulib-tool --update' in more detail.
13898         Reported by Eric Blake.
13899
13900 2010-09-04  Bruno Haible  <bruno@clisp.org>
13901
13902         gnulib-tool: Change --import. New options --add/remove-import.
13903         * gnulib-tool: New options --add-import, --remove-import.
13904         (func_usage): Document them.
13905         (have_associative): Define always.
13906         (func_import): In import mode, don't merge the specified settings with
13907         the cached settings. Implement remove-import mode.
13908         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
13909         Explain when to use them versus --import.
13910         (Simple update): Use --add-import instead of --import.
13911         * NEWS: Mention the change.
13912
13913 2010-09-04  Bruno Haible  <bruno@clisp.org>
13914
13915         * doc/gnulib-tool.texi (Initial import): Update paragraph about
13916         separate gnulib.mk.
13917
13918 2010-09-04  Bruno Haible  <bruno@clisp.org>
13919
13920         gnulib-tool: Don't talk about CVS any more.
13921         * gnulib-tool (func_usage, func_import): Write "version control"
13922         instead of CVS.
13923
13924 2010-09-04  Jim Meyering  <meyering@redhat.com>
13925
13926         maint.mk: avoid obscure sc_copyright_check failure in coreutils
13927         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
13928         false positives (whose names may be ill-chosen) when searching
13929         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
13930         would cause a false-positive.
13931
13932         avoid coreutils "make distcheck" failure
13933         Coreutils tests with an absolute build directory name that contains
13934         a space.  Not quoting this directory name caused a failure.
13935         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
13936         * tests/test-vc-list-files-cvs.sh: Likewise.
13937
13938 2010-09-04  Bruno Haible  <bruno@clisp.org>
13939
13940         gnulib-tool: Avoid error when run in a package without Makefile.am.
13941         * gnulib-tool: When collecting the m4dirs in a package that does not
13942         have a Makefile.am, eliminate those directories that contain no
13943         gnulib-cache.m4. Fix expression that counts these directories.
13944
13945 2010-09-04  Bruno Haible  <bruno@clisp.org>
13946
13947         update-copyright test: Improve output when perl is missing or too old.
13948         * tests/test-update-copyright.sh: Move test of Perl version down after
13949         the test whether Perl exists. Provide an explanation relating Perl's
13950         error message to Automake's SKIP: message.
13951
13952 2010-09-04  Bruno Haible  <bruno@clisp.org>
13953
13954         Don't augment PATH in TESTS_ENVIRONMENT.
13955         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
13956         set abs_aux_dir instead of augmenting PATH.
13957         * modules/vc-list-files-tests (Makefile.am): Likewise.
13958         * tests/test-update-copyright.sh: Augment PATH here.
13959         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
13960         path_prepend_.
13961         * tests/test-vc-list-files-git.sh: Likewise.
13962
13963 2010-09-04  Jim Meyering  <meyering@redhat.com>
13964
13965         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
13966         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
13967
13968 2010-09-04  Bruno Haible  <bruno@clisp.org>
13969
13970         strdup: Fix compilation error in C++ mode.
13971         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
13972         the macro.
13973
13974 2010-09-04  Bruno Haible  <bruno@clisp.org>
13975
13976         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
13977         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
13978         macro into a function.
13979         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13980
13981 2010-09-04  Bruno Haible  <bruno@clisp.org>
13982
13983         Set PATH_SEPARATOR the same way autoconf does.
13984         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
13985         the value of PATH_SEPARATOR the same way autoconf-generated configure
13986         scripts do.
13987         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
13988         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
13989
13990 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13991
13992         Set PATH_SEPARATOR the same way autoconf does.
13993         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
13994         the same way autoconf-generated configure scripts do.
13995         * posix-modules: Likewise.
13996
13997 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13998
13999         hash: fix safe_hasher const typo
14000         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
14001         const; otherwise, there is a type error later.
14002
14003 2010-09-02  Jim Meyering  <meyering@redhat.com>
14004
14005         test-update-copyright.sh: require perl 5.8.0
14006         * tests/test-update-copyright.sh: Require 5.8.0,
14007         which Tom G. Christensen has confirmed is adequate,
14008         while 5.6.1 is not.
14009
14010 2010-09-02  Eric Blake  <eblake@redhat.com>
14011
14012         tests: init.sh improvements for re-exec'ing with zsh
14013         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
14014         -vx through shell re-exec.
14015         Reported by Tom G. Christensen.
14016
14017         wctype: fix typo in previous commit
14018         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
14019         Reported by Ludovic Courtès.
14020
14021 2010-09-02  Jim Meyering  <meyering@redhat.com>
14022
14023         test-update-copyright.sh: skip test if Perl is too old
14024         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
14025         Reported by Tom G. Christensen.
14026
14027 2010-09-02  Bruno Haible  <bruno@clisp.org>
14028
14029         wctype: Avoid compilation error on IRIX 6.5.30.
14030         * lib/wctype.in.h (iswblank): Declare with a replacement if
14031         REPLACE_ISWBLANK is set.
14032         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
14033         declared. Set REPLACE_ISWBLANK.
14034         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
14035         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
14036         * doc/posix-headers/wctype.texi: Likewise.
14037         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14038
14039 2010-09-01  Bruno Haible  <bruno@clisp.org>
14040
14041         New module 'socketlib'.
14042         * modules/socketlib: New file.
14043         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
14044         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
14045         * modules/sockets (Depends-on): Add socketlib.
14046         Suggested by Sam Steingold <sds@gnu.org>.
14047
14048 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14049
14050         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
14051
14052         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
14053         when one needs search access to a directory but not read access.
14054         On systems where it is available, it works in some cases where
14055         O_RDONLY does not, namely on directories that are searchable but
14056         not readable, and which need only to be searchable.  If O_SEARCH
14057         is not available, fall back to the traditional method of using
14058         O_RDONLY.
14059
14060         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
14061         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
14062         when opening a directory that needs only to be searchable.
14063         * lib/chdir-safer.c (chdir_no_follow): Likewise.
14064         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
14065         * lib/openat-proc.c (openat_proc_name): Likewise.
14066         * lib/openat.c (openat_needs_fchdir): Likewise.
14067         * lib/save-cwd.c (save_cwd): Likewise.
14068         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
14069
14070 2010-08-28  Bruno Haible  <bruno@clisp.org>
14071
14072         New module 'host-cpu-c-abi'.
14073         * modules/host-cpu-c-abi: New file.
14074         * m4/host-cpu-c-abi.m4: New file, based on part of
14075         clisp/src/m4/general.m4.
14076         Requested by Sam Steingold <sds@gnu.org>.
14077
14078 2010-08-31  Eric Blake  <eblake@redhat.com>
14079         and Jim Meyering  <meyering@redhat.com>
14080
14081         hash: factor, and guard against misbehaving hasher function
14082         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
14083         of table->hasher's return value.  Also protect against a hash value
14084         so large that adding it to table->bucket results in a NULL pointer.
14085         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
14086         Use it in place of open-coded check-and-abort.
14087
14088 2010-08-30  Bruno Haible  <bruno@clisp.org>
14089
14090         hash: silence spurious clang warning
14091         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
14092         Reported by Eric Blake.
14093
14094 2010-08-30  Eric Blake  <eblake@redhat.com>
14095
14096         strstr, memmem, strcasestr: avoid leaked shell message
14097         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
14098         FreeBSD.
14099         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14100         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14101
14102         tests: silence clang warning
14103         * tests/test-malloca.c (do_allocation): Avoid dead store.
14104
14105 2010-08-29  Bruno Haible  <bruno@clisp.org>
14106
14107         gettext: Fix recent mistake.
14108         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
14109
14110 2010-08-29  Bruno Haible  <bruno@clisp.org>
14111
14112         selinux-h: Offer a --without-selinux option.
14113         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
14114         --without-selinux was specified, skip all tests and define
14115         HAVE_SELINUX_SELINUX_H to 0.
14116         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
14117         set LIB_SELINUX to empty.
14118         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
14119         gl_LIBSELINUX. If --without-selinux was specified, replace
14120         selinux/context.h.
14121         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
14122
14123 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14124             Bruno Haible  <bruno@clisp.org>
14125
14126         Make the module 'realloc-gnu' work again on AIX and OSF/1.
14127         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
14128         of HAVE_REALLOC.
14129         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
14130         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
14131         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
14132         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
14133
14134 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14135             Bruno Haible  <bruno@clisp.org>
14136
14137         Make the module 'calloc-gnu' work again on AIX and OSF/1.
14138         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
14139         HAVE_CALLOC.
14140         * lib/xmalloc.c: Update accordingly.
14141         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
14142         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
14143         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
14144
14145 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14146             Bruno Haible  <bruno@clisp.org>
14147
14148         Make the module 'malloc-gnu' work again on AIX and OSF/1.
14149         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
14150         HAVE_MALLOC.
14151         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
14152         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
14153         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
14154
14155 2010-08-29  Bruno Haible  <bruno@clisp.org>
14156
14157         Update modules list.
14158         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14159         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
14160         (String handling <string.h>): Add astrxfrm.
14161         (File system functions): Add readlinkat.
14162
14163 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14164
14165         Tests for module 'realloc-gnu'.
14166         * modules/realloc-gnu-tests: New file.
14167         * tests/test-realloc-gnu.c: New file.
14168
14169         Tests for module 'calloc-gnu'.
14170         * modules/calloc-gnu-tests: New file.
14171         * tests/test-calloc-gnu.c: New file.
14172
14173         Tests for module 'malloc-gnu'.
14174         * modules/malloc-gnu-tests: New file.
14175         * tests/test-malloc-gnu.c: New file.
14176
14177 2010-08-28  Bruno Haible  <bruno@clisp.org>
14178
14179         Rename module 'realloc' -> 'realloc-gnu'.
14180         * modules/realloc-gnu: New file, copied from modules/realloc.
14181         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
14182         obsolete.
14183         * modules/mgetgroups (Depends-on): Update.
14184         * doc/posix-functions/realloc.texi: Update.
14185         * NEWS: Mention the change.
14186
14187         Rename module 'calloc' -> 'calloc-gnu'.
14188         * modules/calloc-gnu: New file, copied from modules/calloc.
14189         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
14190         obsolete.
14191         * doc/posix-functions/calloc.texi: Update.
14192         * NEWS: Mention the change.
14193
14194         Rename module 'malloc' -> 'malloc-gnu'.
14195         * modules/malloc-gnu: New file, copied from modules/malloc.
14196         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
14197         obsolete.
14198         * modules/argp (Depends-on): Update.
14199         * modules/regex (Depends-on): Update.
14200         * doc/posix-functions/malloc.texi: Update.
14201         * NEWS: Mention the change.
14202
14203 2010-08-28  Eric Blake  <eblake@redhat.com>
14204
14205         pread, pwrite: add missing dependency
14206         * modules/pread (Depends-on): Add extensions.
14207         * modules/pwrite (Depends-on): Likewise.
14208
14209 2010-08-28  Bruno Haible  <bruno@clisp.org>
14210
14211         unistr/u*-strchr: Fix tests dependencies.
14212         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
14213         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
14214         Reported by Ian Beckwith <ianb@erislabs.net>.
14215
14216 2010-08-28  Bruno Haible  <bruno@clisp.org>
14217
14218         read-file: Don't occupy too much unused memory.
14219         * lib/read-file.c (fread_file): Shrink the buffer at the end.
14220
14221 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
14222             Eric Blake  <eblake@redhat.com>
14223             Bruno Haible  <bruno@clisp.org>
14224
14225         read-file: Avoid memory reallocations with regular files.
14226         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
14227         (fread_file): With regular files, use the remaining length as the
14228         initial buffer size.  Check against overflow.
14229         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
14230         sys_stat.
14231
14232 2010-08-28  Bruno Haible  <bruno@clisp.org>
14233
14234         ftello: Relax license.
14235         * modules/ftello (License): Relax to LGPLv2+.
14236         Reported by Eric Blake.
14237
14238 2010-08-28  Bruno Haible  <bruno@clisp.org>
14239
14240         Avoid relocwrapper link errors due to gnulib replacement functions.
14241         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
14242         function.
14243         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14244
14245 2010-08-28  Bruno Haible  <bruno@clisp.org>
14246
14247         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
14248         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
14249         defined.
14250         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
14251         Suggested by Eric Blake.
14252
14253 2010-08-28  Bruno Haible  <bruno@clisp.org>
14254
14255         sys_socket, netdb: Ensure socklen_t gets defined.
14256         * modules/sys_socket (Depends-on): Add socklen.
14257         * modules/netdb (Depends-on): Likewise.
14258         * modules/getaddrinfo (Depends-on): Remove socklen.
14259         * modules/getsockopt (Depends-on): Likewise.
14260         * modules/setsockopt (Depends-on): Likewise.
14261         * tests/test-sys_socket.c: Check that socklen_t is defined.
14262         * tests/test-netdb.c: Likewise.
14263         * m4/socklen.m4: Update comments.
14264         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14265
14266 2010-08-27  Eric Blake  <eblake@redhat.com>
14267
14268         login_tty: add missing dependency
14269         * modules/login_tty (Depends-on): Add pty.
14270
14271 2010-08-26  Eric Blake  <eblake@redhat.com>
14272
14273         lib-symbol-versions: fix m4 quoting
14274         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
14275         format for AC_LINK_IFELSE.
14276
14277         glob: fix compile test
14278         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
14279
14280         btowc: fix missing file
14281         * modules/btowc (Files): Also ship locale-fr.m4.
14282
14283         lseek: fix link test
14284         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
14285         AC_LINK_IFELSE.
14286
14287         include_next: silence autoconf 2.68 warning
14288         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
14289         AC_COMPILE_IFELSE as special.
14290         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
14291         autoconf < 2.68.
14292
14293         acl: fix compilation test
14294         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
14295         AC_COMPILE_IFELSE.
14296
14297 2010-08-26  Bruno Haible  <bruno@clisp.org>
14298
14299         Modernize AC_TRY_RUN invocations.
14300         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
14301         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14302         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
14303         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
14304         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
14305         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
14306         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14307         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14308         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14309         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14310         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14311         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14312         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14313         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14314         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14315         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
14316         gl_MBRLEN_NUL_RETVAL): Likewise.
14317         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14318         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14319         Likewise.
14320         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14321         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14322         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14323         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14324         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
14325         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
14326         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
14327         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14328         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
14329         Likewise.
14330         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
14331         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
14332         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14333         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14334         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14335         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14336         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14337         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
14338         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14339         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14340
14341 2010-08-26  Bruno Haible  <bruno@clisp.org>
14342
14343         Modernize AC_TRY_LINK invocations.
14344         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
14345         AC_TRY_LINK.
14346         * m4/argp.m4 (gl_ARGP): Likewise.
14347         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14348         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14349         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
14350         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14351         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14352         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
14353         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14354         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14355         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14356         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14357         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14358         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
14359         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
14360         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
14361         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
14362         * m4/hostent.m4 (gl_HOSTENT): Likewise.
14363         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14364         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
14365         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
14366         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
14367         Likewise.
14368         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
14369         Likewise.
14370         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
14371         Likewise.
14372         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
14373         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
14374         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
14375         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
14376         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14377         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
14378         * m4/servent.m4 (gl_SERVENT): Likewise.
14379         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14380         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14381         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14382         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14383         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14384         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14385         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14386         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14387         * modules/tsearch-tests (configure.ac): Likewise.
14388
14389 2010-08-26  Bruno Haible  <bruno@clisp.org>
14390
14391         Modernize AC_TRY_COMPILE invocations.
14392         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
14393         AC_TRY_COMPILE.
14394         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
14395         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
14396         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
14397         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
14398         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
14399         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
14400         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
14401         * m4/lock.m4 (gl_LOCK): Likewise.
14402         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
14403         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
14404         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
14405         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
14406         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
14407         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
14408         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14409         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
14410         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
14411         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
14412         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
14413         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
14414         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
14415         extraneous semicolon.
14416
14417 2010-08-26  Jim Meyering  <meyering@redhat.com>
14418
14419         stat-time: relax license LGPL
14420         * modules/stat-time (License): Change from GPL to LGPL,
14421         with consent from all contributors, for use in libguile.
14422         Requested by Ludovic Courtès.
14423
14424 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
14425
14426         poll: return immediately on POLLHUP.
14427         * lib/poll.c (poll): Always set timeout before wait_timeout is
14428         computed.
14429
14430 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14431
14432         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
14433         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
14434         rmdir ("dir/.//"), unlinkat.
14435
14436 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
14437
14438         stdbool: avoid spurious failure with modern xlc
14439         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
14440
14441 2010-08-24  Bruno Haible  <bruno@clisp.org>
14442
14443         getloadavg: simplify code
14444         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
14445         gl_have_func. Update comments.
14446
14447 2010-08-24  Eric Blake  <eblake@redhat.com>
14448
14449         getloadavg: don't define SVR4 on cygwin
14450         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
14451         only define SVR4 when -lkvm is required.
14452         Reported by Yaakov Selkowitz.
14453
14454 2010-08-24  Bruno Haible  <bruno@clisp.org>
14455
14456         priv-set: fix comment
14457         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
14458
14459 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
14460
14461         priv-set: fix comments
14462         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
14463         to match code, as suggested by David Bartley in:
14464         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
14465
14466 2010-08-23  Eric Blake  <eblake@redhat.com>
14467
14468         stdbool: avoid rejecting clang
14469         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
14470         * tests/test-stdbool.c: Enable more tests if using the system
14471         <stdbool.h> instead of the gnulib replacement.
14472         (main): Move xlc bug test to a runtime test for all compilers.
14473         Reported by Anders Kaseorg.
14474
14475         argz: fix shell quoting issue
14476         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
14477         Reported by Charles Wilson.
14478
14479 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
14480             Erik Faye-Lund <kusmabite@gmail.com>
14481
14482         poll, select: handle ERROR_BROKEN_PIPE.
14483         * lib/poll.c (win32_compute_revents): Return POLLHUP when
14484         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
14485         * lib/select.c (win32_compute_revents): Do not mark a pipe
14486         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
14487
14488 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
14489
14490         fts: allow compilation with C++
14491         * lib/fts_.h: Specify extern "C" linkage with C++.
14492
14493 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14494
14495         Fix gnulib-tool sed script de-commentation for AIX sed.
14496         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
14497         sed.
14498
14499 2010-08-17  Eric Blake  <eblake@redhat.com>
14500
14501         test-stddef: test for (some) offsetof bugs
14502         * tests/test-stddef.c: Enhance test to ensure correct type of
14503         offsetof.
14504         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
14505         that we are not fixing at this time.
14506
14507 2010-08-15  Bruno Haible  <bruno@clisp.org>
14508
14509         stpncpy: Allow stpncpy to be defined as a macro.
14510         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
14511         if it's already correctly declared.
14512         * lib/string.in.h (stpncpy): Undefine before redefining.
14513         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
14514
14515 2010-08-14  Bruno Haible  <bruno@clisp.org>
14516
14517         Rename module 'memxfrm' to 'amemxfrm'.
14518         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
14519         (amemxfrm): Renamed from memxfrm.
14520         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
14521         (amemxfrm): Renamed from memxfrm.
14522         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
14523         * NEWS: Mention the change.
14524         * MODULES.html.sh (String handling <string.h>): Update.
14525         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
14526         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
14527         * lib/unicase/u16-casexfrm.c: Likewise.
14528         * lib/unicase/u32-casexfrm.c: Likewise.
14529         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
14530         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
14531         * lib/uninorm/u16-normxfrm.c: Likewise.
14532         * lib/uninorm/u32-normxfrm.c: Likewise.
14533         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
14534         memxfrm.
14535         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
14536         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
14537         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
14538         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
14539         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
14540         Suggested by Paul Eggert.
14541
14542 2010-08-14  Bruno Haible  <bruno@clisp.org>
14543
14544         Tests for module 'astrxfrm'.
14545         * modules/astrxfrm-tests: New file.
14546         * tests/test-astrxfrm.c: New file.
14547
14548         New module 'astrxfrm'.
14549         * lib/astrxfrm.h: New file.
14550         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
14551         * modules/astrxfrm: New file.
14552
14553 2010-08-14  Reuben Thomas <rrt@sc3d.org>
14554
14555         regex: Tweak doc.
14556         * doc/regex.texi (Overview): Don't mention regex.c.
14557         (GNU Regular Expression Compiling): Likewise.
14558         (Match-end-of-line Operator): Mention 'not_eol'.
14559
14560 2010-08-14  Brian Gough  <bjg@gnu.org>
14561             Bruno Haible  <bruno@clisp.org>
14562
14563         git-merge-changelog: add doc relating to use with bzr and hg.
14564         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
14565
14566 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
14567
14568         pthread: fix pthread.h creation for srcdir != builddir
14569         * modules/pthread (Makefile.am): Fix the rule to work also in a
14570         non-srcdir build.
14571
14572 2010-08-13  Karl Berry  <karl@gnu.org>
14573
14574         * doc/regex.texi (Predefined Syntaxes): @smallexample.
14575         * doc/posix-*/*: force line break before @url of POSIX
14576         specifications.
14577         Suggested by Werner Lemberg.
14578
14579 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14580
14581         strtod: fix const diagnostic
14582         * lib/strtod.c (strtod): Don't assign const char * to char *,
14583         as this elicits a warning from GCC when warnings are enabled.
14584
14585 2010-08-10  Pádraig Brady <P@draigbrady.com>
14586         and Eric Blake  <eblake@redhat.com>
14587
14588         copy-acl: ignore ENOTSUP on HP-UX
14589         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
14590         so that it is available for HP-UX.
14591         * lib/copy-acl.c (qcopy_acl): Use it.
14592         Reported by Patrick M. Callahan.
14593
14594 2010-08-10  Eric Blake  <eblake@redhat.com>
14595
14596         open, chown: relax license
14597         * modules/open (License): Change to LGPLv2+, with consent by all
14598         authors, for use in augeas.
14599         * modules/chown (License): Likewise.
14600         * modules/lchown (Likewise): Likewise.
14601         Requested by Adam Stokes.
14602
14603 2010-08-09  Karl Berry  <karl@gnu.org>
14604
14605         * build-aux/ar-lib: new file, import from Automake.
14606         * config/srclist.txt: autocheck for updates.
14607
14608 2010-08-09  Eric Blake  <eblake@redhat.com>
14609
14610         readlinkat: adjust client modules
14611         * modules/areadlinkat (Depends-on): Use readlinkat, not
14612         symlinkat.
14613         * modules/areadlinkat-with-size (Depends-on): Likewise.
14614
14615         mknod: be more vocal about danger of running tests as root
14616         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
14617         root, since that is just asking for problems.
14618         Suggested by Bruno Haible, based on a report by Rainer Tammer.
14619
14620         readlinkat: split into its own module
14621         * modules/symlinkat: Split readlinkat...
14622         * modules/readlinkat: ...into separate module.
14623         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
14624         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
14625         * lib/symlinkat.c (readlinkat): Move...
14626         * lib/readlinkat.c: ...into new file.
14627         * modules/symlinkat-tests: Split readlinkat test...
14628         * modules/readlinkat-tests: ...into separate module.
14629         * tests/test-symlinkat.c: Split...
14630         * tests/test-readlinkat.c: ...into new file.
14631         * NEWS: Document the split.
14632         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14633         * lib/unistd.in.h (readlinkat): Likewise.
14634         Suggested by Bruno Haible.
14635
14636 2010-08-08  Bruno Haible  <bruno@clisp.org>
14637
14638         memxfrm: Speed up.
14639         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
14640         that usually only one call to strxfrm is necessary for each string
14641         part.
14642         Reported by Paul Eggert <eggert@cs.ucla.edu>.
14643
14644 2010-08-07  Karl Berry  <karl@gnu.org>
14645
14646         * doc/posix-headers/limits.texi,
14647         * doc/posix-functions/malloc.texi,
14648         * doc/posix-functions/strsignal.texi: missing @item.
14649         * doc/ld-version-script.texi: spurious leading i.
14650         * doc/regex.texi (Interval Operators): no commas inside @var.
14651
14652 2010-08-01  Bruno Haible  <bruno@clisp.org>
14653
14654         Integrate the regex documentation.
14655         * doc/gnulib.texi: Define 'cn' index.
14656         (Regular expressions): New a chapter that includes regex.texi and
14657         regexprops-generic.texi.
14658         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
14659         syntax.
14660
14661         Whitespace cleanup.
14662         * doc/regex.texi: Remove trailing spaces.
14663
14664         Add regex documentation.
14665         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
14666         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
14667         Written by Kathy A. Hargreaves and Karl Berry.
14668
14669 2010-08-01  Bruno Haible  <bruno@clisp.org>
14670
14671         link: Update documentation.
14672         * doc/posix-functions/link.texi: Update regarding Solaris.
14673
14674 2010-07-31  Bruno Haible  <bruno@clisp.org>
14675
14676         Update modules list.
14677         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
14678         (String handling <string.h>): Add memcmp2, memxfrm.
14679         (Container data structures): Add xlist, xsublist, xoset.
14680         (Core language properties): Add alignof, unused-parameter.
14681         (Process control, Numeric conversion functions <stdlib.h>): Renamed
14682         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
14683         (Unibyte characters <ctype.h>): New section.
14684         (String handling <string.h>): New section.
14685         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
14686         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
14687         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
14688         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
14689         tan, tanh, tanl, y0, y1, yn.
14690         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
14691         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
14692         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
14693         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
14694         unlockpt, vdprintf, vdprintf-posix.
14695         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
14696         (File system functions): Add concat-filename, sys_file, sys_ioctl,
14697         xconcat-filename.
14698         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
14699         getdtablesize, pipe2, pipe2-safer.
14700         (Security): New section.
14701         (Networking functions): Add accept4.
14702         (Signal handling): Add sigpipe.
14703         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
14704         mbmemcasecoll.
14705         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
14706         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
14707         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
14708         pipe-filter-ii.
14709         (Misc): Add argp-version-etc, login_tty, parse-duration.
14710
14711 2010-07-31  Bruno Haible  <bruno@clisp.org>
14712
14713         Improve doc in MODULES.html.
14714         * modules/linkat (Description): Add the word "function".
14715         * modules/mkfifo (Description): Likewise.
14716         * modules/mknod (Description): Likewise.
14717         * modules/remove (Description): Likewise.
14718         * modules/renameat (Description): Likewise.
14719         * modules/stat (Description): Likewise.
14720         * modules/symlink (Description): Likewise.
14721         * modules/unlink (Description): Likewise.
14722
14723 2010-07-31  Bruno Haible  <bruno@clisp.org>
14724
14725         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
14726         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
14727         option --enable/disable-c++ instead of --enable/disable-cxx.
14728         * NEWS: Mention the change.
14729
14730 2010-07-31  Bruno Haible  <bruno@clisp.org>
14731
14732         readlink, areadlink: Relax test a bit.
14733         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
14734         alternative to ENOTDIR.
14735         * tests/test-areadlink.h (test_areadlink): Likewise.
14736         Reported by Rainer Tammer.
14737
14738 2010-07-31  Bruno Haible  <bruno@clisp.org>
14739
14740         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
14741         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
14742         character, perform the search using U_STRCHR.
14743         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
14744         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
14745         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
14746         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
14747         Suggested by Paolo Bonzini.
14748
14749 2010-07-31  Bruno Haible  <bruno@clisp.org>
14750
14751         unistr/u*-strstr: Fix dependencies.
14752         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
14753         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
14754         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
14755
14756 2010-07-31  Bruno Haible  <bruno@clisp.org>
14757
14758         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
14759         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
14760         the beginning of the loop.
14761         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
14762         cases in 'switch' statement.
14763
14764         unistr/u8-strchr: Fix several bugs.
14765         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
14766         the string. When not found, return NULL, not a pointer near the end.
14767
14768         More tests for unistr/u8-strchr.
14769         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
14770         that the function does not read past the first occurrence of the byte
14771         being searched.
14772         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
14773         * tests/unistr/test-u16-strchr.c (main): New function.
14774         * tests/unistr/test-u32-strchr.c (main): New function.
14775
14776 2010-07-31  Bruno Haible  <bruno@clisp.org>
14777
14778         posix-modules: Ignore backup files of documentation files.
14779         * posix-modules: grep only through files named *.texi.
14780
14781 2010-07-31  Bruno Haible  <bruno@clisp.org>
14782
14783         symlinkat: Fix documentation.
14784         * doc/posix-functions/readlinkat.texi: Fix module name.
14785
14786 2010-07-31  Bruno Haible  <bruno@clisp.org>
14787
14788         fchownat: Replace also when chown has the trailing slash bug.
14789         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
14790         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
14791         introduced on 2010-04-10.
14792         Reported by Rainer Tammer.
14793
14794 2010-07-31  Bruno Haible  <bruno@clisp.org>
14795
14796         linkat: Work around AIX 7.1 bug.
14797         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
14798         whether linkat handles trailing slash correctly. If not, replace linkat
14799         and define LINKAT_TRAILING_SLASH_BUG.
14800         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
14801         check whether (fd1,file1) points to a directory if file1 or file2 ends
14802         in a slash. Code taken from lib/link.c.
14803         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
14804         Reported by Rainer Tammer.
14805
14806 2010-07-31  Bruno Haible  <bruno@clisp.org>
14807
14808         Correctly determine whether pow is available in libc on AIX 7 with xlc.
14809         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
14810         This disables an xlc optimization that was causing wrong test results.
14811         Reported by Rainer Tammer.
14812
14813 2010-07-31  Bruno Haible  <bruno@clisp.org>
14814
14815         iconv: Work around AIX 6.1..7.1 bug.
14816         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
14817         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
14818         cross-compiling, guess no on all versions of AIX.
14819         Reported by Rainer Tammer.
14820
14821 2010-07-31  Bruno Haible  <bruno@clisp.org>
14822
14823         readlink: Relax test a bit.
14824         * tests/test-readlink.h (test_readlink): Allow different errno value
14825         when readlink is called with a file name that ends in / and refers to
14826         a file.
14827         Suggested by Eric Blake.
14828         Reported by Rainer Tammer.
14829
14830 2010-07-31  Bruno Haible  <bruno@clisp.org>
14831
14832         copysign: Does not require -lm on glibc systems.
14833         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
14834         gl_COMMON_DOUBLE_MATHFUNC.
14835         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
14836
14837 2010-07-31  Bruno Haible  <bruno@clisp.org>
14838
14839         duplocale: Work around AIX 7.1 bug.
14840         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
14841         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
14842         * lib/duplocale.c (rpl_duplocale): Update comment.
14843         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
14844         Reported by Rainer Tammer.
14845
14846 2010-07-30  Bruno Haible  <bruno@clisp.org>
14847
14848         dirfd: Avoid link error on AIX 7.1.
14849         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
14850         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
14851         exist, set REPLACE_DIRFD.
14852         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
14853         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
14854         * doc/posix-functions/dirfd.texi: Update.
14855         Reported by Rainer Tammer.
14856
14857 2010-07-30  Eric Blake  <eblake@redhat.com>
14858
14859         strtod: next round of AIX fixes
14860         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
14861         exponent.
14862         * tests/test-strtod.c (main): Enhance tests.
14863         * doc/posix-functions/strtod.texi (strtod): Document next bug.
14864         Reported by Rainer Tammer.
14865
14866         futimens: fix configure check
14867         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
14868         Reported by Bruno Haible.
14869
14870 2010-07-30  Bruno Haible  <bruno@clisp.org>
14871
14872         getline: Update regarding AIX.
14873         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
14874         Reported by Rainer Tammer.
14875
14876 2010-07-30  Bruno Haible  <bruno@clisp.org>
14877
14878         wcwidth: Drop replacement on AIX 7.
14879         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
14880         AIX 7.
14881         Reported by Rainer Tammer.
14882
14883 2010-07-30  Bruno Haible  <bruno@clisp.org>
14884
14885         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
14886         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
14887         a 'char *'.
14888         Reported by Rainer Tammer.
14889
14890 2010-07-30  Bruno Haible  <bruno@clisp.org>
14891
14892         unlink: Update regarding AIX.
14893         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
14894         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
14895         Reported by Rainer Tammer.
14896
14897 2010-07-30  Bruno Haible  <bruno@clisp.org>
14898
14899         symlink: Update regarding AIX.
14900         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
14901         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
14902         Reported by Rainer Tammer.
14903
14904 2010-07-30  Bruno Haible  <bruno@clisp.org>
14905
14906         strndup: Update regarding AIX.
14907         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
14908         AIX 7.
14909         Reported by Rainer Tammer.
14910
14911 2010-07-30  Bruno Haible  <bruno@clisp.org>
14912
14913         stat: Update regarding AIX.
14914         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
14915         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
14916         Reported by Rainer Tammer.
14917
14918 2010-07-30  Bruno Haible  <bruno@clisp.org>
14919
14920         truncl: Fix autoconf test.
14921         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
14922         whether truncl works.
14923         Reported by Rainer Tammer.
14924
14925 2010-07-30  Bruno Haible  <bruno@clisp.org>
14926
14927         round: Update regarding AIX.
14928         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
14929         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
14930         Reported by Rainer Tammer.
14931
14932 2010-07-30  Bruno Haible  <bruno@clisp.org>
14933
14934         rename: Update regarding AIX.
14935         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
14936         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
14937         Reported by Rainer Tammer.
14938
14939 2010-07-30  Bruno Haible  <bruno@clisp.org>
14940
14941         printf.m4: Update regarding AIX.
14942         * m4/printf.m4: Update comments regarding AIX.
14943         Reported by Rainer Tammer.
14944
14945 2010-07-30  Bruno Haible  <bruno@clisp.org>
14946
14947         iconv: Update regarding AIX.
14948         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
14949         AIX 7.
14950         Reported by Rainer Tammer.
14951
14952 2010-07-30  Bruno Haible  <bruno@clisp.org>
14953
14954         getopt: Update regarding AIX.
14955         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
14956         no on AIX.
14957         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
14958         Reported by Rainer Tammer.
14959
14960 2010-07-30  Bruno Haible  <bruno@clisp.org>
14961
14962         ldexpl; Update regarding AIX.
14963         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
14964         on AIX 7.
14965         Reported by Rainer Tammer.
14966
14967 2010-07-30  Bruno Haible  <bruno@clisp.org>
14968
14969         frexpl: Update regarding AIX.
14970         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
14971         on AIX 7.
14972         Reported by Rainer Tammer.
14973
14974 2010-07-30  Bruno Haible  <bruno@clisp.org>
14975
14976         open, fopen: Update regarding AIX.
14977         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
14978         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
14979         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
14980         * doc/posix-functions/fopen.texi: Likewise.
14981         Reported by Rainer Tammer.
14982
14983 2010-07-30  Bruno Haible  <bruno@clisp.org>
14984
14985         chown: Update doc regarding AIX.
14986         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
14987         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
14988         Reported by Rainer Tammer.
14989
14990 2010-07-30  Eric Blake  <eblake@redhat.com>
14991
14992         strtod: fix bug in replacement function on AIX
14993         * lib/strtod.c (strtod): Special case broken "0x" parse in
14994         underlying strtod.
14995         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
14996         * doc/posix-functions/strtod.texi (strtod): Likewise.
14997         Reported by Rainer Tammer.
14998
14999 2010-07-30  Bruno Haible  <bruno@clisp.org>
15000
15001         mbrlen: Fix cross-compilation guess for AIX.
15002         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
15003         guess. Leftover from 2008-12-22.
15004
15005 2010-07-30  Bruno Haible  <bruno@clisp.org>
15006
15007         mbrtowc: Fix cross-compilation guess for AIX.
15008         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
15009         guess. Leftover from 2008-12-21.
15010
15011 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
15012
15013         init.sh: work around trap limitation of some shells
15014         * tests/init.sh (setup_): Move exit trap outside of shell function.
15015
15016 2010-07-29  Eric Blake  <eblake@redhat.com>
15017
15018         strtod: aid debugging
15019         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
15020         understanding why strtod is rejected.
15021
15022 2010-07-28  Bruno Haible  <bruno@clisp.org>
15023
15024         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
15025         * lib/unistr/u8-chr.c: Include <string.h>.
15026         * tests/unistr/test-u8-chr.c: Likewise.
15027         * tests/unistr/test-u16-chr.c: Likewise.
15028         * tests/unistr/test-u32-chr.c: Likewise.
15029         * tests/unistr/test-u8-strchr.c: Likewise.
15030         * tests/unistr/test-u16-strchr.c: Likewise.
15031         * tests/unistr/test-u32-strchr.c: Likewise.
15032         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
15033         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
15034         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
15035         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
15036
15037 2010-07-28  Bruno Haible  <bruno@clisp.org>
15038
15039         Use spaces for indentation, not tabs.
15040         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
15041
15042 2010-07-27  Bruno Haible  <bruno@clisp.org>
15043
15044         mbspcasecmp: Fix function specification.
15045         * lib/string.in.h (mbspcasecmp): Fix specification comment.
15046         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
15047         Reported by Eric Blake <eblake@redhat.com>.
15048
15049 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
15050
15051         timespec: use cast and not conditional, as truncation isn't possible
15052         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
15053         instead of a conditional.  Comment about the situation in more detail.
15054         This undoes most of the 2009-10-29 patch.
15055
15056 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
15057
15058         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
15059         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
15060         * lib/unistr/u8-strchr.c: Likewise.
15061         * modules/unistr/u8-chr: Depend on memchr.
15062
15063         unistr/u*-strchr: add tests
15064         * modules/unistr/u8-strchr-tests: New file.
15065         * modules/unistr/u16-strchr-tests: New file.
15066         * modules/unistr/u32-strchr-tests: New file.
15067         * tests/unistr/test-strchr.h: New file.
15068         * tests/unistr/test-u8-strchr.c: New file.
15069         * tests/unistr/test-u16-strchr.c: New file.
15070         * tests/unistr/test-u32-strchr.c: New file.
15071
15072         unistr/u*-chr: test multibyte sequences more
15073         * tests/unistr/test-chr.h: Do complete testing of the characters in the
15074         test vector.
15075         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
15076         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
15077         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
15078
15079         unistr/u*-chr: test multibyte sequences
15080         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
15081
15082         unistr/u*-chr: prepare for multibyte tests
15083         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
15084         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
15085         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
15086         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
15087         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
15088         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
15089
15090 2010-07-18  Bruno Haible  <bruno@clisp.org>
15091
15092         unistr/u8-strchr: Optimize non-ASCII argument case.
15093         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
15094         because the first byte often matches anyway.
15095         Reported by Pádraig Brady <P@draigbrady.com>.
15096
15097 2010-07-15  Karl Berry  <karl@gnu.org>
15098
15099         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
15100
15101 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
15102
15103         getcwd: on Solaris, work better if ancestors are inaccessible
15104         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
15105         buffer and size, try again with a large buffer.  This works better
15106         on Solaris, since its getcwd succeeds even if the path to the root
15107         is inaccessible, and this is helpful in common cases such as .zfs
15108         hidden directories.  Problem reported by J Chapman Flack in
15109         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
15110         Use system getcwd if it's declared, not merely if it's partly
15111         working; use the partly-working test only to avoid needless effort
15112         if the system getcwd fails.
15113         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
15114         comment that was already obsolete and is now even more obsolete.
15115         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
15116         now might call strdup.
15117
15118 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
15119
15120         pthread: Add enough so that coreutils/src/sort.c compiles.
15121         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
15122         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
15123         gnulib. Include <sched.h> and <time.h>, as per POSIX.
15124         Include <sys/types.h>, in case it defines pthread_t.
15125         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
15126         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
15127         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
15128         (pthread_rwlockattr_t, pthread_spinlock_t):
15129         New typedefs, if HAVE_PTHREAD_T is not defined.
15130         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
15131         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
15132         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
15133         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
15134         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
15135         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
15136         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
15137         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
15138         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
15139         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
15140         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
15141         New macros.
15142         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
15143         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
15144         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
15145         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
15146         (pthread_spin_unlock): New dummy functions.
15147         (pthread_create): Return EAGAIN; don't set errno.
15148         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
15149         require AC_C_INLINE.
15150         * modules/pthread (Depends-on): Add sched, time.
15151         (pthread.h): Use AM_V_GEN.
15152
15153 2010-07-13  Bruno Haible  <bruno@clisp.org>
15154
15155         striconveh: Don't malloc memory if the result buffer is sufficient.
15156         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
15157         buffer if its size is sufficient.
15158         Reported by Ludovic Courtès <ludo@gnu.org>.
15159
15160 2010-07-13  Bruno Haible  <bruno@clisp.org>
15161
15162         strtod: Add safety check.
15163         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
15164
15165 2010-07-12  Bruno Haible  <bruno@clisp.org>
15166
15167         Unify tests that set gl_cv_func_ldexpl_no_libm.
15168         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
15169         gl_FUNC_LDEXPL.
15170         (gl_FUNC_LDEXPL): Invoke it.
15171         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15172
15173 2010-07-12  Bruno Haible  <bruno@clisp.org>
15174
15175         Unify tests that set gl_cv_func_ldexp_no_libm.
15176         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
15177         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
15178         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
15179         (configure.ac): Simply invoke gl_FUNC_LDEXP.
15180         * modules/strtod (Files): Add m4/ldexp.m4.
15181
15182 2010-07-12  Bruno Haible  <bruno@clisp.org>
15183
15184         Unify tests that set gl_cv_func_frexpl_no_libm.
15185         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
15186         gl_FUNC_FREXPL_NO_LIBM.
15187         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
15188         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15189
15190 2010-07-12  Bruno Haible  <bruno@clisp.org>
15191
15192         Unify tests that set gl_cv_func_frexp_no_libm.
15193         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
15194         gl_FUNC_FREXP_NO_LIBM.
15195         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
15196         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
15197
15198 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
15199
15200         memcoll: clarify sizes versus lengths, document better, and tweak perf
15201         * lib/memcoll.c (strcoll_loop, memcoll0):
15202         Improve quality of descriptive comments.  Name variables
15203         consistently as to whether they are lengths (which do not include
15204         terminating null) versus sizes (which do).
15205         * lib/xmemcoll.c (xmemcoll0): Likewise.
15206         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
15207         returned when s1size == 0; this is easier to compile and saves
15208         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
15209
15210 2010-07-12  Bruno Haible  <bruno@clisp.org>
15211
15212         Tests for module '_Exit'.
15213         * modules/_Exit-tests: New file.
15214         * tests/test-_Exit.sh: New file.
15215         * tests/test-_Exit.c: New file.
15216
15217         New module '_Exit'.
15218         * lib/stdlib.in.h (__attribute__): New macro.
15219         (_Exit): New declaration.
15220         * lib/_Exit.c: New file.
15221         * m4/_Exit.m4: New file.
15222         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
15223         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
15224         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
15225         * modules/_Exit: New file.
15226         * tests/test-stdlib-c++.cc (_Exit): Check signature.
15227         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
15228
15229 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
15230
15231         strtod: make it more-accurate typically, and don't require libm
15232         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
15233         Include limits.h.  Don't include string.h.
15234         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
15235         (locale_isspace): New function, so that no casts are needed to
15236         check whether *s is a space.
15237         (ldexp): Provide an unused dummy if not available.
15238         (scale_radix_exp, parse_number, underlying_strtod): New functions.
15239         (strtod): Use them.  This implementation prefers to use the
15240         underlying strtod if available, falling back on our own code
15241         only to fix known bugs.  This is more likely to produce an
15242         accurate result.  Also, it avoids the use of libm functions.
15243         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
15244         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
15245         was absent, but it caused a test failure with coreutils.
15246         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
15247         with libm.
15248         * modules/strtod (Makefile.am, Link): libm is no longer needed.
15249         * modules/strtod-tests (Makefile.am): Likewise.
15250
15251 2010-07-11  Pádraig Brady  <P@draigBrady.com>
15252             Bruno Haible  <bruno@clisp.org>
15253
15254         unistr/u8-strchr: Optimize ASCII argument case.
15255         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
15256
15257 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15258
15259         (x)memcoll: minor tweaks
15260         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
15261         is after the type that it qualifies.
15262         (memcoll0): Likewise.
15263         * lib/memcoll.h (memcoll0): Likewise.
15264         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
15265         * lib/xmemcoll.h (xmemcoll0): Likewise.
15266         * lib/memcoll.c (memcoll0): Correct the comment.  This function
15267         differs from memcoll in that the NUL byte is part of the argument.
15268         Omit the abort-checks, as performance is a real issue here.  Plus,
15269         the checks were wrong anyway (an off-by-one error).  Omit local
15270         variable 'diff', as it's a bit clearer that way.
15271         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
15272         no longer needed.
15273
15274 2010-07-08  Chen Guo <chenguo4@yahoo.com>
15275
15276         (x)memcoll: speedup when input is known to be NUL delimited
15277         * lib/memcoll.c: Include stdlib.
15278         (memcoll0): New function.
15279         (strcoll_loop): New function, refactored for use in both memcoll
15280         and memcoll0.
15281         * lib/memcoll.h (memcoll0): Add prototype.
15282         * lib/xmemcoll.c (xmemcoll0): New function.
15283         (collate_error): New function, refactored for use in both xmemcoll
15284         and xmemcoll0.
15285         * lib/xmemcoll.h (xmemcoll0): Add prototype.
15286         * m4/memcoll.m4: add inline invocation.
15287
15288 2010-07-06  Pádraig Brady  <P@draigBrady.com>
15289
15290         * build-aux/bootstrap: Remove any local translations
15291         from the translation project synchronization directory,
15292         so that local only translations are not distributed.
15293
15294 2010-07-04  Bruno Haible  <bruno@clisp.org>
15295
15296         fsusage: Clarify which code applies to which platforms.
15297         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
15298         platform.
15299         * lib/fsusage.c (get_fs_usage): Likewise.
15300
15301 2010-07-04  Bruno Haible  <bruno@clisp.org>
15302
15303         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
15304         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
15305         Reported by Martin Lambers <marlam@marlam.de>.
15306
15307 2010-07-04  Jim Meyering  <meyering@redhat.com>
15308
15309         hash: once again explicitly disallow insertion of NULL
15310         * lib/hash.c (hash_insert0): Reinstate just-removed test:
15311         inserting a NULL pointer cannot work with these functions.
15312         Add a comment with details.
15313         This reverts part of the 2010-07-01 commit, 5bef1a35
15314         "hash: extend module to deal with non-pointer keys".
15315
15316 2010-07-01  Bruno Haible  <bruno@clisp.org>
15317
15318         stdbool: Update doc.
15319         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
15320         Info from Christian Weisgerber <naddy@mips.inka.de>.
15321
15322 2010-07-01  Jim Meyering  <meyering@redhat.com>
15323
15324         hash: extend module to deal with non-pointer keys
15325         * lib/hash.c (hash_insert0): New interface, much like hash_insert
15326         but that allows insertion of non-pointer entries.
15327         Do not disallow an ENTRY value of NULL.
15328         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
15329         * lib/hash.h (hash_insert0): Declare.
15330
15331 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15332
15333         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
15334         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
15335         not present (i.e. with autoconf 2.59 and when using gettextize, not
15336         gnulib), require AC_GNU_SOURCE instead.
15337
15338 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
15339
15340         idpriv-drop: Fix tests.
15341         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
15342         not to the test-idpriv-droptemp program.
15343
15344 2010-06-29  Bruno Haible  <bruno@clisp.org>
15345
15346         string: Fix syntax error with g++ 2.96.
15347         * lib/string.in.h (__pure__): Remove definition.
15348         (_GL_ATTRIBUTE_PURE): New macro.
15349         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
15350         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
15351         Reported by Christian Weisgerber <naddy@mips.inka.de>.
15352
15353 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
15354
15355         unitypes: Fix bug introduced on 2010-05-18.
15356         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
15357
15358 2010-06-22  Eric Blake  <eblake@redhat.com>
15359
15360         memmem: slight optimization
15361         * lib/str-two-way.h (critical_factorization): Update comments.
15362         Reduce work during factorization phase.
15363         Reported by Carlos Bueno <carlos@bueno.org>.
15364
15365 2010-06-21  Bruno Haible  <bruno@clisp.org>
15366
15367         Fix HAVE_CALLOC_POSIX misnomer.
15368         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
15369         !HAVE_CALLOC_POSIX.
15370         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
15371         HAVE_CALLOC_POSIX.
15372         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
15373         instead of HAVE_CALLOC_POSIX.
15374         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
15375         HAVE_CALLOC_POSIX.
15376
15377         Use modern idiom for calloc() replacement.
15378         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
15379         AC_FUNC_CALLOC.
15380         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
15381         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
15382         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
15383         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
15384         (gl_REPLACE_CALLOC): New macro.
15385
15386 2010-06-21  Bruno Haible  <bruno@clisp.org>
15387
15388         Fix HAVE_REALLOC_POSIX misnomer.
15389         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
15390         !HAVE_REALLOC_POSIX.
15391         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
15392         HAVE_REALLOC_POSIX.
15393         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
15394         instead of HAVE_REALLOC_POSIX.
15395         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
15396         HAVE_REALLOC_POSIX.
15397
15398         Use modern idiom for realloc() replacement.
15399         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
15400         AC_FUNC_REALLOC.
15401         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
15402         Autoconf's AC_FUNC_REALLOC.
15403         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
15404         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
15405         (gl_REPLACE_REALLOC): New macro.
15406         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
15407
15408 2010-06-21  Bruno Haible  <bruno@clisp.org>
15409
15410         Fix HAVE_MALLOC_POSIX misnomer.
15411         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
15412         !HAVE_MALLOC_POSIX.
15413         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
15414         HAVE_MALLOC_POSIX.
15415         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
15416         instead of HAVE_MALLOC_POSIX.
15417         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
15418         HAVE_MALLOC_POSIX.
15419
15420         Use modern idiom for malloc() replacement.
15421         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
15422         AC_FUNC_MALLOC.
15423         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
15424         Autoconf's AC_FUNC_MALLOC.
15425         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
15426         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
15427         (gl_REPLACE_MALLOC): New macro.
15428         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
15429
15430 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
15431
15432         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
15433         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
15434         This macro takes 3 arguments, not 4.
15435
15436 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
15437
15438         ipv6: fix detection under mingw
15439         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
15440         in6_addr.
15441
15442 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
15443
15444         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
15445         that strtod() works when cross-compiling to a glibc version known
15446         to work.
15447
15448 2010-06-15  Bruno Haible  <bruno@clisp.org>
15449
15450         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
15451
15452 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
15453
15454         select: Correct timeout.
15455         * lib/select.c (rpl_select): Compute wait_timeout correctly.
15456
15457 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15458
15459         git-version-gen: init shell var to avoid env var influence
15460         * build-aux/git-version-gen (v): Init shell var to empty.
15461
15462 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
15463
15464         priv-set: Don't assume that priv.h exists merely because getppriv does.
15465         See Jan Andersen's bug report about AIX 5L in
15466         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
15467         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
15468         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
15469         * lib/priv-set.h: Likewise.
15470         * tests/test-priv-set.c: Likewise.
15471
15472 2010-06-13  Bruno Haible  <bruno@clisp.org>
15473
15474         relocatable: Make it easier to test whether to install wrappers.
15475         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
15476         RELOCATABLE_VIA_WRAPPER.
15477
15478 2010-06-13  Bruno Haible  <bruno@clisp.org>
15479
15480         gnulib-tool: Display specified modules and dependencies differently.
15481         * gnulib-tool (func_show_module_list): New function.
15482         (func_import, func_create_testdir): Invoke it.
15483         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
15484
15485 2010-06-13  Bruno Haible  <bruno@clisp.org>
15486
15487         gnulib-tool: Align code of func_import and func_create_testdir.
15488         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
15489         specified_modules.
15490
15491 2010-06-12  Jim Meyering  <meyering@redhat.com>
15492
15493         test-inttostr: avoid spurious failure on Solaris 9
15494         * tests/test-inttostr.c (main): Skip the test when snprintf fails
15495         to accept "%ju".  Reported by Bruno Haible.
15496
15497 2010-06-11  Jim Meyering  <meyering@redhat.com>
15498
15499         test-sys_socket: mark variables as used more readably
15500         * tests/test-sys_socket.c (main): Mark otherwise unused variables
15501         as "used" explicitly via (void) statement casts.  This is more
15502         readable than using them in an artificial return expression.
15503         Suggestion from Bruno Haible.
15504
15505 2010-06-11  Bruno Haible  <bruno@clisp.org>
15506
15507         Avoid some more warnings from "gcc -Wwrite-strings".
15508         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
15509         to 'const char *'.
15510         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
15511         * tests/test-c-strcasestr.c (main): Likewise.
15512         * tests/test-mbscasestr1.c (main): Likewise.
15513         * tests/test-mbscasestr2.c (main): Likewise.
15514         * tests/test-memmem.c (main): Likewise.
15515         * tests/test-strstr.c (main): Likewise.
15516         * tests/test-strcasestr.c (main): Likewise.
15517
15518 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15519
15520         init.sh: change framework_failure_ to fail with status 99, not 1
15521         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
15522         automake's parallel-tests rule that this is an unexpected failure,
15523         even if the test is listed in XFAIL_TESTS.
15524
15525 2010-06-11  Jim Meyering  <meyering@redhat.com>
15526
15527         test-inttostr: avoid warnings about 4-6KB literal strings
15528         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
15529         Include "macros.h", for its definition of ASSERT.
15530         (CK): s/assert/ASSERT/
15531         * modules/inttostr-tests (Files): Add macros.h.
15532
15533         init.sh: don't use $ME_ or skip_ before they are defined
15534         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
15535         their first uses.  Also hoist their companions: warn_, fail_,
15536         framework_failure_, $stderr_fileno.  Prompted by a patch from
15537         Stefano Lattarini.
15538
15539         test-sys_socket: avoid set-but-not-used warnings from gcc
15540         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
15541         avoid warning about set-but-not-used variables.
15542
15543         test-xvasprintf: avoid 'const' discard warnings
15544         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
15545         "const" when assigning from literal strings.
15546         (test_xasprintf): Add "void" in function argument list to placate
15547         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
15548
15549         tests: avoid compilation warnings in argmatch and exclude tests...
15550         in packages that define ARGMATCH_DIE_DECL, like coreutils.
15551         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
15552         Since it always exits, declare with the "noreturn" attribute.
15553         * tests/test-argmatch.c: Likewise.
15554
15555         tests: avoid 'const' discard warnings in mbsstr tests
15556         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
15557         * tests/test-mbsstr2.c (main): Likewise.
15558
15559         test-verify: avoid warning from gcc's -Wmissing-declarations
15560         * tests/test-verify.c (function): Declare to be static.
15561
15562         test-inttostr.c: include <string.h> for use of strcmp
15563         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
15564
15565         test-linkat: avoid failed assertion on "other" architectures
15566         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
15567         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
15568         sparc: https://bugs.launchpad.net/bugs/591968
15569
15570 2010-06-11  Jim Meyering  <meyering@redhat.com>
15571
15572         printf.m4: avoid autoconf's "Expanded Before Required" warning
15573         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
15574         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
15575         autoconf warning.
15576
15577 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
15578
15579         Replacement header templates are now named with ".in", not "_".
15580         * doc/gnulib-intro.texi: Correct.
15581
15582 2010-06-10  Jim Meyering  <meyering@redhat.com>
15583
15584         inttostr-tests: depend on snprintf, not snprintf-posix
15585         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
15586         snprintf-posix, to avoid this aclocal failure:
15587           missing file gnulib-tests/vasnprintf.c
15588           configure.ac:45: error: expected source file, required through \
15589           AC_LIBSOURCES, not found
15590
15591 2010-06-10  Jim Meyering  <meyering@redhat.com>
15592
15593         inttostr: add a new function, inttostr, and tests
15594         The namesake function was not available.  The existence of the
15595         template file, inttostr.c makes its addition nontrivial.
15596         * lib/anytostr.c: Rename from inttostr.c.
15597         (anytostr): Rename from inttostr.
15598         * lib/inttostr.c: New file.
15599         * modules/inttostr (Files): Add anytostr.c.
15600         (Makefile.am): Set lib_SOURCES instead of ...
15601         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
15602         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
15603         * lib/offtostr.c: Likewise.
15604         * lib/uinttostr.c: Likewise.
15605         * lib/umaxtostr.c: Likewise.
15606         * modules/inttostr-tests: New file.
15607         * tests/test-inttostr.c: New file.  Test these functions.
15608
15609 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
15610             Bruno Haible  <bruno@clisp.org>
15611
15612         Add "Extending Gnulib" chapter to manual.
15613         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
15614         chapter.
15615         (Extending Gnulib): New chapter.
15616         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
15617         chapter.
15618
15619 2010-06-09  Bruno Haible  <bruno@clisp.org>
15620
15621         Avoid relocwrapper link errors due to gnulib replacement functions.
15622         * lib/areadlink.c: Use the system's malloc, realloc functions.
15623         (areadlink): Set errno to ENOMEM explicitly.
15624         * modules/areadlink (Depends-on): Remove malloc-posix.
15625         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15626
15627 2010-06-09  Bruno Haible  <bruno@clisp.org>
15628
15629         Avoid relocwrapper link errors due to gnulib replacement functions.
15630         * lib/canonicalize-lgpl.c: Use the system's malloc function.
15631         * lib/malloca.c: Likewise.
15632         * lib/relocatable.c: Likewise.
15633         * lib/progreloc.c: Use the system's malloc, sprintf functions.
15634         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
15635         * lib/setenv.c: Use the system's malloc, realloc functions.
15636         * lib/strerror.c: Use the system's sprintf function.
15637         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15638
15639 2010-06-04  Bruno Haible  <bruno@clisp.org>
15640
15641         Prefer documented low-level autoconf macro names.
15642         * m4/lib-link.m4: Use m4_translit instead of translit.
15643         * m4/environ.m4: Likewise.
15644         * m4/mathfunc.m4: Likewise.
15645         * m4/onceonly.m4: Likewise.
15646         * m4/stdint.m4: Likewise.
15647         Suggested by Eric Blake.
15648
15649 2010-06-04  Martin Lambers  <marlam@marlam.de>
15650             Bruno Haible  <bruno@clisp.org>
15651
15652         havelib: Allow library names with '+' characters.
15653         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
15654         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
15655
15656 2010-06-09  Bruno Haible  <bruno@clisp.org>
15657
15658         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
15659         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
15660         realloc failed.
15661
15662 2010-06-08  Peter Simons  <simons@cryp.to>
15663
15664         maint.mk: make the news-check rule more configurable
15665         * top/maint.mk (news-check-lines-spec): New variable.
15666         (news-check): Use "sed -n 1,10p" in place of "head".
15667
15668 2010-06-07  Jim Meyering  <meyering@redhat.com>
15669
15670         do-release-commit-and-tag: fix typo in --help
15671         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
15672
15673         regex: avoid new dead-code warning with gcc-4.6.0
15674         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
15675         if-block containing a while-loop.  It's been unused for at least
15676         5 years.
15677
15678 2010-06-05  Bruno Haible  <bruno@clisp.org>
15679
15680         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
15681         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
15682
15683 2010-06-04  Bruno Haible  <bruno@clisp.org>
15684
15685         Update to GNU gettext 0.18.1.
15686         * modules/gettext (configure.ac): Require gettext infrastructure from
15687         version 0.18.1.
15688
15689 2010-06-03  Bruno Haible  <bruno@clisp.org>
15690
15691         Don't use AC_LIBOBJ with file names in subdirectories.
15692         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
15693         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
15694         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
15695         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
15696         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
15697         gl_LIBUNISTRING_LIBSOURCE.
15698         (Makefile.am): Augment lib_SOURCES here, conditionally.
15699         * NEWS: Drop requirement for Automake option 'subdir-objects'.
15700
15701 2010-06-03  Bruno Haible  <bruno@clisp.org>
15702
15703         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
15704         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
15705         expansion does not end with a newline.
15706         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
15707         unnecessary newline.
15708
15709 2010-06-03  Bruno Haible  <bruno@clisp.org>
15710
15711         Reduce dependencies.
15712         * tests/test-quotearg.h: New file, extracted from
15713         tests/test-quotearg.c.
15714         * tests/test-quotearg-simple.c: New file, extracted from
15715         tests/test-quotearg.c.
15716         * tests/test-quotearg.c: Don't include <ctype.h>.
15717         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
15718         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
15719         use_quote_double_quotes, use_quotearg_colon): Moved to
15720         tests/test-quotearg.h.
15721         (results_g, flag_results, custom_quotes, custom_results): Moved
15722         to tests/test-quotearg-simple.c.
15723         (main): Moved the part that does not depend on gettext to
15724         tests/test-quotearg-simple.c. Return 77 if the test cannot be
15725         performed.
15726         * modules/quotearg-simple: New file.
15727         * modules/quotearg-simple-tests: New file.
15728         * modules/quotearg (Depends-on): Add quotearg-simple.
15729         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
15730         (Files): Add tests/test-quotearg.h.
15731         Reported by Paolo Bonzini.
15732
15733 2010-06-03  Bruno Haible  <bruno@clisp.org>
15734
15735         Reduce dependencies.
15736         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
15737
15738 2010-06-03  Bruno Haible  <bruno@clisp.org>
15739
15740         time: Undefine more broken macros.
15741         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
15742         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
15743         Reported by Eric Blake.
15744
15745 2010-06-03  Bruno Haible  <bruno@clisp.org>
15746
15747         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
15748         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
15749         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
15750         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
15751         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
15752         Reported by Ludovic Courtès <ludo@gnu.org>.
15753
15754 2010-06-02  Eric Blake  <eblake@redhat.com>
15755
15756         time: work with mingw + pthreads-win32 library
15757         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
15758         if timespec is defined only in pthread.h.
15759         * modules/time (Makefile.am): Substitute it.
15760         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
15761         <pthread.h>, when needed.
15762         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
15763         from the library.
15764
15765 2010-05-31  Bruno Haible  <bruno@clisp.org>
15766
15767         Avoid expanding two macros in the wrong order.
15768         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
15769         gl_LIBUNISTRING if it is defined.
15770         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
15771         autoconf >= 2.64.
15772         Reported by Ludovic Courtès <ludo@gnu.org>.
15773
15774 2010-05-27  Jim Meyering  <meyering@redhat.com>
15775
15776         maint.mk: also prohibit "#undef" of always-defined symbols
15777         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
15778         Allow more than one space before the symbol name.
15779         (sc_prohibit_always-defined_macros): Use grep's -E, now that
15780         the regexp uses alternation.
15781
15782 2010-05-26  Eric Blake  <eblake@redhat.com>
15783
15784         maint.mk: avoid echo -e
15785         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
15786         Convert all uses of echo -* to printf.
15787         Reported by Matthias Bolte.
15788
15789 2010-05-25  Bruno Haible  <bruno@clisp.org>
15790
15791         Update to GNU gettext 0.18, part 2.
15792         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
15793         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
15794
15795 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15796
15797         Add missing include in test-pwrite.c.
15798         * tests/test-pwrite.c: Include string.h, for strcmp.
15799
15800 2010-05-24  Bruno Haible  <bruno@clisp.org>
15801
15802         * NEWS: Mention requirement for Automake option 'subdir-objects'.
15803
15804 2010-05-24  Bruno Haible  <bruno@clisp.org>
15805
15806         Don't use conversion with transliteration in u{8,16,32}_strcoll.
15807         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
15808         iconveh_error argument.
15809         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
15810         U_STRCONV_TO_LOCALE.
15811         * lib/unistr/u16-strcoll.c: Likewise.
15812         * lib/unistr/u32-strcoll.c: Likewise.
15813         * modules/unistr/u8-strcoll (Depends-on): Add
15814         uniconv/u8-strconv-to-enc, localcharset. Remove
15815         uniconv/u8-strconv-to-locale.
15816         (configure.ac): Bump version number.
15817         * modules/unistr/u16-strcoll (Depends-on): Add
15818         uniconv/u16-strconv-to-enc, localcharset. Remove
15819         uniconv/u16-strconv-to-locale.
15820         (configure.ac): Bump version number.
15821         * modules/unistr/u32-strcoll (Depends-on): Add
15822         uniconv/u32-strconv-to-enc, localcharset. Remove
15823         uniconv/u32-strconv-to-locale.
15824         (configure.ac): Bump version number.
15825
15826 2010-05-24  Bruno Haible  <bruno@clisp.org>
15827
15828         Avoid a test failure on NetBSD 5.0.
15829         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
15830         an iconv() bug.
15831
15832 2010-05-24  Bruno Haible  <bruno@clisp.org>
15833
15834         Adjust #include directive style.
15835         * modules/regex (Includes): Recommend to write <regex.h>.
15836
15837 2010-05-24  Bruno Haible  <bruno@clisp.org>
15838
15839         regex: Don't require alloca.
15840         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
15841         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
15842         only inside if (0).
15843
15844 2010-05-23  Jim Meyering  <meyering@redhat.com>
15845
15846         test-renameat.c: include <sys/stat.h>
15847         * tests/test-renameat.c: Include <sys/stat.h>; required for
15848         definition of S_IS* macros.
15849
15850 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
15851
15852         Update maintainer documentation for 'relocatable-prog' module.
15853         * doc/relocatable-maint.texi: Update.
15854         Comments by Bruno Haible.
15855
15856 2010-05-23  Bruno Haible  <bruno@clisp.org>
15857
15858         git-merge-changelog: Enable --split-merged-entry by default.
15859         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
15860         (usage): Don't mention this option any more.
15861         Reported by Ralf Wildenhues.
15862
15863 2010-05-23  Jim Meyering  <meyering@redhat.com>
15864
15865         test-pwrite: do not leave behind a test file named "out"
15866         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
15867         The trivial-looking use of init.sh is really necessary.
15868         It ensures that the temporary file, "out", is created in
15869         a temporary directory, and removed upon termination.
15870         * tests/test-pwrite.sh: Re-add file.
15871         * modules/pwrite-tests: Reference it.
15872
15873 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15874
15875         Fix output redirection buglet in init.sh.
15876         * tests/init.sh: Fix redirection of stderr.
15877
15878 2010-05-20  Simon Josefsson  <simon@josefsson.org>
15879
15880         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
15881
15882 2010-05-17  Simon Josefsson  <simon@josefsson.org>
15883
15884         * modules/valgrind-tests: New file.
15885         * m4/valgrind-tests.m4: New file.
15886         * doc/valgrind-tests.texi: New file.
15887         * doc/gnulib.texi (Running self-tests under valgrind): New
15888         section.
15889
15890 2010-05-19  Bruno Haible  <bruno@clisp.org>
15891
15892         Clean up dead code in recent commit.
15893         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
15894         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
15895         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
15896         Suggested by Paolo Bonzini.
15897
15898 2010-05-19  Bruno Haible  <bruno@clisp.org>
15899
15900         Avoid valgrind error reports from libunistring.
15901         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
15902         * modules/libunistring (Files): Add it.
15903         * modules/libunistring-optional (Files): Likewise.
15904
15905 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
15906             Bruno Haible  <bruno@clisp.org>
15907
15908         New module 'libunistring-optional'.
15909         * modules/libunistring-optional: New file.
15910         * m4/libunistring-base.m4: New file.
15911         * m4/libunistring-optional.m4: New file.
15912         * lib/unicase.in.h: Renamed from lib/unicase.h.
15913         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
15914         * lib/unictype.in.h: Renamed from lib/unictype.h.
15915         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
15916         * lib/uniname.in.h: Renamed from lib/uniname.h.
15917         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
15918         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
15919         * lib/unistr.in.h: Renamed from lib/unistr.h.
15920         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
15921         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
15922         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
15923         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
15924         gl_LIBUNISTRING. If the library was found, determine the installed
15925         version and set LIBUNISTRING_VERSION.
15926         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
15927         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
15928         handle a configuration option --with-included-libunistring.
15929         * modules/libunistring (Files): Add m4/absolute-header.m4.
15930         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
15931         Add m4/libunistring-base.m4.
15932         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15933         (Makefile.am): Build unicase.h from unicase.in.h.
15934         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
15935         Add m4/libunistring-base.m4.
15936         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15937         (Makefile.am): Build uniconv.h from uniconv.in.h.
15938         * modules/unictype/base (Files): Use unictype.in.h instead of
15939         unictype.h. Add m4/libunistring-base.m4.
15940         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15941         (Makefile.am): Build unictype.h from unictype.in.h.
15942         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
15943         Add m4/libunistring-base.m4.
15944         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15945         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
15946         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
15947         Add m4/libunistring-base.m4.
15948         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15949         (Makefile.am): Build uniname.h from uniname.in.h.
15950         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
15951         Add m4/libunistring-base.m4.
15952         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15953         (Makefile.am): Build uninorm.h from uninorm.in.h.
15954         * modules/unistdio/base (Files): Use unistdio.in.h instead of
15955         unistdio.h. Add m4/libunistring-base.m4.
15956         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15957         (Makefile.am): Build unistdio.h from unistdio.in.h.
15958         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
15959         Add m4/libunistring-base.m4.
15960         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15961         (Makefile.am): Build unistr.h from unistr.in.h.
15962         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
15963         Add m4/libunistring-base.m4.
15964         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15965         (Makefile.am): Build unitypes.h from unitypes.in.h.
15966         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
15967         Add m4/libunistring-base.m4.
15968         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15969         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
15970         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
15971         uniwidth.h. Add m4/libunistring-base.m4.
15972         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15973         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
15974         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
15975         instead of augmenting lib_SOURCES.
15976         * modules/unicase/empty-suffix-context: Likewise.
15977         * modules/unicase/locale-language: Likewise.
15978         * modules/unicase/tolower: Likewise.
15979         * modules/unicase/totitle: Likewise.
15980         * modules/unicase/toupper: Likewise.
15981         * modules/unicase/u8-casecmp: Likewise.
15982         * modules/unicase/u8-casecoll: Likewise.
15983         * modules/unicase/u8-casefold: Likewise.
15984         * modules/unicase/u8-casexfrm: Likewise.
15985         * modules/unicase/u8-ct-casefold: Likewise.
15986         * modules/unicase/u8-ct-tolower: Likewise.
15987         * modules/unicase/u8-ct-totitle: Likewise.
15988         * modules/unicase/u8-ct-toupper: Likewise.
15989         * modules/unicase/u8-is-cased: Likewise.
15990         * modules/unicase/u8-is-casefolded: Likewise.
15991         * modules/unicase/u8-is-lowercase: Likewise.
15992         * modules/unicase/u8-is-titlecase: Likewise.
15993         * modules/unicase/u8-is-uppercase: Likewise.
15994         * modules/unicase/u8-prefix-context: Likewise.
15995         * modules/unicase/u8-suffix-context: Likewise.
15996         * modules/unicase/u8-tolower: Likewise.
15997         * modules/unicase/u8-totitle: Likewise.
15998         * modules/unicase/u8-toupper: Likewise.
15999         * modules/unicase/u16-casecmp: Likewise.
16000         * modules/unicase/u16-casecoll: Likewise.
16001         * modules/unicase/u16-casefold: Likewise.
16002         * modules/unicase/u16-casexfrm: Likewise.
16003         * modules/unicase/u16-ct-casefold: Likewise.
16004         * modules/unicase/u16-ct-tolower: Likewise.
16005         * modules/unicase/u16-ct-totitle: Likewise.
16006         * modules/unicase/u16-ct-toupper: Likewise.
16007         * modules/unicase/u16-is-cased: Likewise.
16008         * modules/unicase/u16-is-casefolded: Likewise.
16009         * modules/unicase/u16-is-lowercase: Likewise.
16010         * modules/unicase/u16-is-titlecase: Likewise.
16011         * modules/unicase/u16-is-uppercase: Likewise.
16012         * modules/unicase/u16-prefix-context: Likewise.
16013         * modules/unicase/u16-suffix-context: Likewise.
16014         * modules/unicase/u16-tolower: Likewise.
16015         * modules/unicase/u16-totitle: Likewise.
16016         * modules/unicase/u16-toupper: Likewise.
16017         * modules/unicase/u32-casecmp: Likewise.
16018         * modules/unicase/u32-casecoll: Likewise.
16019         * modules/unicase/u32-casefold: Likewise.
16020         * modules/unicase/u32-casexfrm: Likewise.
16021         * modules/unicase/u32-ct-casefold: Likewise.
16022         * modules/unicase/u32-ct-tolower: Likewise.
16023         * modules/unicase/u32-ct-totitle: Likewise.
16024         * modules/unicase/u32-ct-toupper: Likewise.
16025         * modules/unicase/u32-is-cased: Likewise.
16026         * modules/unicase/u32-is-casefolded: Likewise.
16027         * modules/unicase/u32-is-lowercase: Likewise.
16028         * modules/unicase/u32-is-titlecase: Likewise.
16029         * modules/unicase/u32-is-uppercase: Likewise.
16030         * modules/unicase/u32-prefix-context: Likewise.
16031         * modules/unicase/u32-suffix-context: Likewise.
16032         * modules/unicase/u32-tolower: Likewise.
16033         * modules/unicase/u32-totitle: Likewise.
16034         * modules/unicase/u32-toupper: Likewise.
16035         * modules/unicase/ulc-casecmp: Likewise.
16036         * modules/unicase/ulc-casecoll: Likewise.
16037         * modules/unicase/ulc-casexfrm: Likewise.
16038         * modules/uniconv/u8-conv-from-enc: Likewise.
16039         * modules/uniconv/u8-conv-to-enc: Likewise.
16040         * modules/uniconv/u8-strconv-from-enc: Likewise.
16041         * modules/uniconv/u8-strconv-from-locale: Likewise.
16042         * modules/uniconv/u8-strconv-to-enc: Likewise.
16043         * modules/uniconv/u8-strconv-to-locale: Likewise.
16044         * modules/uniconv/u16-conv-from-enc: Likewise.
16045         * modules/uniconv/u16-conv-to-enc: Likewise.
16046         * modules/uniconv/u16-strconv-from-enc: Likewise.
16047         * modules/uniconv/u16-strconv-from-locale: Likewise.
16048         * modules/uniconv/u16-strconv-to-enc: Likewise.
16049         * modules/uniconv/u16-strconv-to-locale: Likewise.
16050         * modules/uniconv/u32-conv-from-enc: Likewise.
16051         * modules/uniconv/u32-conv-to-enc: Likewise.
16052         * modules/uniconv/u32-strconv-from-enc: Likewise.
16053         * modules/uniconv/u32-strconv-from-locale: Likewise.
16054         * modules/uniconv/u32-strconv-to-enc: Likewise.
16055         * modules/uniconv/u32-strconv-to-locale: Likewise.
16056         * modules/unictype/bidicategory-byname: Likewise.
16057         * modules/unictype/bidicategory-name: Likewise.
16058         * modules/unictype/bidicategory-of: Likewise.
16059         * modules/unictype/bidicategory-test: Likewise.
16060         * modules/unictype/block-list: Likewise.
16061         * modules/unictype/block-test: Likewise.
16062         * modules/unictype/category-C: Likewise.
16063         * modules/unictype/category-Cc: Likewise.
16064         * modules/unictype/category-Cf: Likewise.
16065         * modules/unictype/category-Cn: Likewise.
16066         * modules/unictype/category-Co: Likewise.
16067         * modules/unictype/category-Cs: Likewise.
16068         * modules/unictype/category-L: Likewise.
16069         * modules/unictype/category-Ll: Likewise.
16070         * modules/unictype/category-Lm: Likewise.
16071         * modules/unictype/category-Lo: Likewise.
16072         * modules/unictype/category-Lt: Likewise.
16073         * modules/unictype/category-Lu: Likewise.
16074         * modules/unictype/category-M: Likewise.
16075         * modules/unictype/category-Mc: Likewise.
16076         * modules/unictype/category-Me: Likewise.
16077         * modules/unictype/category-Mn: Likewise.
16078         * modules/unictype/category-N: Likewise.
16079         * modules/unictype/category-Nd: Likewise.
16080         * modules/unictype/category-Nl: Likewise.
16081         * modules/unictype/category-No: Likewise.
16082         * modules/unictype/category-P: Likewise.
16083         * modules/unictype/category-Pc: Likewise.
16084         * modules/unictype/category-Pd: Likewise.
16085         * modules/unictype/category-Pe: Likewise.
16086         * modules/unictype/category-Pf: Likewise.
16087         * modules/unictype/category-Pi: Likewise.
16088         * modules/unictype/category-Po: Likewise.
16089         * modules/unictype/category-Ps: Likewise.
16090         * modules/unictype/category-S: Likewise.
16091         * modules/unictype/category-Sc: Likewise.
16092         * modules/unictype/category-Sk: Likewise.
16093         * modules/unictype/category-Sm: Likewise.
16094         * modules/unictype/category-So: Likewise.
16095         * modules/unictype/category-Z: Likewise.
16096         * modules/unictype/category-Zl: Likewise.
16097         * modules/unictype/category-Zp: Likewise.
16098         * modules/unictype/category-Zs: Likewise.
16099         * modules/unictype/category-and: Likewise.
16100         * modules/unictype/category-and-not: Likewise.
16101         * modules/unictype/category-byname: Likewise.
16102         * modules/unictype/category-name: Likewise.
16103         * modules/unictype/category-none: Likewise.
16104         * modules/unictype/category-of: Likewise.
16105         * modules/unictype/category-or: Likewise.
16106         * modules/unictype/category-test: Likewise.
16107         * modules/unictype/combining-class: Likewise.
16108         * modules/unictype/ctype-alnum: Likewise.
16109         * modules/unictype/ctype-alpha: Likewise.
16110         * modules/unictype/ctype-blank: Likewise.
16111         * modules/unictype/ctype-cntrl: Likewise.
16112         * modules/unictype/ctype-digit: Likewise.
16113         * modules/unictype/ctype-graph: Likewise.
16114         * modules/unictype/ctype-lower: Likewise.
16115         * modules/unictype/ctype-print: Likewise.
16116         * modules/unictype/ctype-punct: Likewise.
16117         * modules/unictype/ctype-space: Likewise.
16118         * modules/unictype/ctype-upper: Likewise.
16119         * modules/unictype/ctype-xdigit: Likewise.
16120         * modules/unictype/decimal-digit: Likewise.
16121         * modules/unictype/digit: Likewise.
16122         * modules/unictype/mirror: Likewise.
16123         * modules/unictype/numeric: Likewise.
16124         * modules/unictype/property-alphabetic: Likewise.
16125         * modules/unictype/property-ascii-hex-digit: Likewise.
16126         * modules/unictype/property-bidi-arabic-digit: Likewise.
16127         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
16128         * modules/unictype/property-bidi-block-separator: Likewise.
16129         * modules/unictype/property-bidi-boundary-neutral: Likewise.
16130         * modules/unictype/property-bidi-common-separator: Likewise.
16131         * modules/unictype/property-bidi-control: Likewise.
16132         * modules/unictype/property-bidi-embedding-or-override: Likewise.
16133         * modules/unictype/property-bidi-eur-num-separator: Likewise.
16134         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
16135         * modules/unictype/property-bidi-european-digit: Likewise.
16136         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
16137         * modules/unictype/property-bidi-left-to-right: Likewise.
16138         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
16139         * modules/unictype/property-bidi-other-neutral: Likewise.
16140         * modules/unictype/property-bidi-pdf: Likewise.
16141         * modules/unictype/property-bidi-segment-separator: Likewise.
16142         * modules/unictype/property-bidi-whitespace: Likewise.
16143         * modules/unictype/property-byname: Likewise.
16144         * modules/unictype/property-combining: Likewise.
16145         * modules/unictype/property-composite: Likewise.
16146         * modules/unictype/property-currency-symbol: Likewise.
16147         * modules/unictype/property-dash: Likewise.
16148         * modules/unictype/property-decimal-digit: Likewise.
16149         * modules/unictype/property-default-ignorable-code-point: Likewise.
16150         * modules/unictype/property-deprecated: Likewise.
16151         * modules/unictype/property-diacritic: Likewise.
16152         * modules/unictype/property-extender: Likewise.
16153         * modules/unictype/property-format-control: Likewise.
16154         * modules/unictype/property-grapheme-base: Likewise.
16155         * modules/unictype/property-grapheme-extend: Likewise.
16156         * modules/unictype/property-grapheme-link: Likewise.
16157         * modules/unictype/property-hex-digit: Likewise.
16158         * modules/unictype/property-hyphen: Likewise.
16159         * modules/unictype/property-id-continue: Likewise.
16160         * modules/unictype/property-id-start: Likewise.
16161         * modules/unictype/property-ideographic: Likewise.
16162         * modules/unictype/property-ids-binary-operator: Likewise.
16163         * modules/unictype/property-ids-trinary-operator: Likewise.
16164         * modules/unictype/property-ignorable-control: Likewise.
16165         * modules/unictype/property-iso-control: Likewise.
16166         * modules/unictype/property-join-control: Likewise.
16167         * modules/unictype/property-left-of-pair: Likewise.
16168         * modules/unictype/property-line-separator: Likewise.
16169         * modules/unictype/property-logical-order-exception: Likewise.
16170         * modules/unictype/property-lowercase: Likewise.
16171         * modules/unictype/property-math: Likewise.
16172         * modules/unictype/property-non-break: Likewise.
16173         * modules/unictype/property-not-a-character: Likewise.
16174         * modules/unictype/property-numeric: Likewise.
16175         * modules/unictype/property-other-alphabetic: Likewise.
16176         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
16177         * modules/unictype/property-other-grapheme-extend: Likewise.
16178         * modules/unictype/property-other-id-continue: Likewise.
16179         * modules/unictype/property-other-id-start: Likewise.
16180         * modules/unictype/property-other-lowercase: Likewise.
16181         * modules/unictype/property-other-math: Likewise.
16182         * modules/unictype/property-other-uppercase: Likewise.
16183         * modules/unictype/property-paired-punctuation: Likewise.
16184         * modules/unictype/property-paragraph-separator: Likewise.
16185         * modules/unictype/property-pattern-syntax: Likewise.
16186         * modules/unictype/property-pattern-white-space: Likewise.
16187         * modules/unictype/property-private-use: Likewise.
16188         * modules/unictype/property-punctuation: Likewise.
16189         * modules/unictype/property-quotation-mark: Likewise.
16190         * modules/unictype/property-radical: Likewise.
16191         * modules/unictype/property-sentence-terminal: Likewise.
16192         * modules/unictype/property-soft-dotted: Likewise.
16193         * modules/unictype/property-space: Likewise.
16194         * modules/unictype/property-terminal-punctuation: Likewise.
16195         * modules/unictype/property-test: Likewise.
16196         * modules/unictype/property-titlecase: Likewise.
16197         * modules/unictype/property-unassigned-code-value: Likewise.
16198         * modules/unictype/property-unified-ideograph: Likewise.
16199         * modules/unictype/property-uppercase: Likewise.
16200         * modules/unictype/property-variation-selector: Likewise.
16201         * modules/unictype/property-white-space: Likewise.
16202         * modules/unictype/property-xid-continue: Likewise.
16203         * modules/unictype/property-xid-start: Likewise.
16204         * modules/unictype/property-zero-width: Likewise.
16205         * modules/unictype/scripts: Likewise.
16206         * modules/unictype/syntax-c-ident: Likewise.
16207         * modules/unictype/syntax-c-whitespace: Likewise.
16208         * modules/unictype/syntax-java-ident: Likewise.
16209         * modules/unictype/syntax-java-whitespace: Likewise.
16210         * modules/unilbrk/u8-possible-linebreaks: Likewise.
16211         * modules/unilbrk/u8-width-linebreaks: Likewise.
16212         * modules/unilbrk/u16-possible-linebreaks: Likewise.
16213         * modules/unilbrk/u16-width-linebreaks: Likewise.
16214         * modules/unilbrk/u32-possible-linebreaks: Likewise.
16215         * modules/unilbrk/u32-width-linebreaks: Likewise.
16216         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
16217         * modules/unilbrk/ulc-width-linebreaks: Likewise.
16218         * modules/uniname/uniname: Likewise.
16219         * modules/uninorm/canonical-decomposition: Likewise.
16220         * modules/uninorm/composition: Likewise.
16221         * modules/uninorm/decomposing-form: Likewise.
16222         * modules/uninorm/decomposition: Likewise.
16223         * modules/uninorm/filter: Likewise.
16224         * modules/uninorm/nfc: Likewise.
16225         * modules/uninorm/nfd: Likewise.
16226         * modules/uninorm/nfkc: Likewise.
16227         * modules/uninorm/nfkd: Likewise.
16228         * modules/uninorm/u8-normalize: Likewise.
16229         * modules/uninorm/u8-normcmp: Likewise.
16230         * modules/uninorm/u8-normcoll: Likewise.
16231         * modules/uninorm/u8-normxfrm: Likewise.
16232         * modules/uninorm/u16-normalize: Likewise.
16233         * modules/uninorm/u16-normcmp: Likewise.
16234         * modules/uninorm/u16-normcoll: Likewise.
16235         * modules/uninorm/u16-normxfrm: Likewise.
16236         * modules/uninorm/u32-normalize: Likewise.
16237         * modules/uninorm/u32-normcmp: Likewise.
16238         * modules/uninorm/u32-normcoll: Likewise.
16239         * modules/uninorm/u32-normxfrm: Likewise.
16240         * modules/unistdio/u8-asnprintf: Likewise.
16241         * modules/unistdio/u8-asprintf: Likewise.
16242         * modules/unistdio/u8-snprintf: Likewise.
16243         * modules/unistdio/u8-sprintf: Likewise.
16244         * modules/unistdio/u8-u8-asnprintf: Likewise.
16245         * modules/unistdio/u8-u8-asprintf: Likewise.
16246         * modules/unistdio/u8-u8-snprintf: Likewise.
16247         * modules/unistdio/u8-u8-sprintf: Likewise.
16248         * modules/unistdio/u8-u8-vasnprintf: Likewise.
16249         * modules/unistdio/u8-u8-vasprintf: Likewise.
16250         * modules/unistdio/u8-u8-vsnprintf: Likewise.
16251         * modules/unistdio/u8-u8-vsprintf: Likewise.
16252         * modules/unistdio/u8-vasnprintf: Likewise.
16253         * modules/unistdio/u8-vasprintf: Likewise.
16254         * modules/unistdio/u8-vsnprintf: Likewise.
16255         * modules/unistdio/u8-vsprintf: Likewise.
16256         * modules/unistdio/u16-asnprintf: Likewise.
16257         * modules/unistdio/u16-asprintf: Likewise.
16258         * modules/unistdio/u16-snprintf: Likewise.
16259         * modules/unistdio/u16-sprintf: Likewise.
16260         * modules/unistdio/u16-u16-asnprintf: Likewise.
16261         * modules/unistdio/u16-u16-asprintf: Likewise.
16262         * modules/unistdio/u16-u16-snprintf: Likewise.
16263         * modules/unistdio/u16-u16-sprintf: Likewise.
16264         * modules/unistdio/u16-u16-vasnprintf: Likewise.
16265         * modules/unistdio/u16-u16-vasprintf: Likewise.
16266         * modules/unistdio/u16-u16-vsnprintf: Likewise.
16267         * modules/unistdio/u16-u16-vsprintf: Likewise.
16268         * modules/unistdio/u16-vasnprintf: Likewise.
16269         * modules/unistdio/u16-vasprintf: Likewise.
16270         * modules/unistdio/u16-vsnprintf: Likewise.
16271         * modules/unistdio/u16-vsprintf: Likewise.
16272         * modules/unistdio/u32-asnprintf: Likewise.
16273         * modules/unistdio/u32-asprintf: Likewise.
16274         * modules/unistdio/u32-snprintf: Likewise.
16275         * modules/unistdio/u32-sprintf: Likewise.
16276         * modules/unistdio/u32-u32-asnprintf: Likewise.
16277         * modules/unistdio/u32-u32-asprintf: Likewise.
16278         * modules/unistdio/u32-u32-snprintf: Likewise.
16279         * modules/unistdio/u32-u32-sprintf: Likewise.
16280         * modules/unistdio/u32-u32-vasnprintf: Likewise.
16281         * modules/unistdio/u32-u32-vasprintf: Likewise.
16282         * modules/unistdio/u32-u32-vsnprintf: Likewise.
16283         * modules/unistdio/u32-u32-vsprintf: Likewise.
16284         * modules/unistdio/u32-vasnprintf: Likewise.
16285         * modules/unistdio/u32-vasprintf: Likewise.
16286         * modules/unistdio/u32-vsnprintf: Likewise.
16287         * modules/unistdio/u32-vsprintf: Likewise.
16288         * modules/unistdio/ulc-asnprintf: Likewise.
16289         * modules/unistdio/ulc-asprintf: Likewise.
16290         * modules/unistdio/ulc-fprintf: Likewise.
16291         * modules/unistdio/ulc-snprintf: Likewise.
16292         * modules/unistdio/ulc-sprintf: Likewise.
16293         * modules/unistdio/ulc-vasnprintf: Likewise.
16294         * modules/unistdio/ulc-vasprintf: Likewise.
16295         * modules/unistdio/ulc-vfprintf: Likewise.
16296         * modules/unistdio/ulc-vsnprintf: Likewise.
16297         * modules/unistdio/ulc-vsprintf: Likewise.
16298         * modules/unistr/u8-check: Likewise.
16299         * modules/unistr/u8-chr: Likewise.
16300         * modules/unistr/u8-cmp: Likewise.
16301         * modules/unistr/u8-cmp2: Likewise.
16302         * modules/unistr/u8-cpy: Likewise.
16303         * modules/unistr/u8-cpy-alloc: Likewise.
16304         * modules/unistr/u8-endswith: Likewise.
16305         * modules/unistr/u8-mblen: Likewise.
16306         * modules/unistr/u8-mbsnlen: Likewise.
16307         * modules/unistr/u8-mbtouc: Likewise.
16308         * modules/unistr/u8-mbtouc-unsafe: Likewise.
16309         * modules/unistr/u8-mbtoucr: Likewise.
16310         * modules/unistr/u8-move: Likewise.
16311         * modules/unistr/u8-next: Likewise.
16312         * modules/unistr/u8-prev: Likewise.
16313         * modules/unistr/u8-set: Likewise.
16314         * modules/unistr/u8-startswith: Likewise.
16315         * modules/unistr/u8-stpcpy: Likewise.
16316         * modules/unistr/u8-stpncpy: Likewise.
16317         * modules/unistr/u8-strcat: Likewise.
16318         * modules/unistr/u8-strchr: Likewise.
16319         * modules/unistr/u8-strcmp: Likewise.
16320         * modules/unistr/u8-strcoll: Likewise.
16321         * modules/unistr/u8-strcpy: Likewise.
16322         * modules/unistr/u8-strcspn: Likewise.
16323         * modules/unistr/u8-strdup: Likewise.
16324         * modules/unistr/u8-strlen: Likewise.
16325         * modules/unistr/u8-strmblen: Likewise.
16326         * modules/unistr/u8-strmbtouc: Likewise.
16327         * modules/unistr/u8-strncat: Likewise.
16328         * modules/unistr/u8-strncmp: Likewise.
16329         * modules/unistr/u8-strncpy: Likewise.
16330         * modules/unistr/u8-strnlen: Likewise.
16331         * modules/unistr/u8-strpbrk: Likewise.
16332         * modules/unistr/u8-strrchr: Likewise.
16333         * modules/unistr/u8-strspn: Likewise.
16334         * modules/unistr/u8-strstr: Likewise.
16335         * modules/unistr/u8-strtok: Likewise.
16336         * modules/unistr/u8-to-u16: Likewise.
16337         * modules/unistr/u8-to-u32: Likewise.
16338         * modules/unistr/u8-uctomb: Likewise.
16339         * modules/unistr/u16-check: Likewise.
16340         * modules/unistr/u16-chr: Likewise.
16341         * modules/unistr/u16-cmp: Likewise.
16342         * modules/unistr/u16-cmp2: Likewise.
16343         * modules/unistr/u16-cpy: Likewise.
16344         * modules/unistr/u16-cpy-alloc: Likewise.
16345         * modules/unistr/u16-endswith: Likewise.
16346         * modules/unistr/u16-mblen: Likewise.
16347         * modules/unistr/u16-mbsnlen: Likewise.
16348         * modules/unistr/u16-mbtouc: Likewise.
16349         * modules/unistr/u16-mbtouc-unsafe: Likewise.
16350         * modules/unistr/u16-mbtoucr: Likewise.
16351         * modules/unistr/u16-move: Likewise.
16352         * modules/unistr/u16-next: Likewise.
16353         * modules/unistr/u16-prev: Likewise.
16354         * modules/unistr/u16-set: Likewise.
16355         * modules/unistr/u16-startswith: Likewise.
16356         * modules/unistr/u16-stpcpy: Likewise.
16357         * modules/unistr/u16-stpncpy: Likewise.
16358         * modules/unistr/u16-strcat: Likewise.
16359         * modules/unistr/u16-strchr: Likewise.
16360         * modules/unistr/u16-strcmp: Likewise.
16361         * modules/unistr/u16-strcoll: Likewise.
16362         * modules/unistr/u16-strcpy: Likewise.
16363         * modules/unistr/u16-strcspn: Likewise.
16364         * modules/unistr/u16-strdup: Likewise.
16365         * modules/unistr/u16-strlen: Likewise.
16366         * modules/unistr/u16-strmblen: Likewise.
16367         * modules/unistr/u16-strmbtouc: Likewise.
16368         * modules/unistr/u16-strncat: Likewise.
16369         * modules/unistr/u16-strncmp: Likewise.
16370         * modules/unistr/u16-strncpy: Likewise.
16371         * modules/unistr/u16-strnlen: Likewise.
16372         * modules/unistr/u16-strpbrk: Likewise.
16373         * modules/unistr/u16-strrchr: Likewise.
16374         * modules/unistr/u16-strspn: Likewise.
16375         * modules/unistr/u16-strstr: Likewise.
16376         * modules/unistr/u16-strtok: Likewise.
16377         * modules/unistr/u16-to-u32: Likewise.
16378         * modules/unistr/u16-to-u8: Likewise.
16379         * modules/unistr/u16-uctomb: Likewise.
16380         * modules/unistr/u32-check: Likewise.
16381         * modules/unistr/u32-chr: Likewise.
16382         * modules/unistr/u32-cmp: Likewise.
16383         * modules/unistr/u32-cmp2: Likewise.
16384         * modules/unistr/u32-cpy: Likewise.
16385         * modules/unistr/u32-cpy-alloc: Likewise.
16386         * modules/unistr/u32-endswith: Likewise.
16387         * modules/unistr/u32-mblen: Likewise.
16388         * modules/unistr/u32-mbsnlen: Likewise.
16389         * modules/unistr/u32-mbtouc: Likewise.
16390         * modules/unistr/u32-mbtouc-unsafe: Likewise.
16391         * modules/unistr/u32-mbtoucr: Likewise.
16392         * modules/unistr/u32-move: Likewise.
16393         * modules/unistr/u32-next: Likewise.
16394         * modules/unistr/u32-prev: Likewise.
16395         * modules/unistr/u32-set: Likewise.
16396         * modules/unistr/u32-startswith: Likewise.
16397         * modules/unistr/u32-stpcpy: Likewise.
16398         * modules/unistr/u32-stpncpy: Likewise.
16399         * modules/unistr/u32-strcat: Likewise.
16400         * modules/unistr/u32-strchr: Likewise.
16401         * modules/unistr/u32-strcmp: Likewise.
16402         * modules/unistr/u32-strcoll: Likewise.
16403         * modules/unistr/u32-strcpy: Likewise.
16404         * modules/unistr/u32-strcspn: Likewise.
16405         * modules/unistr/u32-strdup: Likewise.
16406         * modules/unistr/u32-strlen: Likewise.
16407         * modules/unistr/u32-strmblen: Likewise.
16408         * modules/unistr/u32-strmbtouc: Likewise.
16409         * modules/unistr/u32-strncat: Likewise.
16410         * modules/unistr/u32-strncmp: Likewise.
16411         * modules/unistr/u32-strncpy: Likewise.
16412         * modules/unistr/u32-strnlen: Likewise.
16413         * modules/unistr/u32-strpbrk: Likewise.
16414         * modules/unistr/u32-strrchr: Likewise.
16415         * modules/unistr/u32-strspn: Likewise.
16416         * modules/unistr/u32-strstr: Likewise.
16417         * modules/unistr/u32-strtok: Likewise.
16418         * modules/unistr/u32-to-u16: Likewise.
16419         * modules/unistr/u32-to-u8: Likewise.
16420         * modules/unistr/u32-uctomb: Likewise.
16421         * modules/uniwbrk/u8-wordbreaks: Likewise.
16422         * modules/uniwbrk/u16-wordbreaks: Likewise.
16423         * modules/uniwbrk/u32-wordbreaks: Likewise.
16424         * modules/uniwbrk/ulc-wordbreaks: Likewise.
16425         * modules/uniwbrk/wordbreak-property: Likewise.
16426         * modules/uniwidth/u8-strwidth: Likewise.
16427         * modules/uniwidth/u8-width: Likewise.
16428         * modules/uniwidth/u16-strwidth: Likewise.
16429         * modules/uniwidth/u16-width: Likewise.
16430         * modules/uniwidth/u32-strwidth: Likewise.
16431         * modules/uniwidth/u32-width: Likewise.
16432         * modules/uniwidth/width: Likewise.
16433         * modules/unicase/cased-tests (Makefile.am): Link all test programs
16434         with $(LIBUNISTRING).
16435         * modules/unicase/ignorable-tests: Likewise.
16436         * modules/unicase/locale-language-tests: Likewise.
16437         * modules/unicase/tolower-tests: Likewise.
16438         * modules/unicase/totitle-tests: Likewise.
16439         * modules/unicase/toupper-tests: Likewise.
16440         * modules/unicase/u8-casecmp-tests: Likewise.
16441         * modules/unicase/u8-casecoll-tests: Likewise.
16442         * modules/unicase/u8-casefold-tests: Likewise.
16443         * modules/unicase/u8-is-cased-tests: Likewise.
16444         * modules/unicase/u8-is-casefolded-tests: Likewise.
16445         * modules/unicase/u8-is-lowercase-tests: Likewise.
16446         * modules/unicase/u8-is-titlecase-tests: Likewise.
16447         * modules/unicase/u8-is-uppercase-tests: Likewise.
16448         * modules/unicase/u8-tolower-tests: Likewise.
16449         * modules/unicase/u8-totitle-tests: Likewise.
16450         * modules/unicase/u8-toupper-tests: Likewise.
16451         * modules/unicase/u16-casecmp-tests: Likewise.
16452         * modules/unicase/u16-casecoll-tests: Likewise.
16453         * modules/unicase/u16-casefold-tests: Likewise.
16454         * modules/unicase/u16-is-cased-tests: Likewise.
16455         * modules/unicase/u16-is-casefolded-tests: Likewise.
16456         * modules/unicase/u16-is-lowercase-tests: Likewise.
16457         * modules/unicase/u16-is-titlecase-tests: Likewise.
16458         * modules/unicase/u16-is-uppercase-tests: Likewise.
16459         * modules/unicase/u16-tolower-tests: Likewise.
16460         * modules/unicase/u16-totitle-tests: Likewise.
16461         * modules/unicase/u16-toupper-tests: Likewise.
16462         * modules/unicase/u32-casecmp-tests: Likewise.
16463         * modules/unicase/u32-casecoll-tests: Likewise.
16464         * modules/unicase/u32-casefold-tests: Likewise.
16465         * modules/unicase/u32-is-cased-tests: Likewise.
16466         * modules/unicase/u32-is-casefolded-tests: Likewise.
16467         * modules/unicase/u32-is-lowercase-tests: Likewise.
16468         * modules/unicase/u32-is-titlecase-tests: Likewise.
16469         * modules/unicase/u32-is-uppercase-tests: Likewise.
16470         * modules/unicase/u32-tolower-tests: Likewise.
16471         * modules/unicase/u32-totitle-tests: Likewise.
16472         * modules/unicase/u32-toupper-tests: Likewise.
16473         * modules/unicase/ulc-casecmp-tests: Likewise.
16474         * modules/unicase/ulc-casecoll-tests: Likewise.
16475         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
16476         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
16477         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
16478         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
16479         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
16480         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
16481         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
16482         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
16483         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
16484         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
16485         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
16486         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
16487         * modules/unictype/bidicategory-byname-tests: Likewise.
16488         * modules/unictype/bidicategory-name-tests: Likewise.
16489         * modules/unictype/bidicategory-of-tests: Likewise.
16490         * modules/unictype/bidicategory-test-tests: Likewise.
16491         * modules/unictype/block-list-tests: Likewise.
16492         * modules/unictype/block-of-tests: Likewise.
16493         * modules/unictype/block-test-tests: Likewise.
16494         * modules/unictype/category-C-tests: Likewise.
16495         * modules/unictype/category-Cc-tests: Likewise.
16496         * modules/unictype/category-Cf-tests: Likewise.
16497         * modules/unictype/category-Cn-tests: Likewise.
16498         * modules/unictype/category-Co-tests: Likewise.
16499         * modules/unictype/category-Cs-tests: Likewise.
16500         * modules/unictype/category-L-tests: Likewise.
16501         * modules/unictype/category-Ll-tests: Likewise.
16502         * modules/unictype/category-Lm-tests: Likewise.
16503         * modules/unictype/category-Lo-tests: Likewise.
16504         * modules/unictype/category-Lt-tests: Likewise.
16505         * modules/unictype/category-Lu-tests: Likewise.
16506         * modules/unictype/category-M-tests: Likewise.
16507         * modules/unictype/category-Mc-tests: Likewise.
16508         * modules/unictype/category-Me-tests: Likewise.
16509         * modules/unictype/category-Mn-tests: Likewise.
16510         * modules/unictype/category-N-tests: Likewise.
16511         * modules/unictype/category-Nd-tests: Likewise.
16512         * modules/unictype/category-Nl-tests: Likewise.
16513         * modules/unictype/category-No-tests: Likewise.
16514         * modules/unictype/category-P-tests: Likewise.
16515         * modules/unictype/category-Pc-tests: Likewise.
16516         * modules/unictype/category-Pd-tests: Likewise.
16517         * modules/unictype/category-Pe-tests: Likewise.
16518         * modules/unictype/category-Pf-tests: Likewise.
16519         * modules/unictype/category-Pi-tests: Likewise.
16520         * modules/unictype/category-Po-tests: Likewise.
16521         * modules/unictype/category-Ps-tests: Likewise.
16522         * modules/unictype/category-S-tests: Likewise.
16523         * modules/unictype/category-Sc-tests: Likewise.
16524         * modules/unictype/category-Sk-tests: Likewise.
16525         * modules/unictype/category-Sm-tests: Likewise.
16526         * modules/unictype/category-So-tests: Likewise.
16527         * modules/unictype/category-Z-tests: Likewise.
16528         * modules/unictype/category-Zl-tests: Likewise.
16529         * modules/unictype/category-Zp-tests: Likewise.
16530         * modules/unictype/category-Zs-tests: Likewise.
16531         * modules/unictype/category-and-not-tests: Likewise.
16532         * modules/unictype/category-and-tests: Likewise.
16533         * modules/unictype/category-byname-tests: Likewise.
16534         * modules/unictype/category-name-tests: Likewise.
16535         * modules/unictype/category-none-tests: Likewise.
16536         * modules/unictype/category-of-tests: Likewise.
16537         * modules/unictype/category-or-tests: Likewise.
16538         * modules/unictype/category-test-withtable-tests: Likewise.
16539         * modules/unictype/combining-class-tests: Likewise.
16540         * modules/unictype/ctype-alnum-tests: Likewise.
16541         * modules/unictype/ctype-alpha-tests: Likewise.
16542         * modules/unictype/ctype-blank-tests: Likewise.
16543         * modules/unictype/ctype-cntrl-tests: Likewise.
16544         * modules/unictype/ctype-digit-tests: Likewise.
16545         * modules/unictype/ctype-graph-tests: Likewise.
16546         * modules/unictype/ctype-lower-tests: Likewise.
16547         * modules/unictype/ctype-print-tests: Likewise.
16548         * modules/unictype/ctype-punct-tests: Likewise.
16549         * modules/unictype/ctype-space-tests: Likewise.
16550         * modules/unictype/ctype-upper-tests: Likewise.
16551         * modules/unictype/ctype-xdigit-tests: Likewise.
16552         * modules/unictype/decimal-digit-tests: Likewise.
16553         * modules/unictype/digit-tests: Likewise.
16554         * modules/unictype/mirror-tests: Likewise.
16555         * modules/unictype/numeric-tests: Likewise.
16556         * modules/unictype/property-alphabetic-tests: Likewise.
16557         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
16558         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
16559         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
16560         * modules/unictype/property-bidi-block-separator-tests: Likewise.
16561         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
16562         * modules/unictype/property-bidi-common-separator-tests: Likewise.
16563         * modules/unictype/property-bidi-control-tests: Likewise.
16564         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
16565         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
16566         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
16567         * modules/unictype/property-bidi-european-digit-tests: Likewise.
16568         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
16569         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
16570         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
16571         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
16572         * modules/unictype/property-bidi-pdf-tests: Likewise.
16573         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
16574         * modules/unictype/property-bidi-whitespace-tests: Likewise.
16575         * modules/unictype/property-byname-tests: Likewise.
16576         * modules/unictype/property-combining-tests: Likewise.
16577         * modules/unictype/property-composite-tests: Likewise.
16578         * modules/unictype/property-currency-symbol-tests: Likewise.
16579         * modules/unictype/property-dash-tests: Likewise.
16580         * modules/unictype/property-decimal-digit-tests: Likewise.
16581         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
16582         * modules/unictype/property-deprecated-tests: Likewise.
16583         * modules/unictype/property-diacritic-tests: Likewise.
16584         * modules/unictype/property-extender-tests: Likewise.
16585         * modules/unictype/property-format-control-tests: Likewise.
16586         * modules/unictype/property-grapheme-base-tests: Likewise.
16587         * modules/unictype/property-grapheme-extend-tests: Likewise.
16588         * modules/unictype/property-grapheme-link-tests: Likewise.
16589         * modules/unictype/property-hex-digit-tests: Likewise.
16590         * modules/unictype/property-hyphen-tests: Likewise.
16591         * modules/unictype/property-id-continue-tests: Likewise.
16592         * modules/unictype/property-id-start-tests: Likewise.
16593         * modules/unictype/property-ideographic-tests: Likewise.
16594         * modules/unictype/property-ids-binary-operator-tests: Likewise.
16595         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
16596         * modules/unictype/property-ignorable-control-tests: Likewise.
16597         * modules/unictype/property-iso-control-tests: Likewise.
16598         * modules/unictype/property-join-control-tests: Likewise.
16599         * modules/unictype/property-left-of-pair-tests: Likewise.
16600         * modules/unictype/property-line-separator-tests: Likewise.
16601         * modules/unictype/property-logical-order-exception-tests: Likewise.
16602         * modules/unictype/property-lowercase-tests: Likewise.
16603         * modules/unictype/property-math-tests: Likewise.
16604         * modules/unictype/property-non-break-tests: Likewise.
16605         * modules/unictype/property-not-a-character-tests: Likewise.
16606         * modules/unictype/property-numeric-tests: Likewise.
16607         * modules/unictype/property-other-alphabetic-tests: Likewise.
16608         * modules/unictype/property-other-default-ignorable-code-point-tests:
16609         Likewise.
16610         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
16611         * modules/unictype/property-other-id-continue-tests: Likewise.
16612         * modules/unictype/property-other-id-start-tests: Likewise.
16613         * modules/unictype/property-other-lowercase-tests: Likewise.
16614         * modules/unictype/property-other-math-tests: Likewise.
16615         * modules/unictype/property-other-uppercase-tests: Likewise.
16616         * modules/unictype/property-paired-punctuation-tests: Likewise.
16617         * modules/unictype/property-paragraph-separator-tests: Likewise.
16618         * modules/unictype/property-pattern-syntax-tests: Likewise.
16619         * modules/unictype/property-pattern-white-space-tests: Likewise.
16620         * modules/unictype/property-private-use-tests: Likewise.
16621         * modules/unictype/property-punctuation-tests: Likewise.
16622         * modules/unictype/property-quotation-mark-tests: Likewise.
16623         * modules/unictype/property-radical-tests: Likewise.
16624         * modules/unictype/property-sentence-terminal-tests: Likewise.
16625         * modules/unictype/property-soft-dotted-tests: Likewise.
16626         * modules/unictype/property-space-tests: Likewise.
16627         * modules/unictype/property-terminal-punctuation-tests: Likewise.
16628         * modules/unictype/property-test-tests: Likewise.
16629         * modules/unictype/property-titlecase-tests: Likewise.
16630         * modules/unictype/property-unassigned-code-value-tests: Likewise.
16631         * modules/unictype/property-unified-ideograph-tests: Likewise.
16632         * modules/unictype/property-uppercase-tests: Likewise.
16633         * modules/unictype/property-variation-selector-tests: Likewise.
16634         * modules/unictype/property-white-space-tests: Likewise.
16635         * modules/unictype/property-xid-continue-tests: Likewise.
16636         * modules/unictype/property-xid-start-tests: Likewise.
16637         * modules/unictype/property-zero-width-tests: Likewise.
16638         * modules/unictype/scripts-tests: Likewise.
16639         * modules/unictype/syntax-c-ident-tests: Likewise.
16640         * modules/unictype/syntax-c-whitespace-tests: Likewise.
16641         * modules/unictype/syntax-java-ident-tests: Likewise.
16642         * modules/unictype/syntax-java-whitespace-tests: Likewise.
16643         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
16644         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
16645         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
16646         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
16647         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
16648         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
16649         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
16650         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
16651         * modules/uniname/uniname-tests: Likewise.
16652         * modules/uninorm/canonical-decomposition-tests: Likewise.
16653         * modules/uninorm/compat-decomposition-tests: Likewise.
16654         * modules/uninorm/composition-tests: Likewise.
16655         * modules/uninorm/decomposing-form-tests: Likewise.
16656         * modules/uninorm/decomposition-tests: Likewise.
16657         * modules/uninorm/filter-tests: Likewise.
16658         * modules/uninorm/nfc-tests: Likewise.
16659         * modules/uninorm/nfd-tests: Likewise.
16660         * modules/uninorm/nfkc-tests: Likewise.
16661         * modules/uninorm/nfkd-tests: Likewise.
16662         * modules/uninorm/u8-normcmp-tests: Likewise.
16663         * modules/uninorm/u8-normcoll-tests: Likewise.
16664         * modules/uninorm/u16-normcmp-tests: Likewise.
16665         * modules/uninorm/u16-normcoll-tests: Likewise.
16666         * modules/uninorm/u32-normcmp-tests: Likewise.
16667         * modules/uninorm/u32-normcoll-tests: Likewise.
16668         * modules/unistdio/u8-asnprintf-tests: Likewise.
16669         * modules/unistdio/u8-vasnprintf-tests: Likewise.
16670         * modules/unistdio/u8-vasprintf-tests: Likewise.
16671         * modules/unistdio/u8-vsnprintf-tests: Likewise.
16672         * modules/unistdio/u8-vsprintf-tests: Likewise.
16673         * modules/unistdio/u16-asnprintf-tests: Likewise.
16674         * modules/unistdio/u16-vasnprintf-tests: Likewise.
16675         * modules/unistdio/u16-vasprintf-tests: Likewise.
16676         * modules/unistdio/u16-vsnprintf-tests: Likewise.
16677         * modules/unistdio/u16-vsprintf-tests: Likewise.
16678         * modules/unistdio/u32-asnprintf-tests: Likewise.
16679         * modules/unistdio/u32-vasnprintf-tests: Likewise.
16680         * modules/unistdio/u32-vasprintf-tests: Likewise.
16681         * modules/unistdio/u32-vsnprintf-tests: Likewise.
16682         * modules/unistdio/u32-vsprintf-tests: Likewise.
16683         * modules/unistdio/ulc-asnprintf-tests: Likewise.
16684         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
16685         * modules/unistdio/ulc-vasprintf-tests: Likewise.
16686         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
16687         * modules/unistdio/ulc-vsprintf-tests: Likewise.
16688         * modules/unistr/u8-check-tests: Likewise.
16689         * modules/unistr/u8-chr-tests: Likewise.
16690         * modules/unistr/u8-cmp-tests: Likewise.
16691         * modules/unistr/u8-cmp2-tests: Likewise.
16692         * modules/unistr/u8-cpy-alloc-tests: Likewise.
16693         * modules/unistr/u8-cpy-tests: Likewise.
16694         * modules/unistr/u8-mblen-tests: Likewise.
16695         * modules/unistr/u8-mbsnlen-tests: Likewise.
16696         * modules/unistr/u8-mbtouc-tests: Likewise.
16697         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
16698         * modules/unistr/u8-mbtoucr-tests: Likewise.
16699         * modules/unistr/u8-move-tests: Likewise.
16700         * modules/unistr/u8-next-tests: Likewise.
16701         * modules/unistr/u8-prev-tests: Likewise.
16702         * modules/unistr/u8-set-tests: Likewise.
16703         * modules/unistr/u8-stpcpy-tests: Likewise.
16704         * modules/unistr/u8-stpncpy-tests: Likewise.
16705         * modules/unistr/u8-strcat-tests: Likewise.
16706         * modules/unistr/u8-strcmp-tests: Likewise.
16707         * modules/unistr/u8-strcoll-tests: Likewise.
16708         * modules/unistr/u8-strcpy-tests: Likewise.
16709         * modules/unistr/u8-strdup-tests: Likewise.
16710         * modules/unistr/u8-strlen-tests: Likewise.
16711         * modules/unistr/u8-strmblen-tests: Likewise.
16712         * modules/unistr/u8-strmbtouc-tests: Likewise.
16713         * modules/unistr/u8-strncat-tests: Likewise.
16714         * modules/unistr/u8-strncmp-tests: Likewise.
16715         * modules/unistr/u8-strncpy-tests: Likewise.
16716         * modules/unistr/u8-strnlen-tests: Likewise.
16717         * modules/unistr/u8-to-u16-tests: Likewise.
16718         * modules/unistr/u8-to-u32-tests: Likewise.
16719         * modules/unistr/u8-uctomb-tests: Likewise.
16720         * modules/unistr/u16-check-tests: Likewise.
16721         * modules/unistr/u16-chr-tests: Likewise.
16722         * modules/unistr/u16-cmp-tests: Likewise.
16723         * modules/unistr/u16-cmp2-tests: Likewise.
16724         * modules/unistr/u16-cpy-alloc-tests: Likewise.
16725         * modules/unistr/u16-cpy-tests: Likewise.
16726         * modules/unistr/u16-mblen-tests: Likewise.
16727         * modules/unistr/u16-mbsnlen-tests: Likewise.
16728         * modules/unistr/u16-mbtouc-tests: Likewise.
16729         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
16730         * modules/unistr/u16-mbtoucr-tests: Likewise.
16731         * modules/unistr/u16-move-tests: Likewise.
16732         * modules/unistr/u16-next-tests: Likewise.
16733         * modules/unistr/u16-prev-tests: Likewise.
16734         * modules/unistr/u16-set-tests: Likewise.
16735         * modules/unistr/u16-stpcpy-tests: Likewise.
16736         * modules/unistr/u16-stpncpy-tests: Likewise.
16737         * modules/unistr/u16-strcat-tests: Likewise.
16738         * modules/unistr/u16-strcmp-tests: Likewise.
16739         * modules/unistr/u16-strcoll-tests: Likewise.
16740         * modules/unistr/u16-strcpy-tests: Likewise.
16741         * modules/unistr/u16-strdup-tests: Likewise.
16742         * modules/unistr/u16-strlen-tests: Likewise.
16743         * modules/unistr/u16-strmblen-tests: Likewise.
16744         * modules/unistr/u16-strmbtouc-tests: Likewise.
16745         * modules/unistr/u16-strncat-tests: Likewise.
16746         * modules/unistr/u16-strncmp-tests: Likewise.
16747         * modules/unistr/u16-strncpy-tests: Likewise.
16748         * modules/unistr/u16-strnlen-tests: Likewise.
16749         * modules/unistr/u16-to-u32-tests: Likewise.
16750         * modules/unistr/u16-to-u8-tests: Likewise.
16751         * modules/unistr/u16-uctomb-tests: Likewise.
16752         * modules/unistr/u32-check-tests: Likewise.
16753         * modules/unistr/u32-chr-tests: Likewise.
16754         * modules/unistr/u32-cmp-tests: Likewise.
16755         * modules/unistr/u32-cmp2-tests: Likewise.
16756         * modules/unistr/u32-cpy-alloc-tests: Likewise.
16757         * modules/unistr/u32-cpy-tests: Likewise.
16758         * modules/unistr/u32-mblen-tests: Likewise.
16759         * modules/unistr/u32-mbsnlen-tests: Likewise.
16760         * modules/unistr/u32-mbtouc-tests: Likewise.
16761         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
16762         * modules/unistr/u32-mbtoucr-tests: Likewise.
16763         * modules/unistr/u32-move-tests: Likewise.
16764         * modules/unistr/u32-next-tests: Likewise.
16765         * modules/unistr/u32-prev-tests: Likewise.
16766         * modules/unistr/u32-set-tests: Likewise.
16767         * modules/unistr/u32-stpcpy-tests: Likewise.
16768         * modules/unistr/u32-stpncpy-tests: Likewise.
16769         * modules/unistr/u32-strcat-tests: Likewise.
16770         * modules/unistr/u32-strcmp-tests: Likewise.
16771         * modules/unistr/u32-strcoll-tests: Likewise.
16772         * modules/unistr/u32-strcpy-tests: Likewise.
16773         * modules/unistr/u32-strdup-tests: Likewise.
16774         * modules/unistr/u32-strlen-tests: Likewise.
16775         * modules/unistr/u32-strmblen-tests: Likewise.
16776         * modules/unistr/u32-strmbtouc-tests: Likewise.
16777         * modules/unistr/u32-strncat-tests: Likewise.
16778         * modules/unistr/u32-strncmp-tests: Likewise.
16779         * modules/unistr/u32-strncpy-tests: Likewise.
16780         * modules/unistr/u32-strnlen-tests: Likewise.
16781         * modules/unistr/u32-to-u16-tests: Likewise.
16782         * modules/unistr/u32-to-u8-tests: Likewise.
16783         * modules/unistr/u32-uctomb-tests: Likewise.
16784         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
16785         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
16786         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
16787         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
16788         * modules/uniwidth/u8-strwidth-tests: Likewise.
16789         * modules/uniwidth/u8-width-tests: Likewise.
16790         * modules/uniwidth/u16-strwidth-tests: Likewise.
16791         * modules/uniwidth/u16-width-tests: Likewise.
16792         * modules/uniwidth/u32-strwidth-tests: Likewise.
16793         * modules/uniwidth/u32-width-tests: Likewise.
16794         * modules/uniwidth/width-tests: Likewise.
16795
16796 2010-05-18  Richard Jones  <rjones@redhat.com>
16797
16798         doc: users.txt: list hivex
16799         * users.txt: Add hivex.
16800
16801 2010-05-18  Richard Jones  <rjones@redhat.com>
16802
16803         doc: users.txt: list febootstrap
16804         * users.txt: Add febootstrap.
16805
16806 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
16807
16808         bootstrap: fix an error when gnulib is not used as a git submodule
16809         * build-aux/bootstrap (gnulib_path): If its length is zero then
16810         assign "gnulib" to it.
16811         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
16812
16813 2010-05-16  Bruno Haible  <bruno@clisp.org>
16814
16815         Avoid autoconf warnings about AM_ICONV.
16816         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
16817         2.64.
16818
16819 2010-05-16  Bruno Haible  <bruno@clisp.org>
16820
16821         absolute-header: Make the macro usable in more situations.
16822         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
16823         from gl_ABSOLUTE_HEADER.
16824         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
16825
16826 2010-05-16  James Youngman  <jay@gnu.org>
16827
16828         doc: update users.txt
16829         * users.txt: Add CSSC.
16830
16831 2010-05-16  Jim Meyering  <meyering@redhat.com>
16832
16833         init.sh: fix an error in the previous change; add more comments
16834         * tests/init.sh: Compare exit code in loop against 9, not 2.
16835         Patch by Bruno Haible.
16836         Make the two tests more similar by adding an empty "then" clause.
16837         Add comments.
16838
16839         init.sh: avoid unnecessary shell re-exec
16840         * tests/init.sh: Improve the re-exec-required check to first test the
16841         current shell.  If it passes the test, do not search for a shell that
16842         does pass, and do not re-exec.  This test is particularly contorted to
16843         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
16844         of $(...) evokes a syntax error and causes immediate shell exit with
16845         status 2.  Bruno Haible reported that the re-exec made it impossible
16846         to single-step through any init.sh-using script.
16847
16848 2010-05-16  Bruno Haible  <bruno@clisp.org>
16849
16850         Fix collision between gnulib's and libintl's printf replacements.
16851         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
16852         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
16853         (printf): When using GNU C, map the __printf__ function to rpl_printf
16854         via __asm__. When not using GNU C, define rpl_printf instead of
16855         __printf__.
16856         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
16857         commit.
16858         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
16859         commit.
16860         * m4/asm-underscore.m4: New file.
16861         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
16862         * modules/stdio (Files): Add m4/asm-underscore.m4.
16863         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
16864         Reported by Ben Pfaff.
16865
16866 2010-05-16  Bruno Haible  <bruno@clisp.org>
16867
16868         verify: Avoid skipping the test on openSUSE 11.0.
16869         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
16870
16871 2010-05-13  Bruno Haible  <bruno@clisp.org>
16872
16873         Avoid useless warnings from G++.
16874         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
16875         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
16876         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16877
16878 2010-05-11  Jim Meyering  <meyering@redhat.com>
16879
16880         maint.mk: tweak preceding change
16881         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
16882         regexps tighter by anchoring at EOL, and make the new group "shy"
16883         for slightly decreased overhead.
16884
16885 2010-05-11  Eric Blake  <eblake@redhat.com>
16886
16887         maint.mk: gnulib doesn't guarantee NSIG
16888         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
16889
16890 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
16891
16892         test-pwrite.c: Remove unused variable declaration.
16893         * tests/test-pwrite.c (main): Remove read_buf declaration.
16894
16895         Remove useless test-pwrite.sh file.
16896         * tests/test-pwrite.sh: Delete file.
16897         * modules/pwrite-tests: Remove references.
16898         Reported by Bruno Haible.
16899
16900 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
16901
16902         init.sh: fix a typo
16903         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
16904
16905 2010-05-10  Jim Meyering  <meyering@redhat.com>
16906
16907         maint.mk: avoid using a temporary file in the always-defined-macros check
16908         * top/maint.mk (.re-defmac): Remove rule.
16909         (gl_trap_): Remove definition.
16910         (sc_prohibit_always-defined_macros): Rewrite not to create and
16911         depend on a temporary file.  Instead, depend on GNU grep's ability
16912         to read a list of regular expressions from stdin when given "-f -".
16913
16914 2010-05-09  Bruno Haible  <bruno@clisp.org>
16915
16916         Update to GNU gettext 0.18, part 1.
16917         * m4/gettext.m4: Update to GNU gettext 0.18.
16918         * m4/intl.m4: Likewise.
16919         * m4/po.m4: Likewise.
16920         * modules/gettext (Files): Add m4/fcntl-o.m4.
16921         (configure.ac): Require gettext infrastructure from version 0.18.
16922
16923 2010-05-09  Jim Meyering  <meyering@redhat.com>
16924
16925         init.sh: enable MALLOC_PERTURB_
16926         * tests/init.sh: Enable glibc's malloc-perturbing option.
16927
16928         maint.mk: improve sc_cross_check_PATH_usage_in_tests
16929         With my recent change in init.sh from the two-line form:
16930             -#   : ${srcdir=.}
16931             -#   . "$srcdir/init.sh"; path_prepend_ .
16932             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
16933         I noticed that using the one-line form would cause this test
16934         to fail with a false-positive, or to stop working altogether,
16935         depending on whether help-version changed or all the tests did.
16936         * top/maint.mk (_hv_regex): Remove this definition.
16937         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
16938         (_hv_regex_strong): Use a stronger regex to check for conformance.
16939         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
16940         Give a separate diagnostic for lack of conforming use.
16941
16942         maint.mk: prohibit definition of symbols defined by gnulib
16943         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
16944         definition of symbols defined by gnulib.
16945
16946 2010-05-09  Bruno Haible  <bruno@clisp.org>
16947
16948         acl: Avoid test failure on Cygwin-hosted mingw.
16949         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
16950
16951 2010-05-09  Bruno Haible  <bruno@clisp.org>
16952
16953         error: Use system's fcntl function.
16954         * lib/error.c (fcntl): Undefine.
16955
16956 2010-05-09  Jim Meyering  <meyering@redhat.com>
16957
16958         verify: adjust formatting to be more consistent
16959         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
16960         argument-list '('s, and after one comma.
16961
16962 2010-05-09  Bruno Haible  <bruno@clisp.org>
16963
16964         error: More reliable output on mingw.
16965         * lib/error.c: Include <windows.h>.
16966         (is_open): New function.
16967         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
16968         defined.
16969
16970 2010-05-09  Bruno Haible  <bruno@clisp.org>
16971
16972         vasnprintf: Fix syntax errors in libintl build on mingw.
16973         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
16974         pad_ourselves and prec_ourselves after use.
16975
16976 2010-05-08  Bruno Haible  <bruno@clisp.org>
16977
16978         * lib/config.charset: Update comments for Cygwin 1.7.
16979         * lib/localcharset.c: Likewise.
16980
16981 2010-05-07  Jim Meyering  <meyering@redhat.com>
16982
16983         init.sh: improve comments
16984         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
16985         . "${srcdir=.}/init.sh"; path_prepend_ .
16986         Add a note about path_prepend_ and the alternative of using
16987         TESTS_ENVIRONMENT.
16988
16989 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
16990
16991         exclude: Unescape hashed patterns in wildcard mode.
16992         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
16993         to the hash list.
16994         * tests/test-exclude8.sh: New test case.
16995         * modules/exclude-tests: Add new test.
16996
16997 2010-05-05  Eric Blake  <eblake@redhat.com>
16998
16999         verify: automate tests
17000         * modules/verify-tests: New module.
17001         * tests/test-verify.sh: New file.
17002         * tests/test-verify.c: Guard each negative test with a unique id.
17003         Also avoid warning about unused left hand of comma expressions.
17004
17005 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17006
17007         Further improvements to verify.h, suggested by Eric Blake.
17008         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
17009         the GL_* versions, to avoid collision with OpenGL.
17010         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
17011         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
17012         than testing merely whether it's defined.
17013
17014         Modify verify.h to pacify gcc -Wredundant_decls.
17015         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
17016         These use the prefix "GL_" since they're likely to be useful elsewhere.
17017         We may need to break them out into a different .h file.
17018         (__COUNTER__): Define to 0 if the compiler doesn't support it.
17019         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
17020         of verify_function__.
17021
17022 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17023
17024         Tests for module pwrite.
17025         * modules/pwrite-tests: New file.
17026         * tests/test-pwrite.sh: New file.
17027         * tests/test-pwrite.c: New file.
17028
17029         New module pwrite.
17030         * lib/unistd.in.h (pwrite): New declaration.
17031         * lib/pwrite.c: New file, from glibc with modifications.
17032         * m4/pwrite.m4: New file.
17033         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
17034         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
17035         REPLACE_PWRITE.
17036         * modules/pwrite: New file.
17037         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
17038         REPLACE_PWRITE.
17039         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
17040         * doc/posix-functions/pwrite.texi: Mention the new module.
17041
17042 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
17043
17044         pread: Update documentation.
17045         * doc/posix-functions/pread.texi: Mention the 'pread' module.
17046
17047 2010-05-04  Eric Blake  <eblake@redhat.com>
17048
17049         docs: update cygwin progress
17050         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
17051         this bug.
17052         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
17053         Added in cygwin 1.7.2.
17054         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
17055         Likewise.
17056         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
17057         Likewise.
17058         * doc/glibc-functions/dup3.texi (dup3): Likewise.
17059         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17060         * doc/glibc-functions/accept4.texi (accept4): Likewise.
17061         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
17062         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
17063         Mention nproc module.
17064         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
17065         bug in cygwin 1.7.5 addition.
17066         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
17067         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
17068         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
17069         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
17070         1.7.5.
17071         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
17072         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
17073         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
17074         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
17075         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
17076         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
17077         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
17078         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
17079         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
17080         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
17081         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
17082         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
17083         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
17084         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
17085         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
17086         Likewise.
17087         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
17088         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
17089         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
17090         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
17091         Likewise.
17092         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
17093         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
17094         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
17095         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
17096         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
17097         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
17098         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
17099         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
17100         Likewise.
17101         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
17102         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
17103         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
17104         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
17105         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
17106         Likewise.
17107         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
17108         Likewise.
17109         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
17110         Likewise.
17111         * doc/glibc-functions/xdrrec_endofrecord.texi
17112         (xdrrec_endofrecord): Likewise.
17113         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
17114         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
17115         Likewise.
17116         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
17117         Likewise.
17118
17119 2010-05-04  Jim Meyering  <meyering@redhat.com>
17120
17121         gendocs.sh: make its "-s FILE" option more useful
17122         * build-aux/gendocs.sh: When honoring the -s FILE option, update
17123         $PACKAGE to reflect the probably-different basename of "FILE".
17124
17125 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
17126
17127         bootstrap: don't ignore download_po_files failure
17128         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
17129         failure.
17130
17131 2010-05-03  Jim Meyering  <meyering@redhat.com>
17132
17133         maint.mk: allow to pass options to gendocs.sh
17134         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
17135         (gendocs_options_): New overridable variable.
17136
17137         gnu-web-doc-update: don't ignore configure or build failure
17138         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
17139
17140         announce-gen: backslash-escape '@'s in --help output
17141         * build-aux/announce-gen: Fix syntax errors.
17142
17143         maint.mk, announce-gen: allow project-specific announcement mail headers
17144         * top/maint.mk (translation_project_): Define default.
17145         (announcement_Cc_, announcement_mail_headers_): Likewise.
17146         (announcement): Invoke announce-gen with new --mail-headers option.
17147         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
17148
17149         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
17150         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
17151         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
17152         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
17153         line in the "err2" output file when running "make check" in verbose
17154         mode (i.e., with set -x enabled).
17155
17156 2010-05-03  Bruno Haible  <bruno@clisp.org>
17157
17158         wctob: Fix for weird platforms.
17159         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
17160         argument value.
17161
17162 2010-05-03  Jim Meyering  <meyering@redhat.com>
17163
17164         maint.mk: prohibit unwarranted use of <strings.h>
17165         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
17166         strings.h in a file that does not also use strcasecmp, strncasecmp,
17167         ffs or ffsll.
17168
17169         maint.mk: remove obsolete comments
17170         * top/maint.mk: Remove stale, commented-out rules.
17171
17172 2010-05-02  Bruno Haible  <bruno@clisp.org>
17173
17174         wcwidth: Declare also when it's aliased.
17175         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
17176         macro.
17177
17178 2010-05-02  Bruno Haible  <bruno@clisp.org>
17179
17180         Fix regression from 2010-04-25.
17181         * gnulib-tool (func_modules_transitive_closure): Check the status of
17182         all modules, not only of the tests that are of the form foo-tests where
17183         foo is a module.
17184
17185 2010-05-02  Bruno Haible  <bruno@clisp.org>
17186
17187         wctob: Work around nasty Cygwin 1.7.2 bug.
17188         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
17189         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
17190
17191 2010-05-01  Bruno Haible  <bruno@clisp.org>
17192
17193         fpurge: Sharper test.
17194         * tests/test-fpurge.c (main): Add one more ftell check.
17195         * modules/fpurge-tests (Depends-on): Add ftell.
17196         Suggested by Eric Blake.
17197
17198 2010-05-01  Bruno Haible  <bruno@clisp.org>
17199
17200         ftello: Another test.
17201         * tests/test-ftello3.c: New file.
17202         * modules/ftello-tests (Files): Add it.
17203         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
17204         MOSTLYCLEANFILES.
17205
17206         ftell: Another test.
17207         * tests/test-ftell3.c: New file.
17208         * modules/ftell-tests (Files): Add it.
17209         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
17210         MOSTLYCLEANFILES.
17211
17212 2010-05-01  Bruno Haible  <bruno@clisp.org>
17213
17214         ftell, ftello: Work around Solaris bug.
17215         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
17216         * lib/ftello.c: Include stdio-impl.h.
17217         (ftello): On Solaris, when _IOWRT is set, compute the result without
17218         looking at _IOREAD.
17219         * modules/ftello (Files): Add lib/stdio-impl.h.
17220         * doc/posix-functions/ftell.texi: Mention Solaris bug.
17221         * doc/posix-functions/ftello.texi: Likewise.
17222         Reported by Eric Blake.
17223
17224 2010-05-01  Bruno Haible  <bruno@clisp.org>
17225
17226         freading: Adapt to special meaning of _IOREAD flag on Solaris.
17227         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
17228         the _IOWRT flag is also set.
17229
17230 2010-05-01  Bruno Haible  <bruno@clisp.org>
17231
17232         Fix doc about a HP-UX stdio bug.
17233         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
17234         * doc/posix-functions/ftello.texi: Likewise.
17235
17236 2010-05-01  Bruno Haible  <bruno@clisp.org>
17237
17238         lseek test: Fix failure on Solaris.
17239         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
17240         output.
17241
17242 2010-04-30  Jim Meyering  <meyering@redhat.com>
17243
17244         bootstrap: don't ignore failure to generate po*/Makevars
17245         * build-aux/bootstrap (with_gettext): Don't ignore failure
17246         to create po/Makevars or runtime-po/Makevars.
17247
17248 2010-04-29  Eric Blake  <eblake@redhat.com>
17249
17250         headers: relax license to LGPLv2+
17251         * modules/fcntl-h (License): Relax license.
17252         * modules/getopt-posix (License): Likewise.
17253         * modules/locale (License): Likewise.
17254         * modules/math (License): Likewise.
17255         * modules/pty (License): Likewise.
17256         * modules/sched (License): Likewise.
17257         * modules/search (License): Likewise.
17258         * modules/spawn (License): Likewise.
17259         * modules/stdarg (License): Likewise.
17260         * modules/sysexits (License): Likewise.
17261
17262 2010-04-29  Jim Meyering  <meyering@redhat.com>
17263
17264         inttypes: relax license to LGPLv2+
17265         * modules/inttypes (License): Relax license.
17266
17267 2010-04-29  Simon Josefsson  <simon@josefsson.org>
17268
17269         * top/maint.mk (indent): Run twice to produce idempotent results.
17270
17271 2010-04-28  Bruno Haible  <bruno@clisp.org>
17272
17273         getdate: Generate getdate.c in the source directory.
17274         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
17275         MOSTLYCLEANFILES.
17276         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
17277
17278 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
17279
17280         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
17281         is not declared as a const *; avoid warnings in that case.
17282
17283 2010-04-28  Eric Blake  <eblake@redhat.com>
17284
17285         canonicalize-lgpl: avoid compiler warning
17286         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
17287         declaration' / 'extraneous semicolon' warning with some compilers.
17288         Reported by Andreas Gruenbacher.
17289
17290 2010-04-28  Jim Meyering  <meyering@redhat.com>
17291
17292         init.sh: ensure a more reliable exit status when exiting via trap
17293         * tests/init.sh (setup_): Don't rely on $? in signal handler.
17294         Inspired by patches from Dmitry V. Levin.
17295         Also trap on signal 3 (SIGQUIT).
17296
17297 2010-04-27  Bruno Haible  <bruno@clisp.org>
17298
17299         Update doc about utimes().
17300         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
17301         'utimens' module.
17302         Reported by Andreas Gruenbacher <agruen@suse.de>.
17303
17304 2010-04-27  Eric Blake  <eblake@redhat.com>
17305
17306         full-read, full-write: relax license
17307         * modules/full-read (License): Drop to LGPLv2+.
17308         * modules/full-write (License): Likewise.
17309         * modules/safe-read (License): Likewise.
17310         * modules/safe-write (License): Likewise.
17311
17312         pthread: mention library for linking
17313         * modules/pthread (Link): Mention $(LIB_PTHREAD).
17314
17315 2010-04-27  Jim Meyering  <meyering@redhat.com>
17316
17317         maint.mk: fix a bug introduced in last change
17318         * top/maint.mk (gl_assured_headers_): Now that all names are on
17319         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
17320         is not anchored to end of word, it should be adequate.
17321
17322         maint.mk: avoid side-effect in latest syntax-check
17323         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
17324         to run commands via $(shell...), and hence to incur cost only when
17325         the new rule is actually run.
17326
17327         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
17328         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
17329         and use that to create a regexp used to detect all #if HAVE_..._H uses.
17330         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
17331         (gl_assured_headers_, az_, AZ_): Define.
17332         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
17333
17334 2010-04-26  Jim Meyering  <jim@meyering.net>
17335             Bruno Haible  <bruno@clisp.org>
17336
17337         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
17338         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
17339         Prompted by an exchange with Gilles Espinasse.
17340
17341 2010-04-26  Jim Meyering  <meyering@redhat.com>
17342
17343         git-version-gen: aesthetic tweak
17344         * build-aux/git-version-gen: Use "$nl" rather than a literal,
17345         so that the command remains on a single line.
17346
17347 2010-04-26  Eric Blake  <eblake@redhat.com>
17348
17349         git-version-gen: allow use on EBCDIC hosts
17350         * build-aux/git-version-gen (dirty): Use literal rather than tying
17351         ourselves to ascii.
17352         Reported by Steve Goetze.
17353
17354 2010-04-25  Bruno Haible  <bruno@clisp.org>
17355
17356         netdb: Add support for GNULIB_POSIXCHECK.
17357         * lib/netdb.in.h: Include warn-on-use.h.
17358         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
17359         functions are used when GNULIB_POSIXCHECK is defined and the
17360         getaddrinfo module is not in use.
17361         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
17362         freeaddrinfo, gai_strerror, getnameinfo are declared.
17363         * modules/netdb (Depends-on): Add warn-on-use.
17364         (Makefile.am): Include warn-on-use.h in netdb.h.
17365
17366 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
17367
17368         build: avoid "make check" failure without .git/ directory
17369         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
17370         there is no .git/ directory.
17371
17372 2010-04-25  Bruno Haible  <bruno@clisp.org>
17373
17374         ptsname: Fix misuse of ttyname_r.
17375         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
17376         of errno.
17377
17378 2010-04-25  Bruno Haible  <bruno@clisp.org>
17379
17380         ttyname_r: Make it work on Solaris 10.
17381         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
17382         if the system function has the POSIX declaration. Test whether the
17383         function fails if the buffer is less than 128 bytes large.
17384         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
17385         system's ttyname_r function. Provide a reasonably large buffer.
17386         * modules/ttyname_r (Depends-on): Add extensions.
17387         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
17388
17389 2010-04-25  Bruno Haible  <bruno@clisp.org>
17390
17391         Use the 'extensions' module for some more functions on Solaris.
17392         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
17393         module.
17394         * doc/posix-functions/ctime_r.texi: Likewise.
17395         * doc/posix-functions/getgrgid_r.texi: Likewise.
17396         * doc/posix-functions/getgrnam_r.texi: Likewise.
17397         * doc/posix-functions/getpwnam_r.texi: Likewise.
17398         * doc/posix-functions/getpwuid_r.texi: Likewise.
17399         * doc/posix-functions/readdir_r.texi: Likewise.
17400         * doc/posix-functions/sigwait.texi: Likewise.
17401         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
17402         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
17403
17404 2010-04-25  Bruno Haible  <bruno@clisp.org>
17405
17406         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
17407         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
17408         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
17409         * lib/ttyname_r.c: Include <limits.h>.
17410         (ttyname_r): Define using the system's ttyname_r function, if it exists
17411         and not on Solaris.
17412         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
17413         set.
17414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
17415         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
17416         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
17417         Reported by Simon Josefsson.
17418
17419 2010-04-25  Bruno Haible  <bruno@clisp.org>
17420
17421         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
17422         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
17423         * doc/posix-functions/ctime_r.texi: Likewise.
17424         * doc/posix-functions/getgrgid_r.texi: Likewise.
17425         * doc/posix-functions/getgrnam_r.texi: Likewise.
17426         * doc/posix-functions/getlogin_r.texi: Likewise.
17427         * doc/posix-functions/getpwnam_r.texi: Likewise.
17428         * doc/posix-functions/getpwuid_r.texi: Likewise.
17429         * doc/posix-functions/readdir_r.texi: Likewise.
17430         * doc/posix-functions/sigwait.texi: Likewise.
17431         * doc/posix-functions/ttyname_r.texi: Likewise.
17432         Reported by Simon Josefsson.
17433
17434 2010-04-25  Bruno Haible  <bruno@clisp.org>
17435
17436         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
17437         * gnulib-tool (func_usage): Document that --with-*-tests options apply
17438         also to --create-testdir.
17439         (func_acceptable): Don't consider the status of *-tests modules here.
17440         (func_modules_transitive_closure): Consider it here, before including a
17441         test module.
17442         (func_import, func_create_testdir): Set inc_all_direct_tests,
17443         inc_all_indirect_tests.
17444         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
17445         --create-testdir and --create-megatestdir.
17446
17447 2010-04-25  Bruno Haible  <bruno@clisp.org>
17448
17449         gnulib-tool: Add --without-*-tests options.
17450         * gnulib-tool (func_usage): Document the --without-*-tests options.
17451         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
17452         excl_unportable_tests): New variables.
17453         Fail if they are specified with --import or --update.
17454         (func_acceptable): Respect the excl_*_tests variables.
17455         (func_import): Set the excl_*_tests variables to empty.
17456
17457 2010-04-25  Simon Josefsson  <simon@josefsson.org>
17458             Bruno Haible  <bruno@clisp.org>
17459
17460         Work around a MacOS X 10.4 bug with openpty.
17461         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
17462         * tests/test-openpty.c (main): Close the master side explicitly.
17463
17464 2010-04-25  Bruno Haible  <bruno@clisp.org>
17465
17466         strnlen: Fix a C++ test error on MacOS X and Solaris.
17467         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
17468         the function is not declared.
17469         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
17470         Simon Josefsson.
17471
17472 2010-04-24  Bruno Haible  <bruno@clisp.org>
17473
17474         Avoid a gcc warning.
17475         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
17476         of correct type for %08lx directive.
17477         Reported by Eric Blake.
17478
17479 2010-04-24  Bruno Haible  <bruno@clisp.org>
17480
17481         vasnprintf: Correct errno value in case of out-of-memory.
17482         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
17483         or sprintf. Use the errno value from SNPRINTF or sprintf.
17484         Reported by Ian Beckwith <ianb@erislabs.net>.
17485
17486 2010-04-24  Bruno Haible  <bruno@clisp.org>
17487
17488         ansi-c++-opt: Find correct compiler when cross-compiling.
17489         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
17490         AC_CHECK_PROGS.
17491         Reported by Simon Josefsson.
17492
17493 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
17494
17495         vc-list-files: Add support for subversion
17496         * build-aux/vc-list-files: Use "svn list" to generate the list of
17497         files controlled by subversion.
17498
17499 2010-04-23  Jim Meyering  <meyering@redhat.com>
17500
17501         vc-list-files tests: convert to use init.sh
17502         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
17503         path_prepend_.
17504         Use Exit, not exit.
17505         Use skip_ rather than open coding it.
17506         Remove trap set-up and compare definitions.
17507         * tests/test-vc-list-files-git.sh: Likewise.
17508         * modules/vc-list-files-tests (Files): Add tests/init.sh.
17509
17510 2010-04-22  Simon Josefsson  <simon@josefsson.org>
17511
17512         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
17513         backup files.
17514
17515 2010-04-21  Simon Josefsson  <simon@josefsson.org>
17516
17517         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
17518
17519 2010-04-20  Eric Blake  <eblake@redhat.com>
17520
17521         tests: be robust to ignored SIGPIPE
17522         * tests/test-select-in.sh: Consume all output.
17523         * tests/test-lseek.sh: Check correct exit status, while avoiding
17524         EPIPE.
17525
17526 2010-04-20  Simon Josefsson  <simon@josefsson.org>
17527             Bruno Haible  <bruno@clisp.org>
17528
17529         visibility: Don't use -fvisibility if it leads to a warning.
17530         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
17531         yes, don't pretend that visibility works if it leads to a warning.
17532         Reported by Mike Gran <spk121@yahoo.com>.
17533
17534 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
17535
17536         * build-aux/bootstrap: Use "git -h" for testing for supported options
17537         instead of "git --help".  The short-form option only shows a summary,
17538         and doesn't layout the full man page.  Grep for the full option name
17539         in the summary, too.
17540
17541 2010-04-19  Bruno Haible  <bruno@clisp.org>
17542
17543         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
17544         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
17545         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
17546         mention of RELOCATABLE_STRIP.
17547         Reported by Sylvain Beucler <beuc@beuc.net>.
17548
17549 2010-04-19  Bruno Haible  <bruno@clisp.org>
17550
17551         * lib/diffseq.h: Fix typo in comment.
17552         Reported by Eric Blake.
17553
17554 2010-04-19  Bruno Haible  <bruno@clisp.org>
17555
17556         ioctl: Move autoconf macro to a .m4 file.
17557         * m4/ioctl.m4: New file, extracted from modules/ioctl.
17558         * modules/ioctl (Files): Add it.
17559         (configure.ac): Simply invoke gl_FUNC_IOCTL.
17560         Reported by Ian Beckwith <ianb@erislabs.net>.
17561
17562 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
17563             Bruno Haible  <bruno@clisp.org>
17564
17565         diffseq: Accommodate use-case with abstract arrays.
17566         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
17567         is not defined.
17568         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
17569         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
17570
17571 2010-04-18  Bruno Haible  <bruno@clisp.org>
17572
17573         * doc/posix-headers/stdbool.texi: More precise wording.
17574
17575 2010-04-17  Jim Meyering  <meyering@redhat.com>
17576
17577         maint.mk: use gnu-style indentation in an embedded perl script
17578         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
17579         Rename variable: s/two/last_two_bytes/
17580
17581 2010-04-16  Eric Blake  <eblake@redhat.com>
17582
17583         test-stdbool: skip test that fails with Solaris CC
17584         * tests/test-stdbool.c (f): Skip test that causes compilation
17585         error under buggy C++ compiler.
17586         * lib/stdbool.in.h: Document the limitation.
17587         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
17588
17589         setenv: allow compilation with C++
17590         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
17591         register keyword.
17592
17593         stdint: allow test to pass with C++
17594         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
17595
17596         getopt: allow compilation with C++
17597         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
17598         struct.
17599         * lib/getopt.c (_getopt_internal_r): Use correct type.
17600         Reported by Dagobert Michelson, via Joel E. Denny.
17601
17602 2010-04-16  Bruno Haible  <bruno@clisp.org>
17603
17604         Override netdb.h always.
17605         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
17606         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
17607         Reported by Ludovic Courtès <ludo@gnu.org>.
17608
17609 2010-04-15  Bruno Haible  <bruno@clisp.org>
17610
17611         openpty: Fix mistake from 2010-03-21.
17612         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
17613         Reported by Simon Josefsson.
17614
17615 2010-04-15  Eric Blake  <eblake@redhat.com>
17616
17617         test-forkpty: fix expected signature
17618         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
17619         Reported by Simon Josefsson.
17620
17621 2010-04-15  Jim Meyering  <meyering@redhat.com>
17622
17623         maint.mk: texinfo_suffix_re_: correct the default regexp
17624         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
17625
17626         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
17627         make it configurable via texinfo_suffix_re_.
17628
17629 2010-04-14  Eric Blake  <eblake@redhat.com>
17630
17631         strtok_r: relax license to LGPLv2+
17632         * modules/strtok_r (License): Relax license.
17633         Reported by Matthias Bolte.
17634
17635 2010-04-14  Simon Josefsson  <simon@josefsson.org>
17636
17637         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
17638         version 1.4.4 by default instead of requiring the libgcrypt
17639         version used during build.  This makes it possible to use the
17640         application with older but still binary compatible libgcrypt
17641         versions.
17642
17643 2010-04-13  Eric Blake  <eblake@redhat.com>
17644
17645         getopt-gnu: match recent glibc fixes and posix ruling
17646         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
17647         '+' handling, when requesting extensions.
17648         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
17649         'W;' handling.
17650         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
17651         * doc/posix-functions/getopt.texi (getopt): Document this.
17652         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17653         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17654         Likewise.
17655
17656         getopt: merge bug fixes from glibc
17657         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
17658         diagnostics.  Honor '+:' correctly.  Reject ';'.
17659
17660         getopt-posix: detect MacOS bug
17661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
17662         optind when missing a required argument.
17663         * doc/posix-functions/getopt.texi (getopt): Document the bug.
17664         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17665         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17666         Likewise.
17667
17668         getopt-posix: avoid spurious failure on Solaris
17669         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
17670         an indicator that setting optind=1 is sufficient for reset.
17671
17672         getopt-posix: avoid spurious failure on FreeBSD
17673         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
17674         in POSIX mode, since the m4 test uses it.
17675
17676         gnulib-tool: silence warning on BSD sh
17677         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
17678
17679 2010-04-13  Jim Meyering  <meyering@redhat.com>
17680
17681         doc: users.txt: GNU patch now uses gnulib
17682         * users.txt: Add patch.
17683
17684 2010-04-12  Jim Meyering  <meyering@redhat.com>
17685
17686         maint.mk: generate more concise timing data for syntax-check rules
17687         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
17688         " done" from each line that reports a syntax-check test duration.
17689
17690 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
17691
17692         git-version-gen: use "git update-index..." rather than "git status"
17693         * build-aux/git-version-gen: Use git update-index --refresh, not
17694         "git status".  With some versions of git, "git status" would fail
17695         to update the index and result in an unwarranted "-dirty" suffix.
17696
17697 2010-04-11  Jim Meyering  <meyering@redhat.com>
17698
17699         openat: correct formatting (no semantic change)
17700         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
17701         Suggested by Bruno Haible.
17702
17703 2010-04-11  Bruno Haible  <bruno@clisp.org>
17704
17705         Stricter declaration checking in testdirs.
17706         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17707         If for_tests is true, augment AM_CPPFLAGS to define
17708         GNULIB_STRICT_CHECKING.
17709         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
17710         GNULIB_STRICT_CHECKING is defined, verify that the function is
17711         declared.
17712
17713 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
17714             Bruno Haible  <bruno@clisp.org>
17715
17716         libunistring: Improve configure output.
17717         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
17718         Don't say "consider installing GNU libunistring" when checking again
17719         with libiconv.
17720
17721 2010-04-11  Bruno Haible  <bruno@clisp.org>
17722
17723         libunistring: Correct value of $LTLIBUNISTRING.
17724         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
17725         correct the value of $LTLIBUNISTRING.
17726
17727 2010-04-11  Bruno Haible  <bruno@clisp.org>
17728
17729         havelib: Add static libraries to LIBS in the right order.
17730         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
17731         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
17732
17733 2010-04-11  Bruno Haible  <bruno@clisp.org>
17734
17735         libunistring: Detect libunistring also when it depends on libiconv.
17736         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
17737         the second AC_LIB_HAVE_LINKFLAGS invocation.
17738
17739 2010-04-11  James Youngman  <jay@gnu.org>
17740
17741         close-stream: declare local scalars to be "const"
17742         * lib/close-stream.c (close_stream): Make boolean variables const
17743         to document the fact that we set but do not change them.
17744
17745 2010-04-11  Bruno Haible  <bruno@clisp.org>
17746
17747         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
17748
17749 2010-04-11  Jim Meyering  <meyering@redhat.com>
17750
17751         maint.mk: don't include dist-check.mk
17752         * top/maint.mk: Remove bogus include directive.
17753
17754         maint.mk: improve empty-line-at-EOF check
17755         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
17756         solution, rather than tail+Perl-based one.  The latter would read
17757         a few kilobytes from the end of each file, and did not handle empty
17758         files properly.
17759
17760         maint.mk: print the elapsed time for each syntax-check rule
17761         * top/maint.mk (sc_m_rules_): Save start time in a file.
17762         (sc_z_rules_): New rules: remove temp file and print elapsed time.
17763         (local-check): Interpose the .z rules
17764
17765 2010-04-11  Jim Meyering  <meyering@redhat.com>
17766
17767         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
17768         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
17769         empty file with one that ends in an empty line.
17770
17771 2010-04-10  Bruno Haible  <bruno@clisp.org>
17772
17773         mkdir: Make it work on mingw64.
17774         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
17775         * lib/mkdir.c: Update comment.
17776         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
17777
17778 2010-04-10  Bruno Haible  <bruno@clisp.org>
17779
17780         Don't override improved macro from newer autoconf.
17781         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
17782         autoconf >= 2.62.
17783         Reported by Joel E. Denny <jdenny@clemson.edu>.
17784
17785 2010-04-10  Jim Meyering  <meyering@redhat.com>
17786
17787         maint.mk: new syntax-check rule: prohibit empty lines at end of file
17788         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
17789
17790         maint.mk: correct a diagnostic
17791         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
17792         in diagnostic; now use $prohibit.
17793
17794 2010-04-10  Bruno Haible  <address@hidden>
17795
17796         fchownat: Fix a C++ test error on Solaris 8.
17797         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
17798         the function does not exist.
17799
17800 2010-04-10  Bruno Haible  <bruno@clisp.org>
17801
17802         vasnprintf: Add more tests.
17803         * tests/test-vasnprintf-posix.c: Include <errno.h>.
17804         (test_function): Test converting an invalid wide string.
17805
17806         vasnprintf: Correct handling of unconvertible wide string arguments.
17807         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
17808         VASNPRINTF.
17809         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
17810         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
17811         smaller than the expected maximum need for the directive. Set errno to
17812         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
17813         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
17814         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
17815         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
17816         * modules/vasnprintf (Files): Add m4/printf.m4.
17817         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17818
17819 2010-04-10  Bruno Haible  <bruno@clisp.org>
17820
17821         vasnprintf: Fix crash in %ls directive.
17822         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
17823         string is passed as argument to %ls, with no precision and no width.
17824         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17825
17826 2010-04-10  Bruno Haible  <bruno@clisp.org>
17827
17828         vasnprintf: Fix multiple test failures on mingw.
17829         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
17830         _snprintf, or snwprintf, not _snwprintf.
17831
17832 2010-04-10  Bruno Haible  <bruno@clisp.org>
17833
17834         write: Fix a C++ test error on mingw.
17835         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
17836
17837 2010-04-10  Bruno Haible  <bruno@clisp.org>
17838
17839         vasnprintf test: Reduce code duplication.
17840         * tests/test-vasnprintf.c (test_function): New function, extracted from
17841         test_vasnprintf.
17842         (test_vasnprintf, test_asnprintf): Invoke it.
17843
17844 2010-04-10  Bruno Haible  <bruno@clisp.org>
17845
17846         strnlen: Fix warning in C++ mode on MacOS X.
17847         * lib/string.in.h (strnlen): Use the modern idiom.
17848         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
17849         defining strnlen as a macro already in <config.h>.
17850         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17851         REPLACE_STRNLEN.
17852         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
17853         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17854
17855 2010-04-08  James Youngman  <jay@gnu.org>
17856
17857         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
17858         the example.
17859
17860 2010-04-09  Jim Meyering  <meyering@redhat.com>
17861
17862         maint.mk: print better diagnostic when there is no $(_hv_file)
17863         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
17864         announce that when $(_hv_file) (aka help-version) does not exist.
17865
17866         init.sh: run tr in the "C" locale to avoid multibyte interpretation
17867         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
17868         not try to interpret its random input bytes.  Jarno Rajahalme reported
17869         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
17870         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
17871         (mktempd_): Likewise, just in case.
17872
17873         ftruncate: add two years to projected module removal date: 2012
17874         * m4/ftruncate.m4: Adjust comments.
17875
17876         ftruncate: mark module as obsolete; even MinGW provides it, now
17877         * modules/ftruncate (Status): Obsolete.
17878         (Notice): Say that.
17879         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
17880         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
17881
17882 2010-04-08  Bruno Haible  <bruno@clisp.org>
17883
17884         Fix side effects from tests-related modules.
17885         * modules/dprintf-posix (Comment): New section.
17886         * modules/fprintf-posix (Comment): Likewise.
17887         * modules/obstack-printf-posix (Comment): Likewise.
17888         * modules/printf-posix (Comment): Likewise.
17889         * modules/snprintf-posix (Comment): Likewise.
17890         * modules/sprintf-posix (Comment): Likewise.
17891         * modules/vasnprintf-posix (Comment): Likewise.
17892         * modules/vasprintf-posix (Comment): Likewise.
17893         * modules/vdprintf-posix (Comment): Likewise.
17894         * modules/vfprintf-posix (Comment): Likewise.
17895         * modules/vprintf-posix (Comment): Likewise.
17896         * modules/vsnprintf-posix (Comment): Likewise.
17897         * modules/vsprintf-posix (Comment): Likewise.
17898         * modules/xprintf-posix (Comment): Likewise.
17899         * modules/xvasprintf-posix (Comment): Likewise.
17900         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
17901         * modules/floorf-tests (Depends-on): Likewise.
17902         * modules/round-tests (Depends-on): Likewise.
17903         * modules/roundf-tests (Depends-on): Likewise.
17904         * modules/trunc-tests (Depends-on): Likewise.
17905         * modules/truncf-tests (Depends-on): Likewise.
17906         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
17907         'fprintf-posix' module is not present.
17908         * tests/test-floorf2.c (check): Likewise.
17909         * tests/test-trunc2.c (check): Likewise.
17910         * tests/test-truncf2.c (check): Likewise.
17911         * tests/test-round2.c (equal): Likewise.
17912         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17913
17914 2010-04-07  Karl Berry  <karl@gnu.org>
17915
17916         * config/srclist.txt,
17917         * config/srclistvars.sh,
17918         * config/srclist-update: doc fixes.
17919
17920 2010-04-07  Jim Meyering  <meyering@redhat.com>
17921
17922         maint.mk: add a PATH crosschecking syntax-check rule
17923         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
17924         Useful if you use a test like the one in help-version (coreutils,
17925         diffutils, grep, gzip) that ensures $(VERSION) matches what is
17926         printed by prog --version.
17927
17928 2010-04-06  Bruno Haible  <bruno@clisp.org>
17929
17930         Fix link error on mingw.
17931         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
17932         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
17933
17934 2010-04-06  Bruno Haible  <bruno@clisp.org>
17935
17936         Assume rmdir exists.
17937         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
17938
17939 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
17940
17941         doc: update users.txt
17942         * users.txt: Add gcal.
17943
17944 2010-04-06  Jim Meyering  <meyering@redhat.com>
17945
17946         init.sh: simply unset TMPDIR rather than risking env -i
17947         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
17948         although it probably works fine on all Unix-based systems, some
17949         systems (Cygwin?) cannot tolerate a totally cleared environment.
17950         Suggestion from Eric Blake.
17951
17952 2010-04-06  Jim Meyering  <meyering@redhat.com>
17953
17954         init.sh: portability fix: use env's POSIX-specified -i option not -u
17955         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
17956         than unportable env -u.  Solaris 5.11's env lacks support for -u.
17957
17958 2010-04-05  Bruno Haible  <bruno@clisp.org>
17959
17960         btowc: Work around Cygwin 1.7.2 bug.
17961         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
17962         does not map NUL to 0.
17963         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
17964
17965 2010-04-05  Bruno Haible  <bruno@clisp.org>
17966
17967         Make the multithread modules work on Cygwin 1.7.2.
17968         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
17969         imported symbols can be declared weak, so that it returns "no" on
17970         Cygwin 1.7.2.
17971
17972 2010-04-05  Bruno Haible  <bruno@clisp.org>
17973
17974         Use the module 'strncat'.
17975         * modules/unistr/u8-strncat (Depends-on): Add strncat.
17976
17977         Tests for module 'strncat'.
17978         * modules/strncat-tests: New file.
17979         * tests/test-strncat.c: New file.
17980
17981         New module 'strncat'.
17982         * lib/string.in.h (strncat): New declaration.
17983         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
17984         * m4/strncat.m4: New file, based on m4/memchr.m4.
17985         * modules/strncat: New file.
17986         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
17987         is declared.
17988         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
17989         REPLACE_STRNCAT.
17990         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
17991         REPLACE_STRNCAT.
17992         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
17993         module.
17994         * tests/test-string-c++.cc: Check signature of strncat.
17995
17996 2010-04-05  Jim Meyering  <meyering@redhat.com>
17997
17998         xstrtoumax-tests: convert to use init.sh
17999         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
18000         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18001         Use Exit, not exit.
18002         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18003
18004         xstrtoimax-tests: convert to use init.sh
18005         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
18006         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18007         Use Exit, not exit.
18008         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18009
18010 2010-04-05  Bruno Haible  <bruno@clisp.org>
18011
18012         sys_socket: Avoid #define replacements in C++ mode.
18013         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
18014         warning to the function if possible, rather than #defining the symbol
18015         to a dysfunctional alias.
18016
18017 2010-04-05  Bruno Haible  <bruno@clisp.org>
18018
18019         fseeko: Fix C++ test error on mingw.
18020         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
18021         gl_FUNC_FSEEKO.
18022         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
18023         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
18024         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
18025         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
18026
18027 2010-04-05  Bruno Haible  <bruno@clisp.org>
18028
18029         duplocale: Improve test output.
18030         * tests/test-duplocale.c (main): Print reason for skipped test.
18031
18032 2010-04-05  Bruno Haible  <bruno@clisp.org>
18033
18034         Assume rmdir exists.
18035         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
18036         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
18037
18038 2010-04-05  Bruno Haible  <bruno@clisp.org>
18039
18040         Fix link error on Solaris 8 with cc.
18041         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
18042
18043 2010-04-05  Bruno Haible  <bruno@clisp.org>
18044
18045         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
18046         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
18047
18048 2010-04-05  Bruno Haible  <bruno@clisp.org>
18049
18050         vasprintf: Update documentation.
18051         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
18052
18053 2010-04-05  Bruno Haible  <bruno@clisp.org>
18054
18055         ptsname: Improve test.
18056         * tests/test-ptsname.c (main): Also try the various master names of BSD
18057         systems.
18058
18059 2010-04-05  Bruno Haible  <bruno@clisp.org>
18060
18061         memchr: Avoid a possible C++ test error.
18062         * lib/string.in.h (memchr): Provide declaration if function is missing.
18063         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
18064         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
18065         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
18066         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
18067
18068 2010-04-05  Bruno Haible  <bruno@clisp.org>
18069
18070         strtok_r: Improve idiom.
18071         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
18072         AC_LIBOBJ is used.
18073
18074 2010-04-05  Bruno Haible  <bruno@clisp.org>
18075
18076         strdup: Improve idiom.
18077         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
18078         AC_LIBOBJ is used.
18079         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
18080         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
18081         when AC_LIBOBJ is used.
18082
18083 2010-04-05  Bruno Haible  <bruno@clisp.org>
18084
18085         mbsinit, mbrtowc, wcrtomb: Improve idioms.
18086         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
18087         don't set REPLACE_MBSINIT to 1.
18088         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
18089         don't set REPLACE_MBRTOWC to 1.
18090         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
18091         exist, don't set REPLACE_MBSRTOWCS to 1.
18092         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
18093         exist, don't set REPLACE_MBSNRTOWCS to 1.
18094         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
18095         don't set REPLACE_WCRTOMB to 1.
18096         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
18097         exist, don't set REPLACE_WCSRTOMBS to 1.
18098         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
18099         exist, don't set REPLACE_WCSNRTOMBS to 1.
18100
18101 2010-04-05  Bruno Haible  <bruno@clisp.org>
18102
18103         ldexpl: Improve idiom.
18104         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
18105         make sure to set HAVE_DECL_LDEXPL to 0.
18106
18107 2010-04-05  Jim Meyering  <meyering@redhat.com>
18108
18109         xstrtol-tests: convert to use init.sh
18110         * modules/xstrtol-tests (Files): Add tests/init.sh.
18111         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18112         Use Exit, not exit.
18113         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18114
18115         atexit-tests: convert to use init.sh
18116         * modules/atexit-tests (Files): Add tests/init.sh.
18117         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
18118         Use Exit, not exit.
18119         Remove uses of $EXEEXT and "./" to run a program in the current dir.
18120
18121         init.sh: fix typo
18122         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
18123
18124         init.sh: make it easier for a test script to write to the tty, ...
18125         when using automake's parallel-tests mode.
18126         * tests/init.sh (stderr_fileno_): Define overridable variable.
18127         (warn_): New function, to use it.
18128         (fail_, skip_, framework_failure_): Use warn_.
18129
18130 2010-04-04  Bruno Haible  <bruno@clisp.org>
18131
18132         btowc: Avoid warning.
18133         * lib/btowc.c: Include <stdlib.h>.
18134         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
18135
18136 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
18137             Bruno Haible  <bruno@clisp.org>
18138
18139         wchar: Port to NetBSD 1.5.
18140         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
18141         * lib/wctype.in.h (WEOF): Likewise.
18142
18143 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
18144             Bruno Haible  <bruno@clisp.org>
18145
18146         Port extended stdio to NetBSD 1.5.
18147         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
18148         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
18149         older.
18150
18151 2010-04-04  Bruno Haible  <bruno@clisp.org>
18152
18153         string: Remove unused substitution.
18154         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
18155         HAVE_DECL_STRERROR.
18156         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
18157
18158 2010-04-04  Bruno Haible  <bruno@clisp.org>
18159
18160         strtod: Avoid a possible C++ test error.
18161         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
18162         set REPLACE_STRTOD.
18163
18164 2010-04-04  Bruno Haible  <bruno@clisp.org>
18165
18166         strerror: Update documentation.
18167         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
18168
18169 2010-04-04  Bruno Haible  <bruno@clisp.org>
18170
18171         stdio: Fix some C++ test errors on Solaris 8 with GCC.
18172         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
18173         _GL_CXXALIAS_SYS_CAST.
18174
18175 2010-04-04  Bruno Haible  <bruno@clisp.org>
18176
18177         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
18178         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
18179         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
18180         REPLACE_FREXPL to 1.
18181         * doc/posix-functions/frexpl.texi: Update documentation.
18182
18183 2010-04-04  Bruno Haible  <bruno@clisp.org>
18184
18185         math: Fix some C++ test errors on Solaris 8 and Cygwin.
18186         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
18187
18188 2010-04-04  Bruno Haible  <bruno@clisp.org>
18189
18190         Implement nanosleep for native Windows.
18191         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
18192
18193 2010-04-04  Bruno Haible  <bruno@clisp.org>
18194
18195         math: Fix some C++ test errors on Solaris 8.
18196         * lib/math.in.h (truncf, trunc): Use simpler idiom.
18197
18198 2010-04-04  Bruno Haible  <bruno@clisp.org>
18199
18200         math: Fix some C++ test errors on Cygwin.
18201         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
18202         truncl): Provide declaration if the system does not have it.
18203         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
18204         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
18205         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
18206         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
18207         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
18208         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
18209         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
18210         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
18211         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
18212         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
18213         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
18214         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
18215         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
18216         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
18217         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
18218         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
18219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
18220         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
18221         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
18222         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
18223         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
18224         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
18225
18226 2010-04-04  Bruno Haible  <bruno@clisp.org>
18227
18228         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
18229         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
18230         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
18231         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
18232         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
18233         * m4/isinf.m4 (gl_ISINF): Likewise.
18234         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18235
18236 2010-04-04  Bruno Haible  <bruno@clisp.org>
18237
18238         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
18239         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
18240
18241 2010-04-04  Bruno Haible  <bruno@clisp.org>
18242
18243         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
18244         * modules/tmpfile (configure.ac): Update.
18245
18246         tmpfile: Fix C++ test error on mingw.
18247         * lib/stdio.in.h (tmpfile): New declaration.
18248         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
18249         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
18250         * modules/tmpfile (Depends-on): Add stdio.
18251         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18252         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
18253         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
18254         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
18255         REPLACE_TMPFILE.
18256         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
18257
18258 2010-04-04  Bruno Haible  <bruno@clisp.org>
18259
18260         ioctl: Fix C++ test error on mingw.
18261         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
18262         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
18263         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
18264
18265 2010-04-03  Bruno Haible  <bruno@clisp.org>
18266
18267         wcwidth: Fix C++ test error on mingw.
18268         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
18269         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
18270         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
18271
18272 2010-04-03  Bruno Haible  <bruno@clisp.org>
18273
18274         nanosleep: Fix C++ test error on mingw.
18275         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
18276         * lib/time.in.h (nanosleep): Use modern idiom.
18277         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
18278         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
18279         REPLACE_NANOSLEEP to 1.
18280         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
18281         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
18282
18283 2010-04-03  Bruno Haible  <bruno@clisp.org>
18284
18285         strptime: Fix C++ test error on mingw.
18286         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
18287         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
18288         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
18289         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
18290         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
18291         not REPLACE_STRPTIME.
18292         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
18293         REPLACE_STRPTIME.
18294
18295 2010-04-03  Bruno Haible  <bruno@clisp.org>
18296
18297         timegm: Fix C++ test error on mingw.
18298         * lib/time.in.h (timegm): Use modern idiom.
18299         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
18300         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
18301         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
18302         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
18303
18304 2010-04-03  Bruno Haible  <bruno@clisp.org>
18305
18306         timegm: Assume declaration if function exists.
18307         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
18308         if it exists. Don't clobber ac_cv_func_timegm.
18309
18310 2010-04-03  Bruno Haible  <bruno@clisp.org>
18311
18312         time_r: Fix C++ test error on mingw.
18313         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
18314         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
18315         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
18316         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
18317         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
18318
18319 2010-04-03  Bruno Haible  <bruno@clisp.org>
18320
18321         time_r: Minor updates.
18322         * modules/time_r (Description): Mention the provided functions.
18323         * lib/time_r.c: Don't include <string.h>.
18324         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
18325         * doc/posix-functions/localtime_r.texi: Likewise.
18326
18327 2010-04-03  Bruno Haible  <bruno@clisp.org>
18328
18329         time: Fix regression introduced on 2010-03-08.
18330         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
18331         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
18332
18333 2010-04-03  Jim Meyering  <meyering@redhat.com>
18334
18335         maint.mk: don't silently disable project-specific syntax-check rules
18336         * top/maint.mk (_prohibit_regexp): Define, to help people realize
18337         that they need to convert their project-specific syntax-check rules
18338         to use the new _sc_search_regexp.
18339
18340 2010-04-03  Bruno Haible  <bruno@clisp.org>
18341
18342         fchdir: Fix regression introduced on 2010-03-08.
18343         * lib/unistd.in.h (fchdir): Fix declaration.
18344         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
18345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
18346         REPLACE_FCHDIR.
18347         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
18348         REPLACE_FCHDIR.
18349
18350 2010-04-03  Bruno Haible  <bruno@clisp.org>
18351
18352         getpagesize: Fix C++ test error on mingw.
18353         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
18354         system does not declare the function.
18355         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
18356         declared.
18357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18358         HAVE_DECL_GETPAGESIZE.
18359         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
18360
18361 2010-04-03  Bruno Haible  <bruno@clisp.org>
18362
18363         stdio: Make C++ tests work on mingw.
18364         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
18365         does not declare the function.
18366
18367 2010-04-03  Bruno Haible  <bruno@clisp.org>
18368
18369         ftello: Fix C++ test error on mingw.
18370         * lib/stdio.in.h (ftello): Use modern idiom.
18371         * lib/ftello.c (ftello): Renamed from rpl_ftello.
18372         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
18373         is missing and that it needs to be replaced.
18374         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
18375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
18376         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
18377
18378 2010-04-03  Bruno Haible  <bruno@clisp.org>
18379
18380         fseeko: Fix C++ test error on mingw.
18381         * lib/stdio.in.h (fseeko): Use modern idiom.
18382         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
18383         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
18384         is missing and that it needs to be replaced.
18385         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
18386         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
18387         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
18388
18389 2010-04-03  Bruno Haible  <bruno@clisp.org>
18390
18391         mkstemp: Fix C++ test error on mingw.
18392         * lib/stdlib.in.h (mkstemp): Use modern idiom.
18393         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
18394         function is missing and that it needs to be replaced.
18395         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
18396         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
18397
18398 2010-04-03  Bruno Haible  <bruno@clisp.org>
18399
18400         stpncpy: Fix C++ test error on mingw.
18401         * lib/string.in.h (stpncpy): Use modern idiom.
18402         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
18403         function is missing and that it needs to be replaced.
18404         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18405         REPLACE_STPNCPY.
18406         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
18407
18408 2010-04-03  Bruno Haible  <bruno@clisp.org>
18409
18410         sys_stat: Fix C++ test error on mingw.
18411         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
18412         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
18413
18414 2010-04-03  Bruno Haible  <bruno@clisp.org>
18415
18416         pty: Update doc.
18417         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
18418
18419 2010-04-03  Bruno Haible  <bruno@clisp.org>
18420
18421         unistd: Fix C++ test error on mingw.
18422         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
18423
18424 2010-04-03  Bruno Haible  <bruno@clisp.org>
18425
18426         Update doc regarding mingw.
18427         * doc/glibc-functions/openpty.texi: Update regarding mingw.
18428         * doc/glibc-functions/login_tty.texi: Likewise.
18429         * doc/glibc-functions/forkpty.texi: Likewise.
18430
18431 2010-04-03  Bruno Haible  <bruno@clisp.org>
18432
18433         stdlib: Avoid compilation failure of c-strtold on mingw.
18434         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
18435
18436 2010-04-03  Bruno Haible  <bruno@clisp.org>
18437
18438         locale: Make C++ tests work on Cygwin and mingw.
18439         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
18440         cannot provide the function.
18441         Reported by Simon Josefsson.
18442
18443 2010-04-03  Bruno Haible  <bruno@clisp.org>
18444
18445         localename: Port to MacOS X 10.6.
18446         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
18447         memory layout of the locales in MacOS X 10.6 as well.
18448         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
18449
18450 2010-04-02  Bruno Haible  <bruno@clisp.org>
18451
18452         gnulib-tool: Ensure that long-running tests are executed last.
18453         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
18454         running tests after the one for the other tests.
18455
18456 2010-04-02  Bruno Haible  <bruno@clisp.org>
18457
18458         gnulib-tool: Ensure the tests in the main directory are executed first.
18459         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
18460         start with the current directory.
18461
18462 2010-04-02  Bruno Haible  <bruno@clisp.org>
18463
18464         Tests for module 'havelib', moved here from GNU gettext.
18465         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
18466         modifications.
18467         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
18468         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
18469         with modifications.
18470         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
18471         modifications.
18472         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
18473         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
18474         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
18475         with modifications.
18476         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
18477         with modifications.
18478         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
18479         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
18480         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
18481         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
18482         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
18483         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
18484         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
18485         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
18486         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
18487         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
18488         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
18489         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
18490         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
18491         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
18492         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
18493         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
18494         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
18495         with modifications.
18496         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
18497         with modifications.
18498         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
18499         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
18500         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
18501         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
18502         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
18503         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
18504         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
18505         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
18506         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
18507         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
18508         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
18509         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
18510         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
18511         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
18512         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
18513         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
18514         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
18515         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
18516         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
18517         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
18518         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
18519         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
18520         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
18521         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
18522         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
18523         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
18524         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
18525         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
18526         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
18527         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
18528         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
18529         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
18530         * tests/havelib/rpathx/rpathx.c: New file, from
18531         gettext/autoconf-lib-link.
18532         * tests/havelib/rpathx/Makefile.am: New file, from
18533         gettext/autoconf-lib-link.
18534         * tests/havelib/rpathx/configure.ac: New file, from
18535         gettext/autoconf-lib-link with modifications.
18536         * tests/havelib/rpathy/rpathy.c: New file, from
18537         gettext/autoconf-lib-link.
18538         * tests/havelib/rpathy/Makefile.am: New file, from
18539         gettext/autoconf-lib-link.
18540         * tests/havelib/rpathy/configure.ac: New file, from
18541         gettext/autoconf-lib-link with modifications.
18542         * tests/havelib/rpathz/rpathz.c: New file, from
18543         gettext/autoconf-lib-link.
18544         * tests/havelib/rpathz/Makefile.am: New file, from
18545         gettext/autoconf-lib-link.
18546         * tests/havelib/rpathz/configure.ac: New file, from
18547         gettext/autoconf-lib-link with modifications.
18548         * tests/havelib/rpathlx/usex.c: New file, from
18549         gettext/autoconf-lib-link.
18550         * tests/havelib/rpathlx/Makefile.am: New file, from
18551         gettext/autoconf-lib-link.
18552         * tests/havelib/rpathlx/configure.ac: New file, from
18553         gettext/autoconf-lib-link with modifications.
18554         * tests/havelib/rpathly/usey.c: New file, from
18555         gettext/autoconf-lib-link.
18556         * tests/havelib/rpathly/Makefile.am: New file, from
18557         gettext/autoconf-lib-link.
18558         * tests/havelib/rpathly/configure.ac: New file, from
18559         gettext/autoconf-lib-link with modifications.
18560         * tests/havelib/rpathlz/usez.c: New file, from
18561         gettext/autoconf-lib-link.
18562         * tests/havelib/rpathlz/Makefile.am: New file, from
18563         gettext/autoconf-lib-link.
18564         * tests/havelib/rpathlz/configure.ac: New file, from
18565         gettext/autoconf-lib-link with modifications.
18566         * tests/havelib/rpathlyx/usey.c: New file, from
18567         gettext/autoconf-lib-link.
18568         * tests/havelib/rpathlyx/Makefile.am: New file, from
18569         gettext/autoconf-lib-link.
18570         * tests/havelib/rpathlyx/configure.ac: New file, from
18571         gettext/autoconf-lib-link with modifications.
18572         * tests/havelib/rpathlzyx/usez.c: New file, from
18573         gettext/autoconf-lib-link.
18574         * tests/havelib/rpathlzyx/Makefile.am: New file, from
18575         gettext/autoconf-lib-link.
18576         * tests/havelib/rpathlzyx/configure.ac: New file, from
18577         gettext/autoconf-lib-link with modifications.
18578         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
18579         with modifications.
18580
18581 2010-04-02  Bruno Haible  <bruno@clisp.org>
18582
18583         gnulib-tool: Create distributed built sources also for the tests.
18584         * gnulib-tool (func_create_testdir): Also generate distributed built
18585         sources in the tests directory.
18586
18587 2010-04-02  Bruno Haible  <bruno@clisp.org>
18588
18589         gnulib-tool: Obey user's environment variables.
18590         * gnulib-tool (func_create_testdir): When creating built sources,
18591         respect the environment variables for autoconf, automake, etc. given by
18592         the user.
18593
18594 2010-04-02  Bruno Haible  <bruno@clisp.org>
18595
18596         gnulib-tool: Provide the value of --m4-base to modules.
18597         * gnulib-tool (func_import, func_create_testdir): Emit a definition
18598         of gl_m4_base.
18599
18600 2010-04-02  Eric Blake  <eblake@redhat.com>
18601
18602         maint.mk: fix some fallout
18603         * NEWS: Document the incompatible change, and its effect on cfg.mk.
18604         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
18605
18606 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
18607
18608         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
18609         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
18610         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
18611         (sc_cast_of_x_alloc_return_value): Likewise.
18612         (sc_cast_of_alloca_return_value): Likewise.
18613         (sc_space_tab): Likewise.
18614         (sc_prohibit_atoi_atof): Likewise.
18615         (sc_prohibit_magic_number_exit): Likewise.
18616         (sc_error_exit_success): Likewise.
18617         (sc_file_system): Likewise.
18618         (sc_prohibit_have_config_h): Likewise.
18619         (sc_require_config_h): Likewise.
18620         (sc_prohibit_HAVE_MBRTOWC): Likewise.
18621         (sc_obsolete_symbols): Likewise.
18622         (sc_changelog): Likewise.
18623         (sc_program_name): Likewise.
18624         (sc_the_the): Likewise.
18625         (sc_trailing_blank): Likewise.
18626         (sc_two_space_separator_in_usage): Likewise.
18627         (sc_useless_cpp_parens): Likewise.
18628         (sc_GPL_version): Likewise.
18629         (sc_GFDL_version): Likewise.
18630         (sc_texinfo_acronym): Likewise.
18631         (sc_prohibit_cvs_keyword): Likewise.
18632         (sc_prohibit_stat_st_blocks): Likewise.
18633         (sc_prohibit_S_IS_definition): Likewise.
18634         (sc_redundant_const): Likewise.
18635         (sc_makefile_TAB_only_indentation): Likewise.
18636         (sc_m4_quote_check): Likewise.
18637         (sc_makefile_path_separator_check): Likewise.
18638         (sc_copyright_check): Likewise.
18639         (sc_Wundef_boolean): Likewise.
18640         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
18641
18642         maint.mk: match 0 or more whitespace-before-function-call '('
18643         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
18644         that have zero or two-and-more spaces between the function name
18645         and the open parenthesis.
18646         (sc_error_message_warn_fatal): Likewise.
18647         (sc_error_message_uppercase): Likewise.
18648         (sc_error_message_period): Likewise.
18649
18650 2010-03-31  Eric Blake  <eblake@redhat.com>
18651
18652         maint.mk: check for [ as well as test
18653         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
18654         Based on a libvirt report by Matthias Bolte.
18655
18656         gnumakefile: don't squelch _version output
18657         * top/GNUmakefile (_version): Create one-shot dependency rather
18658         than using $(shell) when version must be regenerated.
18659         (_autoreconf): Run verbosely, by default.
18660
18661         sys_time: avoid compiler warnings
18662         * lib/sys_time.in.h (includes): Ensure gcc pragma is
18663         unconditional, fixing regression from 2010-03-29.
18664         Reported by Simon Josefsson.
18665
18666 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
18667
18668         maint.mk: s/_header_without_use/_sc_header_without_use/
18669         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
18670         (sc_prohibit_assert_without_use): Use the new name.
18671         (sc_prohibit_close_stream_without_use): Likewise.
18672         (sc_prohibit_getopt_without_use): Likewise.
18673         (sc_prohibit_quotearg_without_use): Likewise.
18674         (sc_prohibit_quote_without_use): Likewise.
18675         (sc_prohibit_long_options_without_use): Likewise.
18676         (sc_prohibit_inttostr_without_use): Likewise.
18677         (sc_prohibit_ignore_value_without_use): Likewise.
18678         (sc_prohibit_error_without_use): Likewise.
18679         (sc_prohibit_xalloc_without_use): Likewise.
18680         (sc_prohibit_hash_without_use): Likewise.
18681         (sc_prohibit_hash_pjw_without_use): Likewise.
18682         (sc_prohibit_safe_read_without_use): Likewise.
18683         (sc_prohibit_argmatch_without_use): Likewise.
18684         (sc_prohibit_canonicalize_without_use): Likewise.
18685         (sc_prohibit_root_dev_ino_without_use): Likewise.
18686         (sc_prohibit_openat_without_use): Likewise.
18687         (sc_prohibit_c_ctype_without_use): Likewise.
18688         (sc_prohibit_signal_without_use): Likewise.
18689         (sc_prohibit_intprops_without_use): Likewise.
18690
18691 2010-03-30  Eric Blake  <eblake@redhat.com>
18692
18693         maint: improve module indicators
18694         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
18695         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
18696         columns, and avoid extra macro expansion.
18697
18698         fdopendir: work around FreeBSD bug
18699         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
18700         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
18701         * modules/dirent (Makefile.am): Substitute it.
18702         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
18703         declaration.
18704         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
18705         fix.
18706         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18707
18708 2010-03-29  Bruno Haible  <bruno@clisp.org>
18709
18710         Emit #pragma system_header after the inclusion guard, not before.
18711         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
18712         guard that spans the entire file, not before. This enables an
18713         optimization in GCC's preprocessor.
18714         * lib/ctype.in.h: Likewise.
18715         * lib/dirent.in.h: Likewise.
18716         * lib/errno.in.h: Likewise.
18717         * lib/float.in.h: Likewise.
18718         * lib/getopt.in.h: Likewise.
18719         * lib/iconv.in.h: Likewise.
18720         * lib/langinfo.in.h: Likewise.
18721         * lib/locale.in.h: Likewise.
18722         * lib/math.in.h: Likewise.
18723         * lib/netdb.in.h: Likewise.
18724         * lib/netinet_in.in.h: Likewise.
18725         * lib/pty.in.h: Likewise.
18726         * lib/sched.in.h: Likewise.
18727         * lib/se-selinux.in.h: Likewise.
18728         * lib/search.in.h: Likewise.
18729         * lib/spawn.in.h: Likewise.
18730         * lib/stdarg.in.h: Likewise.
18731         * lib/stdint.in.h: Likewise.
18732         * lib/string.in.h: Likewise.
18733         * lib/strings.in.h: Likewise.
18734         * lib/sys_file.in.h: Likewise.
18735         * lib/sys_ioctl.in.h: Likewise.
18736         * lib/sys_time.in.h: Likewise.
18737         * lib/sys_times.in.h: Likewise.
18738         * lib/sys_utsname.in.h: Likewise.
18739         * lib/sys_wait.in.h: Likewise.
18740         * lib/sysexits.in.h: Likewise.
18741         * lib/wctype.in.h: Likewise.
18742
18743 2010-03-28  James Youngman  <jay@gnu.org>
18744
18745         save-cwd: don't leak a file descriptor when the caller execs.
18746         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
18747         saved file descriptor.
18748         * modules/save-cwd (Depends-on): Depend on cloexec.
18749
18750 2010-03-29  Bruno Haible  <bruno@clisp.org>
18751
18752         Remove vestiges of fts-lgpl module.
18753         * lib/fts_.h: Assume GNULIB_FTS is 1.
18754         * lib/fts.c: Likewise.
18755         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
18756
18757 2010-03-28  Bruno Haible  <bruno@clisp.org>
18758
18759         Fix definition of tests witness macro.
18760         * gnulib-tool (func_import): Fix definition of witness macro.
18761
18762 2010-03-28  Bruno Haible  <bruno@clisp.org>
18763
18764         Fix ioctl's protoype on glibc systems.
18765         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
18766         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
18767         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
18768         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
18769         signature. If not, arrange to replace the ioctl function.
18770         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
18771         REPLACE_IOCTL.
18772         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
18773         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
18774         Reported by Ludovic Courtès <ludo@gnu.org>.
18775
18776 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
18777
18778         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
18779         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
18780         made it so grep -r --include=GLOB* ... did not work.
18781
18782 2010-03-26  Jim Meyering  <meyering@redhat.com>
18783             Eric Blake  <eblake@redhat.com>
18784
18785         maint.mk: prohibit use of test's -o and -a operators
18786         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
18787
18788 2010-03-28  Bruno Haible  <bruno@clisp.org>
18789
18790         Remove unused GNULIB_XYZ macro definitions.
18791         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
18792         invocation.
18793
18794 2010-03-28  Bruno Haible  <bruno@clisp.org>
18795
18796         Mark privileged tests modules.
18797         * modules/idpriv-drop-tests (Status): New section.
18798         * modules/idpriv-droptemp-tests (Status): New section.
18799
18800 2010-03-28  Bruno Haible  <bruno@clisp.org>
18801
18802         Split C++ tests into separate tests modules.
18803         * modules/dirent-c++-tests: New file, extracted from
18804         modules/dirent-tests.
18805         * modules/dirent-tests: Depend on it.
18806         * modules/fcntl-h-c++-tests: New file, extracted from
18807         modules/fcntl-h-tests.
18808         * modules/fcntl-h-tests: Depend on it.
18809         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
18810         * modules/glob-tests: Depend on it.
18811         * modules/iconv-h-c++-tests: New file, extracted from
18812         modules/iconv-h-tests.
18813         * modules/iconv-h-tests: Depend on it.
18814         * modules/langinfo-c++-tests: New file, extracted from
18815         modules/langinfo-tests.
18816         * modules/langinfo-tests: Depend on it.
18817         * modules/locale-c++-tests: New file, extracted from
18818         modules/locale-tests.
18819         * modules/locale-tests: Depend on it.
18820         * modules/math-c++-tests: New file, extracted from modules/math-tests.
18821         * modules/math-tests: Depend on it.
18822         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
18823         * modules/pty-tests: Depend on it.
18824         * modules/search-c++-tests: New file, extracted from
18825         modules/search-tests.
18826         * modules/search-tests: Depend on it.
18827         * modules/signal-c++-tests: New file, extracted from
18828         modules/signal-tests.
18829         * modules/signal-tests: Depend on it.
18830         * modules/spawn-c++-tests: New file, extracted from
18831         modules/spawn-tests.
18832         * modules/spawn-tests: Depend on it.
18833         * modules/stdio-c++-tests: New file, extracted from
18834         modules/stdio-tests.
18835         * modules/stdio-tests: Depend on it.
18836         * modules/stdlib-c++-tests: New file, extracted from
18837         modules/stdlib-tests.
18838         * modules/stdlib-tests: Depend on it.
18839         * modules/string-c++-tests: New file, extracted from
18840         modules/string-tests.
18841         * modules/string-tests: Depend on it.
18842         * modules/sys_ioctl-c++-tests: New file, extracted from
18843         modules/sys_ioctl-tests.
18844         * modules/sys_ioctl-tests: Depend on it.
18845         * modules/sys_select-c++-tests: New file, extracted from
18846         modules/sys_select-tests.
18847         * modules/sys_select-tests: Depend on it.
18848         * modules/sys_socket-c++-tests: New file, extracted from
18849         modules/sys_socket-tests.
18850         * modules/sys_socket-tests: Depend on it.
18851         * modules/sys_stat-c++-tests: New file, extracted from
18852         modules/sys_stat-tests.
18853         * modules/sys_stat-tests: Depend on it.
18854         * modules/sys_time-c++-tests: New file, extracted from
18855         modules/sys_time-tests.
18856         * modules/sys_time-tests: Depend on it.
18857         * modules/time-c++-tests: New file, extracted from modules/time-tests.
18858         * modules/time-tests: Depend on it.
18859         * modules/unistd-c++-tests: New file, extracted from
18860         modules/unistd-tests.
18861         * modules/unistd-tests: Depend on it.
18862         * modules/wchar-c++-tests: New file, extracted from
18863         modules/wchar-tests.
18864         * modules/wchar-tests: Depend on it.
18865         * modules/wctype-c++-tests: New file, extracted from
18866         modules/wctype-tests.
18867         * modules/wctype-tests: Depend on it.
18868         Reported by Simon Josefsson.
18869
18870 2010-03-28  Bruno Haible  <bruno@clisp.org>
18871
18872         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
18873         * gnulib-tool (func_exists_module): New function, extracted from
18874         func_verify_module.
18875         (func_verify_module): Use it.
18876         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
18877         'foo' only if 'foo' exists.
18878         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
18879         module.
18880
18881 2010-03-28  Bruno Haible  <bruno@clisp.org>
18882
18883         gnulib-tool: Add support for special categories of tests.
18884         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
18885         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
18886         (func_usage): Document them.
18887         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
18888         inc_unportable_tests, inc_all_tests): New variables.
18889         (func_acceptable): Consider these variables.
18890         (func_modules_transitive_closure): Make it work when the 'Status' field
18891         consists of multiple words.
18892         (func_import): Store and restore the values of inc_cxx_tests,
18893         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
18894         inc_all_tests in gnulib-comp.m4.
18895         (func_create_testdir): Set inc_all_tests to true.
18896         * doc/gnulib.texi (Extra tests modules): New section.
18897         Suggested by Jim Meyering.
18898
18899 2010-03-28  Bruno Haible  <bruno@clisp.org>
18900
18901         ansi-c++-opt: Allow turning off the C++ build by default.
18902         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
18903         gl_CXX_CHOICE_DEFAULT_NO is defined.
18904         Requested by Eric Blake.
18905
18906 2010-03-28  Bruno Haible  <bruno@clisp.org>
18907
18908         unistd: Avoid #define replacements in C++ mode.
18909         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
18910         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
18911         setsockopt, shutdown, select): In C++, attach a warning to the function
18912         if possible, rather than #defining the symbol to a dysfunctional alias.
18913         Reported by John W. Eaton <jwe@gnu.org>.
18914
18915 2010-03-28  Bruno Haible  <bruno@clisp.org>
18916
18917         Fix link errors on mingw.
18918         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
18919         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
18920         $(LIBSOCKET).
18921         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
18922         $(LIBSOCKET).
18923
18924 2010-03-28  Bruno Haible  <bruno@clisp.org>
18925             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18926
18927         lib-ignore: Determine different options for different compilers.
18928         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
18929         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
18930         Add comments.
18931         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
18932         * NEWS: Mention the change.
18933
18934 2010-03-27  Bruno Haible  <bruno@clisp.org>
18935
18936         Remove unused GNULIB_XYZ macro definitions.
18937         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
18938         * modules/fseek (configure.ac): Likewise.
18939         * modules/ioctl (configure.ac): Likewise.
18940         * modules/open (configure.ac): Likewise.
18941         * modules/stdlib-safer (configure.ac): Likewise.
18942
18943 2010-03-27  Bruno Haible  <bruno@clisp.org>
18944
18945         Add a remark about certain modules.
18946         * modules/malloc (Comment): New section.
18947         * modules/realloc (Comment): Likewise.
18948         * modules/sigpipe (Comment): Likewise.
18949
18950 2010-03-27  Bruno Haible  <bruno@clisp.org>
18951
18952         Resolve conflict between the two kinds of module indicators.
18953         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
18954         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
18955         * modules/canonicalize (configure.ac): Invoke
18956         gl_MODULE_INDICATOR_FOR_TESTS.
18957         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
18958         GNULIB_XYZ.
18959         * tests/test-dirent-c++.cc: Likewise.
18960         * tests/test-dirent-safer.c: Likewise.
18961         * tests/test-dup2.c: Likewise.
18962         * tests/test-fchdir.c: Likewise.
18963         * tests/test-fcntl-h-c++.cc: Likewise.
18964         * tests/test-getopt.c: Likewise.
18965         * tests/test-getopt.h: Likewise.
18966         * tests/test-langinfo-c++.cc: Likewise.
18967         * tests/test-locale-c++.cc: Likewise.
18968         * tests/test-math-c++.cc: Likewise.
18969         * tests/test-pty-c++.cc: Likewise.
18970         * tests/test-search-c++.cc: Likewise.
18971         * tests/test-signal-c++.cc: Likewise.
18972         * tests/test-spawn-c++.cc: Likewise.
18973         * tests/test-stdio-c++.cc: Likewise.
18974         * tests/test-stdlib-c++.cc: Likewise.
18975         * tests/test-string-c++.cc: Likewise.
18976         * tests/test-sys_ioctl-c++.cc: Likewise.
18977         * tests/test-sys_select-c++.cc: Likewise.
18978         * tests/test-sys_socket-c++.cc: Likewise.
18979         * tests/test-sys_stat-c++.cc: Likewise.
18980         * tests/test-sys_time-c++.cc: Likewise.
18981         * tests/test-time-c++.cc: Likewise.
18982         * tests/test-unistd-c++.cc: Likewise.
18983         * tests/test-wchar-c++.cc: Likewise.
18984         * tests/uninorm/test-u8-nfc.c: Likewise.
18985         * tests/uninorm/test-u8-nfd.c: Likewise.
18986         * tests/uninorm/test-u8-nfkc.c: Likewise.
18987         * tests/uninorm/test-u8-nfkd.c: Likewise.
18988         * tests/uninorm/test-u16-nfc.c: Likewise.
18989         * tests/uninorm/test-u16-nfd.c: Likewise.
18990         * tests/uninorm/test-u16-nfkc.c: Likewise.
18991         * tests/uninorm/test-u16-nfkd.c: Likewise.
18992         * tests/uninorm/test-u32-nfc.c: Likewise.
18993         * tests/uninorm/test-u32-nfc-big.c: Likewise.
18994         * tests/uninorm/test-u32-nfd.c: Likewise.
18995         * tests/uninorm/test-u32-nfd-big.c: Likewise.
18996         * tests/uninorm/test-u32-nfkc.c: Likewise.
18997         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
18998         * tests/uninorm/test-u32-nfkd.c: Likewise.
18999         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
19000         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19001
19002 2010-03-27  Bruno Haible  <bruno@clisp.org>
19003
19004         Distinguish two kinds of module indicators.
19005         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
19006         gl_MODULE_INDICATOR.
19007         (gl_MODULE_INDICATOR): New macro.
19008         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19009         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
19010         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19011         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19012         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19013         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19014         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19015         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19016         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19017         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19018         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19019         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19020         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19021         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19022         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19023         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19024         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19025         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19026         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19027         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19028         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19029         * modules/cloexec (configure.ac): Likewise.
19030         * modules/getopt-gnu (configure.ac): Likewise.
19031         * modules/uninorm/u8-normalize (configure.ac): Likewise.
19032         * modules/uninorm/u16-normalize (configure.ac): Likewise.
19033         * modules/uninorm/u32-normalize (configure.ac): Likewise.
19034         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
19035
19036 2010-03-27  Bruno Haible  <bruno@clisp.org>
19037
19038         New module description field 'Comment'.
19039         * gnulib-tool: New option --extract-comment.
19040         (func_usage): Document it.
19041         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
19042         (func_get_comment): New function.
19043         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
19044
19045 2010-03-27  Bruno Haible  <bruno@clisp.org>
19046
19047         Addendum to 2010-02-07 commit.
19048         * gnulib-tool (func_usage): Document --extract-applicability option.
19049
19050 2010-03-27  Bruno Haible  <bruno@clisp.org>
19051
19052         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
19053         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
19054         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
19055         rather than link errors.
19056
19057 2010-03-27  Bruno Haible  <bruno@clisp.org>
19058
19059         Avoid side effects from tests-related modules on the compilation of lib.
19060         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
19061         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
19062         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
19063         parameter. Emit into AM_CPPFLAGS a definition of the designated C
19064         macro.
19065         (func_import): Define a witness macro. Assign it a value that depends
19066         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
19067         tests-related modules.
19068         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
19069         Reported by Jim Meyering.
19070
19071 2010-03-27  Bruno Haible  <bruno@clisp.org>
19072
19073         Factorize common .m4 code.
19074         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
19075         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
19076         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
19077         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
19078         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
19079         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
19080         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
19081         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
19082         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
19083         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
19084         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
19085         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
19086         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
19087         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
19088         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
19089         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
19090         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
19091         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
19092         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
19093         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
19094         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
19095         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
19096         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
19097         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
19098         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
19099         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
19100         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
19101         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
19102         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
19103         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
19104         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
19105         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
19106
19107 2010-03-27  Bruno Haible  <bruno@clisp.org>
19108
19109         Fix a compilation error on Cygwin with g++ >= 4.3.
19110         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
19111         if it is undefined or if we alias it to chmod.
19112         (lstat): Don't warn about the use of this function if it is undefined
19113         or if we alias it to stat.
19114         Reported by Simon Josefsson.
19115
19116 2010-03-27  Bruno Haible  <bruno@clisp.org>
19117
19118         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
19119         * modules/getlogin (configure.ac): Update.
19120
19121         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
19122         * modules/getlogin_r (configure.ac): Update.
19123
19124         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
19125         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
19126         * modules/inet_ntop (configure.ac): Update.
19127
19128         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
19129         * modules/inet_pton (configure.ac): Update.
19130
19131         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
19132         * modules/mbslen (configure.ac): Update.
19133
19134         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
19135         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
19136         * modules/forkpty (configure.ac): Update.
19137         * modules/openpty (configure.ac): Update.
19138
19139 2010-03-26  Simon Josefsson  <simon@josefsson.org>
19140
19141         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
19142         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
19143
19144 2010-03-25  Eric Blake  <eblake@redhat.com>
19145
19146         maint: use pragma consistently across replacement headers
19147         * lib/ctype.in.h (system_header): Hoist for consistent placement.
19148         * lib/dirent.in.h (system_header): Likewise.
19149         * lib/errno.in.h (system_header): Likewise.
19150         * lib/float.in.h (system_header): Likewise.
19151         * lib/getopt.in.h (system_header): Likewise.
19152         * lib/iconv.in.h (system_header): Likewise.
19153         * lib/inttypes.in.h (system_header): Likewise.
19154         * lib/langinfo.in.h (system_header): Likewise.
19155         * lib/locale.in.h (system_header): Likewise.
19156         * lib/math.in.h (system_header): Likewise.
19157         * lib/netdb.in.h (system_header): Likewise.
19158         * lib/netinet_in.in.h (system_header): Likewise.
19159         * lib/pty.in.h (system_header): Likewise.
19160         * lib/sched.in.h (system_header): Likewise.
19161         * lib/se-selinux.in.h (system_header): Likewise.
19162         * lib/search.in.h (system_header): Likewise.
19163         * lib/spawn.in.h (system_header): Likewise.
19164         * lib/stdarg.in.h (system_header): Likewise.
19165         * lib/stdint.in.h (system_header): Likewise.
19166         * lib/string.in.h (system_header): Likewise.
19167         * lib/strings.in.h (system_header): Likewise.
19168         * lib/sys_file.in.h (system_header): Likewise.
19169         * lib/sys_ioctl.in.h (system_header): Likewise.
19170         * lib/sys_socket.in.h (system_header): Likewise.
19171         * lib/sys_times.in.h (system_header): Likewise.
19172         * lib/sys_utsname.in.h (system_header): Likewise.
19173         * lib/sys_wait.in.h (system_header): Likewise.
19174         * lib/sysexits.in.h (system_header): Likewise.
19175         * lib/unistd.in.h (system_header): Likewise.
19176         * lib/wctype.in.h (system_header): Likewise.
19177
19178         arpa/inet: fix mingw compilation warning
19179         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
19180         Reported by Matthew Bolte.
19181
19182 2010-03-25  Bruno Haible  <bruno@clisp.org>
19183
19184         Avoid collision between gnulib wrapper and libintl wrapper.
19185         * lib/printf.c (printf): Don't define if a printf wrapper is already
19186         defined in intl/printf.c.
19187         Reported by Michel Boaventura <michel@michelboaventura.com>.
19188
19189 2010-03-25  Bruno Haible  <bruno@clisp.org>
19190
19191         Use ANSI C.
19192         * lib/readutmp.h (getutent): Provide ANSI C prototype.
19193
19194 2010-03-25  Bruno Haible  <bruno@clisp.org>
19195
19196         Minor formatting changes.
19197         * lib/acosl.c: Insert space before function argument list.
19198         * lib/argz.c: Likewise.
19199         * lib/asinl.c: Likewise.
19200         * lib/expl.c: Likewise.
19201         * lib/gen-uni-tables.c: Likewise.
19202         * lib/gettext.h: Likewise.
19203         * lib/glthread/lock.h: Likewise.
19204         * lib/tanl.c: Likewise.
19205         * lib/uniname/uniname.c: Likewise.
19206         * tests/test-idpriv-drop.c: Likewise.
19207         * tests/test-idpriv-droptemp.c: Likewise.
19208         * tests/test-lock.c: Likewise.
19209         * tests/test-tls.c: Likewise.
19210         * lib/argp-help.c: Insert space before function-like macro argument
19211         list.
19212         * lib/memcmp.c: Likewise.
19213         * tests/test-base64.c: Likewise.
19214         * lib/localename.c: Insert space before sizeof's argument list.
19215         * lib/safe-alloc.h: Likewise.
19216         * lib/file-set.h: Insert space before macro argument list.
19217         * tests/test-argp.c: Likewise.
19218         * lib/argp-namefrob.h: Insert space before function parameter list.
19219         * lib/getaddrinfo.c: Likewise.
19220         * lib/netdb.in.h: Likewise.
19221         * lib/parse-duration.h: Likewise.
19222         * lib/parse-duration.c: Likewise.
19223         * lib/poll.c: Likewise.
19224         * lib/select.c: Likewise.
19225         * lib/trim.h: Likewise.
19226         * tests/test-usleep.c: Likewise.
19227         * lib/ldexpl.c: Insert space before function parameter list and before
19228         function argument list.
19229         * lib/logl.c: Likewise.
19230         * lib/sqrtl.c: Likewise.
19231         * lib/trim.c: Likewise.
19232         * lib/cosl.c: Use GNU style indentation. Insert space before function
19233         argument list.
19234         * lib/sinl.c: Likewise.
19235         * lib/tsearch.c: Insert space after 'for'.
19236         Reported by Jim Meyering.
19237
19238 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
19239
19240         * maint.mk (sc_Wundef_boolean): Check for the presence of the
19241         config header before grepping, as it's not present before
19242         autoreconf/configure are run.  Reported by Simon Josefsson.
19243
19244 2010-03-23  Bruno Haible  <bruno@clisp.org>
19245
19246         pt_chown: Make it work with automake < 1.11.
19247         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
19248         Reported by Simon Josefsson.
19249
19250 2010-03-23  Bruno Haible  <bruno@clisp.org>
19251
19252         pt_chown: Don't depend on GPLed modules.
19253         * lib/pt_chown.c: Don't include idpriv.h.
19254         (main): Don't drop privileges.
19255         * modules/pt_chown (Depends-on): Remove idpriv-drop.
19256         Reported by Simon Josefsson.
19257
19258 2010-03-24  Simon Josefsson  <simon@josefsson.org>
19259
19260         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
19261         suggestions from karl@freefriends.org (Karl Berry).
19262
19263 2010-03-22  Eric Blake  <eblake@redhat.com>
19264
19265         gethostname: further tweaks
19266         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
19267         are overriding gethostname.
19268         Suggested by Bruno Haible.
19269
19270 2010-03-21  Bruno Haible  <bruno@clisp.org>
19271
19272         Fix comments.
19273         * lib/forkpty.c (rpl_forkpty): Fix comment.
19274         * lib/openpty.c (rpl_openpty): Likewise.
19275         Reported by Eric Blake.
19276
19277 2010-03-22  Eric Blake  <eblake@redhat.com>
19278
19279         gethostname: fix build on mingw
19280         * lib/unistd.in.h (includes): Work around fact that mingw
19281         <winsock2.h> re-includes <unistd.h>, by avoiding any
19282         redeclarations if we are being included by <winsock2.h>.
19283         Reported by Matthias Bolte.
19284
19285 2010-03-21  Bruno Haible  <bruno@clisp.org>
19286
19287         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
19288         * lib/forkpty.c (forkpty): New replacement function, from glibc with
19289         modifications.
19290         * lib/pty.in.h (forkpty): Update declaration. Add comments.
19291         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
19292         provide the replacement.
19293         * modules/forkpty (Depends-on): Add openpty, login_tty.
19294         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
19295         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
19296         * doc/glibc-functions/forkpty.texi: More supported platforms.
19297         * config/srclist.txt: Add forkpty.c (commented).
19298
19299 2010-03-21  Bruno Haible  <bruno@clisp.org>
19300
19301         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
19302         (Makefile.am): Verify that PTY_LIB is defined.
19303
19304         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
19305
19306 2010-03-21  Bruno Haible  <bruno@clisp.org>
19307
19308         Tests for module 'login_tty'.
19309         * modules/login_tty-tests: New file.
19310         * tests/test-login_tty.c: New file.
19311
19312         New module 'login_tty'.
19313         * lib/login_tty.c: New file.
19314         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
19315         * modules/login_tty: New file.
19316         * doc/glibc-functions/login_tty.texi: Mention the new module.
19317
19318 2010-03-21  Bruno Haible  <bruno@clisp.org>
19319
19320         login_tty: Documentation.
19321         * doc/glibc-functions/login_tty.texi: New file.
19322         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
19323
19324 2010-03-21  Bruno Haible  <bruno@clisp.org>
19325
19326         pty: Consistent macro naming.
19327         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
19328         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
19329         * modules/pty (configure.ac): Update.
19330
19331 2010-03-21  Bruno Haible  <bruno@clisp.org>
19332
19333         Tests for openpty: Make stricter.
19334         * tests/test-openpty.c (main): Add test of canonical processing and
19335         erase.
19336         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
19337
19338         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
19339         * lib/openpty.c (openpty): New replacement function.
19340         * lib/pty.in.h: Include <termios.h>.
19341         (openpty): Update declaration. Add comments.
19342         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
19343         is not declared, arrange to provide the replacement. Check for _getpty
19344         and posix_openpt.
19345         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
19346         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
19347         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
19348         * modules/pty-tests (test_pty_c___LDADD): New variable.
19349         * doc/glibc-functions/openpty.texi: More supported platforms.
19350
19351 2010-03-21  Bruno Haible  <bruno@clisp.org>
19352
19353         setenv: Tweaks.
19354         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
19355         the test program.
19356         * doc/posix-functions/setenv.texi: Update platforms list.
19357
19358 2010-03-21  Bruno Haible  <bruno@clisp.org>
19359
19360         New module 'unlockpt'.
19361         * lib/unlockpt.c: New file, from glibc with modifications.
19362         * m4/unlockpt.m4: New file.
19363         * modules/unlockpt: New file.
19364         * lib/stdlib.in.h (unlockpt): New declaration.
19365         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
19366         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
19367         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
19368         HAVE_UNLOCKPT.
19369         * doc/posix-functions/unlockpt.texi: Mention the new module.
19370         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
19371         * config/srclist.txt: Add unlockpt.c (commented).
19372
19373 2010-03-21  Jim Meyering  <meyering@redhat.com>
19374
19375         maint.mk: prohibit inclusion of "intprops.h" without use
19376         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
19377
19378 2010-03-21  Bruno Haible  <bruno@clisp.org>
19379
19380         New module 'grantpt'.
19381         * lib/grantpt.c: New file, from glibc with modifications.
19382         * m4/grantpt.m4: New file.
19383         * modules/grantpt: New file.
19384         * lib/stdlib.in.h (grantpt): New declaration.
19385         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
19386         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
19387         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
19388         HAVE_GRANTPT.
19389         * doc/posix-functions/grantpt.texi: Mention the new module.
19390         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
19391         * config/srclist.txt: Add grantpt.c (commented).
19392
19393 2010-03-21  Bruno Haible  <bruno@clisp.org>
19394
19395         New module 'pt_chown'.
19396         * lib/pt_chown.c: New file, from glibc with modifications.
19397         * lib/pty-private.h: New file, from glibc with modifications.
19398         * modules/pt_chown: New file.
19399         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
19400
19401 2010-03-21  Bruno Haible  <bruno@clisp.org>
19402
19403         Tests for module 'ptsname'.
19404         * modules/ptsname-tests: New file.
19405         * tests/test-ptsname.c: New file.
19406
19407         New module 'ptsname'.
19408         * lib/ptsname.c: New file, from glibc with modifications.
19409         * m4/ptsname.m4: New file.
19410         * modules/ptsname: New file.
19411         * lib/stdlib.in.h (ptsname): New declaration.
19412         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
19413         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
19414         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
19415         HAVE_PTSNAME.
19416         * doc/posix-functions/ptsname.texi: Mention the new module.
19417         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
19418         * config/srclist.txt: Add ptsname.c (commented).
19419
19420 2010-03-21  Bruno Haible  <bruno@clisp.org>
19421
19422         Tests for module 'ttyname_r'.
19423         * modules/ttyname_r-tests: New file.
19424         * tests/test-ttyname_r.c: New file.
19425
19426         New module 'ttyname_r'.
19427         * lib/ttyname_r.c: New file.
19428         * m4/ttyname_r.m4: New file.
19429         * modules/ttyname_r: New file.
19430         * lib/unistd.in.h (ttyname_r): New declaration.
19431         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
19432         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
19433         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
19434         HAVE_TTYNAME_R.
19435         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
19436         * doc/posix-functions/ttyname_r.texi: Mention the new module.
19437
19438 2010-03-20  Bruno Haible  <bruno@clisp.org>
19439
19440         signal: Undefine macro definitions in C++ mode.
19441         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
19442         sigfillset): Undefine macro definitions from the system header in C++
19443         mode.
19444         Reported by John W. Eaton <jwe@gnu.org>.
19445
19446 2010-03-20  Bruno Haible  <bruno@clisp.org>
19447
19448         Ensure no #include statements inside extern "C" { ... }.
19449         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
19450         contain #include statements.
19451         * lib/time.in.h: Likewise.
19452
19453 2010-03-20  Bruno Haible  <bruno@clisp.org>
19454
19455         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
19456         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
19457         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
19458         Reported by John W. Eaton <jwe@gnu.org>.
19459
19460 2010-03-20  Bruno Haible  <bruno@clisp.org>
19461
19462         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
19463         Reported by Jim Meyering.
19464
19465 2010-03-20  Bruno Haible  <bruno@clisp.org>
19466
19467         pipe: Set errno upon failure.
19468         * lib/pipe.h: Specify that when -1 is returned, errno is set.
19469         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
19470         errno value in error message.
19471
19472 2010-03-20  Bruno Haible  <bruno@clisp.org>
19473             Jim Meyering  <meyering@redhat.com>
19474
19475         lchown: Avoid "unused variable" warning.
19476         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
19477
19478 2010-03-20  Bruno Haible  <bruno@clisp.org>
19479
19480         Work around unlink() bug on MacOS X 10.5.6.
19481         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
19482         attempting to unlink a parent directory.
19483         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
19484         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
19485         activate for the replacement function.
19486         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
19487
19488 2010-03-20  Bruno Haible  <bruno@clisp.org>
19489
19490         Fix link errors on Solaris 8.
19491         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
19492         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
19493
19494 2010-03-19  Jim Meyering  <meyering@redhat.com>
19495
19496         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
19497         The _LIBC implementation of build_range_exp correctly honors the
19498         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
19499         However, the non-_LIBC implementation would ignore that syntax-bit
19500         flag and return REG_ERANGE unconditionally.
19501         This change makes it honor that flag.
19502         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
19503         Make two pointer parameters "const".
19504         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
19505         (parse_bracket_exp): Update caller.
19506
19507         regex.m4: correct the reversed range endpoint ([b-a]) test
19508         * m4/regex.m4: When requiring that [b-a] evoke failure,
19509         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
19510         test pass once again for x86-based systems.
19511
19512 2010-03-19  Bruno Haible  <bruno@clisp.org>
19513
19514         scandir: Fix link error on Solaris 8.
19515         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
19516         macros.
19517
19518 2010-03-19  Bruno Haible  <bruno@clisp.org>
19519
19520         getusershell: Fix documentation.
19521         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
19522         module.
19523         * doc/glibc-functions/setusershell.texi: Likewise.
19524
19525         getusershell: Provide declaration, missing on Solaris 9.
19526         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
19527         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
19528         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
19529         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
19530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19531         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
19532         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
19533         HAVE_GETUSERSHELL.
19534         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
19535
19536 2010-03-19  Bruno Haible  <bruno@clisp.org>
19537
19538         wctype: Provide iswblank function.
19539         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
19540         exists and is fine.
19541         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
19542         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
19543         * tests/test-wctype.c (main): Re-enable the iswblank tests.
19544         * doc/posix-functions/iswblank.texi: Update.
19545
19546 2010-03-19  Bruno Haible  <bruno@clisp.org>
19547
19548         Tests of module 'pty' in C++ mode.
19549         * modules/pty-tests: New file.
19550         * tests/test-pty-c++.cc: New file.
19551         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19552
19553 2010-03-19  Eric Blake  <eblake@redhat.com>
19554
19555         logb: fix documentation
19556         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
19557         1.5 declaration bug.
19558
19559         forkpty, openpty: prefer glibc's const-safe prototype
19560         * lib/forkpty.c (rpl_forkpty): New file.
19561         * lib/openpty.c (rpl_openpty): Likewise.
19562         * modules/forkpty (Files): Distribute it.
19563         * modules/openpty (Files): Likewise.
19564         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
19565         check...
19566         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
19567         replacement for for non-const BSD signature.
19568         * modules/pty (Makefile.am): Substitute witnesses.
19569         * lib/pty.in.h (forkpty, openpty): Declare replacements.
19570         * tests/test-forkpty.c: Update signature check.
19571         * tests/test-openpty.c: Likewise.
19572         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
19573         * doc/glibc-functions/openpty.texi (openpty): Likewise.
19574
19575         forkpty, openpty: split functions into new modules
19576         * modules/pty (Makefile.am): Substitute new witnesses.
19577         (Libraries): Move library detection...
19578         * modules/forkpty: ...into new module.
19579         * modules/openpty: Another new module.
19580         * modules/pty-tests: Rename and split...
19581         * modules/forkpty-tests: ...to this...
19582         * modules/openpty-tests: ...and this.
19583         * tests/test-pty.c: Rename and split...
19584         * tests/test-forkpty.c: ...to this...
19585         * tests/test-openpty.c: ...and this.
19586         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
19587         (gl_PTY): Split library searching...
19588         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
19589         (gl_FORKPTY, gl_OPENPTY): New macros.
19590         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
19591         * NEWS: Mention the split.
19592         * MODULES.html.sh (Misc): Document the modules.
19593         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
19594         * doc/glibc-functions/openpty.texi (openpty): Likewise.
19595
19596         pty: improve replacement header
19597         * lib/pty.in.h: New file.
19598         * modules/pty (Files): Ship it.
19599         (Makefile.am): Always build replacement.
19600         * m4/pty.m4: Rename...
19601         * m4/pty_h.m4: ...to this.
19602         (gl_PTY): Modernize setting of witness macros; update check of
19603         forkpty to take proper advantage of cache.
19604         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
19605
19606         getopt: avoid compiler warning
19607         * lib/getopt.c (attribute_hidden): Remove unused macro.
19608
19609 2010-03-18  Bruno Haible  <bruno@clisp.org>
19610
19611         Fix link errors on Solaris 8.
19612         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
19613         * modules/search-tests (test_search_c___LDADD): Likewise.
19614         * modules/signal-tests (test_signal_c___LDADD): Likewise.
19615         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
19616         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
19617         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
19618         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
19619         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
19620         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
19621
19622 2010-03-18  Bruno Haible  <bruno@clisp.org>
19623
19624         Fix bug introduced on 2010-03-14.
19625         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
19626         (gl_SPAWN_H): Require it.
19627         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
19628         Reported by Simon Josefsson.
19629
19630 2010-03-18  Bruno Haible  <bruno@clisp.org>
19631
19632         Fix typo introduced on 2009-12-31.
19633         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
19634         posix_spawn_file_actions_adddup2.
19635
19636 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
19637         and Eric Blake  <eblake@redhat.com>
19638
19639         test-vc-list-files-git: make more robust
19640         * tests/test-vc-list-files-git.sh: Unset problematic environment
19641         variables.  Chain commands together.
19642
19643 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
19644
19645         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
19646         `AC_CHECK_DECL' invocation.
19647
19648 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
19649
19650         * lib/inttostr.c (inttostr): Make sure the invocation of verify
19651         appears before executable statements. Suggested by Petr Sumbera
19652         <Petr.Sumbera@Sun.COM>.
19653
19654 2010-03-14  Bruno Haible  <bruno@clisp.org>
19655
19656         * tests/test-flock.c (test_exclusive): Comment out a test that causes
19657         portability problems. Instead use a simpler test.
19658         (main): Check that invalid arguments are rejected only on Linux.
19659
19660 2010-03-14  Bruno Haible  <bruno@clisp.org>
19661
19662         Fix bug introduced on 2009-12-31.
19663         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
19664         gl_PREREQ_SYS_H_WINSOCK2 always.
19665         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
19666         SYS_SOCKET_H variable.
19667         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
19668         Update comments.
19669         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
19670         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19671         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19672         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19673         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
19674
19675 2010-03-14  Bruno Haible  <bruno@clisp.org>
19676
19677         Fix values returned by sinl, cosl.
19678         * lib/trigl.h: Add specification comments.
19679         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
19680         that combines the values from the precomputed table with the values of
19681         the Chebyshev polynomials.
19682
19683 2010-03-14  Bruno Haible  <bruno@clisp.org>
19684
19685         Fix compilation error when modules 'posix_spawn[p]' are not used.
19686         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
19687         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
19688
19689 2010-03-14  Bruno Haible  <bruno@clisp.org>
19690
19691         Fix compilation error on mingw when module 'time_r' is not used.
19692         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
19693         is 1.
19694         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
19695         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
19696         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
19697         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
19698
19699 2010-03-14  Bruno Haible  <bruno@clisp.org>
19700
19701         Fix compilation error with Sun C.
19702         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
19703         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
19704         instead of GCC specific ULONG_LONG_MAX.
19705         * lib/xstrtoll.c: Likewise.
19706         * lib/xstrtoull.c: Likewise.
19707
19708 2010-03-13  Bruno Haible  <bruno@clisp.org>
19709
19710         Allow the user to disable C++ code and tests.
19711         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
19712         (gl_PROG_ANSI_CXX): Require it.
19713
19714 2010-03-13  Bruno Haible  <bruno@clisp.org>
19715
19716         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
19717         cases.
19718
19719 2010-03-13  Bruno Haible  <bruno@clisp.org>
19720
19721         Test that gnulib does not break the standard C++ headers.
19722         * tests/test-locale-c++2.cc: New file.
19723         * modules/locale-tests (Files): Add it.
19724         (Makefile.am): Compile it for test-locale-c++.
19725         * tests/test-math-c++2.cc: New file.
19726         * modules/math-tests (Files): Add it.
19727         (Makefile.am): Compile it for test-math-c++.
19728         * tests/test-signal-c++2.cc: New file.
19729         * modules/signal-tests (Files): Add it.
19730         (Makefile.am): Compile it for test-signal-c++.
19731         * tests/test-stdio-c++2.cc: New file.
19732         * modules/stdio-tests (Files): Add it.
19733         (Makefile.am): Compile it for test-stdio-c++.
19734         * tests/test-stdlib-c++2.cc: New file.
19735         * modules/stdlib-tests (Files): Add it.
19736         (Makefile.am): Compile it for test-stdlib-c++.
19737         * tests/test-string-c++2.cc: New file.
19738         * modules/string-tests (Files): Add it.
19739         (Makefile.am): Compile it for test-string-c++.
19740         * tests/test-time-c++2.cc: New file.
19741         * modules/time-tests (Files): Add it.
19742         (Makefile.am): Compile it for test-time-c++.
19743         Reported by John W. Eaton <jwe@gnu.org>.
19744
19745 2010-03-13  Bruno Haible  <bruno@clisp.org>
19746
19747         * gnulib-tool (func_usage): Clarify which options are available for
19748         --create-testdir and --create-megatestdir.
19749
19750 2010-03-13  Bruno Haible  <bruno@clisp.org>
19751
19752         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
19753         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
19754         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
19755         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19756         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
19757         when appropriate.
19758         Reported by Jim Meyering.
19759
19760 2010-03-12  Simon Josefsson  <simon@josefsson.org>
19761
19762         * gnulib-tool (func_import): Explain origin of code.
19763
19764 2010-03-12  Bruno Haible  <bruno@clisp.org>
19765
19766         Fix problem with automake's definition of CXXLINK.
19767         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
19768         Reported by Simon Josefsson and Ludovic Courtès.
19769
19770 2010-03-12  Bruno Haible  <bruno@clisp.org>
19771
19772         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
19773         stable releases.
19774
19775 2010-03-11  Bruno Haible  <bruno@clisp.org>
19776
19777         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
19778         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
19779         whether the system provides one variant or multiple variants of the
19780         function.
19781         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
19782         C++ compilers.
19783         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
19784         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
19785         Reported by Jim Meyering.
19786
19787 2010-03-09  Simon Josefsson  <simon@josefsson.org>
19788
19789         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
19790
19791 2010-03-08  Bruno Haible  <bruno@clisp.org>
19792
19793         gnulib-tool: Add support for --libtool in --create-testdir.
19794         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
19795         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
19796
19797 2010-03-08  Eric Blake  <eblake@redhat.com>
19798
19799         gnulib-tool.texi: mention possibility of git submodule
19800         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
19801         submodules.
19802         * doc/.gitignore: Ignore another generated file.
19803
19804 2010-03-08  Karl Berry  <karl@gnu.org>
19805
19806         * doc/gnulib-tool.texi (VCS Issues): Mention third option
19807         of committing gnulib files while skipping others.
19808
19809 2010-03-07  Bruno Haible  <bruno@clisp.org>
19810
19811         Tests of module 'wctype' in C++ mode.
19812         * tests/test-wctype-c++.cc: New file.
19813         * modules/wctype-tests (Files): Add it and tests/signature.h.
19814         (Depends-on): Add ansi-c++-opt.
19815         (Makefile.am): Arrange to compile and run test-wctype-c++.
19816
19817         Tests of module 'wchar' in C++ mode.
19818         * tests/test-wchar-c++.cc: New file.
19819         * modules/wchar-tests (Files): Add it and tests/signature.h.
19820         (Depends-on): Add ansi-c++-opt.
19821         (Makefile.am): Arrange to compile and run test-wchar-c++.
19822         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
19823         gl_MODULE_INDICATOR.
19824
19825         Tests of module 'unistd' in C++ mode.
19826         * tests/test-unistd-c++.cc: New file.
19827         * modules/unistd-tests (Files): Add it and tests/signature.h.
19828         (Depends-on): Add ansi-c++-opt.
19829         (Makefile.am): Arrange to compile and run test-unistd-c++.
19830         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
19831         gl_MODULE_INDICATOR.
19832
19833         Tests of module 'time' in C++ mode.
19834         * tests/test-time-c++.cc: New file.
19835         * modules/time-tests (Files): Add it and tests/signature.h.
19836         (Depends-on): Add ansi-c++-opt.
19837         (Makefile.am): Arrange to compile and run test-time-c++.
19838         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19839
19840         Tests of module 'sys_time' in C++ mode.
19841         * tests/test-sys_time-c++.cc: New file.
19842         * modules/sys_time-tests (Files): Add it and tests/signature.h.
19843         (Depends-on): Add ansi-c++-opt.
19844         (Makefile.am): Arrange to compile and run test-sys_time-c++.
19845         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
19846         gl_MODULE_INDICATOR.
19847
19848         Tests of module 'sys_stat' in C++ mode.
19849         * tests/test-sys_stat-c++.cc: New file.
19850         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
19851         (Depends-on): Add ansi-c++-opt.
19852         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
19853         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
19854         gl_MODULE_INDICATOR.
19855
19856         Tests of module 'sys_socket' in C++ mode.
19857         * tests/test-sys_socket-c++.cc: New file.
19858         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
19859         (Depends-on): Add ansi-c++-opt.
19860         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
19861         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
19862         gl_MODULE_INDICATOR.
19863
19864         Tests of module 'sys_select' in C++ mode.
19865         * tests/test-sys_select-c++.cc: New file.
19866         * modules/sys_select-tests (Files): Add it and tests/signature.h.
19867         (Depends-on): Add ansi-c++-opt.
19868         (Makefile.am): Arrange to compile and run test-sys_select-c++.
19869         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
19870         gl_MODULE_INDICATOR.
19871
19872         Tests of module 'sys_ioctl' in C++ mode.
19873         * tests/test-sys_ioctl-c++.cc: New file.
19874         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
19875         (Depends-on): Add ansi-c++-opt.
19876         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
19877         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
19878         gl_MODULE_INDICATOR.
19879
19880         Tests of module 'string' in C++ mode.
19881         * tests/test-string-c++.cc: New file.
19882         * modules/string-tests (Files): Add it and tests/signature.h.
19883         (Depends-on): Add ansi-c++-opt.
19884         (Makefile.am): Arrange to compile and run test-string-c++.
19885         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
19886         gl_MODULE_INDICATOR.
19887
19888         Tests of module 'stdlib' in C++ mode.
19889         * tests/test-stdlib-c++.cc: New file.
19890         * modules/stdlib-tests (Files): Add it and tests/signature.h.
19891         (Depends-on): Add ansi-c++-opt.
19892         (Makefile.am): Arrange to compile and run test-stdlib-c++.
19893         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
19894         gl_MODULE_INDICATOR.
19895
19896         Tests of module 'stdio' in C++ mode.
19897         * tests/test-stdio-c++.cc: New file.
19898         * modules/stdio-tests (Files): Add it and tests/signature.h.
19899         (Depends-on): Add ansi-c++-opt.
19900         (Makefile.am): Arrange to compile and run test-stdio-c++.
19901         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
19902         gl_MODULE_INDICATOR.
19903
19904         Tests of module 'spawn' in C++ mode.
19905         * tests/test-spawn-c++.cc: New file.
19906         * modules/spawn-tests (Files): Add it and tests/signature.h.
19907         (Depends-on): Add ansi-c++-opt.
19908         (Makefile.am): Arrange to compile and run test-spawn-c++.
19909         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
19910         gl_MODULE_INDICATOR.
19911
19912         Tests of module 'signal' in C++ mode.
19913         * tests/test-signal-c++.cc: New file.
19914         * modules/signal-tests (Files): Add it and tests/signature.h.
19915         (Depends-on): Add ansi-c++-opt.
19916         (Makefile.am): Arrange to compile and run test-signal-c++.
19917         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
19918         gl_MODULE_INDICATOR.
19919
19920         Tests of module 'search' in C++ mode.
19921         * tests/test-search-c++.cc: New file.
19922         * modules/search-tests (Files): Add it and tests/signature.h.
19923         (Depends-on): Add ansi-c++-opt.
19924         (Makefile.am): Arrange to compile and run test-search-c++.
19925         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
19926         gl_MODULE_INDICATOR.
19927
19928         Tests of module 'math' in C++ mode.
19929         * tests/test-math-c++.cc: New file.
19930         * modules/math-tests (Files): Add it and tests/signature.h.
19931         (Depends-on): Add ansi-c++-opt.
19932         (Makefile.am): Arrange to compile and run test-math-c++.
19933         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
19934
19935         Tests of module 'locale' in C++ mode.
19936         * tests/test-locale-c++.cc: New file.
19937         * modules/locale-tests (Files): Add it and tests/signature.h.
19938         (Depends-on): Add ansi-c++-opt.
19939         (Makefile.am): Arrange to compile and run test-locale-c++.
19940         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
19941         gl_MODULE_INDICATOR.
19942
19943         Tests of module 'langinfo' in C++ mode.
19944         * tests/test-langinfo-c++.cc: New file.
19945         * modules/langinfo-tests (Files): Add it and tests/signature.h.
19946         (Depends-on): Add ansi-c++-opt.
19947         (Makefile.am): Arrange to compile and run test-langinfo-c++.
19948         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
19949         gl_MODULE_INDICATOR.
19950
19951         Tests of module 'iconv-h' in C++ mode.
19952         * tests/test-iconv-h-c++.cc: New file.
19953         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
19954         (Depends-on): Add ansi-c++-opt.
19955         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
19956
19957         Tests of module 'glob' in C++ mode.
19958         * tests/test-glob-c++.cc: New file.
19959         * modules/glob-tests (Files): Add it.
19960         (Depends-on): Add ansi-c++-opt.
19961         (Makefile.am): Arrange to compile and run test-glob-c++.
19962
19963         Tests of module 'fcntl-h' in C++ mode.
19964         * tests/test-fcntl-h-c++.cc: New file.
19965         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
19966         (Depends-on): Add ansi-c++-opt.
19967         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
19968         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
19969         gl_MODULE_INDICATOR.
19970
19971         Tests of module 'dirent' in C++ mode.
19972         * tests/test-dirent-c++.cc: New file.
19973         * modules/dirent-tests (Files): Add it and tests/signature.h.
19974         (Depends-on): Add ansi-c++-opt.
19975         (Makefile.am): Arrange to compile and run test-dirent-c++.
19976         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19977         gl_MODULE_INDICATOR.
19978
19979         New module 'ansi-c++-opt'.
19980         * modules/ansi-c++-opt: New file.
19981         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
19982
19983         Document C++ namespace mode.
19984         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
19985
19986         wctype: Avoid #define replacements in C++ mode.
19987         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
19988         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
19989         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
19990         In C++, define a namespaced alias symbol.
19991         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
19992         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
19993         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
19994         rule.
19995
19996         wchar: Avoid #define replacements in C++ mode.
19997         * lib/wchar.in.h: Include c++defs.h.
19998         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
19999         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
20000         symbol.
20001         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
20002         * modules/wchar (Depends-on): Add c++defs.
20003         (Makefile.am): Update wchar.h rule.
20004
20005         unistd: Avoid #define replacements in C++ mode.
20006         * lib/unistd.in.h: Include c++defs.h.
20007         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
20008         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
20009         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
20010         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
20011         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
20012         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
20013         symbol.
20014         (environ): Update.
20015         * modules/unistd (Depends-on): Add c++defs.
20016         (Makefile.am): Update unistd.h rule.
20017
20018         time: Avoid #define replacements in C++ mode.
20019         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
20020         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
20021         define a namespaced alias symbol.
20022         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
20023         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
20024         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
20025         * modules/time (Depends-on): Add c++defs, warn-on-use.
20026         (Makefile.am): Update time.h rule.
20027         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
20028         * modules/nanosleep (configure.ac): Likewise.
20029         * modules/strptime (configure.ac): Likewise.
20030         * modules/timegm (configure.ac): Likewise.
20031
20032         sys_time: Avoid #define replacements in C++ mode.
20033         * lib/sys_time.in.h: Include c++defs.h.
20034         (gettimeofday): In C++, define a namespaced alias symbol.
20035         * modules/sys_time (Depends-on): Add c++defs.
20036         (Makefile.am): Update sys/time.h rule.
20037
20038         sys_stat: Avoid #define replacements in C++ mode.
20039         * lib/sys_stat.in.h: Include c++defs.h.
20040         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
20041         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
20042         namespaced alias symbol.
20043         In C++, define a namespaced alias symbol.
20044         * modules/sys_stat (Depends-on): Add c++defs.
20045         (Makefile.am): Update sys/stat.h rule.
20046
20047         sys_socket: Avoid #define replacements in C++ mode.
20048         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
20049         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
20050         definitions also when the system has a <sys/socket.h>.
20051         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
20052         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
20053         In C++, define a namespaced alias symbol.
20054         * modules/sys_socket (Depends-on): Add c++defs.
20055         (Makefile.am): Update sys/socket.h rule.
20056
20057         sys_select: Avoid #define replacements in C++ mode.
20058         * lib/sys_select.in.h: Include c++defs.h. Enable the function
20059         definitions also when the system has a <sys/select.h>.
20060         (select): In C++, define a namespaced alias symbol.
20061         * modules/sys_select (Depends-on): Add c++defs.
20062         (Makefile.am): Update sys/select.h rule.
20063
20064         sys_ioctl: Avoid #define replacements in C++ mode.
20065         * lib/sys_ioctl.in.h: Include c++defs.h.
20066         (ioctl): In C++, define a namespaced alias symbol.
20067         * modules/sys_ioctl (Depends-on): Add c++defs.
20068         (Makefile.am): Update sys/ioctl.h rule.
20069
20070         string: Avoid #define replacements in C++ mode.
20071         * lib/string.in.h: Include c++defs.h.
20072         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
20073         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
20074         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
20075         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
20076         strsignal, strverscmp): In C++, define a namespaced alias symbol.
20077         * modules/string (Depends-on): Add c++defs.
20078         (Makefile.am): Update string.h rule.
20079
20080         stdlib: Avoid #define replacements in C++ mode.
20081         * lib/stdlib.in.h: Include c++defs.h.
20082         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
20083         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
20084         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
20085         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
20086         symbol.
20087         * modules/stdlib (Depends-on): Add c++defs.
20088         (Makefile.am): Update stdlib.h rule.
20089
20090         stdio: Avoid #define replacements in C++ mode.
20091         * lib/stdio.in.h: Include c++defs.h.
20092         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
20093         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
20094         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
20095         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
20096         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
20097         namespaced alias symbol.
20098         * modules/stdio (Depends-on): Add c++defs.
20099         (Makefile.am): Update stdio.h rule.
20100
20101         spawn: Avoid #define replacements in C++ mode.
20102         * lib/spawn.in.h: Include c++defs.h.
20103         (posix_spawn, posix_spawnp, posix_spawnattr_init,
20104         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
20105         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
20106         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
20107         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
20108         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
20109         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
20110         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
20111         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
20112         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
20113         In C++, define a namespaced alias symbol.
20114         * modules/spawn (Depends-on): Add c++defs.
20115         (Makefile.am): Update spawn.h rule.
20116
20117         signal: Avoid #define replacements in C++ mode.
20118         * lib/signal.in.h: Include c++defs.h.
20119         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
20120         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
20121         namespaced alias symbol.
20122         * modules/signal (Depends-on): Add c++defs.
20123         (Makefile.am): Update signal.h rule.
20124
20125         search: Avoid #define replacements in C++ mode.
20126         * lib/search.in.h: Include c++defs.h.
20127         (_gl_search_compar_fn, _gl_search_action_fn): New types.
20128         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
20129         symbol.
20130         * modules/search (Depends-on): Add c++defs.
20131         (Makefile.am): Update search.h rule.
20132
20133         math: Avoid #define replacements in C++ mode.
20134         * lib/math.in.h: Include c++defs.h.
20135         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
20136         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
20137         trunc, truncl): In C++, define a namespaced alias symbol.
20138         * modules/math (Depends-on): Add c++defs.
20139         (Makefile.am): Update math.h rule.
20140
20141         locale: Avoid #define replacements in C++ mode.
20142         * lib/locale.in.h: Include c++defs.h.
20143         (duplocale): In C++, define a namespaced alias symbol.
20144         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
20145         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
20146         * modules/locale (Depends-on): Add c++defs.
20147         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
20148
20149         langinfo: Avoid #define replacements in C++ mode.
20150         * lib/langinfo.in.h: Include c++defs.h.
20151         (nl_langinfo): In C++, define a namespaced alias symbol.
20152         * modules/langinfo (Depends-on): Add c++defs.
20153         (Makefile.am): Update langinfo.h rule.
20154
20155         iconv-h: Avoid #define replacements in C++ mode.
20156         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
20157         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
20158         symbol.
20159         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20160         whenever iconv is present.
20161         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
20162         (Makefile.am): Update iconv.h rule.
20163
20164         glob: Avoid #define replacements in C++ mode.
20165         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
20166         (_gl_glob_errfunc_fn): New type.
20167         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
20168         symbol.
20169         * modules/glob (Depends-on): Add c++defs, warn-on-use.
20170         (Makefile.am): Update glob.h rule.
20171
20172         fcntl-h: Avoid #define replacements in C++ mode.
20173         * lib/fcntl.in.h: Include c++defs.h.
20174         (fcntl, open, openat): In C++, define a namespaced alias symbol.
20175         * modules/fcntl-h (Depends-on): Add c++defs.
20176         (Makefile.am): Update fcntl.h rule.
20177
20178         dirent: Avoid #define replacements in C++ mode.
20179         * lib/dirent.in.h: Include c++defs.h.
20180         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
20181         namespaced alias symbol.
20182         (dirfd): Update declaration.
20183         * modules/dirent (Depends-on): Add c++defs.
20184         (Makefile.am): Update dirent.h rule.
20185
20186         ctype: Make it usable in C++ code.
20187         * lib/ctype.in.h: Include c++defs.h.
20188         (isblank): Declare as extern "C".
20189         * modules/ctype (Depends-on): Add c++defs.
20190         (Makefile.am): Update ctype.h rule.
20191
20192         New module 'c++defs'.
20193         * modules/c++defs: New file.
20194         * build-aux/c++defs.h: New file.
20195         Reported by John W. Eaton <jwe@gnu.org>.
20196
20197 2010-03-07  Bruno Haible  <bruno@clisp.org>
20198
20199         logb: Provide missing declaration for Cygwin.
20200         * lib/math.in.h (logb): New declaration.
20201         * m4/logb.m4: New file.
20202         * modules/logb (Files): Add m4/logb.m4.
20203         (Depends-on): Add math.
20204         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
20205         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
20206         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
20207         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
20208         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
20209
20210 2010-03-07  Bruno Haible  <bruno@clisp.org>
20211
20212         Fix test-cond link error.
20213         * tests/test-cond.c: Include <stdio.h>.
20214
20215 2010-03-07  Bruno Haible  <bruno@clisp.org>
20216
20217         Fix test-dirent-safer link error.
20218         * modules/dirent-safer-tests (Makefile.am): Define
20219         test_dirent_safer_LDADD.
20220
20221 2010-03-07  Bruno Haible  <bruno@clisp.org>
20222
20223         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
20224         among default module list.
20225
20226 2010-03-07  Bruno Haible  <bruno@clisp.org>
20227
20228         Fix link error on platforms with GNU libiconv.
20229         * modules/unistr/u8-strcoll-tests (Makefile): Define
20230         test_u8_strcoll_LDADD.
20231         * modules/unistr/u16-strcoll-tests (Makefile): Define
20232         test_u16_strcoll_LDADD.
20233         * modules/unistr/u32-strcoll-tests (Makefile): Define
20234         test_u32_strcoll_LDADD.
20235
20236 2010-03-07  Bruno Haible  <bruno@clisp.org>
20237
20238         Use POSIX declarations for socket functions.
20239         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
20240         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
20241         rpl_sendto): Change declaration to match POSIX.
20242         * lib/connect.c (rpl_connect): Likewise.
20243         * lib/accept.c (rpl_accept): Likewise.
20244         * lib/bind.c (rpl_bind): Likewise.
20245         * lib/getpeername.c (rpl_getpeername): Likewise.
20246         * lib/getsockname.c (rpl_getsockname): Likewise.
20247         * lib/recv.c (rpl_recv): Likewise.
20248         * lib/send.c (rpl_send): Likewise.
20249         * lib/recvfrom.c (rpl_recvfrom): Likewise.
20250         * lib/sendto.c (rpl_sendto): Likewise.
20251
20252 2010-03-06  Bruno Haible  <bruno@clisp.org>
20253
20254         Clarify access, euidaccess, faccessat.
20255         * doc/posix-functions/faccessat.texi: Mention security problem under
20256         "Other problems", not "Portability problems".
20257         * doc/posix-functions/access.texi: Likewise. Mention a related security
20258         problem.
20259         * doc/glibc-functions/euidaccess.texi: Mention security problems.
20260         * lib/euidaccess.c: Add comments about platforms.
20261         * lib/unistd.in.h (access, euidaccess): Add warnings.
20262
20263 2010-03-07  Bruno Haible  <bruno@clisp.org>
20264
20265         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
20266         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
20267         (POSIX_SPAWN_SETSCHEDULER): Likewise.
20268         (POSIX_SPAWN_USEVFORK): Define in a way that works when
20269         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
20270         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
20271         declare when POSIX_SPAWN_SETSCHEDULER is zero.
20272         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
20273         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
20274         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
20275         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
20276         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
20277         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
20278         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
20279         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
20280         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
20281         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
20282         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
20283         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
20284         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
20285         Likewise.
20286         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
20287         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
20288         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
20289         Likewise.
20290         * tests/test-spawn.c (main): Make it work when
20291         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
20292
20293 2010-03-07  Bruno Haible  <bruno@clisp.org>
20294
20295         Fix incorrect Makefile.am generation in German locale.
20296         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20297         Execute sed command with character range in C locale.
20298
20299 2010-03-06  Bruno Haible  <bruno@clisp.org>
20300
20301         Tests for module 'iconv-h'.
20302         * modules/iconv-h-tests: New file.
20303         * tests/test-iconv-h.c: New file.
20304
20305         New module 'iconv-h'.
20306         * modules/iconv-h: New file.
20307         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
20308         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
20309         (configure.ac): Remove gl_ICONV_H.
20310         (Makefile.am): Remove rule for iconv.h.
20311
20312 2010-03-06  Bruno Haible  <bruno@clisp.org>
20313
20314         More consistent naming of *.m4 files.
20315         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
20316         * modules/wctype (Files): Update.
20317
20318         More consistent naming of *.m4 files.
20319         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
20320         * modules/wchar (Files): Update.
20321
20322 2010-03-06  Jim Meyering  <meyering@redhat.com>
20323
20324         euidaccess: relax license to LGPLv2+
20325         * modules/euidaccess (License): Relax to LGPLv2+.
20326
20327 2010-03-06  Bruno Haible  <bruno@clisp.org>
20328
20329         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
20330         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
20331         (Makefile.am): Augment lib_SOURCES instead.
20332
20333 2010-03-04  Jim Meyering  <meyering@redhat.com>
20334
20335         utime: remove obsolete module
20336         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
20337         unnecessary for years, and has been marked as obsolete for 10 months.
20338         * modules/utime: Remove file.
20339         * lib/utime.c: Remove file.
20340         * m4/utime.m4: Remove file.
20341         * m4/utimes-null.m4: Remove file.
20342         * doc/posix-functions/utime.texi (utime): Remove reference to
20343         the module.  Move the sole "fixed by gnulib" item into the
20344         "problems not fixed by Gnulib" list.
20345         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
20346
20347 2010-03-05  Simon Josefsson  <simon@josefsson.org>
20348
20349         * modules/exit (License): Relax license to LGPLv2+.
20350         (Status): Mark as obsolete.
20351         * NEWS: Mention deprecated 'exit' module.
20352         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
20353         of now obsolete 'exit'.
20354
20355 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20356
20357         fts-lgpl: remove unused module
20358         * modules/fts-lgpl: Remove.
20359         * MODULES.html.sh (func_all_modules): Adjust.
20360         * check-module (find_included_lib_files): Adjust.
20361         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
20362
20363 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
20364
20365         copy-acl: enhance Solaris ACL error handling
20366         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
20367         * lib/set-mode-acl.c (qset_acl): Likewise.
20368
20369 2010-03-02  Bruno Haible  <bruno@clisp.org>
20370
20371         spawn: Don't override the system defined values on FreeBSD 8.
20372         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
20373         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
20374         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
20375         if HAVE_POSIX_SPAWN is 1.
20376         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
20377
20378 2010-03-01  Bruno Haible  <bruno@clisp.org>
20379
20380         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
20381         regarding Automake.
20382
20383 2010-02-25  Bruno Haible  <bruno@clisp.org>
20384
20385         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
20386         * gnulib-tool: Define 'echo' as a function only before the ksh alias
20387         setting, not afterwards.
20388         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
20389
20390 2010-02-24  Eric Blake  <eblake@redhat.com>
20391
20392         bootstrap, git-version-gen: use timestamp
20393         * build-aux/git-version-gen (scriptversion): Force UTC.
20394         * build-aux/bootstrap (scriptversion): New variable.
20395
20396         bootstrap: allow older git
20397         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
20398         older than 1.6.4.  Requested by the libvirt project.
20399
20400 2010-02-23  Eric Blake  <eblake@redhat.com>
20401
20402         warn-on-use: work with old autoconf
20403         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
20404         AS_VAR semantics of autoconf 2.60.
20405         Reported by Bruno Haible.
20406
20407         bootstrap: improve some comments
20408         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
20409         clarification comments.
20410
20411         gettimeofday: provide correct function
20412         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
20413         when replacement is declared, otherwise provide gettimeofday.
20414         Reported by Michael Goffioul.
20415
20416 2010-02-23  Jim Meyering  <meyering@redhat.com>
20417
20418         lib-ignore: relax license to "unlimited", not LGPLv2+
20419         * modules/lib-ignore (License): Relax to "unlimited".
20420
20421 2010-02-23  Jim Meyering  <meyering@redhat.com>
20422
20423         lib-ignore: relax license to LGPLv2+
20424         * modules/lib-ignore (License): Relax to LGPLv2+.
20425
20426 2010-02-22  Eric Blake  <eblake@redhat.com>
20427
20428         lseek: avoid bash 3.2 broken pipe bug
20429         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
20430         warning from bash 3.2.
20431         Reported by Ben Pfaff, with analysis from Bruno Haible.
20432
20433         bootstrap: support non-FSF copyright holder
20434         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
20435         bootstrap.conf override of COPYRIGHT_HOLDER.
20436         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
20437
20438         bootstrap: interoperate with gettext 0.14.1
20439         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
20440
20441         bootstrap: allow for alternate submodule location
20442         * build-aux/bootstrap (gnulib_path): New variable; use instead of
20443         hardcoding submodule location.
20444         (gnulib_mk): Allow direct use of Makefile.am.
20445
20446         bootstrap: use GNULIB_SRCDIR to reduce disk usage
20447         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
20448         rather than reconfiguring where the submodule points.
20449
20450         gettimeofday: restore support for platforms that lack function
20451         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
20452         replacement if function is missing.
20453         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
20454         * modules/sys_time (Makefile.am): Substitute it.
20455         * lib/sys_time.in.h (gettimeofday): Check it.
20456         Reported by Michael Goffioul.
20457
20458 2010-02-21  Bruno Haible  <bruno@clisp.org>
20459
20460         * lib/stdio.in.h (obstack_printf): Fix typo.
20461
20462 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
20463
20464         vc-list-files: use bzr ls's -R option
20465         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
20466         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
20467
20468 2010-02-21  Jim Meyering  <meyering@redhat.com>
20469
20470         init.sh: fix EXEEXT shims to work also for names like test-prog
20471         * tests/init.sh: Re-exec a better shell, when needed.
20472         If the current shell lacks support for posix $(...), an init.sh-using
20473         test will now try to find a shell that supports that.  If EXEEXT is
20474         nonempty, we also require support for hyphen-in-alias-name and shell
20475         substitutions like ${var#glob}.  Failure to find such a shell results
20476         in a skipped test.
20477
20478 2010-02-21  Bruno Haible  <bruno@clisp.org>
20479
20480         Really work around around "broken pipe" error message from bash 3.2.
20481         * gnulib-tool (func_reset_sigpipe): Remove function.
20482         (echo): In bash 3.2, define to a function that uses printf.
20483         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
20484
20485 2010-02-20  Bruno Haible  <bruno@clisp.org>
20486
20487         Restore support for automake 1.9.6 with autoconf 2.61.
20488         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
20489         Reported by James Youngman <jay@gnu.org>.
20490
20491 2010-02-20  Bruno Haible  <bruno@clisp.org>
20492
20493         Improve *printf warning condition.
20494         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
20495         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
20496         and the function is overridden due to SIGPIPE emulation.
20497
20498 2010-02-20  Bruno Haible  <bruno@clisp.org>
20499
20500         * lib/stdio.in.h: Tweak comments.
20501
20502 2010-02-19  Bruno Haible  <bruno@clisp.org>
20503
20504         Make it easier to find modules. New gnulib-tool option '--find'.
20505         * gnulib-tool: New option --find.
20506         (func_usage): Document it.
20507         (func_sanitize_modulelist): New function, extracted from
20508         func_all_modules.
20509         (func_all_modules): Invoke it.
20510         * doc/gnulib-tool.texi (Which modules?): New node.
20511
20512 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
20513
20514         * lib/sys_select.in.h: Provide select replacement even if
20515         sys/select.h exists on a system, for Interix.
20516
20517 2010-02-18  Jim Meyering  <meyering@redhat.com>
20518
20519         init.sh: don't use $(...) just yet
20520         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
20521         to accommodate e.g., Solaris' /bin/sh.
20522
20523 2010-02-17  Bruno Haible  <bruno@clisp.org>
20524
20525         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
20526         Reported by Ludovic Courtès <ludo@gnu.org>.
20527
20528 2010-02-16  Simon Josefsson  <simon@josefsson.org>
20529
20530         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
20531         linking with -lintl.
20532
20533 2010-02-17  Simon Josefsson  <simon@josefsson.org>
20534
20535         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
20536         if not provided by the system's netdb.h.  Reported by
20537         ludo@gnu.org (Ludovic Courtès).
20538
20539 2010-02-15  Jim Meyering  <meyering@redhat.com>
20540
20541         init.sh: improve portability and efficiency
20542         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
20543         "dummy" in a for loop.
20544         Use '!', not '^' to select the complement of a character set used
20545         in a "case" statement.
20546         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
20547         Suggestions from Eric Blake.
20548
20549         init.sh: automatically accommodate programs with the .exe suffix
20550         Automatically arrange for an invocation of "prog" to execute the
20551         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
20552         may use the simpler "prog", yet still work when built on a system
20553         that requires specifying the added suffix.
20554         Do this by constructing a function named "prog" that invokes
20555         "prog.exe" for each .exe file in selected directories.
20556         * tests/init.sh (find_exe_basenames_): New function.
20557         (create_exe_shim_functions_): New function.
20558         (path_prepend_): Use it.
20559
20560         maint.mk: mark syntax-check sc_*.m rules as .PHONY
20561         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
20562         "make -t syntax-check" doesn't create a ton of sc_*.m files.
20563
20564 2010-02-14  Jim Meyering  <meyering@redhat.com>
20565
20566         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
20567         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
20568         (sc_prohibit_hash_pjw_without_use): New rule.
20569
20570         maint.mk: allow the default upload destination dir to be overridden
20571         * top/maint.mk (upload_dest_dir_): Define with a default that
20572         preserves the status quo.
20573         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
20574         Reported by Peter Simons.
20575
20576         maint.mk: prohibit inclusion of "hash.h" without_use
20577         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
20578
20579 2010-02-10  Jim Meyering  <meyering@redhat.com>
20580
20581         maint.mk: prohibit inclusion of "ignore-value.h" without_use
20582         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
20583
20584 2010-02-09  Eric Blake  <ebb9@byu.net>
20585         and Bruno Haible  <bruno@clisp.org>
20586
20587         obstack-printf-posix: ensure declaration
20588         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
20589         extracted from gl_FUNC_OBSTACK_PRINTF.
20590         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
20591         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
20592         Likewise.
20593         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
20594         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
20595         0.
20596
20597 2010-02-08  Bruno Haible  <bruno@clisp.org>
20598
20599         gnulib-tool: Fix typo in 2010-02-07 commit.
20600         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
20601         Reported by Eric Blake.
20602
20603 2010-02-07  Bruno Haible  <bruno@clisp.org>
20604
20605         gnulib-tool: Fix up caching patches.
20606         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
20607         option --no-cache. Use associative arrays when supported by the shell.
20608         (sed_comments): New variable.
20609         (modcache): Renamed from do_cache.
20610         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
20611         abbreviate unnecessarily.
20612         (have_associative): New variable.
20613         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
20614         way also for ksh and zsh.
20615         (func_init_sed_convert_to_cache_statements): New function, extracted
20616         from func_cache_lookup_module. Add support for associative arrays.
20617         Don't set the c_MODULE_cached variable here. Ignore all lines before
20618         the first field header. Remove only the final newline, not all trailing
20619         newlines. Support empty fields correctly. Limit the use of 'eval' to
20620         assignments.
20621         (func_get_description, func_get_status, func_get_notice,
20622         func_get_applicability, func_get_filelist, func_get_dependencies,
20623         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
20624         func_get_automake_snippet, func_get_include_directive,
20625         func_get_link_directive, func_get_license, func_get_maintainer):
20626         Update documentation. List the unoptimized code first. Add support for
20627         associative arrays. Limit the use of 'eval' to assignments.
20628         (func_get_applicability): Undo stylistic pessimisations.
20629         (func_get_automake_snippet, func_get_include_directive): Reduce code
20630         duplication.
20631         (func_modules_transitive_closure, func_modules_add_dummy,
20632         func_modules_notice, func_modules_to_filelist, func_add_file,
20633         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
20634         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
20635         func_create_testdir, func_create_megatestdir): Update documentation.
20636
20637 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20638
20639         * gnulib-tool (func_cache_lookup_module): Store the module name
20640         belonging to the cache variable; error out if two different
20641         module names map to the same cache variable name.
20642
20643 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20644
20645         gnulib-tool: Make caching optional.
20646         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
20647         Update matching short versions of --no-changelog.
20648         (func_usage): Update.
20649         (sed_extract_cache_prog): Renamed from ...
20650         (sed_extract_prog): ... this; revert to old extraction script.
20651         (func_get_description, func_get_status)
20652         (func_get_notice, func_get_applicability, func_get_filelist)
20653         (func_get_dependencies, func_get_autoconf_early_snippet)
20654         (func_get_autoconf_snippet, func_get_automake_snippet)
20655         (func_get_include_directive, func_get_link_directive)
20656         (func_get_license, func_get_maintainer): If $do_cache is false,
20657         use old, non-caching extraction scripts.
20658         Suggestion by Bruno Haible.
20659
20660 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20661
20662         gnulib-tool: cache module metainformation.
20663         * gnulib-tool (sed_extract_prog): Match newline before each
20664         header, and rewrite header to a shell variable suffix.
20665         (func_cache_var, func_cache_lookup_module): New functions,
20666         to turn a module name into a cache variable prefix, and to
20667         look up and cache module metainformation.
20668         (func_get_description, func_get_status)
20669         (func_get_notice, func_get_applicability, func_get_filelist)
20670         (func_get_dependencies, func_get_autoconf_early_snippet)
20671         (func_get_autoconf_snippet, func_get_automake_snippet)
20672         (func_get_include_directive, func_get_link_directive)
20673         (func_get_license, func_get_maintainer): Use
20674         func_cache_lookup_module.
20675
20676 2010-02-07  Bruno Haible  <bruno@clisp.org>
20677
20678         fnctl: Fix missing dependency.
20679         * modules/fcntl (Depends-on): Add getdtablesize.
20680         Reported by John W. Eaton <jwe@gnu.org>.
20681
20682 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
20683
20684         Argp: fix recognition of short alias options.
20685
20686         * lib/argp-parse.c (convert_options): Fix improper use of
20687         `|' between character values.
20688         * tests/test-argp.c (group1_option): New alias option
20689         --read (-r).
20690         (group1_parser): Special handling for 'r'.
20691         (test15): New test case.
20692         (test_fun): Add test15.
20693         * tests/test-argp-2.sh: Update expected --help and --usage
20694         outputs.
20695
20696 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
20697
20698         * tests/test-argp.c: Fix indentation.
20699
20700 2010-02-04  Eric Blake  <ebb9@byu.net>
20701
20702         gettimeofday: expose type of second argument
20703         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
20704         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
20705         * tests/test-gettimeofday.c: Use it to silence warning.
20706         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
20707         the issue.
20708
20709 2010-02-03  Jim Meyering  <meyering@redhat.com>
20710
20711         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
20712         * lib/regcomp.c (TYPE_SIGNED): Define.
20713         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
20714
20715         regcomp.c: avoid a new -Wshadow warning
20716         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
20717
20718 2010-02-01  Jim Meyering  <meyering@redhat.com>
20719
20720         removing useless parentheses in cpp #define directives
20721         For motivation, see commit c0221df4, "define STREQ(a,b)
20722         consistently, removing useless parentheses"
20723         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
20724         * lib/mountlist.c (MNT_IGNORE): Likewise.
20725         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
20726
20727 2010-02-01  Eric Blake  <ebb9@byu.net>
20728
20729         sys_time: use link-warning
20730         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
20731         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
20732         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
20733         * modules/sys_time (Depends-on): Add warn-on-use.
20734         (Makefile.am): Always build replacement.
20735         (configure.ac): Update substitutions.
20736         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
20737         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
20738         bother with SYS_TIME_H.
20739         * modules/gettimeofday (configure.ac): Declare indicator.
20740         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
20741         in use.
20742
20743         closein-tests: silence compiler warning
20744         * tests/test-closein.c (main): Ignore fread result.
20745         * modules/closein-tests (Depends-on): Add ignore-value.
20746
20747         tests: silence warning about system return
20748         * tests/test-areadlink-with-size.c (main): Ignore system result.
20749         * tests/test-areadlink.c (main): Likewise.
20750         * tests/test-areadlinkat-with-size.c (main): Likewise.
20751         * tests/test-areadlinkat.c (main): Likewise.
20752         * tests/test-canonicalize-lgpl.c (main): Likewise.
20753         * tests/test-canonicalize.c (main): Likewise.
20754         * tests/test-chown.c (main): Likewise.
20755         * tests/test-fchownat.c (main): Likewise.
20756         * tests/test-fdutimensat.c (main): Likewise.
20757         * tests/test-fstatat.c (main): Likewise.
20758         * tests/test-futimens.c (main): Likewise.
20759         * tests/test-lchown.c (main): Likewise.
20760         * tests/test-link.c (main): Likewise.
20761         * tests/test-linkat.c (main): Likewise.
20762         * tests/test-lstat.c (main): Likewise.
20763         * tests/test-mkdir.c (main): Likewise.
20764         * tests/test-mkdirat.c (main): Likewise.
20765         * tests/test-mkfifo.c (main): Likewise.
20766         * tests/test-mkfifoat.c (main): Likewise.
20767         * tests/test-mknod.c (main): Likewise.
20768         * tests/test-readlink.c (main): Likewise.
20769         * tests/test-remove.c (main): Likewise.
20770         * tests/test-rename.c (main): Likewise.
20771         * tests/test-renameat.c (main): Likewise.
20772         * tests/test-rmdir.c (main): Likewise.
20773         * tests/test-symlink.c (main): Likewise.
20774         * tests/test-symlinkat.c (main): Likewise.
20775         * tests/test-unlink.c (main): Likewise.
20776         * tests/test-unlinkat.c (main): Likewise.
20777         * tests/test-utimens.c (main): Likewise.
20778         * tests/test-utimensat.c (main): Likewise.
20779         * modules/areadlink-tests (Depends-on): Add ignore-value.
20780         * modules/areadlink-with-size-tests (Depends-on): Likewise.
20781         * modules/areadlinkat-tests (Depends-on): Likewise.
20782         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
20783         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
20784         * modules/canonicalize-tests (Depends-on): Likewise.
20785         * modules/chown-tests (Depends-on): Likewise.
20786         * modules/fdutimensat-tests (Depends-on): Likewise.
20787         * modules/futimens-tests (Depends-on): Likewise.
20788         * modules/lchown-tests (Depends-on): Likewise.
20789         * modules/link-tests (Depends-on): Likewise.
20790         * modules/linkat-tests (Depends-on): Likewise.
20791         * modules/lstat-tests (Depends-on): Likewise.
20792         * modules/mkdir-tests (Depends-on): Likewise.
20793         * modules/mkfifo-tests (Depends-on): Likewise.
20794         * modules/mkfifoat-tests (Depends-on): Likewise.
20795         * modules/mknod-tests (Depends-on): Likewise.
20796         * modules/openat-tests (Depends-on): Likewise.
20797         * modules/readlink-tests (Depends-on): Likewise.
20798         * modules/remove-tests (Depends-on): Likewise.
20799         * modules/rename-tests (Depends-on): Likewise.
20800         * modules/renameat-tests (Depends-on): Likewise.
20801         * modules/rmdir-tests (Depends-on): Likewise.
20802         * modules/symlink-tests (Depends-on): Likewise.
20803         * modules/symlinkat-tests (Depends-on): Likewise.
20804         * modules/unlink-tests (Depends-on): Likewise.
20805         * modules/utimens-tests (Depends-on): Likewise.
20806         * modules/utimensat-tests (Depends-on): Likewise.
20807
20808 2010-01-31  Bruno Haible  <bruno@clisp.org>
20809
20810         Perform the same test for many <math.h> functions.
20811         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
20812         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
20813         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
20814         of gl_MATHFUNC.
20815         * modules/acos (configure.ac): Likewise.
20816         * modules/asin (configure.ac): Likewise.
20817         * modules/atan (configure.ac): Likewise.
20818         * modules/atan2 (configure.ac): Likewise.
20819         * modules/cbrt (configure.ac): Likewise.
20820         * modules/copysign (configure.ac): Likewise.
20821         * modules/cos (configure.ac): Likewise.
20822         * modules/cosh (configure.ac): Likewise.
20823         * modules/erf (configure.ac): Likewise.
20824         * modules/erfc (configure.ac): Likewise.
20825         * modules/exp (configure.ac): Likewise.
20826         * modules/fmod (configure.ac): Likewise.
20827         * modules/hypot (configure.ac): Likewise.
20828         * modules/j0 (configure.ac): Likewise.
20829         * modules/j1 (configure.ac): Likewise.
20830         * modules/jn (configure.ac): Likewise.
20831         * modules/lgamma (configure.ac): Likewise.
20832         * modules/log (configure.ac): Likewise.
20833         * modules/log10 (configure.ac): Likewise.
20834         * modules/log1p (configure.ac): Likewise.
20835         * modules/pow (configure.ac): Likewise.
20836         * modules/remainder (configure.ac): Likewise.
20837         * modules/sin (configure.ac): Likewise.
20838         * modules/sinh (configure.ac): Likewise.
20839         * modules/tan (configure.ac): Likewise.
20840         * modules/tanh (configure.ac): Likewise.
20841         * modules/y0 (configure.ac): Likewise.
20842         * modules/y1 (configure.ac): Likewise.
20843         * modules/yn (configure.ac): Likewise.
20844         Suggested by Paolo Bonzini.
20845
20846 2010-01-31  Bruno Haible  <bruno@clisp.org>
20847
20848         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
20849
20850 2010-01-31  Bruno Haible  <bruno@clisp.org>
20851
20852         Work around getdelim() bug on FreeBSD 8.0.
20853         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
20854         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
20855         not work.
20856         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
20857         is 1.
20858         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
20859         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
20860         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
20861         a non-zero size.
20862         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
20863
20864 2010-01-31  Bruno Haible  <bruno@clisp.org>
20865
20866         Work around getline() bug on FreeBSD 8.0.
20867         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
20868         and a non-zero size.
20869         * tests/test-getline.c (main): Likewise.
20870         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
20871         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
20872
20873 2010-01-28  Eric Blake  <ebb9@byu.net>
20874
20875         regex: fix build failure
20876         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
20877         platforms.
20878
20879 2010-01-28  Jim Meyering  <meyering@redhat.com>
20880
20881         regex: do not ignore memory allocation failure
20882         * lib/regex_internal.c (create_cd_newstate): Detect
20883         re_node_set_init_copy failure.   Extracted from glibc commit
20884         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20885
20886         regex: sync more white-space changes from libc
20887         * lib/regex_internal.c: White-space only changes.
20888         * lib/regexec.c: Likewise.
20889
20890         regex: add many uses of __attribute_warn_unused_result__
20891         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
20892         * lib/regexec.c: Likewise.
20893         Extracted from a messy glibc commit.
20894
20895         regcomp.c: spelling and merge-artifact from glibc
20896         * lib/regcomp.c: Merge remainder of glibc's
20897         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20898
20899         regcomp.c: sync white-space changes from glibc
20900         * lib/regcomp.c: Merge to accommodate white space
20901         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
20902
20903         regcomp.c: do not ignore internal return values
20904         * lib/regcomp.c: Do not ignore internal return values.
20905         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
20906         but without its white-space changes and spelling fixes.
20907
20908         regex_internal.h: define __attribute_warn_unused_result__
20909         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
20910
20911         maint: add a syntax-check rule to check for vulnerable Makefile.in
20912         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
20913
20914 2010-01-27  Jim Meyering  <meyering@redhat.com>
20915
20916         ncftpput-ftp: clean up spaces
20917         * build-aux/ncftpput-ftp: Make Copyright line consistent.
20918         Remove trailing blanks.
20919
20920 2010-01-27  Simon Josefsson  <simon@josefsson.org>
20921
20922         * build-aux/git-version-gen: Fix copyright statement.
20923         * build-aux/gnupload: Likewise.
20924         * tests/test-arcfour.c: Likewise.
20925         * tests/test-arctwo.c: Likewise.
20926         * tests/test-count-one-bits.c: Likewise.
20927         * tests/test-crc.c: Likewise.
20928         * tests/test-des.c: Likewise.
20929         * tests/test-gc-arcfour.c: Likewise.
20930         * tests/test-gc-arctwo.c: Likewise.
20931         * tests/test-gc-des.c: Likewise.
20932         * tests/test-gc-hmac-md5.c: Likewise.
20933         * tests/test-gc-hmac-sha1.c: Likewise.
20934         * tests/test-gc-md2.c: Likewise.
20935         * tests/test-gc-md4.c: Likewise.
20936         * tests/test-gc-md5.c: Likewise.
20937         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20938         * tests/test-gc-rijndael.c: Likewise.
20939         * tests/test-gc-sha1.c: Likewise.
20940         * tests/test-gc.c: Likewise.
20941         * tests/test-gethostname.c: Likewise.
20942         * tests/test-gettimeofday.c: Likewise.
20943         * tests/test-hash.c: Likewise.
20944         * tests/test-hmac-md5.c: Likewise.
20945         * tests/test-hmac-sha1.c: Likewise.
20946         * tests/test-md2.c: Likewise.
20947         * tests/test-md4.c: Likewise.
20948         * tests/test-md5.c: Likewise.
20949         * tests/test-memchr.c: Likewise.
20950         * tests/test-memchr2.c: Likewise.
20951         * tests/test-memcmp.c: Likewise.
20952         * tests/test-memmem.c: Likewise.
20953         * tests/test-memrchr.c: Likewise.
20954         * tests/test-rawmemchr.c: Likewise.
20955         * tests/test-read-file.c: Likewise.
20956         * tests/test-rijndael.c: Likewise.
20957         * tests/test-sockets.c: Likewise.
20958         * tests/test-strchrnul.c: Likewise.
20959         * tests/test-strstr.c: Likewise.
20960         * tests/test-strtod.c: Likewise.
20961         * build-aux/ncftpput-ftp: Likewise.
20962
20963 2010-01-26  Eric Blake  <ebb9@byu.net>
20964
20965         ignore-value: update recommended header name
20966         * modules/ignore-value (Include): Only use <> for headers that
20967         exist in glibc.
20968
20969 2010-01-26  Jim Meyering  <meyering@redhat.com>
20970
20971         test-userspec.c: avoid compiler warnings
20972         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
20973         and "initialization discards qualifiers..." warnings.
20974         Put the first "uid" in its own scope, and make char* members "const".
20975
20976 2010-01-25  Bruno Haible  <bruno@clisp.org>
20977
20978         gnulib-tool: Make warning diagnostics consistent.
20979         * gnulib-tool (func_warning): New function.
20980         Use it everywhere where gnulib-tool produces output to stderr and it is
20981         not a fatal error.
20982
20983 2010-01-25  Bruno Haible  <bruno@clisp.org>
20984
20985         Fix test dependencies.
20986         * modules/xstrtol-tests (Depends-on): Add inttypes.
20987         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
20988
20989 2010-01-25 Pádraig Brady <P@draigBrady.com>
20990
20991         syntax-check: detect incorrect boolean macro values in config.h
20992         * modules/maintainer-makefile (configure.ac): Parameterize the location
20993         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
20994         The logic is from Eric Blake and the location indicated by Jim Meyering.
20995         Note the more natural CONFIG_HEADER name is prohibited by automake
20996         for backwards compatibility reasons.
20997         * top/maint.mk (sc_Wundef_boolean): New rule.
20998
20999 2010-01-25  Jim Meyering  <meyering@redhat.com>
21000
21001         bootstrap: detect MacOS 10.6's shasum, too
21002         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
21003         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
21004
21005 2010-01-23  Jim Meyering  <meyering@redhat.com>
21006
21007         xstrtoll: new module
21008         * modules/xstrtoll: New file.
21009         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
21010         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
21011         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
21012         ./configure fails if you use this module and lack "long long".
21013         * modules/xstrtoll-tests: New module.
21014         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
21015         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
21016         new init.sh-based test framework.
21017
21018 2010-01-24  Bruno Haible  <bruno@clisp.org>
21019
21020         Tests for module 'yn'.
21021         * modules/yn-tests: New file.
21022         * tests/test-yn.c: New file.
21023
21024         Tests for module 'y1'.
21025         * modules/y1-tests: New file.
21026         * tests/test-y1.c: New file.
21027
21028         Tests for module 'y0'.
21029         * modules/y0-tests: New file.
21030         * tests/test-y0.c: New file.
21031
21032         Tests for module 'tanh'.
21033         * modules/tanh-tests: New file.
21034         * tests/test-tanh.c: New file.
21035
21036         Tests for module 'tan'.
21037         * modules/tan-tests: New file.
21038         * tests/test-tan.c: New file.
21039
21040         Tests for module 'sqrt'.
21041         * modules/sqrt-tests: New file.
21042         * tests/test-sqrt.c: New file.
21043
21044         Tests for module 'sinh'.
21045         * modules/sinh-tests: New file.
21046         * tests/test-sinh.c: New file.
21047
21048         Tests for module 'sin'.
21049         * modules/sin-tests: New file.
21050         * tests/test-sin.c: New file.
21051
21052         Tests for module 'rint'.
21053         * modules/rint-tests: New file.
21054         * tests/test-rint.c: New file.
21055
21056         Tests for module 'remainder'.
21057         * modules/remainder-tests: New file.
21058         * tests/test-remainder.c: New file.
21059
21060         Tests for module 'pow'.
21061         * modules/pow-tests: New file.
21062         * tests/test-pow.c: New file.
21063
21064         Tests for module 'nextafter'.
21065         * modules/nextafter-tests: New file.
21066         * tests/test-nextafter.c: New file.
21067
21068         Tests for module 'modf'.
21069         * modules/modf-tests: New file.
21070         * tests/test-modf.c: New file.
21071
21072         Tests for module 'logb'.
21073         * modules/logb-tests: New file.
21074         * tests/test-logb.c: New file.
21075
21076         Tests for module 'log1p'.
21077         * modules/log1p-tests: New file.
21078         * tests/test-log1p.c: New file.
21079
21080         Tests for module 'log10'.
21081         * modules/log10-tests: New file.
21082         * tests/test-log10.c: New file.
21083
21084         Tests for module 'log'.
21085         * modules/log-tests: New file.
21086         * tests/test-log.c: New file.
21087
21088         Tests for module 'lgamma'.
21089         * modules/lgamma-tests: New file.
21090         * tests/test-lgamma.c: New file.
21091
21092         Tests for module 'ldexp'.
21093         * modules/ldexp-tests: New file.
21094         * tests/test-ldexp.c: New file.
21095
21096         Tests for module 'jn'.
21097         * modules/jn-tests: New file.
21098         * tests/test-jn.c: New file.
21099
21100         Tests for module 'j1'.
21101         * modules/j1-tests: New file.
21102         * tests/test-j1.c: New file.
21103
21104         Tests for module 'j0'.
21105         * modules/j0-tests: New file.
21106         * tests/test-j0.c: New file.
21107
21108         Tests for module 'hypot'.
21109         * modules/hypot-tests: New file.
21110         * tests/test-hypot.c: New file.
21111
21112         Tests for module 'fmod'.
21113         * modules/fmod-tests: New file.
21114         * tests/test-fmod.c: New file.
21115
21116         Tests for module 'fabs'.
21117         * modules/fabs-tests: New file.
21118         * tests/test-fabs.c: New file.
21119
21120         Tests for module 'exp'.
21121         * modules/exp-tests: New file.
21122         * tests/test-exp.c: New file.
21123
21124         Tests for module 'erfc'.
21125         * modules/erfc-tests: New file.
21126         * tests/test-erfc.c: New file.
21127
21128         Tests for module 'erf'.
21129         * modules/erf-tests: New file.
21130         * tests/test-erf.c: New file.
21131
21132         Tests for module 'cosh'.
21133         * modules/cosh-tests: New file.
21134         * tests/test-cosh.c: New file.
21135
21136         Tests for module 'cos'.
21137         * modules/cos-tests: New file.
21138         * tests/test-cos.c: New file.
21139
21140         Tests for module 'copysign'.
21141         * modules/copysign-tests: New file.
21142         * tests/test-copysign.c: New file.
21143
21144         Tests for module 'cbrt'.
21145         * modules/cbrt-tests: New file.
21146         * tests/test-cbrt.c: New file.
21147
21148         Tests for module 'atan2'.
21149         * modules/atan2-tests: New file.
21150         * tests/test-atan2.c: New file.
21151
21152         Tests for module 'atan'.
21153         * modules/atan-tests: New file.
21154         * tests/test-atan.c: New file.
21155
21156         Tests for module 'asin'.
21157         * modules/asin-tests: New file.
21158         * tests/test-asin.c: New file.
21159
21160         Tests for module 'acos'.
21161         * modules/acos-tests: New file.
21162         * tests/test-acos.c: New file.
21163
21164 2010-01-24  Bruno Haible  <bruno@clisp.org>
21165
21166         Fix tests for common <math.h> functions.
21167         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
21168         code snippet that references the function pointer, rather than merely
21169         calling the function. Substitute the FUNC_LIBM variable.
21170         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
21171         * modules/acos (configure.ac): Likewise.
21172         * modules/asin (configure.ac): Likewise.
21173         * modules/atan (configure.ac): Likewise.
21174         * modules/atan2 (configure.ac): Likewise.
21175         * modules/cbrt (configure.ac): Likewise.
21176         * modules/copysign (configure.ac): Likewise.
21177         * modules/cos (configure.ac): Likewise.
21178         * modules/cosh (configure.ac): Likewise.
21179         * modules/erf (configure.ac): Likewise.
21180         * modules/erfc (configure.ac): Likewise.
21181         * modules/exp (configure.ac): Likewise.
21182         * modules/fabs (configure.ac): Likewise.
21183         * modules/fmod (configure.ac): Likewise.
21184         * modules/hypot (configure.ac): Likewise.
21185         * modules/j0 (configure.ac): Likewise.
21186         * modules/j1 (configure.ac): Likewise.
21187         * modules/jn (configure.ac): Likewise.
21188         * modules/ldexp (configure.ac): Likewise.
21189         * modules/lgamma (configure.ac): Likewise.
21190         * modules/log (configure.ac): Likewise.
21191         * modules/log10 (configure.ac): Likewise.
21192         * modules/log1p (configure.ac): Likewise.
21193         * modules/logb (configure.ac): Likewise.
21194         * modules/modf (configure.ac): Likewise.
21195         * modules/nextafter (configure.ac): Likewise.
21196         * modules/pow (configure.ac): Likewise.
21197         * modules/remainder (configure.ac): Likewise.
21198         * modules/rint (configure.ac): Likewise.
21199         * modules/sin (configure.ac): Likewise.
21200         * modules/sinh (configure.ac): Likewise.
21201         * modules/tan (configure.ac): Likewise.
21202         * modules/tanh (configure.ac): Likewise.
21203         * modules/y0 (configure.ac): Likewise.
21204         * modules/y1 (configure.ac): Likewise.
21205         * modules/yn (configure.ac): Likewise.
21206
21207 2010-01-24  Bruno Haible  <bruno@clisp.org>
21208
21209         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
21210         * tests/test-acosl.c (x): New variable.
21211         (main): Store argument in x and fetch it from x.
21212         * tests/test-asinl.c (x): New variable.
21213         (main): Store argument in x and fetch it from x.
21214         * tests/test-atanl.c (x): New variable.
21215         (main): Store argument in x and fetch it from x.
21216         * tests/test-cosl.c (x): New variable.
21217         (main): Store argument in x and fetch it from x.
21218         * tests/test-expl.c (x): New variable.
21219         (main): Store argument in x and fetch it from x.
21220         * tests/test-logl.c (x): New variable.
21221         (main): Store argument in x and fetch it from x.
21222         * tests/test-sinl.c (x): New variable.
21223         (main): Store argument in x and fetch it from x.
21224         * tests/test-sqrtl.c (x): New variable.
21225         (main): Store argument in x and fetch it from x.
21226         * tests/test-tanl.c (x): New variable.
21227         (main): Store argument in x and fetch it from x.
21228
21229 2010-01-24  Bruno Haible  <bruno@clisp.org>
21230
21231         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
21232         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
21233         assignments to the initial TESTS_ENVIRONMENT.
21234         * doc/gnulib.texi (Unit test modules): Document it.
21235         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
21236         TESTS_ENVIRONMENT.
21237         * modules/btowc-tests (Makefile.am): Likewise.
21238         * modules/c-stack-tests (Makefile.am): Likewise.
21239         * modules/c-strcase-tests (Makefile.am): Likewise.
21240         * modules/copy-file-tests (Makefile.am): Likewise.
21241         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
21242         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
21243         * modules/mbrtowc-tests (Makefile.am): Likewise.
21244         * modules/mbscasecmp-tests (Makefile.am): Likewise.
21245         * modules/mbscasestr-tests (Makefile.am): Likewise.
21246         * modules/mbschr-tests (Makefile.am): Likewise.
21247         * modules/mbscspn-tests (Makefile.am): Likewise.
21248         * modules/mbsinit-tests (Makefile.am): Likewise.
21249         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
21250         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
21251         * modules/mbspbrk-tests (Makefile.am): Likewise.
21252         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
21253         * modules/mbsrchr-tests (Makefile.am): Likewise.
21254         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
21255         * modules/mbsspn-tests (Makefile.am): Likewise.
21256         * modules/mbsstr-tests (Makefile.am): Likewise.
21257         * modules/nl_langinfo-tests (Makefile.am): Likewise.
21258         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
21259         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
21260         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
21261         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
21262         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
21263         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
21264         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
21265         * modules/wcrtomb-tests (Makefile.am): Likewise.
21266         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
21267         * modules/wcsrtombs-tests (Makefile.am): Likewise.
21268         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
21269         assignments from TESTS_ENVIRONMENT.
21270         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
21271         augmentation.
21272         * modules/argp-version-etc-tests (Makefile.am): Likewise.
21273         * modules/atexit-tests (Makefile.am): Likewise.
21274         * modules/binary-io-tests (Makefile.am): Likewise.
21275         * modules/closein-tests (Makefile.am): Likewise.
21276         * modules/dprintf-posix-tests (Makefile.am): Likewise.
21277         * modules/exclude-tests (Makefile.am): Likewise.
21278         * modules/fflush-tests (Makefile.am): Likewise.
21279         * modules/fpending-tests (Makefile.am): Likewise.
21280         * modules/fprintf-posix-tests (Makefile.am): Likewise.
21281         * modules/freadahead-tests (Makefile.am): Likewise.
21282         * modules/freadptr-tests (Makefile.am): Likewise.
21283         * modules/freadseek-tests (Makefile.am): Likewise.
21284         * modules/fseek-tests (Makefile.am): Likewise.
21285         * modules/fseeko-tests (Makefile.am): Likewise.
21286         * modules/ftell-tests (Makefile.am): Likewise.
21287         * modules/ftello-tests (Makefile.am): Likewise.
21288         * modules/idpriv-drop-tests (Makefile.am): Likewise.
21289         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
21290         * modules/lseek-tests (Makefile.am): Likewise.
21291         * modules/parse-duration-tests (Makefile.am): Likewise.
21292         * modules/perror-tests (Makefile.am): Likewise.
21293         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
21294         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
21295         * modules/pipe-tests (Makefile.am): Likewise.
21296         * modules/pread-tests (Makefile.am): Likewise.
21297         * modules/printf-posix-tests (Makefile.am): Likewise.
21298         * modules/select-tests (Makefile.am): Likewise.
21299         * modules/sigpipe-tests (Makefile.am): Likewise.
21300         * modules/tsearch-tests (Makefile.am): Likewise.
21301         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
21302         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
21303         * modules/uniname/uniname-tests (Makefile.am): Likewise.
21304         * modules/uniwidth/width-tests (Makefile.am): Likewise.
21305         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
21306         * modules/version-etc-tests (Makefile.am): Likewise.
21307         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
21308         * modules/vprintf-posix-tests (Makefile.am): Likewise.
21309         * modules/xalloc-die-tests (Makefile.am): Likewise.
21310         * modules/xprintf-posix-tests (Makefile.am): Likewise.
21311         * modules/xstrtoimax-tests (Makefile.am): Likewise.
21312         * modules/xstrtol-tests (Makefile.am): Likewise.
21313         * modules/xstrtoumax-tests (Makefile.am): Likewise.
21314         * modules/yesno-tests (Makefile.am): Likewise.
21315         Suggested by Jim Meyering.
21316
21317 2010-01-24  Bruno Haible  <bruno@clisp.org>
21318
21319         More documentation.
21320         * doc/gnulib.texi (Writing modules): New chapter.
21321         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
21322         the new chapter.
21323
21324 2010-01-24  Jim Meyering  <meyering@redhat.com>
21325
21326         maint.mk: do not prepend "./" after filtering
21327         * top/maint.mk (_prepend_srcdir_prefix): New variable
21328         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
21329         "./" when $(srcdir) is ".".
21330
21331         define STREQ(a,b) consistently, removing useless parentheses
21332         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
21333         since the only risk is that "a" or "b" contains an unparenthesized
21334         comma, but if either did that, STREQ would have 3 or more arguments.
21335         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
21336         * lib/fts.c (STREQ): Remove unnecessary parentheses.
21337         * lib/hash-triple.c (STREQ): Likewise.
21338         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
21339         * lib/getugroups.c (STREQ): Likewise.
21340
21341 2010-01-23  Jim Meyering  <meyering@redhat.com>
21342
21343         maint.mk: fix syntax-check in a non-srcdir build directory
21344         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
21345         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
21346
21347 2010-01-22  Jim Meyering  <meyering@redhat.com>
21348
21349         userspec: add unit tests
21350         * tests/test-userspec.c: New file.
21351         * modules/userspec-tests: Likewise.
21352
21353 2010-01-21  Jim Meyering  <meyering@redhat.com>
21354
21355         maint.mk: handle source file names containing "." robustly
21356         * top/maint.mk (_dot_escaped_srcdir): Define.
21357         (VC_LIST): Use it in LHS of sed substitution.
21358
21359 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
21360
21361         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
21362         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
21363         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
21364         from a non-srcdir build.
21365
21366 2010-01-20  Eric Blake  <ebb9@byu.net>
21367
21368         warn-on-use: use instead of link-warning
21369         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
21370         * modules/unistd (Depends-on, Makefile.am): Likewise.
21371         * modules/arpa_inet (Depends-on): Replace link-warning with
21372         warn-on-use.
21373         (Makefile.am): Update rules accordingly.
21374         * modules/ctype (Depends-on, Makefile.am): Likewise.
21375         * modules/dirent (Depends-on, Makefile.am): Likewise.
21376         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
21377         * modules/inttypes (Depends-on, Makefile.am): Likewise.
21378         * modules/langinfo (Depends-on, Makefile.am): Likewise.
21379         * modules/locale (Depends-on, Makefile.am): Likewise.
21380         * modules/math (Depends-on, Makefile.am): Likewise.
21381         * modules/search (Depends-on, Makefile.am): Likewise.
21382         * modules/signal (Depends-on, Makefile.am): Likewise.
21383         * modules/spawn (Depends-on, Makefile.am): Likewise.
21384         * modules/stdlib (Depends-on, Makefile.am): Likewise.
21385         * modules/string (Depends-on, Makefile.am): Likewise.
21386         * modules/strings (Depends-on, Makefile.am): Likewise.
21387         * modules/sys_file (Depends-on, Makefile.am): Likewise.
21388         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
21389         * modules/sys_select (Depends-on, Makefile.am): Likewise.
21390         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
21391         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
21392         * modules/sys_times (Depends-on, Makefile.am): Likewise.
21393         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
21394         * modules/wchar (Depends-on, Makefile.am): Likewise.
21395         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
21396         should be poisoned.
21397         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
21398         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
21399         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
21400         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21401         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
21402         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21403         * m4/math_h.m4 (gl_MATH_H): Likewise.
21404         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21405         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
21406         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21407         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
21408         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
21409         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
21410         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
21411         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
21412         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
21413         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21414         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21415         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
21416         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21417         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21418         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21419         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
21420         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
21421         GL_LINK_WARNING.
21422         * lib/ctype.in.h: Likewise.
21423         * lib/dirent.in.h: Likewise.
21424         * lib/fcntl.in.h: Likewise.
21425         * lib/inttypes.in.h: Likewise.
21426         * lib/langinfo.in.h: Likewise.
21427         * lib/locale.in.h: Likewise.
21428         * lib/math.in.h: Likewise.
21429         * lib/search.in.h: Likewise.
21430         * lib/signal.in.h: Likewise.
21431         * lib/spawn.in.h: Likewise.
21432         * lib/stdio.in.h: Likewise.
21433         * lib/stdlib.in.h: Likewise.
21434         * lib/string.in.h: Likewise.
21435         * lib/strings.in.h: Likewise.
21436         * lib/sys_file.in.h: Likewise.
21437         * lib/sys_ioctl.in.h: Likewise.
21438         * lib/sys_select.in.h: Likewise.
21439         * lib/sys_socket.in.h: Likewise.
21440         * lib/sys_stat.in.h: Likewise.
21441         * lib/sys_times.in.h: Likewise.
21442         * lib/sys_utsname.in.h: Likewise.
21443         * lib/unistd.in.h: Likewise.
21444         * lib/wchar.in.h: Likewise.
21445
21446 2010-01-20  Bruno Haible  <bruno@clisp.org>
21447
21448         Avoid duplicate -lm.
21449         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
21450         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
21451         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
21452         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
21453         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
21454         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
21455         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
21456         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
21457         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
21458         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
21459         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
21460         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21461         Reported by Paolo Bonzini.
21462
21463 2010-01-19  Bruno Haible  <bruno@clisp.org>
21464
21465         langinfo, nl_langinfo: Relicense under LGPLv2+.
21466         * modules/langinfo (License): Change to LGPLv2+.
21467         * modules/nl_langinfo (License): Likewise.
21468         Patch by David Lutterkort <lutter@redhat.com>.
21469
21470 2010-01-19  Bruno Haible  <bruno@clisp.org>
21471
21472         Avoid compilation error with cc on OSF/1 5.1.
21473         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
21474         statement, not before.
21475         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21476
21477 2010-01-18  Bruno Haible  <bruno@clisp.org>
21478
21479         Avoid a link error due to the __printf__ symbol.
21480         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
21481         and 2.6.x.
21482         (__format__, __printf__): Remove definitions.
21483         * lib/argp-fmtstream.h: Likewise.
21484         * lib/argp.h: Likewise.
21485         * lib/error.h: Likewise.
21486         * lib/vasnprintf.h: Likewise.
21487         * lib/xprintf.h: Likewise.
21488         * lib/xvasprintf.h: Likewise.
21489         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21490
21491 2010-01-18  Bruno Haible  <bruno@clisp.org>
21492
21493         Tests for module 'tanl'.
21494         * modules/tanl-tests: New file.
21495         * tests/test-tanl.c: New file.
21496
21497         Tests for module 'sqrtl'.
21498         * modules/sqrtl-tests: New file.
21499         * tests/test-sqrtl.c: New file.
21500
21501         Tests for module 'sinl'.
21502         * modules/sinl-tests: New file.
21503         * tests/test-sinl.c: New file.
21504
21505         Tests for module 'logl'.
21506         * modules/logl-tests: New file.
21507         * tests/test-logl.c: New file.
21508
21509         Tests for module 'expl'.
21510         * modules/expl-tests: New file.
21511         * tests/test-expl.c: New file.
21512
21513         Tests for module 'cosl'.
21514         * modules/cosl-tests: New file.
21515         * tests/test-cosl.c: New file.
21516
21517         Tests for module 'atanl'.
21518         * modules/atanl-tests: New file.
21519         * tests/test-atanl.c: New file.
21520
21521         Tests for module 'asinl'.
21522         * modules/asinl-tests: New file.
21523         * tests/test-asinl.c: New file.
21524
21525         Tests for module 'acosl'.
21526         * modules/acosl-tests: New file.
21527         * tests/test-acosl.c: New file.
21528
21529         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
21530         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
21531         tanl): Use the standard gnulib idiom.
21532         * lib/cosl.c: Don't include trigl.c and sincosl.c.
21533         * lib/sinl.c: Likewise.
21534         * lib/tanl.c: Don't include trigl.c.
21535         (kernel_tanl): Make static.
21536         * lib/sincosl.c: Include trigl.h first.
21537         * lib/trigl.c: Likewise.
21538         * m4/acosl.m4: New file.
21539         * m4/asinl.m4: New file.
21540         * m4/atanl.m4: New file.
21541         * m4/cosl.m4: New file.
21542         * m4/expl.m4: New file.
21543         * m4/logl.m4: New file.
21544         * m4/sinl.m4: New file.
21545         * m4/sqrtl.m4: New file.
21546         * m4/tanl.m4: New file.
21547         * m4/mathl.m4: Remove file.
21548         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
21549         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
21550         Don't initialize GNULIB_MATHL.
21551         * modules/acosl: New file.
21552         * modules/asinl: New file.
21553         * modules/atanl: New file.
21554         * modules/cosl: New file.
21555         * modules/expl: New file.
21556         * modules/logl: New file.
21557         * modules/sinl: New file.
21558         * modules/sqrtl: New file.
21559         * modules/tanl: New file.
21560         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
21561         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
21562         substitute GNULIB_MATHL.
21563         * modules/mathl: Rewritten.
21564         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
21565         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
21566         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
21567         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
21568         * doc/posix-functions/expl.texi: Mention the 'expl' module.
21569         * doc/posix-functions/logl.texi: Mention the 'logl' module.
21570         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
21571         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
21572         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
21573
21574 2010-01-18  Bruno Haible  <bruno@clisp.org>
21575
21576         sqrt: Make gl_FUNC_SQRT requirable.
21577         * m4/sqrt.m4: New file.
21578         * modules/sqrt (Files): Add it.
21579         (configure.ac): Invoke gl_FUNC_SQRT.
21580
21581 2010-01-18  Bruno Haible  <bruno@clisp.org>
21582
21583         New modules for common <math.h> functions.
21584         * m4/mathfunc.m4: New file.
21585         * modules/acos: New file.
21586         * modules/asin: New file.
21587         * modules/atan: New file.
21588         * modules/atan2: New file.
21589         * modules/cbrt: New file.
21590         * modules/copysign: New file.
21591         * modules/cos: New file.
21592         * modules/cosh: New file.
21593         * modules/erf: New file.
21594         * modules/erfc: New file.
21595         * modules/exp: New file.
21596         * modules/fabs: New file.
21597         * modules/fmod: New file.
21598         * modules/hypot: New file.
21599         * modules/j0: New file.
21600         * modules/j1: New file.
21601         * modules/jn: New file.
21602         * modules/ldexp: New file.
21603         * modules/lgamma: New file.
21604         * modules/log: New file.
21605         * modules/log10: New file.
21606         * modules/log1p: New file.
21607         * modules/logb: New file.
21608         * modules/modf: New file.
21609         * modules/nextafter: New file.
21610         * modules/pow: New file.
21611         * modules/remainder: New file.
21612         * modules/rint: New file.
21613         * modules/sin: New file.
21614         * modules/sinh: New file.
21615         * modules/sqrt: New file.
21616         * modules/tan: New file.
21617         * modules/tanh: New file.
21618         * modules/y0: New file.
21619         * modules/y1: New file.
21620         * modules/yn: New file.
21621         * doc/posix-functions/acos.texi: Mention the 'acos' module.
21622         * doc/posix-functions/asin.texi: Mention the 'asin' module.
21623         * doc/posix-functions/atan.texi: Mention the 'atan' module.
21624         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
21625         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
21626         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
21627         * doc/posix-functions/cos.texi: Mention the 'cos' module.
21628         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
21629         * doc/posix-functions/erf.texi: Mention the 'erf' module.
21630         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
21631         * doc/posix-functions/exp.texi: Mention the 'exp' module.
21632         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
21633         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
21634         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
21635         * doc/posix-functions/j0.texi: Mention the 'j0' module.
21636         * doc/posix-functions/j1.texi: Mention the 'j1' module.
21637         * doc/posix-functions/jn.texi: Mention the 'jn' module.
21638         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
21639         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
21640         * doc/posix-functions/log.texi: Mention the 'log' module.
21641         * doc/posix-functions/log10.texi: Mention the 'log10' module.
21642         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
21643         * doc/posix-functions/logb.texi: Mention the 'logb' module.
21644         * doc/posix-functions/modf.texi: Mention the 'modf' module.
21645         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
21646         * doc/posix-functions/pow.texi: Mention the 'pow' module.
21647         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
21648         * doc/posix-functions/rint.texi: Mention the 'rint' module.
21649         * doc/posix-functions/sin.texi: Mention the 'sin' module.
21650         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
21651         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
21652         * doc/posix-functions/tan.texi: Mention the 'tan' module.
21653         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
21654         * doc/posix-functions/y0.texi: Mention the 'y0' module.
21655         * doc/posix-functions/y1.texi: Mention the 'y1' module.
21656         * doc/posix-functions/yn.texi: Mention the 'yn' module.
21657
21658 2010-01-18  Jim Meyering  <meyering@redhat.com>
21659
21660         ignore-value: relax license to LGPLv2+
21661         * modules/ignore-value (License): Relax to LGPLv2+.
21662
21663         getdate: don't leak when TZ contains two or more '"'s
21664         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
21665         double quote in TZ after the first one.
21666
21667         readtokens: do not leak internal token_lengths buffer
21668         * lib/readtokens.c (readtokens): Free the local, lengths,
21669         when the supplied "token_lengths" parameter is NULL.
21670
21671 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21672
21673         Fix a couple of missing LIBTHREAD link failures on AIX.
21674         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
21675         $(LIBTHREAD).
21676         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
21677
21678         Link test-poll against INET_PTON_LIB.
21679         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
21680         for inet_pton on Solaris 10.
21681
21682 2010-01-17  Bruno Haible  <bruno@clisp.org>
21683
21684         unistdio/*-sprintf: Fix typo in module description.
21685         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
21686         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
21687         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
21688         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
21689         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
21690         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
21691         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
21692         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21693
21694 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21695
21696         gnulib-tool: fix filelist for AIX, HP-UX ksh.
21697         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
21698         variables in shell case patterns, for AIX and HP-UX ksh.
21699
21700         Split large sed scripts, for HP-UX sed.
21701         * modules/stdio: Split sed scripts around 50 sed commands,
21702         to avoid HP-UX limit of 99 commands, in the near future.
21703         * modules/string: Likewise.
21704         * modules/unistd: Likewise.
21705
21706         gnulib-tool: avoid writing in the current directory.
21707         * gnulib-tool (func_emit_lib_Makefile_am)
21708         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
21709         not in the current directory, so concurrent gnulib-tool
21710         instances do not interfere.
21711
21712 2010-01-16  Jim Meyering  <meyering@redhat.com>
21713
21714         doc: update users.txt
21715         * users.txt: Add grep.
21716         (diffutils, gzip): Update URLs.
21717
21718 2010-01-12  Bruno Haible  <bruno@clisp.org>
21719
21720         posix_spawn: Avoid test failure on Cygwin.
21721         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
21722         characters.
21723         Reported by Simon Josefsson.
21724
21725 2010-01-12  Bruno Haible  <bruno@clisp.org>
21726
21727         * tests/test-cond.c (main): When skipping the test, show the reason.
21728
21729 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21730
21731         * lib/striconv.c (str_cd_iconv): Avoid if before free.
21732
21733 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21734
21735         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
21736         VC_LIST_ALWAYS_EXCLUDE_REGEX.
21737
21738 2010-01-12  Eric Blake  <ebb9@byu.net>
21739
21740         build: guarantee AS_VAR_IF
21741         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
21742         (gl_AS_VAR_IF): Move...
21743         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
21744         Reported by Simon Josefsson.
21745
21746 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21747
21748         * lib/stdio.in.h: Fix typo.
21749
21750 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21751
21752         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
21753         libgpg-error.
21754
21755 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21756
21757         * tests/test-xalloc-die.sh: Use $EXEEXT.
21758
21759 2010-01-12  Simon Josefsson  <simon@josefsson.org>
21760             Bruno Haible  <bruno@clisp.org>
21761
21762         getlogin, getlogin_r: Avoid test failure.
21763         * tests/test-getlogin.c: Include <stdio.h>.
21764         (main): Skip the test when the function fails because stdin is not a
21765         tty.
21766         * tests/test-getlogin_r.c: Include <stdio.h>.
21767         (main): Skip the test when the function fails because stdin is not a
21768         tty.
21769
21770 2010-01-11  Eric Blake  <ebb9@byu.net>
21771
21772         tests: avoid more large file warnings
21773         * tests/test-fflush.c: Avoid warning about ftell use.
21774         * tests/test-fseek.c: Avoid warning about fseek use.
21775
21776 2010-01-10  Bruno Haible  <bruno@clisp.org>
21777
21778         nproc: Work better on Linux when /proc and /sys are not mounted.
21779         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
21780         as lower bound when, on glibc/Linux systems,
21781         sysconf (_SC_NPROCESSORS_CONF) returns 1.
21782         Suggested by Pádraig Brady <P@draigbrady.com>.
21783         Reported by Dmitry V. Levin <ldv@altlinux.org>.
21784
21785         nproc: Refactor.
21786         * lib/nproc.c (num_processors_via_affinity_mask): New function,
21787         extracted from num_processors.
21788         (num_processors): Call it.
21789
21790 2010-01-11  Jim Meyering  <meyering@redhat.com>
21791
21792         utimecmp: avoid new warning from upcoming gcc-4.5.0
21793         * lib/utimecmp.c (BILLION): Define using #define rather than an
21794         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
21795
21796 2010-01-11  Eric Blake  <ebb9@byu.net>
21797
21798         math: add portability warnings for classification macros
21799         * modules/math (Depends-on): Add warn-on-use.
21800         (Makefile.am): Provide new substitutions.
21801         * m4/math_h.m4 (gl_MATH_H): Require inline.
21802         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
21803         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
21804         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
21805         implement warnings.
21806
21807         unistd: warn on use of environ without module
21808         * modules/unistd (Depends-on): Add warn-on-use.
21809         (Makefile.am): Provide new substitutions.
21810         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
21811         * lib/unistd.in.h (environ): Wrap with a warning helper function.
21812
21813         stdio: warn on suspicious uses
21814         * modules/stdio (Depends-on): Add warn-on-use.
21815         (Makefile.am): Provide new substitutions.
21816         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
21817         fseeko.
21818         * lib/stdio.in.h (gets): Always warn on use.
21819         (fseek, ftell): Adjust when warnings are issued, and honor
21820         _GL_NO_LARGE_FILES as a way to silence the warning.
21821         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
21822         any warning about large file offsets.
21823         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
21824         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
21825         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
21826         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
21827         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
21828         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
21829         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
21830         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
21831
21832         warn-on-use: new module
21833         * modules/warn-on-use: New file.
21834         * build-aux/warn-on-use.h: Likewise.
21835         * m4/warn-on-use.m4: Likewise.
21836         * MODULES.html.sh (Support for building): Mention it.
21837
21838 2010-01-10  Bruno Haible  <bruno@clisp.org>
21839
21840         Tests for module 'unistr/u32-strdup'.
21841         * modules/unistr/u32-strdup-tests: New file.
21842         * tests/unistr/test-u32-strdup.c: New file.
21843
21844         Tests for module 'unistr/u16-strdup'.
21845         * modules/unistr/u16-strdup-tests: New file.
21846         * tests/unistr/test-u16-strdup.c: New file.
21847
21848         Tests for module 'unistr/u8-strdup'.
21849         * modules/unistr/u8-strdup-tests: New file.
21850         * tests/unistr/test-u8-strdup.c: New file.
21851         * tests/unistr/test-strdup.h: New file.
21852
21853         Tests for module 'unistr/u32-strncmp'.
21854         * modules/unistr/u32-strncmp-tests: New file.
21855         * tests/unistr/test-u32-strncmp.c: New file.
21856
21857         Tests for module 'unistr/u16-strncmp'.
21858         * modules/unistr/u16-strncmp-tests: New file.
21859         * tests/unistr/test-u16-strncmp.c: New file.
21860
21861         Tests for module 'unistr/u8-strncmp'.
21862         * modules/unistr/u8-strncmp-tests: New file.
21863         * tests/unistr/test-u8-strncmp.c: New file.
21864         * tests/unistr/test-strncmp.h: New file.
21865
21866         Tests for module 'unistr/u32-strcoll'.
21867         * modules/unistr/u32-strcoll-tests: New file.
21868         * tests/unistr/test-u32-strcoll.c: New file.
21869
21870         Tests for module 'unistr/u16-strcoll'.
21871         * modules/unistr/u16-strcoll-tests: New file.
21872         * tests/unistr/test-u16-strcoll.c: New file.
21873
21874         Tests for module 'unistr/u8-strcoll'.
21875         * modules/unistr/u8-strcoll-tests: New file.
21876         * tests/unistr/test-u8-strcoll.c: New file.
21877
21878         Tests for module 'unistr/u32-strcmp'.
21879         * modules/unistr/u32-strcmp-tests: New file.
21880         * tests/unistr/test-u32-strcmp.c: New file.
21881         * tests/unistr/test-u32-strcmp.h: New file.
21882
21883         Tests for module 'unistr/u16-strcmp'.
21884         * modules/unistr/u16-strcmp-tests: New file.
21885         * tests/unistr/test-u16-strcmp.c: New file.
21886         * tests/unistr/test-u16-strcmp.h: New file.
21887
21888         Tests for module 'unistr/u8-strcmp'.
21889         * modules/unistr/u8-strcmp-tests: New file.
21890         * tests/unistr/test-u8-strcmp.c: New file.
21891         * tests/unistr/test-u8-strcmp.h: New file.
21892         * tests/unistr/test-strcmp.h: New file.
21893
21894         Tests for module 'unistr/u32-strncat'.
21895         * modules/unistr/u32-strncat-tests: New file.
21896         * tests/unistr/test-u32-strncat.c: New file.
21897
21898         Tests for module 'unistr/u16-strncat'.
21899         * modules/unistr/u16-strncat-tests: New file.
21900         * tests/unistr/test-u16-strncat.c: New file.
21901
21902         Tests for module 'unistr/u8-strncat'.
21903         * modules/unistr/u8-strncat-tests: New file.
21904         * tests/unistr/test-u8-strncat.c: New file.
21905         * tests/unistr/test-strncat.h: New file.
21906
21907         Tests for module 'unistr/u32-strcat'.
21908         * modules/unistr/u32-strcat-tests: New file.
21909         * tests/unistr/test-u32-strcat.c: New file.
21910
21911         Tests for module 'unistr/u16-strcat'.
21912         * modules/unistr/u16-strcat-tests: New file.
21913         * tests/unistr/test-u16-strcat.c: New file.
21914
21915         Tests for module 'unistr/u8-strcat'.
21916         * modules/unistr/u8-strcat-tests: New file.
21917         * tests/unistr/test-u8-strcat.c: New file.
21918         * tests/unistr/test-strcat.h: New file.
21919
21920         Tests for module 'unistr/u32-stpncpy'.
21921         * modules/unistr/u32-stpncpy-tests: New file.
21922         * tests/unistr/test-u32-stpncpy.c: New file.
21923
21924         Tests for module 'unistr/u16-stpncpy'.
21925         * modules/unistr/u16-stpncpy-tests: New file.
21926         * tests/unistr/test-u16-stpncpy.c: New file.
21927
21928         Tests for module 'unistr/u8-stpncpy'.
21929         * modules/unistr/u8-stpncpy-tests: New file.
21930         * tests/unistr/test-u8-stpncpy.c: New file.
21931         * tests/unistr/test-stpncpy.h: New file.
21932
21933         Tests for module 'unistr/u32-strncpy'.
21934         * modules/unistr/u32-strncpy-tests: New file.
21935         * tests/unistr/test-u32-strncpy.c: New file.
21936
21937         Tests for module 'unistr/u16-strncpy'.
21938         * modules/unistr/u16-strncpy-tests: New file.
21939         * tests/unistr/test-u16-strncpy.c: New file.
21940
21941         Tests for module 'unistr/u8-strncpy'.
21942         * modules/unistr/u8-strncpy-tests: New file.
21943         * tests/unistr/test-u8-strncpy.c: New file.
21944         * tests/unistr/test-strncpy.h: New file.
21945
21946         Tests for module 'unistr/u32-stpcpy'.
21947         * modules/unistr/u32-stpcpy-tests: New file.
21948         * tests/unistr/test-u32-stpcpy.c: New file.
21949
21950         Tests for module 'unistr/u16-stpcpy'.
21951         * modules/unistr/u16-stpcpy-tests: New file.
21952         * tests/unistr/test-u16-stpcpy.c: New file.
21953
21954         Tests for module 'unistr/u8-stpcpy'.
21955         * modules/unistr/u8-stpcpy-tests: New file.
21956         * tests/unistr/test-u8-stpcpy.c: New file.
21957         * tests/unistr/test-stpcpy.h: New file.
21958
21959         Tests for module 'unistr/u32-strcpy'.
21960         * modules/unistr/u32-strcpy-tests: New file.
21961         * tests/unistr/test-u32-strcpy.c: New file.
21962
21963         Tests for module 'unistr/u16-strcpy'.
21964         * modules/unistr/u16-strcpy-tests: New file.
21965         * tests/unistr/test-u16-strcpy.c: New file.
21966
21967         Tests for module 'unistr/u8-strcpy'.
21968         * modules/unistr/u8-strcpy-tests: New file.
21969         * tests/unistr/test-u8-strcpy.c: New file.
21970         * tests/unistr/test-strcpy.h: New file.
21971
21972         Tests for module 'unistr/u32-strnlen'.
21973         * modules/unistr/u32-strnlen-tests: New file.
21974         * tests/unistr/test-u32-strnlen.c: New file.
21975
21976         Tests for module 'unistr/u16-strnlen'.
21977         * modules/unistr/u16-strnlen-tests: New file.
21978         * tests/unistr/test-u16-strnlen.c: New file.
21979
21980         Tests for module 'unistr/u8-strnlen'.
21981         * modules/unistr/u8-strnlen-tests: New file.
21982         * tests/unistr/test-u8-strnlen.c: New file.
21983         * tests/unistr/test-strnlen.h: New file.
21984
21985         Tests for module 'unistr/u32-strlen'.
21986         * modules/unistr/u32-strlen-tests: New file.
21987         * tests/unistr/test-u32-strlen.c: New file.
21988
21989         Tests for module 'unistr/u16-strlen'.
21990         * modules/unistr/u16-strlen-tests: New file.
21991         * tests/unistr/test-u16-strlen.c: New file.
21992
21993         Tests for module 'unistr/u8-strlen'.
21994         * modules/unistr/u8-strlen-tests: New file.
21995         * tests/unistr/test-u8-strlen.c: New file.
21996
21997         Tests for module 'unistr/u32-prev'.
21998         * modules/unistr/u32-prev-tests: New file.
21999         * tests/unistr/test-u32-prev.c: New file.
22000
22001         Tests for module 'unistr/u16-prev'.
22002         * modules/unistr/u16-prev-tests: New file.
22003         * tests/unistr/test-u16-prev.c: New file.
22004
22005         Tests for module 'unistr/u8-prev'.
22006         * modules/unistr/u8-prev-tests: New file.
22007         * tests/unistr/test-u8-prev.c: New file.
22008
22009         Tests for module 'unistr/u32-next'.
22010         * modules/unistr/u32-next-tests: New file.
22011         * tests/unistr/test-u32-next.c: New file.
22012
22013         Tests for module 'unistr/u16-next'.
22014         * modules/unistr/u16-next-tests: New file.
22015         * tests/unistr/test-u16-next.c: New file.
22016
22017         Tests for module 'unistr/u8-next'.
22018         * modules/unistr/u8-next-tests: New file.
22019         * tests/unistr/test-u8-next.c: New file.
22020
22021         Tests for module 'unistr/u32-strmbtouc'.
22022         * modules/unistr/u32-strmbtouc-tests: New file.
22023         * tests/unistr/test-u32-strmbtouc.c: New file.
22024
22025         Tests for module 'unistr/u16-strmbtouc'.
22026         * modules/unistr/u16-strmbtouc-tests: New file.
22027         * tests/unistr/test-u16-strmbtouc.c: New file.
22028
22029         Tests for module 'unistr/u8-strmbtouc'.
22030         * modules/unistr/u8-strmbtouc-tests: New file.
22031         * tests/unistr/test-u8-strmbtouc.c: New file.
22032
22033         Tests for module 'unistr/u32-strmblen'.
22034         * modules/unistr/u32-strmblen-tests: New file.
22035         * tests/unistr/test-u32-strmblen.c: New file.
22036
22037         Tests for module 'unistr/u16-strmblen'.
22038         * modules/unistr/u16-strmblen-tests: New file.
22039         * tests/unistr/test-u16-strmblen.c: New file.
22040
22041         Tests for module 'unistr/u8-strmblen'.
22042         * modules/unistr/u8-strmblen-tests: New file.
22043         * tests/unistr/test-u8-strmblen.c: New file.
22044
22045         Tests for module 'unistr/u32-cpy-alloc'.
22046         * modules/unistr/u32-cpy-alloc-tests: New file.
22047         * tests/unistr/test-u32-cpy-alloc.c: New file.
22048
22049         Tests for module 'unistr/u16-cpy-alloc'.
22050         * modules/unistr/u16-cpy-alloc-tests: New file.
22051         * tests/unistr/test-u16-cpy-alloc.c: New file.
22052
22053         Tests for module 'unistr/u8-cpy-alloc'.
22054         * modules/unistr/u8-cpy-alloc-tests: New file.
22055         * tests/unistr/test-u8-cpy-alloc.c: New file.
22056         * tests/unistr/test-cpy-alloc.h: New file.
22057
22058         Tests for module 'unistr/u32-mbsnlen'.
22059         * modules/unistr/u32-mbsnlen-tests: New file.
22060         * tests/unistr/test-u32-mbsnlen.c: New file.
22061
22062         Tests for module 'unistr/u16-mbsnlen'.
22063         * modules/unistr/u16-mbsnlen-tests: New file.
22064         * tests/unistr/test-u16-mbsnlen.c: New file.
22065
22066         Tests for module 'unistr/u8-mbsnlen'.
22067         * modules/unistr/u8-mbsnlen-tests: New file.
22068         * tests/unistr/test-u8-mbsnlen.c: New file.
22069
22070         Tests for module 'unistr/u32-chr'.
22071         * modules/unistr/u32-chr-tests: New file.
22072         * tests/unistr/test-u32-chr.c: New file.
22073
22074         Tests for module 'unistr/u16-chr'.
22075         * modules/unistr/u16-chr-tests: New file.
22076         * tests/unistr/test-u16-chr.c: New file.
22077
22078         Tests for module 'unistr/u8-chr'.
22079         * modules/unistr/u8-chr-tests: New file.
22080         * tests/unistr/test-u8-chr.c: New file.
22081         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
22082
22083         Tests for module 'unistr/u32-cmp2'.
22084         * modules/unistr/u32-cmp2-tests: New file.
22085         * tests/unistr/test-u32-cmp2.c: New file.
22086
22087         Tests for module 'unistr/u16-cmp2'.
22088         * modules/unistr/u16-cmp2-tests: New file.
22089         * tests/unistr/test-u16-cmp2.c: New file.
22090
22091         Tests for module 'unistr/u8-cmp2'.
22092         * modules/unistr/u8-cmp2-tests: New file.
22093         * tests/unistr/test-u8-cmp2.c: New file.
22094         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
22095
22096         Tests for module 'unistr/u32-cmp'.
22097         * modules/unistr/u32-cmp-tests: New file.
22098         * tests/unistr/test-u32-cmp.c: New file.
22099
22100         Tests for module 'unistr/u16-cmp'.
22101         * modules/unistr/u16-cmp-tests: New file.
22102         * tests/unistr/test-u16-cmp.c: New file.
22103
22104         Tests for module 'unistr/u8-cmp'.
22105         * modules/unistr/u8-cmp-tests: New file.
22106         * tests/unistr/test-u8-cmp.c: New file.
22107         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
22108
22109         Tests for module 'unistr/u32-set'.
22110         * modules/unistr/u32-set-tests: New file.
22111         * tests/unistr/test-u32-set.c: New file.
22112
22113         Tests for module 'unistr/u16-set'.
22114         * modules/unistr/u16-set-tests: New file.
22115         * tests/unistr/test-u16-set.c: New file.
22116
22117         Tests for module 'unistr/u8-set'.
22118         * modules/unistr/u8-set-tests: New file.
22119         * tests/unistr/test-u8-set.c: New file.
22120         * tests/unistr/test-set.h: New file.
22121
22122         Tests for module 'unistr/u32-move'.
22123         * modules/unistr/u32-move-tests: New file.
22124         * tests/unistr/test-u32-move.c: New file.
22125
22126         Tests for module 'unistr/u16-move'.
22127         * modules/unistr/u16-move-tests: New file.
22128         * tests/unistr/test-u16-move.c: New file.
22129
22130         Tests for module 'unistr/u8-move'.
22131         * modules/unistr/u8-move-tests: New file.
22132         * tests/unistr/test-u8-move.c: New file.
22133         * tests/unistr/test-move.h: New file.
22134
22135         Tests for module 'unistr/u32-cpy'.
22136         * modules/unistr/u32-cpy-tests: New file.
22137         * tests/unistr/test-u32-cpy.c: New file.
22138
22139         Tests for module 'unistr/u16-cpy'.
22140         * modules/unistr/u16-cpy-tests: New file.
22141         * tests/unistr/test-u16-cpy.c: New file.
22142
22143         Tests for module 'unistr/u8-cpy'.
22144         * modules/unistr/u8-cpy-tests: New file.
22145         * tests/unistr/test-u8-cpy.c: New file.
22146         * tests/unistr/test-cpy.h: New file.
22147
22148 2010-01-09  Bruno Haible  <bruno@clisp.org>
22149
22150         Tests for module 'unistr/u32-uctomb'.
22151         * modules/unistr/u32-uctomb-tests: New file.
22152         * tests/unistr/test-u32-uctomb.c: New file.
22153
22154         Tests for module 'unistr/u16-uctomb'.
22155         * modules/unistr/u16-uctomb-tests: New file.
22156         * tests/unistr/test-u16-uctomb.c: New file.
22157
22158         Tests for module 'unistr/u8-uctomb'.
22159         * modules/unistr/u8-uctomb-tests: New file.
22160         * tests/unistr/test-u8-uctomb.c: New file.
22161
22162         Tests for module 'unistr/u32-mbtoucr'.
22163         * modules/unistr/u32-mbtoucr-tests: New file.
22164         * tests/unistr/test-u32-mbtoucr.c: New file.
22165
22166         Tests for module 'unistr/u16-mbtoucr'.
22167         * modules/unistr/u16-mbtoucr-tests: New file.
22168         * tests/unistr/test-u16-mbtoucr.c: New file.
22169
22170         Tests for module 'unistr/u8-mbtoucr'.
22171         * modules/unistr/u8-mbtoucr-tests: New file.
22172         * tests/unistr/test-u8-mbtoucr.c: New file.
22173
22174         Tests for module 'unistr/u32-mbtouc'.
22175         * modules/unistr/u32-mbtouc-tests: New file.
22176         * tests/unistr/test-u32-mbtouc.c: New file.
22177
22178         Tests for module 'unistr/u16-mbtouc'.
22179         * modules/unistr/u16-mbtouc-tests: New file.
22180         * tests/unistr/test-u16-mbtouc.c: New file.
22181
22182         Tests for module 'unistr/u8-mbtouc'.
22183         * modules/unistr/u8-mbtouc-tests: New file.
22184         * tests/unistr/test-u8-mbtouc.c: New file.
22185
22186         Tests for module 'unistr/u32-mbtouc-unsafe'.
22187         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
22188         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
22189         * tests/unistr/test-u32-mbtouc.h: New file.
22190
22191         Tests for module 'unistr/u16-mbtouc-unsafe'.
22192         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
22193         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
22194         * tests/unistr/test-u16-mbtouc.h: New file.
22195
22196         Tests for module 'unistr/u8-mbtouc-unsafe'.
22197         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
22198         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
22199         * tests/unistr/test-u8-mbtouc.h: New file.
22200
22201         Tests for module 'unistr/u32-mblen'.
22202         * modules/unistr/u32-mblen-tests: New file.
22203         * tests/unistr/test-u32-mblen.c: New file.
22204
22205         Tests for module 'unistr/u16-mblen'.
22206         * modules/unistr/u16-mblen-tests: New file.
22207         * tests/unistr/test-u16-mblen.c: New file.
22208
22209         Tests for module 'unistr/u8-mblen'.
22210         * modules/unistr/u8-mblen-tests: New file.
22211         * tests/unistr/test-u8-mblen.c: New file.
22212
22213         Tests for module 'unistr/u32-to-u16'.
22214         * modules/unistr/u32-to-u16-tests: New file.
22215         * tests/unistr/test-u32-to-u16.c: New file.
22216
22217         Tests for module 'unistr/u32-to-u8'.
22218         * modules/unistr/u32-to-u8-tests: New file.
22219         * tests/unistr/test-u32-to-u8.c: New file.
22220
22221         Tests for module 'unistr/u16-to-u32'.
22222         * modules/unistr/u16-to-u32-tests: New file.
22223         * tests/unistr/test-u16-to-u32.c: New file.
22224
22225         Tests for module 'unistr/u16-to-u8'.
22226         * modules/unistr/u16-to-u8-tests: New file.
22227         * tests/unistr/test-u16-to-u8.c: New file.
22228
22229         Tests for module 'unistr/u8-to-u32'.
22230         * modules/unistr/u8-to-u32-tests: New file.
22231         * tests/unistr/test-u8-to-u32.c: New file.
22232
22233         Tests for module 'unistr/u8-to-u16'.
22234         * modules/unistr/u8-to-u16-tests: New file.
22235         * tests/unistr/test-u8-to-u16.c: New file.
22236
22237         Tests for module 'unistr/u32-check'.
22238         * modules/unistr/u32-check-tests: New file.
22239         * tests/unistr/test-u32-check.c: New file.
22240
22241         Tests for module 'unistr/u16-check'.
22242         * modules/unistr/u16-check-tests: New file.
22243         * tests/unistr/test-u16-check.c: New file.
22244
22245         Tests for module 'unistr/u8-check'.
22246         * modules/unistr/u8-check-tests: New file.
22247         * tests/unistr/test-u8-check.c: New file.
22248
22249         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
22250         (category_equals): New function.
22251         (main): Add more tests.
22252         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
22253
22254         * tests/unictype/test-bidi_byname.c (main): Add more tests.
22255
22256 2010-01-10  Bruno Haible  <bruno@clisp.org>
22257
22258         unistr/u*-strcoll: Try harder to distinguish different strings.
22259         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
22260         compare s1 and s2 to see if they are different.
22261
22262 2010-01-10  Bruno Haible  <bruno@clisp.org>
22263
22264         unistr/u*-stpncpy: Fix the return value.
22265         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
22266         description of the return value consistent with stpncpy in glibc.
22267         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
22268         written non-NUL unit.
22269
22270 2010-01-10  Bruno Haible  <bruno@clisp.org>
22271
22272         unistr/u*-next: Add missing dependencies.
22273         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
22274         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
22275         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
22276
22277 2010-01-10  Bruno Haible  <bruno@clisp.org>
22278
22279         unistr/u8-mbsnlen: Fix return value for incomplete character.
22280         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
22281         u8_mblen.
22282         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
22283         Remove unistr/u8-mblen.
22284         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
22285         u16_mblen.
22286         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
22287         Remove unistr/u16-mblen.
22288
22289 2010-01-10  Bruno Haible  <bruno@clisp.org>
22290
22291         wchar: Fix compilation error when <wchar.h> is used from coreutils.
22292         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
22293         Reported by Brian Gough <bjg@gnu.org> and
22294         Chris Clayton <chris2553@googlemail.com> via
22295         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
22296
22297 2010-01-09  Bruno Haible  <bruno@clisp.org>
22298
22299         unistr/u16-to-u32: Reject invalid input.
22300         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
22301         u16_mbtouc.
22302         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
22303         Remove unistr/u16-mbtouc.
22304
22305         unistr/u16-to-u8: Reject invalid input.
22306         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
22307         u16_mbtouc.
22308         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
22309         Remove unistr/u16-mbtouc.
22310
22311         unistr/u8-to-u32: Reject invalid input.
22312         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
22313         u8_mbtouc.
22314         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
22315         Remove unistr/u8-mbtouc.
22316
22317         unistr/u8-to-u16: Reject invalid input.
22318         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
22319         u8_mbtouc.
22320         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
22321         Remove unistr/u8-mbtouc.
22322
22323 2010-01-09  Bruno Haible  <bruno@clisp.org>
22324
22325         Tests for module 'getlogin'.
22326         * modules/getlogin-tests: New file.
22327         * tests/test-getlogin.c: New file.
22328
22329         New module 'getlogin'.
22330         * lib/unistd.in.h (getlogin): New declaration.
22331         * lib/getlogin.c: New file.
22332         * m4/getlogin.m4: New file.
22333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
22334         HAVE_GETLOGIN.
22335         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
22336         HAVE_GETLOGIN.
22337         * modules/getlogin: New file.
22338         * doc/posix-functions/getlogin.texi: Mention the new module.
22339         Reported by John W. Eaton <jwe@gnu.org>.
22340
22341 2010-01-09  Bruno Haible  <bruno@clisp.org>
22342
22343         getlogin_r: Support for native Windows.
22344         * lib/getlogin_r.c: Include <windows.h>
22345         (getlogin_r): Implement for native Windows.
22346         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
22347         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
22348         via John W. Eaton <jwe@gnu.org>.
22349
22350 2010-01-09  Bruno Haible  <bruno@clisp.org>
22351
22352         getlogin_r: Small fixes.
22353         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
22354         succeeds.
22355         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
22356         before testing whether getlogin_r is declared. No need to set
22357         HAVE_DECL_GETLOGIN_R to 1.
22358         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
22359
22360 2010-01-09  Bruno Haible  <bruno@clisp.org>
22361
22362         * lib/unistd.in.h (getlogin_r): Add comment.
22363
22364 2010-01-09  Bruno Haible  <bruno@clisp.org>
22365
22366         Tests for module 'getlogin_r'.
22367         * modules/getlogin_r-tests: New file.
22368         * tests/test-getlogin_r.c: New file.
22369
22370 2010-01-09  Jim Meyering  <meyering@redhat.com>
22371
22372         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
22373         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
22374         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
22375
22376 2010-01-08  Simon Josefsson  <simon@josefsson.org>
22377
22378         * lib/dup2.c (rpl_dup2): Improve comment.
22379
22380 2010-01-08  Eric Blake  <ebb9@byu.net>
22381
22382         maint.mk: allow packages to add makefile @@ exceptions
22383         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
22384         (sc_makefile_check): Rename...
22385         (sc_makefile_at_at_check): ...to this, and use hook.
22386
22387         dup2: work around mingw bug
22388         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
22389         Reported by Simon Josefsson.
22390
22391 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
22392
22393         glob: Fix C++ compilation.
22394         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
22395         C++.
22396
22397 2010-01-07  Bruno Haible  <bruno@clisp.org>
22398
22399         Fix indentation of wctype.in.h, broken since 2007-01-06.
22400         * lib/wctype.in.h: Fix indentation of preprocessor directives.
22401
22402 2010-01-07  Bruno Haible  <bruno@clisp.org>
22403
22404         mbslen: Avoid collision with system function.
22405         * lib/string.in.h [MirBSD]: Include <wchar.h>.
22406         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
22407         * m4/mbslen.m4: New file.
22408         * modules/mbslen (Files): Add it.
22409         (configure.ac): Invoke gl_MBSLEN.
22410         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
22411         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
22412         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
22413         via Ian Beckwith <ianb@erislabs.net>.
22414
22415 2010-01-07  Bruno Haible  <bruno@clisp.org>
22416
22417         dirent: Document the last fix.
22418         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
22419
22420 2010-01-07  Bruno Haible  <bruno@clisp.org>
22421
22422         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
22423         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
22424         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
22425         va_list are defined.
22426         * doc/posix-headers/stdio.texi: Document the bug of missing types.
22427         Reported by Eric Blake.
22428
22429 2010-01-07  Bruno Haible  <bruno@clisp.org>
22430
22431         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
22432         * modules/xlist (Depends-on): Add 'list',
22433         * modules/xoset (Depends-on): Add 'oset'.
22434         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22435
22436 2010-01-07  Bruno Haible  <bruno@clisp.org>
22437
22438         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
22439         * doc/posix-functions/strncasecmp.texi: Likewise.
22440
22441 2010-01-07  Bruno Haible  <bruno@clisp.org>
22442
22443         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
22444
22445 2010-01-07  John W. Eaton  <jwe@octave.org>
22446
22447         wctype: allow C++ use
22448         * lib/wctype.in.h: Add extern "C" block for C++.
22449
22450 2010-01-06  Eric Blake  <ebb9@byu.net>
22451
22452         maint.mk: detect incorrect GFDL usage
22453         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
22454
22455 2010-01-06  Jim Meyering  <meyering@redhat.com>
22456         and Eric Blake  <ebb9@byu.net>
22457
22458         maint.mk: ignore multi-line copyright in NEWS
22459         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
22460
22461 2010-01-06  Eric Blake  <ebb9@byu.net>
22462
22463         select: add missing dependency
22464         * modules/select-tests (Depends-on): Move sockets dependency...
22465         * modules/select (Depends-on): ...here.
22466         Reported by Ian Beckwith.
22467
22468         doc: regenerate INSTALL
22469         * doc/INSTALL: Reflect recent autoconf update.
22470         * doc/INSTALL.ISO: Likewise.
22471         * doc/INSTALL.UTF-8: Likewise.
22472
22473         pread: fix compilation on glibc
22474         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
22475         Reported by Ralf Wildenhues.
22476
22477         dirent: fix test failure
22478         * lib/dirent.in.h (includes): Guarantee ino_t.
22479         Reported by Ralf Wildenhues.
22480
22481 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
22482
22483         linkat, renameat: avoid bad free
22484         * lib/at-func2.c (at_func2): Fix typo.
22485         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
22486
22487 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22488
22489         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
22490         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
22491         to avoid failure of symlink test later.
22492
22493 2010-01-06  Eric Blake  <ebb9@byu.net>
22494
22495         stdio, unistd: guarantee ssize_t
22496         * lib/unistd.in.h (includes): Ensure that types required by POSIX
22497         2008 are exposed when needed.
22498         * lib/stdio.in.h (includes): Likewise.
22499         Reported by Ralf Wildenhues.
22500
22501 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
22502
22503         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
22504         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
22505         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
22506
22507 2010-01-06  Jim Meyering  <meyering@redhat.com>
22508
22509         readtokens: this module *does* require xalloc.h
22510         It uses only functions that were omitted by the old syntax-check rule.
22511         * lib/readtokens.c: Include "xalloc.h" once again.
22512         * modules/readtokens (Depends-on): Add xalloc.
22513         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
22514
22515 2010-01-05  Eric Blake  <ebb9@byu.net>
22516
22517         maint: support 'make announcement' from a VPATH build
22518         * top/maint.mk (announcement): Look for correct NEWS file.
22519
22520 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
22521
22522         utimens (fdutimens): ignore a negative FD, per contract
22523         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
22524         when we have a valid file descriptor.  Otherwise, using a brand
22525         new glibc (with just-patched futimens that now fails with EBADF)
22526         would cause this function to fail with ENOSYS.
22527         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
22528         See also http://bugzilla.redhat.com/552320.
22529
22530 2010-01-05  Eric Blake  <ebb9@byu.net>
22531
22532         strcase: document what it provides
22533         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
22534         gnulib module.
22535         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
22536         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
22537
22538 2010-01-05  Jim Meyering  <meyering@redhat.com>
22539
22540         maint: remove useless inclusions of "xalloc.h"
22541         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
22542         * lib/readtokens.c: Likewise.
22543         * lib/same.c: Likewise.
22544         * modules/getloadavg (Depends-on): Remove xalloc.
22545         * modules/readtokens: Likewise.
22546         * modules/same: Likewise.
22547
22548         maint.mk: include 4 more function names in alloca.h-checking regexp
22549         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
22550         regexp.  Before, we would give a false-positive (saying alloca.h
22551         is included unnecessarily) when the only uses involved omitted symbols.
22552
22553         xalloc.h: use consistent formatting
22554         * lib/xalloc.h: Move declarations to start in the first column.
22555
22556 2010-01-05  Eric Blake  <ebb9@byu.net>
22557
22558         mkdir: avoid xalloc
22559         * lib/mkdir.c (includes): Drop unused header.
22560         Reported by John W. Eaton.
22561
22562 2010-01-04  Jim Meyering  <meyering@redhat.com>
22563
22564         nl_langinfo: avoid configure-time syntax error
22565         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
22566         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
22567         the empty string.  Don't let that provoke a shell syntax error.
22568
22569         regcomp, regexec, fnmatch: avoid array bounds read error
22570         * lib/regcomp.c (build_equiv_class): From glibc:
22571         Use only the low 24 bits of a findidx return value as an index
22572         into the weights array.  Patch by Ulrich Drepper:
22573         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
22574         * lib/regexec.c (check_node_accept_bytes): Likewise.
22575         * lib/fnmatch_loop.c (FCT): Likewise.
22576
22577         regcomp: skip collseq lookup when there are no rules
22578         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
22579         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
22580
22581         regcomp: recognize ill-formed { } expressions
22582         * lib/regcomp.c (parse_dup_op): From glibc:
22583         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
22584
22585         regcomp: fix typo in comment
22586         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
22587         s/satisfy/satisfies/.
22588
22589         regcomp: sync from glibc: remove dead store
22590         * lib/regcomp.c (duplicate_node_closure): Remove useless
22591         search_duplicated_node call and dead store.
22592
22593         regcomp: sync from glibc; always use nl_langinfo
22594         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
22595         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
22596         * modules/regex (Depends-on): Add nl_langinfo.
22597
22598 2010-01-04  Eric Blake  <ebb9@byu.net>
22599
22600         fdopendir: fix configure test
22601         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
22602
22603 2010-01-01  Bruno Haible  <bruno@clisp.org>
22604
22605         wchar: Remove unused configure check.
22606         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
22607
22608 2010-01-01  Eric Blake  <ebb9@byu.net>
22609
22610         headers: make check of system header explicit
22611         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
22612         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
22613         ourselves.
22614         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22615         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22616         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
22617         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
22618         internals.
22619         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
22620         missing.
22621         Suggested by Bruno Haible.
22622
22623 2010-01-01  Jim Meyering  <meyering@redhat.com>
22624
22625         ChangeLog: tweak to eliminate unnecessary copyright line
22626         * ChangeLog: Remove a copyright line that was mistakenly updated
22627         by today's update-copyright run.  Reported by Eric Blake.
22628
22629         test-update-copyright: don't let envvar setting cause test failure
22630         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22631
22632 2010-01-01  Bruno Haible  <bruno@clisp.org>
22633
22634         localename: Avoid gcc warning.
22635         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
22636         function if it is not used.
22637
22638 2010-01-01  Jim Meyering  <meyering@redhat.com>
22639
22640         update nearly all FSF copyright year lists to include 2010
22641         Use the same procedure as for 2009, outlined in
22642         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
22643
22644         version-etc: set COPYRIGHT_YEAR to 2010
22645         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
22646
22647 2009-12-31  Eric Blake  <ebb9@byu.net>
22648
22649         doc: correct availability of cygwin 1.5.x getopt
22650         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
22651         variables.
22652         * doc/posix-functions/opterr.texi (opterr): Likewise.
22653         * doc/posix-functions/optind.texi (optind): Likewise.
22654         * doc/posix-functions/optopt.texi (optopt): Likewise.
22655         * doc/posix-functions/tzname.texi (tzname): Likewise.
22656
22657         openat: update maintainer
22658         * modules/openat (Maintainer): Add myself.
22659
22660         utimens: avoid shadowing warning
22661         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
22662         buffers into one, to avoid shadowing, as well as avoiding a
22663         redundant stat.
22664         Reported by Jim Meyering.
22665
22666         test-dup2: avoid compiler warning
22667         * tests/test-dup2.c (is_inheritable): Only define if used.
22668
22669 2010-01-01  Bruno Haible  <bruno@clisp.org>
22670
22671         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
22672         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
22673         defined, use wctomb instead of wcrtomb.
22674
22675 2010-01-01  Bruno Haible  <bruno@clisp.org>
22676
22677         iconv: Reject native Solaris iconv.
22678         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
22679         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
22680
22681 2009-12-31  Bruno Haible  <bruno@clisp.org>
22682
22683         * tests/test-signal.c (main): Remove test of 'SIG'.
22684
22685 2009-12-31  Bruno Haible  <bruno@clisp.org>
22686
22687         spawn: Fix incomplete fix.
22688         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
22689         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
22690         warnings for GNULIB_POSIXCHECK again.
22691         Reported by Eric Blake.
22692
22693 2009-12-31  Bruno Haible  <bruno@clisp.org>
22694
22695         Avoid namespace pollution on glibc systems.
22696         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
22697         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
22698         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
22699         glibc systems.
22700
22701 2009-12-31  Bruno Haible  <bruno@clisp.org>
22702
22703         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
22704         (gl_REPLACE_WCHAR_H): Turn into a no-op.
22705         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
22706         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
22707         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
22708         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
22709         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
22710
22711 2009-12-31  Bruno Haible  <bruno@clisp.org>
22712
22713         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22714         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
22715         afterwards.
22716
22717 2009-12-31  Bruno Haible  <bruno@clisp.org>
22718
22719         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
22720         SYS_UTSNAME_H.
22721
22722 2009-12-31  Bruno Haible  <bruno@clisp.org>
22723
22724         spawn: Fix misapplied patch.
22725         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
22726         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
22727         warnings for GNULIB_POSIXCHECK.
22728
22729 2009-12-31  Bruno Haible  <bruno@clisp.org>
22730
22731         times: Update after sys_times changed.
22732         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
22733         * modules/times (Files): Add it.
22734         (configure.ac): Invoke gl_FUNC_TIMES.
22735
22736 2009-12-31  Bruno Haible  <bruno@clisp.org>
22737
22738         Use AC_C_INLINE where necessary.
22739         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
22740         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22741         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
22742         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
22743         * m4/mbfile.m4 (gl_MBFILE): Likewise.
22744         * m4/mbiter.m4 (gl_MBITER): Likewise.
22745         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
22746         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22747         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
22748         * modules/u64 (configure.ac): Likewise.
22749
22750 2009-12-31  Bruno Haible  <bruno@clisp.org>
22751
22752         Use AC_C_INLINE instead of module 'inline' where possible.
22753         * modules/inline (Description): Clarify purpose.
22754         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
22755         * modules/count-one-bits (Depends-on): Remove inline.
22756         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
22757         * modules/openat (Depends-on): Remove inline.
22758         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
22759         instead of depending on module 'inline'.
22760         * modules/filevercmp (Depends-on, configure.ac): Likewise.
22761         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
22762         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
22763         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
22764         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
22765         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
22766         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
22767         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
22768         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
22769         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
22770         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
22771         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
22772         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
22773         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
22774         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
22775         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
22776         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
22777         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
22778         Likewise.
22779         * modules/unictype/property-ascii-hex-digit (Depends-on,
22780         configure.ac): Likewise.
22781         * modules/unictype/property-bidi-arabic-digit (Depends-on,
22782         configure.ac): Likewise.
22783         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
22784         configure.ac): Likewise.
22785         * modules/unictype/property-bidi-block-separator (Depends-on,
22786         configure.ac): Likewise.
22787         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
22788         configure.ac): Likewise.
22789         * modules/unictype/property-bidi-common-separator (Depends-on,
22790         configure.ac): Likewise.
22791         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
22792         Likewise.
22793         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
22794         configure.ac): Likewise.
22795         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
22796         configure.ac): Likewise.
22797         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
22798         configure.ac): Likewise.
22799         * modules/unictype/property-bidi-european-digit (Depends-on,
22800         configure.ac): Likewise.
22801         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
22802         configure.ac): Likewise.
22803         * modules/unictype/property-bidi-left-to-right (Depends-on,
22804         configure.ac): Likewise.
22805         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
22806         configure.ac): Likewise.
22807         * modules/unictype/property-bidi-other-neutral (Depends-on,
22808         configure.ac): Likewise.
22809         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
22810         Likewise.
22811         * modules/unictype/property-bidi-segment-separator (Depends-on,
22812         configure.ac): Likewise.
22813         * modules/unictype/property-bidi-whitespace (Depends-on,
22814         configure.ac): Likewise.
22815         * modules/unictype/property-combining (Depends-on, configure.ac):
22816         Likewise.
22817         * modules/unictype/property-composite (Depends-on, configure.ac):
22818         Likewise.
22819         * modules/unictype/property-currency-symbol (Depends-on,
22820         configure.ac): Likewise.
22821         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
22822         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
22823         Likewise.
22824         * modules/unictype/property-default-ignorable-code-point (Depends-on,
22825         configure.ac): Likewise.
22826         * modules/unictype/property-deprecated (Depends-on, configure.ac):
22827         Likewise.
22828         * modules/unictype/property-diacritic (Depends-on, configure.ac):
22829         Likewise.
22830         * modules/unictype/property-extender (Depends-on, configure.ac):
22831         Likewise.
22832         * modules/unictype/property-format-control (Depends-on, configure.ac):
22833         Likewise.
22834         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
22835         Likewise.
22836         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
22837         Likewise.
22838         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
22839         Likewise.
22840         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
22841         Likewise.
22842         * modules/unictype/property-hyphen (Depends-on, configure.ac):
22843         Likewise.
22844         * modules/unictype/property-id-continue (Depends-on, configure.ac):
22845         Likewise.
22846         * modules/unictype/property-id-start (Depends-on, configure.ac):
22847         Likewise.
22848         * modules/unictype/property-ideographic (Depends-on, configure.ac):
22849         Likewise.
22850         * modules/unictype/property-ids-binary-operator (Depends-on,
22851         configure.ac): Likewise.
22852         * modules/unictype/property-ids-trinary-operator (Depends-on,
22853         configure.ac): Likewise.
22854         * modules/unictype/property-ignorable-control (Depends-on,
22855         configure.ac): Likewise.
22856         * modules/unictype/property-iso-control (Depends-on, configure.ac):
22857         Likewise.
22858         * modules/unictype/property-join-control (Depends-on, configure.ac):
22859         Likewise.
22860         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
22861         Likewise.
22862         * modules/unictype/property-line-separator (Depends-on, configure.ac):
22863         Likewise.
22864         * modules/unictype/property-logical-order-exception (Depends-on,
22865         configure.ac): Likewise.
22866         * modules/unictype/property-lowercase (Depends-on, configure.ac):
22867         Likewise.
22868         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
22869         * modules/unictype/property-non-break (Depends-on, configure.ac):
22870         Likewise.
22871         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
22872         Likewise.
22873         * modules/unictype/property-numeric (Depends-on, configure.ac):
22874         Likewise.
22875         * modules/unictype/property-other-alphabetic (Depends-on,
22876         configure.ac): Likewise.
22877         * modules/unictype/property-other-default-ignorable-code-point
22878         (Depends-on, configure.ac): Likewise.
22879         * modules/unictype/property-other-grapheme-extend (Depends-on,
22880         configure.ac): Likewise.
22881         * modules/unictype/property-other-id-continue (Depends-on,
22882         configure.ac): Likewise.
22883         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
22884         Likewise.
22885         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
22886         Likewise.
22887         * modules/unictype/property-other-math (Depends-on, configure.ac):
22888         Likewise.
22889         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
22890         Likewise.
22891         * modules/unictype/property-paired-punctuation (Depends-on,
22892         configure.ac): Likewise.
22893         * modules/unictype/property-paragraph-separator (Depends-on,
22894         configure.ac): Likewise.
22895         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
22896         Likewise.
22897         * modules/unictype/property-pattern-white-space (Depends-on,
22898         configure.ac): Likewise.
22899         * modules/unictype/property-private-use (Depends-on, configure.ac):
22900         Likewise.
22901         * modules/unictype/property-punctuation (Depends-on, configure.ac):
22902         Likewise.
22903         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
22904         Likewise.
22905         * modules/unictype/property-radical (Depends-on, configure.ac):
22906         Likewise.
22907         * modules/unictype/property-sentence-terminal (Depends-on,
22908         configure.ac): Likewise.
22909         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
22910         Likewise.
22911         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
22912         * modules/unictype/property-terminal-punctuation (Depends-on,
22913         configure.ac): Likewise.
22914         * modules/unictype/property-titlecase (Depends-on, configure.ac):
22915         Likewise.
22916         * modules/unictype/property-unassigned-code-value (Depends-on,
22917         configure.ac): Likewise.
22918         * modules/unictype/property-unified-ideograph (Depends-on,
22919         configure.ac): Likewise.
22920         * modules/unictype/property-uppercase (Depends-on, configure.ac):
22921         Likewise.
22922         * modules/unictype/property-variation-selector (Depends-on,
22923         configure.ac): Likewise.
22924         * modules/unictype/property-white-space (Depends-on, configure.ac):
22925         Likewise.
22926         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
22927         Likewise.
22928         * modules/unictype/property-xid-start (Depends-on, configure.ac):
22929         Likewise.
22930         * modules/unictype/property-zero-width (Depends-on, configure.ac):
22931         Likewise.
22932         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
22933         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
22934         Likewise.
22935
22936 2009-12-31  Bruno Haible  <bruno@clisp.org>
22937
22938         Remove unnecessary AC_C_INLINE invocation.
22939         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
22940         since 2009-08-21.
22941
22942 2009-12-31  Jim Meyering  <meyering@redhat.com>
22943
22944         maint.mk: don't require explicit gpg_key_ID in cfg.mk
22945         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
22946         With this change, we can all remove the gpg_key_ID = ... definition
22947         from our respective cfg.mk files.
22948
22949         maint.mk: create announcement template in ~/, not in /tmp
22950         * top/maint.mk (emit_upload_commands): Adjust.
22951         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
22952         Remove temporary file, .ci-msg.
22953
22954 2009-12-31  Eric Blake  <ebb9@byu.net>
22955
22956         link-warning: always build headers with link warnings
22957         * modules/arpa_inet (Makefile.am): Always build replacement
22958         header.
22959         * modules/ctype (Makefile.am): Likewise.
22960         * modules/dirent (Makefile.am): Likewise.
22961         * modules/inttypes (Makefile.am): Likewise.
22962         * modules/langinfo (Makefile.am): Likewise.
22963         * modules/locale (Makefile.am): Likewise.
22964         * modules/spawn (Makefile.am): Likewise.
22965         * modules/sys_file (Makefile.am): Likewise.
22966         * modules/sys_ioctl (Makefile.am): Likewise.
22967         * modules/sys_select (Makefile.am): Likewise.
22968         * modules/sys_socket (Makefile.am): Likewise.
22969         * modules/sys_times (Makefile.am): Likewise.
22970         * modules/sys_utsname (Makefile.am): Likewise.
22971         * modules/sys_wait (Makefile.am): Likewise.
22972         * modules/wchar (Makefile.am): Likewise.
22973         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
22974         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
22975         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
22976         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
22977         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
22978         Likewise.
22979         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22980         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22981         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
22982         Likewise.
22983         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
22984         Likewise.
22985         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22986         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
22987         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
22988         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22989         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22990         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22991         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22992         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
22993         (gl_WCHAR_H_DEFAULTS): Likewise.
22994
22995 2009-12-31  Eric Blake  <ebb9@byu.net>
22996
22997         signal, spawn: use link warnings
22998         * lib/signal.in.h (sigset_t): Make unconditional.
22999         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
23000         (sigpending, sigprocmask, sigaction): Add link warnings.
23001         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
23002         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
23003         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
23004         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
23005         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
23006         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
23007         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
23008         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
23009         (posix_spawn_file_actions_destroy)
23010         (posix_spawn_file_actions_addopen)
23011         (posix_spawn_file_actions_addclose)
23012         (posix_spawn_file_actions_adddup2): Likewise.
23013         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
23014         * tests/test-signal.c (main): Enhance test.
23015
23016         spawn: improve wrapper support
23017         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
23018         (gl_SPAWN_H_DEFAULTS): New defaults.
23019         * modules/spawn (Makefile.am): Substitute them.
23020         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
23021         Only declare if missing or broken.
23022
23023         sys_times, sys_utsname: use include_next
23024         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
23025         header.
23026         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
23027         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
23028         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
23029         * modules/sys_times (Depends-on): Add include_next.
23030         (Makefile.am): Substitute additional values.
23031         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23032         * lib/sys_times.in.h (includes): Include native header, if
23033         available.
23034         * lib/sys_utsname.in.h (includes): Likewise.
23035         * tests/test-sys_times.c (main): Enhance test.
23036
23037         fdutimensat: revert prior patch
23038         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
23039         utimens.h.
23040         Reported by Bruno Haible.
23041
23042 2009-12-30  Eric Blake  <ebb9@byu.net>
23043
23044         sys_wait: drop link-warning dependency
23045         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
23046         link-warning efforts.
23047         * lib/sys_wait.in.h: Likewise.
23048
23049         fdutimensat: remove bogus dependency
23050         * modules/fdutimensat (Depends-on): Drop inline.
23051
23052         unistd: fix typo
23053         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
23054
23055 2009-12-30  Bruno Haible  <bruno@clisp.org>
23056
23057         Fix compilation error with Solaris cc.
23058         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
23059         * lib/unicase/u16-is-invariant.c: Likewise.
23060         * lib/unicase/u32-is-invariant.c: Likewise.
23061         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
23062
23063 2009-12-30  Bruno Haible  <bruno@clisp.org>
23064
23065         Fix test crash.
23066         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
23067         locales.
23068         Reported by Simon Josefsson <simon@josefsson.org>.
23069
23070 2009-12-30  Bruno Haible  <bruno@clisp.org>
23071
23072         Fix compilation error on most platforms.
23073         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
23074         Reported by Simon Josefsson <simon@josefsson.org>
23075         and Nelson H. F. Beebe <beebe@math.utah.edu>.
23076
23077 2009-12-30  Eric Blake  <ebb9@byu.net>
23078
23079         futimens, utimensat: work around ntfs-3g bug
23080         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
23081         a ctime bug is present, and expand workaround to cover ntfs-3g.
23082         * lib/utimens.c (fdutimens, lutimens): Likewise.
23083         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
23084         (validate_timespec): Adjust return value.
23085         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
23086         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23087         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
23088
23089 2009-12-29  Eric Blake  <ebb9@byu.net>
23090
23091         link-warning: make usage consistent
23092         * modules/ctype (Depends-on): Add link-warning.
23093         (Makefile.am): Update rules accordingly.
23094         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23095         * modules/locale (Depends-on, Makefile.am): Likewise.
23096         * modules/sys_file (Makefile.am): Likewise.
23097         * modules/getopt-posix (Makefile.am): Delete unused link warning
23098         efforts.
23099         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
23100         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
23101         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
23102         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
23103
23104         stdio: remove unused variables
23105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
23106         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
23107         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23108
23109         tests: test more substitute headers
23110         * modules/ctype-tests: New file.
23111         * modules/dirent-tests: Likewise.
23112         * modules/spawn-tests: Likewise.
23113         * modules/sys_file-tests: Likewise.
23114         * modules/sys_ioctl-tests: Likewise.
23115         * modules/sys_wait-tests: Likewise.
23116         * tests/test-ctype.c: Likewise.
23117         * tests/test-dirent.c: Likewise.
23118         * tests/test-spawn.c: Likewise.
23119         * tests/test-sys_file.c: Likewise.
23120         * tests/test-sys_ioctl.c: Likewise.
23121         * tests/test-sys_wait.c: Likewise.
23122         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
23123         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
23124         whether or not flock is in use.
23125
23126         tests: remove License section from module
23127         * modules/arpa_inet-tests: Remove unneeded section.
23128         * modules/byteswap-tests: Likewise.
23129         * modules/ceilf-tests: Likewise.
23130         * modules/ceill-tests: Likewise.
23131         * modules/crypto/des-tests: Likewise.
23132         * modules/crypto/gc-arcfour-tests: Likewise.
23133         * modules/crypto/gc-arctwo-tests: Likewise.
23134         * modules/crypto/gc-des-tests: Likewise.
23135         * modules/crypto/gc-hmac-md5-tests: Likewise.
23136         * modules/crypto/gc-hmac-sha1-tests: Likewise.
23137         * modules/crypto/gc-md2-tests: Likewise.
23138         * modules/crypto/gc-md4-tests: Likewise.
23139         * modules/crypto/gc-md5-tests: Likewise.
23140         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
23141         * modules/crypto/gc-rijndael-tests: Likewise.
23142         * modules/crypto/gc-sha1-tests: Likewise.
23143         * modules/crypto/gc-tests: Likewise.
23144         * modules/crypto/md2-tests: Likewise.
23145         * modules/crypto/md4-tests: Likewise.
23146         * modules/fcntl-h-tests: Likewise.
23147         * modules/floorf-tests: Likewise.
23148         * modules/floorl-tests: Likewise.
23149         * modules/frexp-nolibm-tests: Likewise.
23150         * modules/frexp-tests: Likewise.
23151         * modules/frexpl-nolibm-tests: Likewise.
23152         * modules/frexpl-tests: Likewise.
23153         * modules/getaddrinfo-tests: Likewise.
23154         * modules/inttypes-tests: Likewise.
23155         * modules/isfinite-tests: Likewise.
23156         * modules/isinf-tests: Likewise.
23157         * modules/ldexpl-tests: Likewise.
23158         * modules/locale-tests: Likewise.
23159         * modules/math-tests: Likewise.
23160         * modules/netdb-tests: Likewise.
23161         * modules/netinet_in-tests: Likewise.
23162         * modules/printf-frexp-tests: Likewise.
23163         * modules/printf-frexpl-tests: Likewise.
23164         * modules/priv-set-tests: Likewise.
23165         * modules/random_r-tests: Likewise.
23166         * modules/round-tests: Likewise.
23167         * modules/roundf-tests: Likewise.
23168         * modules/roundl-tests: Likewise.
23169         * modules/search-tests: Likewise.
23170         * modules/select-tests: Likewise.
23171         * modules/signal-tests: Likewise.
23172         * modules/stdbool-tests: Likewise.
23173         * modules/stddef-tests: Likewise.
23174         * modules/stdint-tests: Likewise.
23175         * modules/stdio-tests: Likewise.
23176         * modules/stdlib-tests: Likewise.
23177         * modules/string-tests: Likewise.
23178         * modules/strings-tests: Likewise.
23179         * modules/sys_select-tests: Likewise.
23180         * modules/sys_socket-tests: Likewise.
23181         * modules/sys_stat-tests: Likewise.
23182         * modules/sys_time-tests: Likewise.
23183         * modules/sys_utsname-tests: Likewise.
23184         * modules/sysexits-tests: Likewise.
23185         * modules/time-tests: Likewise.
23186         * modules/trunc-tests: Likewise.
23187         * modules/truncf-tests: Likewise.
23188         * modules/truncl-tests: Likewise.
23189         * modules/tsearch-tests: Likewise.
23190         * modules/unistd-tests: Likewise.
23191         * modules/wchar-tests: Likewise.
23192         * modules/wctype-tests: Likewise.
23193
23194         tests: fix license on several tests
23195         * tests/test-des.c: Update to GPLv3+.
23196         * tests/test-flock.c: Likewise.
23197         * tests/test-fsync.c: Likewise.
23198         * tests/test-futimens.h: Likewise.
23199         * tests/test-gc-arcfour.c: Likewise.
23200         * tests/test-gc-arctwo.c: Likewise.
23201         * tests/test-gc-des.c: Likewise.
23202         * tests/test-gc-hmac-md5.c: Likewise.
23203         * tests/test-gc-hmac-sha1.c: Likewise.
23204         * tests/test-gc-md2.c: Likewise.
23205         * tests/test-gc-md4.c: Likewise.
23206         * tests/test-gc-md5.c: Likewise.
23207         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23208         * tests/test-gc-rijndael.c: Likewise.
23209         * tests/test-gc-sha1.c: Likewise.
23210         * tests/test-gc.c: Likewise.
23211         * tests/test-getcwd.c: Likewise.
23212         * tests/test-link.c: Likewise.
23213         * tests/test-link.h: Likewise.
23214         * tests/test-lutimens.h: Likewise.
23215         * tests/test-md2.c: Likewise.
23216         * tests/test-md4.c: Likewise.
23217         * tests/test-mkdir.h: Likewise.
23218         * tests/test-rename.c: Likewise.
23219         * tests/test-rename.h: Likewise.
23220         * tests/test-safe-alloc.c: Likewise.
23221         * tests/test-utimens-common.h: Likewise.
23222         * tests/test-utimens.h: Likewise.
23223
23224         maint: sync license texts
23225         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
23226         * doc/gpl-3.0.texi: Revert copyright year update.
23227         * doc/lgpl-3.0.texi: Likewise.
23228
23229 2009-12-29  Jim Meyering  <meyering@redhat.com>
23230
23231         update nearly all FSF copyright year lists to include 2009
23232         The files named by the following are exempted:
23233             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
23234               test -f "$dst" && { echo "$dst"; continue; }
23235               test -d "$dst" || continue
23236               echo "$dst"/$(basename "$src")
23237             done > exempt
23238             git ls-files tests/unictype >> exempt
23239         In the remaining files, convert to all-interval notation if
23240         - there is already at least one year interval like 2000-2003
23241         - the file is maintained by me
23242         - the file is in lib/uni*/, where that style already prevails
23243         Otherwise, use update-copyright's default.
23244
23245 2009-12-29  Simon Josefsson  <simon@josefsson.org>
23246         and Eric Blake  <ebb9@byu.net>
23247
23248         tests: don't require debug system() to pass
23249         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
23250         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23251         * tests/test-unlink.h (test_unlink_func): Likewise.
23252         * tests/test-fstatat.c (main): ...into callers.
23253         * tests/test-lstat.c (main): Likewise.
23254         * tests/test-rmdir.c (main): Likewise.
23255         * tests/test-unlink.c (main): Likewise.
23256         * tests/test-unlinkat.c (main): Likewise.
23257         * tests/test-areadlink-with-size.c (main): Don't require a
23258         debug-only system call to pass, aiding cross-testing to mingw.
23259         * tests/test-areadlink.c (main): Likewise.
23260         * tests/test-areadlinkat-with-size.c (main): Likewise.
23261         * tests/test-areadlinkat.c (main): Likewise.
23262         * tests/test-canonicalize-lgpl.c (main): Likewise.
23263         * tests/test-canonicalize.c (main): Likewise.
23264         * tests/test-chown.c (main): Likewise.
23265         * tests/test-fchownat.c (main): Likewise.
23266         * tests/test-lchown.c (main): Likewise.
23267         * tests/test-fdutimensat.c (main): Likewise.
23268         * tests/test-futimens.c (main): Likewise.
23269         * tests/test-link.c (main): Likewise.
23270         * tests/test-linkat.c (main): Likewise.
23271         * tests/test-mkdir.c (main): Likewise.
23272         * tests/test-mkdirat.c (main): Likewise.
23273         * tests/test-mkfifo.c (main): Likewise.
23274         * tests/test-mkfifoat.c (main): Likewise.
23275         * tests/test-mknod.c (main): Likewise.
23276         * tests/test-readlink.c (main): Likewise.
23277         * tests/test-remove.c (main): Likewise.
23278         * tests/test-rename.c (main): Likewise.
23279         * tests/test-renameat.c (main): Likewise.
23280         * tests/test-symlink.c (main): Likewise.
23281         * tests/test-symlinkat.c (main): Likewise.
23282         * tests/test-utimens.c (main): Likewise.
23283         * tests/test-utimensat.c (main): Likewise.
23284
23285 2009-12-29  Simon Josefsson  <simon@josefsson.org>
23286
23287         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
23288         on $(UNUSED_PARAMETER_H) to avoid build failure.
23289
23290 2009-12-28  Jim Meyering  <meyering@redhat.com>
23291
23292         update-copyright: you may specify a max. line length other than 72
23293         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
23294
23295         maint: use consistent FSF copyright line syntax
23296         * lib/posixtm.c: Add missing comma in FSF copyright line.
23297         * lib/posixtm.h: Likewise.
23298         * lib/getugroups.c: Add missing ", Inc.".
23299
23300         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
23301         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
23302         FSF copyright line.  Remove trailing blanks.
23303
23304 2009-12-28  Eric Blake  <ebb9@byu.net>
23305
23306         test-dup2: reduce dependencies
23307         * modules/cloexec (Configure.ac): Set witness.
23308         * modules/dup2-tests (Depends-on): Drop cloexec.
23309         * tests/test-dup2.c (main): Skip portion of test if cloexec module
23310         not present.
23311         Suggested by Bruno Haible.
23312
23313 2009-12-26  Bruno Haible  <bruno@clisp.org>
23314
23315         Remove an unneeded dependency.
23316         * modules/fseterr (Depends-on): Remove dup2.
23317
23318 2009-12-26  Eric Blake  <ebb9@byu.net>
23319
23320         tests: use macros.h in more places
23321         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
23322         (ASSERT_STREAM): Provide default of stderr.
23323         * tests/test-dirent-safer.c: Include macros.h, using alternate
23324         stream for assertions.
23325         * tests/test-dup-safer.c: Likewise.
23326         * tests/test-freopen-safer.c: Likewise.
23327         * tests/test-getopt.c: Likewise.
23328         * tests/test-openat-safer.c: Likewise.
23329         * tests/test-pipe.c: Likewise.
23330         * tests/test-popen-safer.c: Likewise.
23331         * modules/dirent-safer-tests (Files): Include macros.h.
23332         * modules/unistd-safer-tests (Files): Likewise.
23333         * modules/freopen-safer-tests (Files): Likewise.
23334         * modules/getopt-posix-tests (Files): Likewise.
23335         * modules/openat-safer-tests (Files): Likewise.
23336         * modules/pipe-tests (Files): Likewise.
23337
23338 2009-12-26  Bruno Haible  <bruno@clisp.org>
23339
23340         javacomp: Portability fix.
23341         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
23342         that it also works on Solaris.
23343
23344 2009-12-26  Bruno Haible  <bruno@clisp.org>
23345
23346         localename: Fix storage allocation of gl_locale_name_thread's result.
23347         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
23348         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
23349         all platforms that have 'uselocale'.
23350         (gl_locale_name_thread_unsafe): New function, extracted from
23351         gl_locale_name_thread.
23352         (gl_locale_name_thread): Call struniq on all platforms that have
23353         'uselocale'.
23354         * tests/test-localename.c (test_locale_name_thread): Check that the
23355         resulting strings are permanently allocated.
23356         * modules/localename-tests (Depends-on): Add strdup.
23357
23358 2009-12-26  Bruno Haible  <bruno@clisp.org>
23359
23360         * tests/test-localename.c (categories): Fill in the strings.
23361
23362 2009-12-26  Jim Meyering  <meyering@redhat.com>
23363
23364         isdir: complete the removal of m4/isdir.m4
23365         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
23366
23367         isdir: clean up, since at least grep still uses it
23368         * lib/isdir.c: Include "isdir.h".
23369         (S_ISDIR): Remove now-unneeded definition.
23370         * modules/isdir (Files): Add lib/isdir.h.
23371         * lib/isdir.h: New file, with declaration.
23372         * m4/isdir.m4: Remove file -- unneeded.
23373
23374 2009-12-25  Bruno Haible  <bruno@clisp.org>
23375
23376         selinux-h: Make generated .h files standalone.
23377         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
23378         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
23379         * lib/se-selinux.in.h: Likewise.
23380         * modules/selinux-h (Depends-on): Add unused-parameter.
23381         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
23382         selinux/selinux.h and selinux/context.h.
23383         Suggested by Eric Blake.
23384
23385 2009-12-25  Bruno Haible  <bruno@clisp.org>
23386
23387         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
23388         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
23389         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
23390         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
23391         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
23392
23393 2009-12-24  Bruno Haible  <bruno@clisp.org>
23394
23395         openat: Fix warning.
23396         * lib/openat-proc.c: Include <unistd.h>.
23397
23398 2009-12-24  Bruno Haible  <bruno@clisp.org>
23399
23400         New module 'unused-parameter'.
23401         * build-aux/unused-parameter.h: New file, extracted from earlier
23402         gnulib-common.m4.
23403         * modules/unused-parameter: New file.
23404         * lib/unistr.h: Include unused-parameter.h.
23405         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
23406         _GL_UNUSED.
23407         * modules/unistr/base (Depends-on): Add unused-parameter.
23408
23409 2009-12-24  Bruno Haible  <bruno@clisp.org>
23410
23411         Add missing dependencies to 'extensions' module.
23412         * m4/extensions.m4: Add comment.
23413         * modules/accept4 (Depends-on): Add extensions.
23414         * modules/dup3 (Depends-on): Likewise.
23415         * modules/fcntl (Depends-on): Likewise.
23416         * modules/futimens (Depends-on): Likewise.
23417         * modules/mknod (Depends-on): Likewise.
23418         * modules/pipe2 (Depends-on): Likewise.
23419         * modules/stat-time (Depends-on): Likewise.
23420         * modules/strcasestr-simple (Depends-on): Likewise.
23421         * modules/strsignal (Depends-on): Likewise.
23422         * modules/utimensat (Depends-on): Likewise.
23423         * modules/localcharset (Depends-on): Likewise. Needed because of
23424         gl_FCNTL_O_FLAGS.
23425         * modules/wcrtomb (Depends-on): Likewise. Needed because of
23426         AC_TYPE_MBSTATE_T.
23427         * modules/wcsnrtombs (Depends-on): Likewise.
23428         * modules/wcsrtombs (Depends-on): Likewise.
23429
23430 2009-12-24  Bruno Haible  <bruno@clisp.org>
23431
23432         binary-io: Avoid gcc warning due to SET_BINARY.
23433         * lib/binary-io.h (SET_BINARY): Cast the result to void.
23434         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
23435
23436 2009-12-24  Bruno Haible  <bruno@clisp.org>
23437
23438         Avoid future namespace pollution on glibc systems.
23439         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
23440         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
23441         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
23442         glibc systems.
23443
23444 2009-12-24  Bruno Haible  <bruno@clisp.org>
23445
23446         Refactor common macros used in tests.
23447         * tests/macros.h: New file.
23448         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
23449         and/or <stdlib.h>, if appropriate.
23450         (ASSERT, SIZEOF): Remove macros.
23451         * tests/test-areadlink-with-size.c: Likewise.
23452         * tests/test-areadlinkat.c: Likewise.
23453         * tests/test-areadlinkat-with-size.c: Likewise.
23454         * tests/test-argmatch.c: Likewise.
23455         * tests/test-argv-iter.c: Likewise.
23456         * tests/test-array-mergesort.c: Likewise.
23457         * tests/test-array_list.c: Likewise.
23458         * tests/test-array_oset.c: Likewise.
23459         * tests/test-avltree_list.c: Likewise.
23460         * tests/test-avltree_oset.c: Likewise.
23461         * tests/test-avltreehash_list.c: Likewise.
23462         * tests/test-base64.c: Likewise.
23463         * tests/test-binary-io.c: Likewise.
23464         * tests/test-bitrotate.c: Likewise.
23465         * tests/test-btowc.c: Likewise.
23466         * tests/test-byteswap.c: Likewise.
23467         * tests/test-c-ctype.c: Likewise.
23468         * tests/test-c-stack.c: Likewise.
23469         * tests/test-c-strcasecmp.c: Likewise.
23470         * tests/test-c-strcasestr.c: Likewise.
23471         * tests/test-c-strncasecmp.c: Likewise.
23472         * tests/test-c-strstr.c: Likewise.
23473         * tests/test-canonicalize-lgpl.c: Likewise.
23474         * tests/test-canonicalize.c: Likewise.
23475         * tests/test-carray_list.c: Likewise.
23476         * tests/test-ceilf1.c: Likewise.
23477         * tests/test-ceilf2.c: Likewise.
23478         * tests/test-ceill.c: Likewise.
23479         * tests/test-chown.c: Likewise.
23480         * tests/test-cloexec.c: Likewise.
23481         * tests/test-copy-acl.c: Likewise.
23482         * tests/test-copy-file.c: Likewise.
23483         * tests/test-count-one-bits.c: Likewise.
23484         * tests/test-dprintf-posix.c: Likewise.
23485         * tests/test-dup2.c: Likewise.
23486         * tests/test-dup3.c: Likewise.
23487         * tests/test-duplocale.c: Likewise.
23488         * tests/test-fbufmode.c: Likewise.
23489         * tests/test-fchdir.c: Likewise.
23490         * tests/test-fchownat.c: Likewise.
23491         * tests/test-fcntl-safer.c: Likewise.
23492         * tests/test-fcntl.c: Likewise.
23493         * tests/test-fdopendir.c: Likewise.
23494         * tests/test-fdutimensat.c: Likewise.
23495         * tests/test-fflush2.c: Likewise.
23496         * tests/test-file-has-acl.c: Likewise.
23497         * tests/test-filevercmp.c: Likewise.
23498         * tests/test-flock.c: Likewise.
23499         * tests/test-floorf1.c: Likewise.
23500         * tests/test-floorf2.c: Likewise.
23501         * tests/test-floorl.c: Likewise.
23502         * tests/test-fnmatch.c: Likewise.
23503         * tests/test-fopen.h: Likewise.
23504         * tests/test-fpending.c: Likewise.
23505         * tests/test-fprintf-posix.c: Likewise.
23506         * tests/test-fpurge.c: Likewise.
23507         * tests/test-freadable.c: Likewise.
23508         * tests/test-freadahead.c: Likewise.
23509         * tests/test-freading.c: Likewise.
23510         * tests/test-freadptr.c: Likewise.
23511         * tests/test-freadptr2.c: Likewise.
23512         * tests/test-freadseek.c: Likewise.
23513         * tests/test-freopen.c: Likewise.
23514         * tests/test-frexp.c: Likewise.
23515         * tests/test-frexpl.c: Likewise.
23516         * tests/test-fseek.c: Likewise.
23517         * tests/test-fseeko.c: Likewise.
23518         * tests/test-fstatat.c: Likewise.
23519         * tests/test-fstrcmp.c: Likewise.
23520         * tests/test-fsync.c: Likewise.
23521         * tests/test-ftell.c: Likewise.
23522         * tests/test-ftello.c: Likewise.
23523         * tests/test-func.c: Likewise.
23524         * tests/test-futimens.c: Likewise.
23525         * tests/test-fwritable.c: Likewise.
23526         * tests/test-fwriting.c: Likewise.
23527         * tests/test-getcwd.c: Likewise.
23528         * tests/test-getdate.c: Likewise.
23529         * tests/test-getdelim.c: Likewise.
23530         * tests/test-getdtablesize.c: Likewise.
23531         * tests/test-getgroups.c: Likewise.
23532         * tests/test-getline.c: Likewise.
23533         * tests/test-getndelim2.c: Likewise.
23534         * tests/test-glob.c: Likewise.
23535         * tests/test-hash.c: Likewise.
23536         * tests/test-i-ring.c: Likewise.
23537         * tests/test-iconv-utf.c: Likewise.
23538         * tests/test-iconv.c: Likewise.
23539         * tests/test-idpriv-drop.c: Likewise.
23540         * tests/test-idpriv-droptemp.c: Likewise.
23541         * tests/test-inet_ntop.c: Likewise.
23542         * tests/test-inet_pton.c: Likewise.
23543         * tests/test-isblank.c: Likewise.
23544         * tests/test-isfinite.c: Likewise.
23545         * tests/test-isinf.c: Likewise.
23546         * tests/test-isnan.c: Likewise.
23547         * tests/test-isnand.h: Likewise.
23548         * tests/test-isnanf.h: Likewise.
23549         * tests/test-isnanl.h: Likewise.
23550         * tests/test-lchown.c: Likewise.
23551         * tests/test-ldexpl.c: Likewise.
23552         * tests/test-link.c: Likewise.
23553         * tests/test-linkat.c: Likewise.
23554         * tests/test-linked_list.c: Likewise.
23555         * tests/test-linkedhash_list.c: Likewise.
23556         * tests/test-localename.c: Likewise.
23557         * tests/test-lseek.c: Likewise.
23558         * tests/test-lstat.c: Likewise.
23559         * tests/test-mbmemcasecmp.c: Likewise.
23560         * tests/test-mbmemcasecoll.c: Likewise.
23561         * tests/test-mbrtowc.c: Likewise.
23562         * tests/test-mbscasecmp.c: Likewise.
23563         * tests/test-mbscasestr1.c: Likewise.
23564         * tests/test-mbscasestr2.c: Likewise.
23565         * tests/test-mbscasestr3.c: Likewise.
23566         * tests/test-mbscasestr4.c: Likewise.
23567         * tests/test-mbschr.c: Likewise.
23568         * tests/test-mbscspn.c: Likewise.
23569         * tests/test-mbsinit.c: Likewise.
23570         * tests/test-mbsncasecmp.c: Likewise.
23571         * tests/test-mbsnrtowcs.c: Likewise.
23572         * tests/test-mbspbrk.c: Likewise.
23573         * tests/test-mbspcasecmp.c: Likewise.
23574         * tests/test-mbsrchr.c: Likewise.
23575         * tests/test-mbsrtowcs.c: Likewise.
23576         * tests/test-mbsspn.c: Likewise.
23577         * tests/test-mbsstr1.c: Likewise.
23578         * tests/test-mbsstr2.c: Likewise.
23579         * tests/test-mbsstr3.c: Likewise.
23580         * tests/test-memchr.c: Likewise.
23581         * tests/test-memchr2.c: Likewise.
23582         * tests/test-memcmp.c: Likewise.
23583         * tests/test-memmem.c: Likewise.
23584         * tests/test-memrchr.c: Likewise.
23585         * tests/test-mkdir.c: Likewise.
23586         * tests/test-mkdirat.c: Likewise.
23587         * tests/test-mkfifo.c: Likewise.
23588         * tests/test-mkfifoat.c: Likewise.
23589         * tests/test-mknod.c: Likewise.
23590         * tests/test-nanosleep.c: Likewise.
23591         * tests/test-nl_langinfo.c: Likewise.
23592         * tests/test-obstack-printf.c: Likewise.
23593         * tests/test-open.c: Likewise.
23594         * tests/test-openat.c: Likewise.
23595         * tests/test-pipe-filter-gi1.c: Likewise.
23596         * tests/test-pipe-filter-gi2-main.c: Likewise.
23597         * tests/test-pipe-filter-ii1.c: Likewise.
23598         * tests/test-pipe-filter-ii2-main.c: Likewise.
23599         * tests/test-pipe2.c: Likewise.
23600         * tests/test-popen.h: Likewise.
23601         * tests/test-posixtm.c: Likewise.
23602         * tests/test-pread.c: Likewise.
23603         * tests/test-printf-frexp.c: Likewise.
23604         * tests/test-printf-frexpl.c: Likewise.
23605         * tests/test-printf-posix.c: Likewise.
23606         * tests/test-priv-set.c: Likewise.
23607         * tests/test-quotearg.c: Likewise.
23608         * tests/test-random_r.c: Likewise.
23609         * tests/test-rawmemchr.c: Likewise.
23610         * tests/test-rbtree_list.c: Likewise.
23611         * tests/test-rbtree_oset.c: Likewise.
23612         * tests/test-rbtreehash_list.c: Likewise.
23613         * tests/test-readlink.c: Likewise.
23614         * tests/test-remove.c: Likewise.
23615         * tests/test-rename.c: Likewise.
23616         * tests/test-renameat.c: Likewise.
23617         * tests/test-rmdir.c: Likewise.
23618         * tests/test-round1.c: Likewise.
23619         * tests/test-roundf1.c: Likewise.
23620         * tests/test-roundl.c: Likewise.
23621         * tests/test-safe-alloc.c: Likewise.
23622         * tests/test-sameacls.c: Likewise.
23623         * tests/test-set-mode-acl.c: Likewise.
23624         * tests/test-setenv.c: Likewise.
23625         * tests/test-sigaction.c: Likewise.
23626         * tests/test-signbit.c: Likewise.
23627         * tests/test-sleep.c: Likewise.
23628         * tests/test-snprintf-posix.c: Likewise.
23629         * tests/test-snprintf.c: Likewise.
23630         * tests/test-sprintf-posix.c: Likewise.
23631         * tests/test-stat-time.c: Likewise.
23632         * tests/test-stat.c: Likewise.
23633         * tests/test-strcasestr.c: Likewise.
23634         * tests/test-strchrnul.c: Likewise.
23635         * tests/test-strerror.c: Likewise.
23636         * tests/test-striconv.c: Likewise.
23637         * tests/test-striconveh.c: Likewise.
23638         * tests/test-striconveha.c: Likewise.
23639         * tests/test-strsignal.c: Likewise.
23640         * tests/test-strstr.c: Likewise.
23641         * tests/test-strtod.c: Likewise.
23642         * tests/test-strverscmp.c: Likewise.
23643         * tests/test-symlink.c: Likewise.
23644         * tests/test-symlinkat.c: Likewise.
23645         * tests/test-trunc1.c: Likewise.
23646         * tests/test-trunc2.c: Likewise.
23647         * tests/test-truncf1.c: Likewise.
23648         * tests/test-truncf2.c: Likewise.
23649         * tests/test-truncl.c: Likewise.
23650         * tests/test-uname.c: Likewise.
23651         * tests/test-unlink.c: Likewise.
23652         * tests/test-unlinkat.c: Likewise.
23653         * tests/test-unsetenv.c: Likewise.
23654         * tests/test-usleep.c: Likewise.
23655         * tests/test-utimens.c: Likewise.
23656         * tests/test-utimensat.c: Likewise.
23657         * tests/test-vasnprintf-posix.c: Likewise.
23658         * tests/test-vasnprintf-posix2.c: Likewise.
23659         * tests/test-vasnprintf.c: Likewise.
23660         * tests/test-vasprintf-posix.c: Likewise.
23661         * tests/test-vasprintf.c: Likewise.
23662         * tests/test-vdprintf-posix.c: Likewise.
23663         * tests/test-vfprintf-posix.c: Likewise.
23664         * tests/test-vprintf-posix.c: Likewise.
23665         * tests/test-vsnprintf-posix.c: Likewise.
23666         * tests/test-vsnprintf.c: Likewise.
23667         * tests/test-vsprintf-posix.c: Likewise.
23668         * tests/test-wcrtomb.c: Likewise.
23669         * tests/test-wcsnrtombs.c: Likewise.
23670         * tests/test-wcsrtombs.c: Likewise.
23671         * tests/test-wctype.c: Likewise.
23672         * tests/test-wcwidth.c: Likewise.
23673         * tests/test-xfprintf-posix.c: Likewise.
23674         * tests/test-xmemdup0.c: Likewise.
23675         * tests/test-xprintf-posix.c: Likewise.
23676         * tests/test-xvasprintf.c: Likewise.
23677         * tests/unicase/test-locale-language.c: Likewise.
23678         * tests/unicase/test-mapping-part1.h: Likewise.
23679         * tests/unicase/test-predicate-part1.h: Likewise.
23680         * tests/unicase/test-u8-casecmp.c: Likewise.
23681         * tests/unicase/test-u8-casecoll.c: Likewise.
23682         * tests/unicase/test-u8-casefold.c: Likewise.
23683         * tests/unicase/test-u8-is-cased.c: Likewise.
23684         * tests/unicase/test-u8-is-casefolded.c: Likewise.
23685         * tests/unicase/test-u8-is-lowercase.c: Likewise.
23686         * tests/unicase/test-u8-is-titlecase.c: Likewise.
23687         * tests/unicase/test-u8-is-uppercase.c: Likewise.
23688         * tests/unicase/test-u8-tolower.c: Likewise.
23689         * tests/unicase/test-u8-totitle.c: Likewise.
23690         * tests/unicase/test-u8-toupper.c: Likewise.
23691         * tests/unicase/test-u16-casecmp.c: Likewise.
23692         * tests/unicase/test-u16-casecoll.c: Likewise.
23693         * tests/unicase/test-u16-casefold.c: Likewise.
23694         * tests/unicase/test-u16-is-cased.c: Likewise.
23695         * tests/unicase/test-u16-is-casefolded.c: Likewise.
23696         * tests/unicase/test-u16-is-lowercase.c: Likewise.
23697         * tests/unicase/test-u16-is-titlecase.c: Likewise.
23698         * tests/unicase/test-u16-is-uppercase.c: Likewise.
23699         * tests/unicase/test-u16-tolower.c: Likewise.
23700         * tests/unicase/test-u16-totitle.c: Likewise.
23701         * tests/unicase/test-u16-toupper.c: Likewise.
23702         * tests/unicase/test-u32-casecmp.c: Likewise.
23703         * tests/unicase/test-u32-casecoll.c: Likewise.
23704         * tests/unicase/test-u32-casefold.c: Likewise.
23705         * tests/unicase/test-u32-is-cased.c: Likewise.
23706         * tests/unicase/test-u32-is-casefolded.c: Likewise.
23707         * tests/unicase/test-u32-is-lowercase.c: Likewise.
23708         * tests/unicase/test-u32-is-titlecase.c: Likewise.
23709         * tests/unicase/test-u32-is-uppercase.c: Likewise.
23710         * tests/unicase/test-u32-tolower.c: Likewise.
23711         * tests/unicase/test-u32-totitle.c: Likewise.
23712         * tests/unicase/test-u32-toupper.c: Likewise.
23713         * tests/unicase/test-ulc-casecmp.c: Likewise.
23714         * tests/unicase/test-ulc-casecoll.c: Likewise.
23715         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
23716         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
23717         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
23718         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
23719         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
23720         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
23721         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
23722         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
23723         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
23724         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
23725         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
23726         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
23727         * tests/unictype/test-bidi_byname.c: Likewise.
23728         * tests/unictype/test-bidi_name.c: Likewise.
23729         * tests/unictype/test-bidi_of.c: Likewise.
23730         * tests/unictype/test-bidi_test.c: Likewise.
23731         * tests/unictype/test-block_list.c: Likewise.
23732         * tests/unictype/test-block_of.c: Likewise.
23733         * tests/unictype/test-block_test.c: Likewise.
23734         * tests/unictype/test-categ_and.c: Likewise.
23735         * tests/unictype/test-categ_and_not.c: Likewise.
23736         * tests/unictype/test-categ_byname.c: Likewise.
23737         * tests/unictype/test-categ_name.c: Likewise.
23738         * tests/unictype/test-categ_none.c: Likewise.
23739         * tests/unictype/test-categ_of.c: Likewise.
23740         * tests/unictype/test-categ_or.c: Likewise.
23741         * tests/unictype/test-categ_test_withtable.c: Likewise.
23742         * tests/unictype/test-combining.c: Likewise.
23743         * tests/unictype/test-decdigit.c: Likewise.
23744         * tests/unictype/test-digit.c: Likewise.
23745         * tests/unictype/test-mirror.c: Likewise.
23746         * tests/unictype/test-numeric.c: Likewise.
23747         * tests/unictype/test-pr_byname.c: Likewise.
23748         * tests/unictype/test-pr_test.c: Likewise.
23749         * tests/unictype/test-predicate-part1.h: Likewise.
23750         * tests/unictype/test-scripts.c: Likewise.
23751         * tests/unictype/test-sy_c_ident.c: Likewise.
23752         * tests/unictype/test-sy_java_ident.c: Likewise.
23753         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
23754         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
23755         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
23756         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
23757         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
23758         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
23759         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
23760         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
23761         * tests/uninorm/test-canonical-decomposition.c: Likewise.
23762         * tests/uninorm/test-compat-decomposition.c: Likewise.
23763         * tests/uninorm/test-composition.c: Likewise.
23764         * tests/uninorm/test-decomposing-form.c: Likewise.
23765         * tests/uninorm/test-decomposition.c: Likewise.
23766         * tests/uninorm/test-u8-nfc.c: Likewise.
23767         * tests/uninorm/test-u8-nfd.c: Likewise.
23768         * tests/uninorm/test-u8-nfkc.c: Likewise.
23769         * tests/uninorm/test-u8-nfkd.c: Likewise.
23770         * tests/uninorm/test-u8-normcmp.c: Likewise.
23771         * tests/uninorm/test-u8-normcoll.c: Likewise.
23772         * tests/uninorm/test-u16-nfc.c: Likewise.
23773         * tests/uninorm/test-u16-nfd.c: Likewise.
23774         * tests/uninorm/test-u16-nfkc.c: Likewise.
23775         * tests/uninorm/test-u16-nfkd.c: Likewise.
23776         * tests/uninorm/test-u16-normcmp.c: Likewise.
23777         * tests/uninorm/test-u16-normcoll.c: Likewise.
23778         * tests/uninorm/test-u32-nfc.c: Likewise.
23779         * tests/uninorm/test-u32-nfd.c: Likewise.
23780         * tests/uninorm/test-u32-nfkc.c: Likewise.
23781         * tests/uninorm/test-u32-nfkd.c: Likewise.
23782         * tests/uninorm/test-u32-normalize-big.c: Likewise.
23783         * tests/uninorm/test-u32-normcmp.c: Likewise.
23784         * tests/uninorm/test-u32-normcoll.c: Likewise.
23785         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
23786         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
23787         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
23788         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
23789         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
23790         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
23791         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
23792         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
23793         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
23794         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
23795         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
23796         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
23797         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
23798         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
23799         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
23800         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
23801         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
23802         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
23803         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
23804         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
23805         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
23806         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
23807         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
23808         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
23809         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
23810         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
23811         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
23812         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
23813         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
23814         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
23815         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
23816         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
23817         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
23818         * tests/uniwidth/test-u8-strwidth.c: Likewise.
23819         * tests/uniwidth/test-u8-width.c: Likewise.
23820         * tests/uniwidth/test-u16-strwidth.c: Likewise.
23821         * tests/uniwidth/test-u16-width.c: Likewise.
23822         * tests/uniwidth/test-u32-strwidth.c: Likewise.
23823         * tests/uniwidth/test-u32-width.c: Likewise.
23824         * tests/uniwidth/test-uc_width.c: Likewise.
23825         * tests/uniwidth/test-uc_width2.c: Likewise.
23826         * modules/acl-tests (Files): Add tests/macros.h.
23827         * modules/areadlink-tests (Files): Likewise.
23828         * modules/areadlink-with-size-tests (Files): Likewise.
23829         * modules/areadlinkat-tests (Files): Likewise.
23830         * modules/areadlinkat-with-size-tests (Files): Likewise.
23831         * modules/argmatch-tests (Files): Likewise.
23832         * modules/argv-iter-tests (Files): Likewise.
23833         * modules/array-list-tests (Files): Likewise.
23834         * modules/array-mergesort-tests (Files): Likewise.
23835         * modules/array-oset-tests (Files): Likewise.
23836         * modules/avltree-list-tests (Files): Likewise.
23837         * modules/avltree-oset-tests (Files): Likewise.
23838         * modules/avltreehash-list-tests (Files): Likewise.
23839         * modules/base64-tests (Files): Likewise.
23840         * modules/binary-io-tests (Files): Likewise.
23841         * modules/bitrotate-tests (Files): Likewise.
23842         * modules/btowc-tests (Files): Likewise.
23843         * modules/byteswap-tests (Files): Likewise.
23844         * modules/c-ctype-tests (Files): Likewise.
23845         * modules/c-stack-tests (Files): Likewise.
23846         * modules/c-strcase-tests (Files): Likewise.
23847         * modules/c-strcasestr-tests (Files): Likewise.
23848         * modules/c-strstr-tests (Files): Likewise.
23849         * modules/canonicalize-lgpl-tests (Files): Likewise.
23850         * modules/canonicalize-tests (Files): Likewise.
23851         * modules/carray-list-tests (Files): Likewise.
23852         * modules/ceilf-tests (Files): Likewise.
23853         * modules/ceill-tests (Files): Likewise.
23854         * modules/chown-tests (Files): Likewise.
23855         * modules/cloexec-tests (Files): Likewise.
23856         * modules/copy-file-tests (Files): Likewise.
23857         * modules/count-one-bits-tests (Files): Likewise.
23858         * modules/dprintf-posix-tests (Files): Likewise.
23859         * modules/dup2-tests (Files): Likewise.
23860         * modules/dup3-tests (Files): Likewise.
23861         * modules/duplocale-tests (Files): Likewise.
23862         * modules/fbufmode-tests (Files): Likewise.
23863         * modules/fchdir-tests (Files): Likewise.
23864         * modules/fcntl-safer-tests (Files): Likewise.
23865         * modules/fcntl-tests (Files): Likewise.
23866         * modules/fdopendir-tests (Files): Likewise.
23867         * modules/fdutimensat-tests (Files): Likewise.
23868         * modules/fflush-tests (Files): Likewise.
23869         * modules/filevercmp-tests (Files): Likewise.
23870         * modules/flock-tests (Files): Likewise.
23871         * modules/floorf-tests (Files): Likewise.
23872         * modules/floorl-tests (Files): Likewise.
23873         * modules/fnmatch-tests (Files): Likewise.
23874         * modules/fopen-safer-tests (Files): Likewise.
23875         * modules/fopen-tests (Files): Likewise.
23876         * modules/fpending-tests (Files): Likewise.
23877         * modules/fprintf-posix-tests (Files): Likewise.
23878         * modules/fpurge-tests (Files): Likewise.
23879         * modules/freadable-tests (Files): Likewise.
23880         * modules/freadahead-tests (Files): Likewise.
23881         * modules/freading-tests (Files): Likewise.
23882         * modules/freadptr-tests (Files): Likewise.
23883         * modules/freadseek-tests (Files): Likewise.
23884         * modules/freopen-tests (Files): Likewise.
23885         * modules/frexp-nolibm-tests (Files): Likewise.
23886         * modules/frexp-tests (Files): Likewise.
23887         * modules/frexpl-nolibm-tests (Files): Likewise.
23888         * modules/frexpl-tests (Files): Likewise.
23889         * modules/fseek-tests (Files): Likewise.
23890         * modules/fseeko-tests (Files): Likewise.
23891         * modules/fstrcmp-tests (Files): Likewise.
23892         * modules/fsync-tests (Files): Likewise.
23893         * modules/ftell-tests (Files): Likewise.
23894         * modules/ftello-tests (Files): Likewise.
23895         * modules/func-tests (Files): Likewise.
23896         * modules/futimens-tests (Files): Likewise.
23897         * modules/fwritable-tests (Files): Likewise.
23898         * modules/fwriting-tests (Files): Likewise.
23899         * modules/getcwd-tests (Files): Likewise.
23900         * modules/getdate-tests (Files): Likewise.
23901         * modules/getdelim-tests (Files): Likewise.
23902         * modules/getdtablesize-tests (Files): Likewise.
23903         * modules/getgroups-tests (Files): Likewise.
23904         * modules/getline-tests (Files): Likewise.
23905         * modules/getndelim2-tests (Files): Likewise.
23906         * modules/glob-tests (Files): Likewise.
23907         * modules/hash-tests (Files): Likewise.
23908         * modules/i-ring-tests (Files): Likewise.
23909         * modules/iconv-tests (Files): Likewise.
23910         * modules/iconv_open-utf-tests (Files): Likewise.
23911         * modules/idpriv-drop-tests (Files): Likewise.
23912         * modules/idpriv-droptemp-tests (Files): Likewise.
23913         * modules/inet_ntop-tests (Files): Likewise.
23914         * modules/inet_pton-tests (Files): Likewise.
23915         * modules/isblank-tests (Files): Likewise.
23916         * modules/isfinite-tests (Files): Likewise.
23917         * modules/isinf-tests (Files): Likewise.
23918         * modules/isnan-tests (Files): Likewise.
23919         * modules/isnand-nolibm-tests (Files): Likewise.
23920         * modules/isnand-tests (Files): Likewise.
23921         * modules/isnanf-nolibm-tests (Files): Likewise.
23922         * modules/isnanf-tests (Files): Likewise.
23923         * modules/isnanl-nolibm-tests (Files): Likewise.
23924         * modules/isnanl-tests (Files): Likewise.
23925         * modules/lchown-tests (Files): Likewise.
23926         * modules/ldexpl-tests (Files): Likewise.
23927         * modules/link-tests (Files): Likewise.
23928         * modules/linkat-tests (Files): Likewise.
23929         * modules/linked-list-tests (Files): Likewise.
23930         * modules/linkedhash-list-tests (Files): Likewise.
23931         * modules/localename-tests (Files): Likewise.
23932         * modules/lseek-tests (Files): Likewise.
23933         * modules/lstat-tests (Files): Likewise.
23934         * modules/mbmemcasecmp-tests (Files): Likewise.
23935         * modules/mbmemcasecoll-tests (Files): Likewise.
23936         * modules/mbrtowc-tests (Files): Likewise.
23937         * modules/mbscasecmp-tests (Files): Likewise.
23938         * modules/mbscasestr-tests (Files): Likewise.
23939         * modules/mbschr-tests (Files): Likewise.
23940         * modules/mbscspn-tests (Files): Likewise.
23941         * modules/mbsinit-tests (Files): Likewise.
23942         * modules/mbsncasecmp-tests (Files): Likewise.
23943         * modules/mbsnrtowcs-tests (Files): Likewise.
23944         * modules/mbspbrk-tests (Files): Likewise.
23945         * modules/mbspcasecmp-tests (Files): Likewise.
23946         * modules/mbsrchr-tests (Files): Likewise.
23947         * modules/mbsrtowcs-tests (Files): Likewise.
23948         * modules/mbsspn-tests (Files): Likewise.
23949         * modules/mbsstr-tests (Files): Likewise.
23950         * modules/memchr-tests (Files): Likewise.
23951         * modules/memchr2-tests (Files): Likewise.
23952         * modules/memcmp-tests (Files): Likewise.
23953         * modules/memmem-tests (Files): Likewise.
23954         * modules/memrchr-tests (Files): Likewise.
23955         * modules/mkdir-tests (Files): Likewise.
23956         * modules/mkfifo-tests (Files): Likewise.
23957         * modules/mkfifoat-tests (Files): Likewise.
23958         * modules/mknod-tests (Files): Likewise.
23959         * modules/nanosleep-tests (Files): Likewise.
23960         * modules/nl_langinfo-tests (Files): Likewise.
23961         * modules/obstack-printf-tests (Files): Likewise.
23962         * modules/open-tests (Files): Likewise.
23963         * modules/openat-tests (Files): Likewise.
23964         * modules/pipe-filter-gi-tests (Files): Likewise.
23965         * modules/pipe-filter-ii-tests (Files): Likewise.
23966         * modules/pipe2-tests (Files): Likewise.
23967         * modules/popen-safer-tests (Files): Likewise.
23968         * modules/popen-tests (Files): Likewise.
23969         * modules/posixtm-tests (Files): Likewise.
23970         * modules/pread-tests (Files): Likewise.
23971         * modules/printf-frexp-tests (Files): Likewise.
23972         * modules/printf-frexpl-tests (Files): Likewise.
23973         * modules/printf-posix-tests (Files): Likewise.
23974         * modules/priv-set-tests (Files): Likewise.
23975         * modules/quotearg-tests (Files): Likewise.
23976         * modules/random_r-tests (Files): Likewise.
23977         * modules/rawmemchr-tests (Files): Likewise.
23978         * modules/rbtree-list-tests (Files): Likewise.
23979         * modules/rbtree-oset-tests (Files): Likewise.
23980         * modules/rbtreehash-list-tests (Files): Likewise.
23981         * modules/readlink-tests (Files): Likewise.
23982         * modules/remove-tests (Files): Likewise.
23983         * modules/rename-tests (Files): Likewise.
23984         * modules/renameat-tests (Files): Likewise.
23985         * modules/rmdir-tests (Files): Likewise.
23986         * modules/round-tests (Files): Likewise.
23987         * modules/roundf-tests (Files): Likewise.
23988         * modules/roundl-tests (Files): Likewise.
23989         * modules/safe-alloc-tests (Files): Likewise.
23990         * modules/setenv-tests (Files): Likewise.
23991         * modules/sigaction-tests (Files): Likewise.
23992         * modules/signbit-tests (Files): Likewise.
23993         * modules/sleep-tests (Files): Likewise.
23994         * modules/snprintf-posix-tests (Files): Likewise.
23995         * modules/snprintf-tests (Files): Likewise.
23996         * modules/sprintf-posix-tests (Files): Likewise.
23997         * modules/stat-tests (Files): Likewise.
23998         * modules/stat-time-tests (Files): Likewise.
23999         * modules/strcasestr-tests (Files): Likewise.
24000         * modules/strchrnul-tests (Files): Likewise.
24001         * modules/strerror-tests (Files): Likewise.
24002         * modules/striconv-tests (Files): Likewise.
24003         * modules/striconveh-tests (Files): Likewise.
24004         * modules/striconveha-tests (Files): Likewise.
24005         * modules/strsignal-tests (Files): Likewise.
24006         * modules/strstr-tests (Files): Likewise.
24007         * modules/strtod-tests (Files): Likewise.
24008         * modules/strverscmp-tests (Files): Likewise.
24009         * modules/symlink-tests (Files): Likewise.
24010         * modules/symlinkat-tests (Files): Likewise.
24011         * modules/trunc-tests (Files): Likewise.
24012         * modules/truncf-tests (Files): Likewise.
24013         * modules/truncl-tests (Files): Likewise.
24014         * modules/uname-tests (Files): Likewise.
24015         * modules/unicase/cased-tests (Files): Likewise.
24016         * modules/unicase/ignorable-tests (Files): Likewise.
24017         * modules/unicase/locale-language-tests (Files): Likewise.
24018         * modules/unicase/tolower-tests (Files): Likewise.
24019         * modules/unicase/totitle-tests (Files): Likewise.
24020         * modules/unicase/toupper-tests (Files): Likewise.
24021         * modules/unicase/u8-casecmp-tests (Files): Likewise.
24022         * modules/unicase/u8-casecoll-tests (Files): Likewise.
24023         * modules/unicase/u8-casefold-tests (Files): Likewise.
24024         * modules/unicase/u8-is-cased-tests (Files): Likewise.
24025         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
24026         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
24027         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
24028         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
24029         * modules/unicase/u8-tolower-tests (Files): Likewise.
24030         * modules/unicase/u8-totitle-tests (Files): Likewise.
24031         * modules/unicase/u8-toupper-tests (Files): Likewise.
24032         * modules/unicase/u16-casecmp-tests (Files): Likewise.
24033         * modules/unicase/u16-casecoll-tests (Files): Likewise.
24034         * modules/unicase/u16-casefold-tests (Files): Likewise.
24035         * modules/unicase/u16-is-cased-tests (Files): Likewise.
24036         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
24037         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
24038         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
24039         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
24040         * modules/unicase/u16-tolower-tests (Files): Likewise.
24041         * modules/unicase/u16-totitle-tests (Files): Likewise.
24042         * modules/unicase/u16-toupper-tests (Files): Likewise.
24043         * modules/unicase/u32-casecmp-tests (Files): Likewise.
24044         * modules/unicase/u32-casecoll-tests (Files): Likewise.
24045         * modules/unicase/u32-casefold-tests (Files): Likewise.
24046         * modules/unicase/u32-is-cased-tests (Files): Likewise.
24047         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
24048         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
24049         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
24050         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
24051         * modules/unicase/u32-tolower-tests (Files): Likewise.
24052         * modules/unicase/u32-totitle-tests (Files): Likewise.
24053         * modules/unicase/u32-toupper-tests (Files): Likewise.
24054         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
24055         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
24056         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
24057         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
24058         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
24059         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
24060         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
24061         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
24062         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
24063         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
24064         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
24065         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
24066         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
24067         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
24068         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
24069         * modules/unictype/bidicategory-name-tests (Files): Likewise.
24070         * modules/unictype/bidicategory-of-tests (Files): Likewise.
24071         * modules/unictype/bidicategory-test-tests (Files): Likewise.
24072         * modules/unictype/block-list-tests (Files): Likewise.
24073         * modules/unictype/block-of-tests (Files): Likewise.
24074         * modules/unictype/block-test-tests (Files): Likewise.
24075         * modules/unictype/category-C-tests (Files): Likewise.
24076         * modules/unictype/category-Cc-tests (Files): Likewise.
24077         * modules/unictype/category-Cf-tests (Files): Likewise.
24078         * modules/unictype/category-Cn-tests (Files): Likewise.
24079         * modules/unictype/category-Co-tests (Files): Likewise.
24080         * modules/unictype/category-Cs-tests (Files): Likewise.
24081         * modules/unictype/category-L-tests (Files): Likewise.
24082         * modules/unictype/category-Ll-tests (Files): Likewise.
24083         * modules/unictype/category-Lm-tests (Files): Likewise.
24084         * modules/unictype/category-Lo-tests (Files): Likewise.
24085         * modules/unictype/category-Lt-tests (Files): Likewise.
24086         * modules/unictype/category-Lu-tests (Files): Likewise.
24087         * modules/unictype/category-M-tests (Files): Likewise.
24088         * modules/unictype/category-Mc-tests (Files): Likewise.
24089         * modules/unictype/category-Me-tests (Files): Likewise.
24090         * modules/unictype/category-Mn-tests (Files): Likewise.
24091         * modules/unictype/category-N-tests (Files): Likewise.
24092         * modules/unictype/category-Nd-tests (Files): Likewise.
24093         * modules/unictype/category-Nl-tests (Files): Likewise.
24094         * modules/unictype/category-No-tests (Files): Likewise.
24095         * modules/unictype/category-P-tests (Files): Likewise.
24096         * modules/unictype/category-Pc-tests (Files): Likewise.
24097         * modules/unictype/category-Pd-tests (Files): Likewise.
24098         * modules/unictype/category-Pe-tests (Files): Likewise.
24099         * modules/unictype/category-Pf-tests (Files): Likewise.
24100         * modules/unictype/category-Pi-tests (Files): Likewise.
24101         * modules/unictype/category-Po-tests (Files): Likewise.
24102         * modules/unictype/category-Ps-tests (Files): Likewise.
24103         * modules/unictype/category-S-tests (Files): Likewise.
24104         * modules/unictype/category-Sc-tests (Files): Likewise.
24105         * modules/unictype/category-Sk-tests (Files): Likewise.
24106         * modules/unictype/category-Sm-tests (Files): Likewise.
24107         * modules/unictype/category-So-tests (Files): Likewise.
24108         * modules/unictype/category-Z-tests (Files): Likewise.
24109         * modules/unictype/category-Zl-tests (Files): Likewise.
24110         * modules/unictype/category-Zp-tests (Files): Likewise.
24111         * modules/unictype/category-Zs-tests (Files): Likewise.
24112         * modules/unictype/category-and-not-tests (Files): Likewise.
24113         * modules/unictype/category-and-tests (Files): Likewise.
24114         * modules/unictype/category-byname-tests (Files): Likewise.
24115         * modules/unictype/category-name-tests (Files): Likewise.
24116         * modules/unictype/category-none-tests (Files): Likewise.
24117         * modules/unictype/category-of-tests (Files): Likewise.
24118         * modules/unictype/category-or-tests (Files): Likewise.
24119         * modules/unictype/category-test-withtable-tests (Files): Likewise.
24120         * modules/unictype/combining-class-tests (Files): Likewise.
24121         * modules/unictype/ctype-alnum-tests (Files): Likewise.
24122         * modules/unictype/ctype-alpha-tests (Files): Likewise.
24123         * modules/unictype/ctype-blank-tests (Files): Likewise.
24124         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
24125         * modules/unictype/ctype-digit-tests (Files): Likewise.
24126         * modules/unictype/ctype-graph-tests (Files): Likewise.
24127         * modules/unictype/ctype-lower-tests (Files): Likewise.
24128         * modules/unictype/ctype-print-tests (Files): Likewise.
24129         * modules/unictype/ctype-punct-tests (Files): Likewise.
24130         * modules/unictype/ctype-space-tests (Files): Likewise.
24131         * modules/unictype/ctype-upper-tests (Files): Likewise.
24132         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
24133         * modules/unictype/decimal-digit-tests (Files): Likewise.
24134         * modules/unictype/digit-tests (Files): Likewise.
24135         * modules/unictype/mirror-tests (Files): Likewise.
24136         * modules/unictype/numeric-tests (Files): Likewise.
24137         * modules/unictype/property-alphabetic-tests (Files): Likewise.
24138         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
24139         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
24140         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
24141         Likewise.
24142         * modules/unictype/property-bidi-block-separator-tests (Files):
24143         Likewise.
24144         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
24145         Likewise.
24146         * modules/unictype/property-bidi-common-separator-tests (Files):
24147         Likewise.
24148         * modules/unictype/property-bidi-control-tests (Files): Likewise.
24149         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
24150         Likewise.
24151         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
24152         Likewise.
24153         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
24154         Likewise.
24155         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
24156         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
24157         Likewise.
24158         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
24159         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
24160         Likewise.
24161         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
24162         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
24163         * modules/unictype/property-bidi-segment-separator-tests (Files):
24164         Likewise.
24165         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
24166         * modules/unictype/property-byname-tests (Files): Likewise.
24167         * modules/unictype/property-combining-tests (Files): Likewise.
24168         * modules/unictype/property-composite-tests (Files): Likewise.
24169         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
24170         * modules/unictype/property-dash-tests (Files): Likewise.
24171         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
24172         * modules/unictype/property-default-ignorable-code-point-tests (Files):
24173         Likewise.
24174         * modules/unictype/property-deprecated-tests (Files): Likewise.
24175         * modules/unictype/property-diacritic-tests (Files): Likewise.
24176         * modules/unictype/property-extender-tests (Files): Likewise.
24177         * modules/unictype/property-format-control-tests (Files): Likewise.
24178         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
24179         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
24180         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
24181         * modules/unictype/property-hex-digit-tests (Files): Likewise.
24182         * modules/unictype/property-hyphen-tests (Files): Likewise.
24183         * modules/unictype/property-id-continue-tests (Files): Likewise.
24184         * modules/unictype/property-id-start-tests (Files): Likewise.
24185         * modules/unictype/property-ideographic-tests (Files): Likewise.
24186         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
24187         * modules/unictype/property-ids-trinary-operator-tests (Files):
24188         Likewise.
24189         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
24190         * modules/unictype/property-iso-control-tests (Files): Likewise.
24191         * modules/unictype/property-join-control-tests (Files): Likewise.
24192         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
24193         * modules/unictype/property-line-separator-tests (Files): Likewise.
24194         * modules/unictype/property-logical-order-exception-tests (Files):
24195         Likewise.
24196         * modules/unictype/property-lowercase-tests (Files): Likewise.
24197         * modules/unictype/property-math-tests (Files): Likewise.
24198         * modules/unictype/property-non-break-tests (Files): Likewise.
24199         * modules/unictype/property-not-a-character-tests (Files): Likewise.
24200         * modules/unictype/property-numeric-tests (Files): Likewise.
24201         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
24202         * modules/unictype/property-other-default-ignorable-code-point-tests
24203         (Files): Likewise.
24204         * modules/unictype/property-other-grapheme-extend-tests (Files):
24205         Likewise.
24206         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
24207         * modules/unictype/property-other-id-start-tests (Files): Likewise.
24208         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
24209         * modules/unictype/property-other-math-tests (Files): Likewise.
24210         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
24211         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
24212         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
24213         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
24214         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
24215         * modules/unictype/property-private-use-tests (Files): Likewise.
24216         * modules/unictype/property-punctuation-tests (Files): Likewise.
24217         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
24218         * modules/unictype/property-radical-tests (Files): Likewise.
24219         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
24220         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
24221         * modules/unictype/property-space-tests (Files): Likewise.
24222         * modules/unictype/property-terminal-punctuation-tests (Files):
24223         Likewise.
24224         * modules/unictype/property-test-tests (Files): Likewise.
24225         * modules/unictype/property-titlecase-tests (Files): Likewise.
24226         * modules/unictype/property-unassigned-code-value-tests (Files):
24227         Likewise.
24228         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
24229         * modules/unictype/property-uppercase-tests (Files): Likewise.
24230         * modules/unictype/property-variation-selector-tests (Files): Likewise.
24231         * modules/unictype/property-white-space-tests (Files): Likewise.
24232         * modules/unictype/property-xid-continue-tests (Files): Likewise.
24233         * modules/unictype/property-xid-start-tests (Files): Likewise.
24234         * modules/unictype/property-zero-width-tests (Files): Likewise.
24235         * modules/unictype/scripts-tests (Files): Likewise.
24236         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
24237         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
24238         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
24239         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
24240         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
24241         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
24242         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
24243         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
24244         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
24245         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
24246         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
24247         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
24248         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
24249         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
24250         * modules/uninorm/composition-tests (Files): Likewise.
24251         * modules/uninorm/decomposing-form-tests (Files): Likewise.
24252         * modules/uninorm/decomposition-tests (Files): Likewise.
24253         * modules/uninorm/filter-tests (Files): Likewise.
24254         * modules/uninorm/nfc-tests (Files): Likewise.
24255         * modules/uninorm/nfd-tests (Files): Likewise.
24256         * modules/uninorm/nfkc-tests (Files): Likewise.
24257         * modules/uninorm/nfkd-tests (Files): Likewise.
24258         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
24259         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
24260         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
24261         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
24262         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
24263         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
24264         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
24265         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
24266         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
24267         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
24268         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
24269         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
24270         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
24271         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
24272         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
24273         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
24274         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
24275         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
24276         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
24277         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
24278         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
24279         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
24280         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
24281         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
24282         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
24283         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
24284         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
24285         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
24286         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
24287         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
24288         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
24289         * modules/uniwidth/u8-width-tests (Files): Likewise.
24290         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
24291         * modules/uniwidth/u16-width-tests (Files): Likewise.
24292         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
24293         * modules/uniwidth/u32-width-tests (Files): Likewise.
24294         * modules/uniwidth/width-tests (Files): Likewise.
24295         * modules/unlink-tests (Files): Likewise.
24296         * modules/unsetenv-tests (Files): Likewise.
24297         * modules/usleep-tests (Files): Likewise.
24298         * modules/utimens-tests (Files): Likewise.
24299         * modules/utimensat-tests (Files): Likewise.
24300         * modules/vasnprintf-posix-tests (Files): Likewise.
24301         * modules/vasnprintf-tests (Files): Likewise.
24302         * modules/vasprintf-posix-tests (Files): Likewise.
24303         * modules/vasprintf-tests (Files): Likewise.
24304         * modules/vdprintf-posix-tests (Files): Likewise.
24305         * modules/vfprintf-posix-tests (Files): Likewise.
24306         * modules/vprintf-posix-tests (Files): Likewise.
24307         * modules/vsnprintf-posix-tests (Files): Likewise.
24308         * modules/vsnprintf-tests (Files): Likewise.
24309         * modules/vsprintf-posix-tests (Files): Likewise.
24310         * modules/wcrtomb-tests (Files): Likewise.
24311         * modules/wcsnrtombs-tests (Files): Likewise.
24312         * modules/wcsrtombs-tests (Files): Likewise.
24313         * modules/wctype-tests (Files): Likewise.
24314         * modules/wcwidth-tests (Files): Likewise.
24315         * modules/xmemdup0-tests (Files): Likewise.
24316         * modules/xprintf-posix-tests (Files): Likewise.
24317         * modules/xvasprintf-tests (Files): Likewise.
24318
24319 2009-12-24  Eric Blake  <ebb9@byu.net>
24320
24321         test-nanosleep: fix typo
24322         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
24323         patch.
24324         Reported by Bruno Haible.
24325
24326 2009-12-24  Bruno Haible  <bruno@clisp.org>
24327
24328         Reduce namespace pollution on glibc systems.
24329         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
24330         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
24331         systems.
24332         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
24333         <getopt.h> on glibc systems.
24334         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
24335         systems.
24336         * lib/fcntl.c: Include <unistd.h> here instead.
24337
24338 2009-12-24  Bruno Haible  <bruno@clisp.org>
24339
24340         * lib/stdlib.in.h (includes): Fix typo in today's commit.
24341
24342 2009-12-24  Eric Blake  <ebb9@byu.net>
24343
24344         tests: add signature checks
24345         * tests/signature.h (SIGNATURE_CHECK): New file.
24346         * modules/atexit-tests (Files): Use it.
24347         * modules/btowc-tests (Files): Likewise.
24348         * modules/canonicalize-lgpl-tests (Files): Likewise.
24349         * modules/ceilf-tests (Files): Likewise.
24350         * modules/ceill-tests (Files): Likewise.
24351         * modules/chown-tests (Files): Likewise.
24352         * modules/dprintf-posix-tests (Files): Likewise.
24353         * modules/dup2-tests (Files): Likewise.
24354         * modules/dup3-tests (Files): Likewise.
24355         * modules/duplocale-tests (Files): Likewise.
24356         * modules/fchdir-tests (Files): Likewise.
24357         * modules/fcntl-tests (Files): Likewise.
24358         * modules/fdopendir-tests (Files): Likewise.
24359         * modules/fflush-tests (Files): Likewise.
24360         * modules/flock-tests (Files): Likewise.
24361         * modules/floorf-tests (Files): Likewise.
24362         * modules/floorl-tests (Files): Likewise.
24363         * modules/fnmatch-tests (Files): Likewise.
24364         * modules/fopen-tests (Files): Likewise.
24365         * modules/fprintf-posix-tests (Files): Likewise.
24366         * modules/freopen-tests (Files): Likewise.
24367         * modules/frexp-nolibm-tests (Files): Likewise.
24368         * modules/frexp-tests (Files): Likewise.
24369         * modules/frexpl-nolibm-tests (Files): Likewise.
24370         * modules/frexpl-tests (Files): Likewise.
24371         * modules/fseek-tests (Files): Likewise.
24372         * modules/fseeko-tests (Files): Likewise.
24373         * modules/fsync-tests (Files): Likewise.
24374         * modules/ftell-tests (Files): Likewise.
24375         * modules/ftello-tests (Files): Likewise.
24376         * modules/futimens-tests (Files): Likewise.
24377         * modules/getaddrinfo-tests (Files): Likewise.
24378         * modules/getcwd-tests (Files): Likewise.
24379         * modules/getdelim-tests (Files): Likewise.
24380         * modules/getdtablesize-tests (Files): Likewise.
24381         * modules/getgroups-tests (Files): Likewise.
24382         * modules/gethostname-tests (Files): Likewise.
24383         * modules/getline-tests (Files): Likewise.
24384         * modules/getopt-posix-tests (Files): Likewise.
24385         * modules/gettimeofday-tests (Files): Likewise.
24386         * modules/glob-tests (Files): Likewise.
24387         * modules/iconv-tests (Files): Likewise.
24388         * modules/inet_ntop-tests (Files): Likewise.
24389         * modules/inet_pton-tests (Files): Likewise.
24390         * modules/isblank-tests (Files): Likewise.
24391         * modules/lchown-tests (Files): Likewise.
24392         * modules/ldexpl-tests (Files): Likewise.
24393         * modules/link-tests (Files): Likewise.
24394         * modules/linkat-tests (Files): Likewise.
24395         * modules/lseek-tests (Files): Likewise.
24396         * modules/lstat-tests (Files): Likewise.
24397         * modules/mbrtowc-tests (Files): Likewise.
24398         * modules/mbsinit-tests (Files): Likewise.
24399         * modules/mbsnrtowcs-tests (Files): Likewise.
24400         * modules/mbsrtowcs-tests (Files): Likewise.
24401         * modules/memchr-tests (Files): Likewise.
24402         * modules/memcmp-tests (Files): Likewise.
24403         * modules/memmem-tests (Files): Likewise.
24404         * modules/memrchr-tests (Files): Likewise.
24405         * modules/mkdir-tests (Files): Likewise.
24406         * modules/mkfifo-tests (Files): Likewise.
24407         * modules/mkfifoat-tests (Files): Likewise.
24408         * modules/mknod-tests (Files): Likewise.
24409         * modules/nanosleep-tests (Files): Likewise.
24410         * modules/nl_langinfo-tests (Files): Likewise.
24411         * modules/obstack-printf-tests (Files): Likewise.
24412         * modules/open-tests (Files): Likewise.
24413         * modules/openat-tests (Files): Likewise.
24414         * modules/perror-tests (Files): Likewise.
24415         * modules/pipe2-tests (Files): Likewise.
24416         * modules/poll-tests (Files): Likewise.
24417         * modules/popen-tests (Files): Likewise.
24418         * modules/posix_spawn-tests (Files): Likewise.
24419         * modules/posix_spawnp-tests (Files): Likewise.
24420         * modules/pread-tests (Files): Likewise.
24421         * modules/printf-posix-tests (Files): Likewise.
24422         * modules/pty-tests (Files): Likewise.
24423         * modules/random_r-tests (Files): Likewise.
24424         * modules/rawmemchr-tests (Files): Likewise.
24425         * modules/readlink-tests (Files): Likewise.
24426         * modules/remove-tests (Files): Likewise.
24427         * modules/rename-tests (Files): Likewise.
24428         * modules/renameat-tests (Files): Likewise.
24429         * modules/rmdir-tests (Files): Likewise.
24430         * modules/round-tests (Files): Likewise.
24431         * modules/roundf-tests (Files): Likewise.
24432         * modules/roundl-tests (Files): Likewise.
24433         * modules/select-tests (Files): Likewise.
24434         * modules/setenv-tests (Files): Likewise.
24435         * modules/sigaction-tests (Files): Likewise.
24436         * modules/sleep-tests (Files): Likewise.
24437         * modules/snprintf-posix-tests (Files): Likewise.
24438         * modules/snprintf-tests (Files): Likewise.
24439         * modules/sprintf-posix-tests (Files): Likewise.
24440         * modules/stat-tests (Files): Likewise.
24441         * modules/strcasestr-tests (Files): Likewise.
24442         * modules/strchrnul-tests (Files): Likewise.
24443         * modules/strerror-tests (Files): Likewise.
24444         * modules/strsignal-tests (Files): Likewise.
24445         * modules/strstr-tests (Files): Likewise.
24446         * modules/strtod-tests (Files): Likewise.
24447         * modules/strverscmp-tests (Files): Likewise.
24448         * modules/symlink-tests (Files): Likewise.
24449         * modules/symlinkat-tests (Files): Likewise.
24450         * modules/times-tests (Files): Likewise.
24451         * modules/trunc-tests (Files): Likewise.
24452         * modules/truncf-tests (Files): Likewise.
24453         * modules/truncl-tests (Files): Likewise.
24454         * modules/tsearch-tests (Files): Likewise.
24455         * modules/uname-tests (Files): Likewise.
24456         * modules/unlink-tests (Files): Likewise.
24457         * modules/unsetenv-tests (Files): Likewise.
24458         * modules/usleep-tests (Files): Likewise.
24459         * modules/utimensat-tests (Files): Likewise.
24460         * modules/vasprintf-tests (Files): Likewise.
24461         * modules/vdprintf-posix-tests (Files): Likewise.
24462         * modules/vfprintf-posix-tests (Files): Likewise.
24463         * modules/vprintf-posix-tests (Files): Likewise.
24464         * modules/vsnprintf-posix-tests (Files): Likewise.
24465         * modules/vsnprintf-tests (Files): Likewise.
24466         * modules/vsprintf-posix-tests (Files): Likewise.
24467         * modules/wcrtomb-tests (Files): Likewise.
24468         * modules/wcsnrtombs-tests (Files): Likewise.
24469         * modules/wcsrtombs-tests (Files): Likewise.
24470         * modules/wcwidth-tests (Files): Likewise.
24471         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
24472         * tests/test-isinf.c (isinf): Likewise.
24473         * tests/test-isnan.c (isnan): Likewise.
24474         * tests/test-signbit.c (signbit): Likewise.
24475         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
24476         declaration, either as macro or with correct signature.
24477         (select): Ensure function under test is declared with correct
24478         signature in correct header.
24479         * tests/test-atexit.c (atexit): Likewise.
24480         * tests/test-btowc.c (btowc): Likewise.
24481         * tests/test-canonicalize-lgpl.c (realpath)
24482         (canonicalize_file_name): Likewise.
24483         * tests/test-ceilf1.c (ceilf): Likewise.
24484         * tests/test-ceill.c (ceill): Likewise.
24485         * tests/test-chown.c (chown): Likewise.
24486         * tests/test-dprintf-posix.c (dprintf): Likewise.
24487         * tests/test-dup2.c (dup2): Likewise.
24488         * tests/test-dup3.c (dup3): Likewise.
24489         * tests/test-duplocale.c (duplocale): Likewise.
24490         * tests/test-fchdir.c (fchdir): Likewise.
24491         * tests/test-fchownat.c (fchownat): Likewise.
24492         * tests/test-fcntl.c (fcntl): Likewise.
24493         * tests/test-fdopendir.c (fdopendir): Likewise.
24494         * tests/test-fflush.c (fflush): Likewise.
24495         * tests/test-flock.c (flock): Likewise.
24496         * tests/test-floorf1.c (floorf): Likewise.
24497         * tests/test-floorl.c (floorl): Likewise.
24498         * tests/test-fnmatch.c (fnmatch): Likewise.
24499         * tests/test-fopen.c (fopen): Likewise.
24500         * tests/test-fprintf-posix.c (fprintf): Likewise.
24501         * tests/test-freopen.c (freopen): Likewise.
24502         * tests/test-frexp.c (frexp): Likewise.
24503         * tests/test-frexpl.c (frexpl): Likewise.
24504         * tests/test-fseek.c (fseek): Likewise.
24505         * tests/test-fseeko.c (fseeko): Likewise.
24506         * tests/test-fstatat.c (fstatat): Likewise.
24507         * tests/test-fsync.c (fsync): Likewise.
24508         * tests/test-ftell.c (ftell): Likewise.
24509         * tests/test-ftello.c (ftello): Likewise.
24510         * tests/test-futimens.c (futimens): Likewise.
24511         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
24512         (gai_strerror): Likewise.
24513         * tests/test-getcwd.c (getcwd): Likewise.
24514         * tests/test-getdelim.c (getdelim): Likewise.
24515         * tests/test-getdtablesize.c (getdtablesize): Likewise.
24516         * tests/test-getgroups.c (getgroups): Likewise.
24517         * tests/test-gethostname.c (gethostname): Likewise.
24518         * tests/test-getline.c (getline): Likewise.
24519         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
24520         Likewise.
24521         * tests/test-gettimeofday.c (gettimeofday): Likewise.
24522         * tests/test-glob.c (glob, globfree): Likewise.
24523         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
24524         * tests/test-inet_ntop.c (inet_ntop): Likewise.
24525         * tests/test-inet_pton.c (inet_pton): Likewise.
24526         * tests/test-isblank.c (isblank): Likewise.
24527         * tests/test-lchown.c (lchown): Likewise.
24528         * tests/test-ldexpl.c (ldexpl): Likewise.
24529         * tests/test-link.c (link): Likewise.
24530         * tests/test-linkat.c (linkat): Likewise.
24531         * tests/test-lseek.c (lseek): Likewise.
24532         * tests/test-lstat.c (lstat): Likewise.
24533         * tests/test-mbrtowc.c (mbrtowc): Likewise.
24534         * tests/test-mbsinit.c (mbsinit): Likewise.
24535         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
24536         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
24537         * tests/test-memchr.c (memchr): Likewise.
24538         * tests/test-memcmp.c (memcmp): Likewise.
24539         * tests/test-memmem.c (memmem): Likewise.
24540         * tests/test-memrchr.c (memrchr): Likewise.
24541         * tests/test-mkdir.c (mkdir): Likewise.
24542         * tests/test-mkdirat.c (mkdirat): Likewise.
24543         * tests/test-mkfifo.c (mkfifo): Likewise.
24544         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
24545         * tests/test-mknod.c (mknod): Likewise.
24546         * tests/test-nanosleep.c (nanosleep): Likewise.
24547         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
24548         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
24549         Likewise.
24550         * tests/test-open.c (open): Likewise.
24551         * tests/test-openat.c (openat): Likewise.
24552         * tests/test-perror.c (perror): Likewise.
24553         * tests/test-pipe2.c (pipe2): Likewise.
24554         * tests/test-poll.c (poll): Likewise.
24555         * tests/test-popen.c (popen, pclose): Likewise.
24556         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
24557         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
24558         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
24559         (posix_spawn_file_actions_destroy)
24560         (posix_spawn_file_actions_addclose)
24561         (posix_spawn_file_actions_addopen)
24562         (posix_spawn_file_actions_adddup2): Likewise.
24563         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
24564         * tests/test-pread.c (pread): Likewise.
24565         * tests/test-printf-posix.c (printf): Likewise.
24566         * tests/test-pty.c (openpty, forkpty): Likewise.
24567         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
24568         (random_r): Likewise.
24569         * tests/test-rawmemchr.c (rawmemchr): Likewise.
24570         * tests/test-readlink.c (readlink): Likewise.
24571         * tests/test-remove.c (remove): Likewise.
24572         * tests/test-rename.c (rename): Likewise.
24573         * tests/test-renameat.c (renameat): Likewise.
24574         * tests/test-rmdir.c (rmdir): Likewise.
24575         * tests/test-round1.c (round): Likewise.
24576         * tests/test-roundf1.c (roundf): Likewise.
24577         * tests/test-roundl.c (roundl): Likewise.
24578         * tests/test-setenv.c (setenv): Likewise.
24579         * tests/test-sigaction.c (sigaction): Likewise.
24580         * tests/test-sleep.c (sleep): Likewise.
24581         * tests/test-snprintf.c (snprintf): Likewise.
24582         * tests/test-sprintf-posix.c (sprintf): Likewise.
24583         * tests/test-stat.c (stat): Likewise.
24584         * tests/test-stpncpy.c (stpncpy): Likewise.
24585         * tests/test-strcasestr.c (strcasestr): Likewise.
24586         * tests/test-strchrnul.c (strchrnul): Likewise.
24587         * tests/test-strerror.c (strerror): Likewise.
24588         * tests/test-strsignal.c (strsignal): Likewise.
24589         * tests/test-strstr.c (strstr): Likewise.
24590         * tests/test-strtod.c (strtod): Likewise.
24591         * tests/test-strverscmp.c (strverscmp): Likewise.
24592         * tests/test-symlink.c (symlink): Likewise.
24593         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
24594         * tests/test-times.c (times): Likewise.
24595         * tests/test-trunc1.c (trunc): Likewise.
24596         * tests/test-truncf1.c (truncf): Likewise.
24597         * tests/test-truncl.c (truncl): Likewise.
24598         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
24599         Likewise.
24600         * tests/test-uname.c (uname): Likewise.
24601         * tests/test-unlink.c (unlink): Likewise.
24602         * tests/test-unlinkat.c (unlinkat): Likewise.
24603         * tests/test-unsetenv.c (unsetenv): Likewise.
24604         * tests/test-usleep.c (usleep): Likewise.
24605         * tests/test-utimensat.c (utimensat): Likewise.
24606         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
24607         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
24608         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
24609         * tests/test-vprintf-posix.c (vprintf): Likewise.
24610         * tests/test-vsnprintf.c (vsnprintf): Likewise.
24611         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
24612         * tests/test-wcrtomb.c (wcrtomb): Likewise.
24613         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
24614         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
24615         * tests/test-wcwidth.c (wcwidth): Likewise.
24616
24617         build: pull in conditional headers during GNULIB_POSIXCHECK
24618         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
24619         definitions from any conditionally-included headers.
24620         * lib/stdlib.in.h (includes): Likewise.
24621         * lib/unistd.in.h (includes): Likewise.
24622
24623 2009-12-24  Bruno Haible  <bruno@clisp.org>
24624
24625         * tests/test-argv-iter.c: Include header file being tested immediately
24626         after config.h.
24627         * tests/test-base64.c: Likewise.
24628         * tests/test-flock.c: Likewise.
24629         * tests/test-fsync.c: Likewise.
24630         * tests/test-getdate.c: Likewise.
24631         * tests/test-getndelim2.c: Likewise.
24632         * tests/test-isfinite.c: Likewise.
24633         * tests/test-isinf.c: Likewise.
24634         * tests/test-strerror.c: Likewise.
24635         * tests/test-strsignal.c: Likewise.
24636
24637 2009-12-23  Eric Blake  <ebb9@byu.net>
24638
24639         unistd: work around cygwin bug
24640         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
24641         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
24642         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24643
24644 2009-12-23  Bruno Haible  <bruno@clisp.org>
24645
24646         localename: More tests.
24647         * tests/test-localename.c (SIZEOF): New macro.
24648         (categories): New variable.
24649         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
24650         test_locale_name_default): Add test w.r.t. thread locale.
24651         (test_locale_name_thread): New function.
24652         (main): Invoke it.
24653
24654         localename: Make aware of thread locale.
24655         * lib/localename.h (gl_locale_name_thread): New declaration.
24656         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
24657         behaviour with respect to thread locale.
24658         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
24659         <langinfo.h>, glthread/lock.h.
24660         (SIZE_BITS): New macro.
24661         (string_hash): New function.
24662         (struct hash_node): New type.
24663         (HASH_TABLE_SIZE): New macro.
24664         (struniq_hash_table, struniq_lock): New variables.
24665         (struniq): New function.
24666         (gl_locale_name_thread): New function.
24667         (gl_locale_name): Invoke it.
24668         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
24669         * modules/localename (Depends-on): Add lock.
24670         Reported by Mike Gran <spk121@yahoo.com>.
24671
24672 2009-12-23  Eric Blake  <ebb9@byu.net>
24673
24674         va-args: new module
24675         * modules/va-args: New file.
24676         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
24677         * MODULES.html.sh (Core language properties): Mention it.
24678
24679         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
24680         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
24681         named alias for __attribute__((__unused__)).
24682         * lib/chown.c: Update client.
24683         * lib/fchmodat.c: Likewise.
24684         * lib/fts.c: Likewise.
24685         * lib/getdate.y: Likewise.
24686         * lib/getgroups.c: Likewise.
24687         * lib/getopt.c: Likewise.
24688         * lib/getugroups.c: Likewise.
24689         * lib/mkdir.c: Likewise.
24690         * lib/mkfifo.c: Likewise.
24691         * lib/mkfifoat.c: Likewise.
24692         * lib/mknod.c: Likewise.
24693         * lib/mknodat.c: Likewise.
24694         * lib/readlink.c: Likewise.
24695         * lib/se-context.in.h: Likewise.
24696         * lib/se-selinux.in.h: Likewise.
24697         * lib/sockets.c: Likewise.
24698         * lib/symlink.c: Likewise.
24699         * lib/symlinkat.c: Likewise.
24700         * lib/unicodeio.c: Likewise.
24701         * lib/unistr.h: Likewise.
24702         * tests/test-areadlink.c: Likewise.
24703         * tests/test-areadlinkat.c: Likewise.
24704         * tests/test-filenamecat.c: Likewise.
24705         * tests/test-fseeko.c: Likewise.
24706         * tests/test-ftello.c: Likewise.
24707         * tests/test-getdate.c: Likewise.
24708         * tests/test-getgroups.c: Likewise.
24709         * tests/test-gethostname.c: Likewise.
24710         * tests/test-quotearg.c: Likewise.
24711         * tests/test-version-etc.c: Likewise.
24712         * tests/test-xalloc-die.c: Likewise.
24713         * tests/test-xfprintf-posix.c: Likewise.
24714         * tests/test-xprintf-posix.c: Likewise.
24715         * tests/test-xvasprintf.c: Likewise.
24716
24717         tests: avoid compiler warnings
24718         * tests/test-fcntl.c (main): Delete unused parameters.
24719         * tests/test-freopen-safer.c (main): Likewise.
24720         * tests/test-xalloc-die.c (main): Mark unused parameters.
24721         * tests/test-fseeko.c (main): Likewise.
24722         * tests/test-ftello.c (main): Likewise.
24723         * tests/test-nanosleep.c (main): Avoid declaration warning.
24724         * tests/test-sleep.c (main): Likewise.
24725         * tests/test-unsetenv.c (main): Silence warning about string
24726         literal.
24727         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
24728
24729 2009-12-23  Bruno Haible  <bruno@clisp.org>
24730
24731         * tests/test-localename.c (test_locale_name): New function, extracted
24732         from main. Also test mixed situations.
24733         (test_locale_name_posix, test_locale_name_environ,
24734         test_locale_name_default): New functions.
24735         (main): Invoke them all.
24736         * modules/localename-tests (configure.ac): Test for newlocale.
24737
24738 2009-12-23  Bruno Haible  <bruno@clisp.org>
24739
24740         unistd: Ensure getcwd gets declared before being overridden.
24741         * lib/unistd.in.h: Conditionally include <io.h>.
24742
24743 2009-12-22  Bruno Haible  <bruno@clisp.org>
24744
24745         wchar: Diagnose broken combination of glibc and gcc versions and flags.
24746         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
24747         (gl_WCHAR_H): Invoke it.
24748         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
24749         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
24750         Reported by Karl Berry <karl@freefriends.org>.
24751
24752 2009-12-22  Eric Blake  <ebb9@byu.net>
24753
24754         math, unistd: avoid redundant includes
24755         * lib/math.in.h (isnan): No need to re-include <math.h>.
24756         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
24757
24758         getsubopt: work around cygwin bug
24759         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
24760         avoid conflicting with system getsubopt.
24761         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
24762         bug.
24763
24764         getopt: synchronize from glibc
24765         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
24766         parameter order.  Adjust all callers.
24767         (_getopt_internal_r, main): Adjust quoting in error messages.
24768         Drop considerations for outdated POSIX 1003.2 error message.
24769         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
24770         callers.
24771         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
24772
24773         test-getopt: test stderr behavior
24774         * modules/getopt-posix-tests (Depends-on): Add dup2.
24775         * tests/test-getopt.c (ASSERT): Avoid stderr.
24776         (main): Move stderr to a temporary file.
24777         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
24778         Instead, add parameter to inform caller if output occurred.
24779         (test_getopt): Adjust all existing tests to expect silence, and
24780         add new tests of leading ":".
24781         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
24782         glibc shortcomings with leading "-:" or "+:" in optstring.
24783         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24784         Likewise.
24785         * doc/posix-functions/getopt.texi (getopt): Likewise.
24786
24787         test-getopt: enhance test
24788         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
24789         supports optind=0.
24790         * tests/test-getopt.c (OPTIND_MIN): Move...
24791         * tests/test-getopt.h (OPTIND_MIN): ...here.
24792         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
24793         Require that optind=0 works, since modern BSD supports it in
24794         addition to optreset, and since coreutils expects it.
24795         (test_getopt_long_only): New test.
24796         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
24797         glibc shortcomings with 'W;', and enforcement of optind=0.
24798         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24799         Likewise.
24800
24801 2009-12-21  Bruno Haible  <bruno@clisp.org>
24802
24803         localename: Improvements for MacOS X and Cygwin.
24804         * lib/localename.h (gl_locale_name_environ): New declaration.
24805         * lib/localename.c (gl_locale_name_environ): New function, extracted from
24806         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
24807         (gl_locale_name_posix): Invoke it.
24808         (gl_locale_name_default): Add comments. Use Windows native API also on
24809         Cygwin.
24810
24811 2009-12-21  Bruno Haible  <bruno@clisp.org>
24812
24813         Update list of Win32 locale ids.
24814         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
24815         (LANG_SAMI): Renamed from LANG_SAAMI.
24816         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
24817         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
24818         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
24819         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
24820         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
24821         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
24822         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
24823         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
24824         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
24825         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
24826         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
24827         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
24828         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
24829         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
24830         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
24831         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
24832         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
24833         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
24834         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
24835         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
24836         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
24837         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
24838         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
24839         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
24840         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
24841         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
24842         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
24843         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
24844         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
24845         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
24846         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
24847         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
24848         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
24849         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
24850         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
24851         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
24852         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
24853         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
24854         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
24855         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
24856         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
24857         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
24858         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
24859         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
24860         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
24861         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
24862         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
24863         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
24864         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
24865         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
24866         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
24867         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
24868         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
24869         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
24870         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
24871         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
24872         Add more languages and countries for Sami, Sorbian. Add more countries
24873         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
24874         for Pashto. Change country for Syriac, Tswana.
24875
24876 2009-12-21  Eric Blake  <ebb9@byu.net>
24877
24878         test-utimens: avoid spurious failure
24879         * tests/test-chown.h (nap): Factor...
24880         * tests/nap.h: ...into new file.
24881         * tests/test-lchown.h (nap): Avoid duplication.
24882         * tests/test-utimens-common.h (nap): Use shared implementation,
24883         necessary on file systems with 1-second resolution.
24884         * modules/chown-tests (Files): Include new file.
24885         * modules/fdutimensat-tests (Files): Likewise.
24886         * modules/futimens-tests (Files): Likewise.
24887         * modules/lchown-tests (Files): Likewise.
24888         * modules/openat-tests (Files): Likewise.
24889         * modules/utimens-tests (Files): Likewise.
24890         * modules/utimensat-tests (Files): Likewise.
24891
24892 2009-12-19  Eric Blake  <ebb9@byu.net>
24893
24894         futimens, utimensat: work around Linux bug
24895         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
24896         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24897         * lib/utimensat.c (rpl_utimensat): Work around it.
24898         * lib/futimens.c (rpl_futimens): Adjust comment.
24899
24900         utimens: work around Linux ctime bug
24901         * lib/utimens.c (detect_ctime_bug): New helper function.
24902         (update_timespec): Differentiate between workaround needed for
24903         this bug vs. what is needed for systems that lack utimensat.
24904         (fdutimens, lutimens): Work around bug.
24905
24906         utimens: check for ctime update
24907         * tests/test-utimens-common.h (check_ctime): Define.
24908         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
24909         * tests/test-futimens.h (test_futimens): Likewise.
24910         * tests/test-lutimens.h (test_lutimens): Likewise.
24911         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24912         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24913
24914 2009-12-19  Bruno Haible  <bruno@clisp.org>
24915
24916         dprintf-posix: Check against memory leak fixed on 2009-12-15.
24917         * tests/test-dprintf-posix2.sh: New file.
24918         * tests/test-dprintf-posix2.c: New file.
24919         * modules/dprintf-posix-tests (Files): Add them.
24920         (configure.ac): Check for getrlimit and setrlimit.
24921         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
24922
24923 2009-12-19  Bruno Haible  <bruno@clisp.org>
24924
24925         fprintf-posix: Check against memory leak fixed on 2009-12-15.
24926         * tests/test-fprintf-posix3.sh: New file.
24927         * tests/test-fprintf-posix3.c: New file.
24928         * modules/fprintf-posix-tests (Files): Add them.
24929         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
24930
24931 2009-12-19  Eric Blake  <ebb9@byu.net>
24932
24933         dirfd: fix prototype
24934         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
24935         * lib/dirfd.c (dirfd): Likewise.
24936
24937         canonicalize: reduce memory usage
24938         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
24939         allocation to size.
24940         Reported by Solar Designer <solar@openwall.com>.
24941
24942 2009-12-19  Bruno Haible  <bruno@clisp.org>
24943
24944         New module attribute 'Applicability'.
24945         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
24946         * gnulib-tool: New option --extract-applicability.
24947         (func_usage): Document it.
24948         (sed_extract_prog): Recognize it.
24949         (func_get_applicability): New function.
24950         (func_import): Generalize handling of 'link-warning' module.
24951         * modules/link-warning (Applicability): New section.
24952         * modules/arg-nonnull (Applicability): New section.
24953         Repoted by Simon Josefsson <simon@josefsson.org>.
24954
24955 2009-12-19  Bruno Haible  <bruno@clisp.org>
24956
24957         fflush: tweak
24958         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
24959         * lib/fseeko.c (rpl_fseeko): Likewise.
24960
24961 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
24962
24963         * lib/gl_list.h: Fix typo in comment.
24964
24965 2009-12-16  Eric Blake  <ebb9@byu.net>
24966
24967         fcntl: use to simplify other modules
24968         * modules/cloexec (Depends-on): Add fcntl.
24969         * modules/fchdir (Depends-on): Likewise.
24970         * modules/fd-safer-flag (Depends-on): Likewise.
24971         * modules/unistd-safer (Depends-on): Likewise.
24972         * modules/dup3 (configure.ac): Set module indicator.
24973         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
24974         missing.
24975         * lib/fchdir.c (_gl_register_dup): Fix comment.
24976         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
24977         * lib/dup-safer.c (dup_safer): Likewise.
24978         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
24979         * lib/dup3.c (dup3): Likewise.
24980         * tests/test-fchdir.c (main): Enhance test.
24981         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
24982
24983         fcntl: port portions of fcntl to mingw
24984         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
24985         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
24986         replacement for mingw.
24987         * modules/fcntl (Description): Update.
24988         (Depends-on): Add dup2.
24989         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
24990         * modules/fcntl-h (Makefile.am): Substitute it.
24991         * lib/fcntl.in.h (fcntl): Update declaration.
24992         (F_DUPFD, F_GETFD): New macros, when needed.
24993         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24994         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
24995         * tests/test-fcntl.c (check_flags, main): Enhance test for items
24996         we now guarantee.
24997
24998         fcntl: work around cygwin bug in F_DUPFD
24999         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
25000         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
25001         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
25002         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
25003         * doc/posix-functions/fcntl.texi (fcntl): Document it.
25004
25005         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
25006         * modules/fcntl (Files): List new files.
25007         (configure.ac): Run a test.
25008         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
25009         * lib/fcntl.c (rpl_fcntl): Likewise.
25010         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
25011         (gl_FCNTL_H): Always replace fcntl.h.
25012         * modules/fcntl-h (Makefile.am): Substitute witnesses.
25013         * lib/fcntl.in.h (fcntl): Declare replacement.
25014         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
25015         needed, plus a witness.
25016         * doc/posix-functions/fcntl.texi (fcntl): Document this.
25017         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25018         * tests/test-fcntl.c: New file.
25019         * modules/fcntl-tests: Likewise.
25020
25021         binary-io: avoid potential compilation warning
25022         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
25023         directives.
25024
25025         fflush: avoid compilation error on NetBSD
25026         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
25027         between off_t and fpos_t, since the latter is sometimes a struct.
25028         * lib/fseeko.c (rpl_fseeko): Likewise.
25029         Reported by Alexander Nasonov <alnsn@yandex.ru>.
25030
25031 2009-12-15  Eric Blake  <ebb9@byu.net>
25032
25033         fcntl-h, stdio, sys_ioctl: fix declarations
25034         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
25035         function must not take arguments.
25036         * lib/sys_ioctl.in.h (ioctl): Likewise.
25037         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
25038         (open): Add a link warning.
25039
25040 2009-12-15  Jim Meyering  <meyering@redhat.com>
25041
25042         areadlink, areadlink-with-size: relax license to LGPLv2+
25043         * modules/areadlink (License): Relax to LGPLv2+.
25044         * modules/areadlink-with-size (License): Likewise.
25045
25046 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
25047             Bruno Haible  <bruno@clisp.org>
25048
25049         *printf: Fix memory leak.
25050         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
25051         * lib/vfprintf.c (vfprintf): Likewise.
25052         * lib/dprintf.c (dprintf): Likewise.
25053         * lib/vdprintf.c (vdprintf): Likewise.
25054
25055 2009-12-14  Eric Blake  <ebb9@byu.net>
25056
25057         accept4: adjust module dependencies
25058         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
25059
25060         utimens: one more try at avoiding compiler warning
25061         * lib/utimens.c (lutimens): Lower scope of result.
25062
25063 2009-12-13  Bruno Haible  <bruno@clisp.org>
25064
25065         Move the malloc checking from module 'list' to new module 'xlist'.
25066         * modules/xlist: New file.
25067         * lib/gl_xlist.h: New file.
25068         * lib/gl_xlist.c: New file.
25069         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
25070         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
25071         gl_list_add_last, gl_list_add_before, gl_list_add_after,
25072         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
25073         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
25074         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
25075         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
25076         gl_sortedlist_nx_add): New declarations.
25077         (struct gl_list_implementation): Rename and change methods accordingly.
25078         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
25079         (gl_list_nx_create): Renamed from gl_list_create.
25080         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25081         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25082         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25083         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25084         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25085         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25086         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25087         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25088         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
25089         gl_list_create_empty.
25090         (gl_list_nx_create): Renamed from gl_list_create.
25091         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
25092         (gl_list_nx_set_at): Renamed from gl_list_set_at.
25093         (gl_list_nx_add_first): Renamed from gl_list_add_first.
25094         (gl_list_nx_add_last): Renamed from gl_list_add_last.
25095         (gl_list_nx_add_before): Renamed from gl_list_add_before.
25096         (gl_list_nx_add_after): Renamed from gl_list_add_after.
25097         (gl_list_nx_add_at): Renamed from gl_list_add_at.
25098         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
25099         * lib/gl_array_list.c: Don't include xalloc.h.
25100         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
25101         NULL upon out-of-memory.
25102         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
25103         out-of-memory.
25104         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
25105         Change return type to 'int'.
25106         (gl_array_nx_set_at): Renamed from gl_array_set_at.
25107         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25108         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
25109         upon out-of-memory.
25110         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
25111         upon out-of-memory.
25112         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
25113         upon out-of-memory.
25114         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
25115         upon out-of-memory.
25116         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
25117         out-of-memory.
25118         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
25119         Update.
25120         (gl_array_list_implementation): Update.
25121         * lib/gl_carray_list.c: Don't include xalloc.h.
25122         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
25123         Return NULL upon out-of-memory.
25124         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
25125         out-of-memory.
25126         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
25127         Change return type to 'int'.
25128         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
25129         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
25130         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
25131         upon out-of-memory.
25132         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
25133         upon out-of-memory.
25134         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
25135         out-of-memory.
25136         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
25137         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
25138         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
25139         Update.
25140         (gl_carray_list_implementation): Update.
25141         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
25142         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
25143         gl_linked_create_empty. Return NULL upon out-of-memory.
25144         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
25145         out-of-memory.
25146         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
25147         Change return type to 'int'. Return -1 upon out-of-memory.
25148         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
25149         out-of-memory.
25150         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
25151         upon out-of-memory.
25152         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
25153         upon out-of-memory.
25154         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
25155         NULL upon out-of-memory.
25156         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
25157         upon out-of-memory.
25158         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
25159         out-of-memory.
25160         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
25161         Update.
25162         * lib/gl_linked_list.c: Don't include xalloc.h.
25163         (gl_linked_list_implementation): Update.
25164         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
25165         (add_to_bucket): Change return type to 'int'.
25166         (gl_linkedhash_list_implementation): Update.
25167         * lib/gl_anytree_list1.h (free_subtree): New function.
25168         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
25169         gl_tree_create_empty. Return NULL upon out-of-memory.
25170         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
25171         Change return type to 'int'. Return -1 upon out-of-memory.
25172         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
25173         out-of-memory.
25174         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
25175         (gl_tree_remove_node): New function, moved here from
25176         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
25177         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
25178         Update.
25179         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
25180         malloc, not xmalloc. Return NULL upon out-of-memory.
25181         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
25182         out-of-memory.
25183         (gl_tree_remove_node_from_tree): New function, extracted from
25184         gl_tree_remove_node.
25185         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
25186         upon out-of-memory.
25187         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
25188         out-of-memory.
25189         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
25190         upon out-of-memory.
25191         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
25192         upon out-of-memory.
25193         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
25194         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
25195         not xmalloc. Return NULL upon out-of-memory.
25196         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
25197         out-of-memory.
25198         (gl_tree_remove_node_from_tree): New function, extracted from
25199         gl_tree_remove_node.
25200         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
25201         upon out-of-memory.
25202         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
25203         out-of-memory.
25204         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
25205         upon out-of-memory.
25206         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
25207         upon out-of-memory.
25208         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
25209         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
25210         gl_anytree_list1.h before gl_anyavltree_list2.h.
25211         (gl_avltree_list_implementation): Update.
25212         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
25213         gl_anytree_list1.h before gl_anyavltree_list2.h.
25214         (gl_rbtree_list_implementation): Update.
25215         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
25216         Change return type to 'int'. Return -1 upon out-of-memory. Use
25217         __builtin_expect.
25218         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
25219         (gl_avltreehash_list_implementation): Update.
25220         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
25221         (gl_rbtreehash_list_implementation): Update.
25222         * modules/array-list (Depends-on): Remove xalloc.
25223         * modules/carray-list (Depends-on): Likewise.
25224         * modules/linked-list (Depends-on): Likewise.
25225         * modules/linkedhash-list (Depends-on): Likewise.
25226         * modules/avltree-list (Depends-on): Likewise.
25227         * modules/rbtree-list (Depends-on): Likewise.
25228         * modules/avltreehash-list (Depends-on): Likewise.
25229         * modules/rbtreehash-list (Depends-on): Likewise.
25230
25231         * modules/xsublist: New file.
25232         * lib/gl_xsublist.h: New file.
25233         * lib/gl_xsublist.c: New file.
25234         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
25235         (gl_sublist_nx_create): New declaration.
25236         * lib/gl_sublist.c: Don't include xalloc.h.
25237         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
25238         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
25239         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
25240         Change return type to 'int'. Return -1 upon out-of-memory.
25241         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
25242         upon out-of-memory.
25243         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
25244         NULL upon out-of-memory.
25245         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
25246         upon out-of-memory.
25247         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
25248         NULL upon out-of-memory.
25249         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
25250         NULL upon out-of-memory.
25251         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
25252         upon out-of-memory.
25253         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
25254         (gl_sublist_list_implementation): Update.
25255         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
25256         upon out-of-memory.
25257         * modules/sublist (Depends-on): Remove xalloc.
25258
25259         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
25260         * tests/test-carray_list.c: Likewise.
25261         * tests/test-linked_list.c: Likewise.
25262         * tests/test-linkedhash_list.c: Likewise.
25263         * tests/test-avltree_list.c: Likewise.
25264         * tests/test-rbtree_list.c: Likewise.
25265         * tests/test-avltreehash_list.c: Likewise.
25266         * tests/test-rbtreehash_list.c: Likewise.
25267         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
25268         * modules/carray-list-tests (Makefile.am): Likewise.
25269         * modules/linked-list-tests (Makefile.am): Likewise.
25270         * modules/linkedhash-list-tests (Makefile.am): Likewise.
25271         * modules/avltree-list-tests (Makefile.am): Likewise.
25272         * modules/rbtree-list-tests (Makefile.am): Likewise.
25273         * modules/avltreehash-list-tests (Makefile.am): Likewise.
25274         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
25275
25276         * NEWS: Mention the changes.
25277
25278         * lib/clean-temp.c: Include gl_xlist.h.
25279         * modules/clean-temp (Depends-on): Add xlist.
25280
25281         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
25282         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
25283
25284         * tests/test-array_oset.c: Include gl_xlist.h.
25285         * modules/array-oset-tests (Depends-on): Add xlist.
25286
25287         Reported by José E. Marchesi <jemarch@gnu.org>.
25288
25289 2009-12-13  Bruno Haible  <bruno@clisp.org>
25290
25291         Move the malloc checking from module 'oset' to new module 'xoset'.
25292         * modules/xoset: New file.
25293         * lib/gl_xoset.h: New file.
25294         * lib/gl_xoset.c: New file.
25295         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
25296         declarations.
25297         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
25298         (struct gl_oset_implementation): Rename and change methods accordingly.
25299         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
25300         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
25301         'int'. Mark as __warn_unused_result__.
25302         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
25303         gl_oset_create_empty.
25304         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
25305         'int'.
25306         * lib/gl_array_oset.c: Don't include xalloc.h.
25307         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
25308         malloc, not xmalloc.
25309         (grow): Change return type to 'int'. Don't call xalloc_die.
25310         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
25311         to 'int'.
25312         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
25313         'int'.
25314         (gl_array_oset_implementation): Update.
25315         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
25316         gl_tree_create_empty.
25317         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
25318         'int'.
25319         * lib/gl_avltree_oset.c: Don't include xalloc.h.
25320         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
25321         xmalloc.
25322         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
25323         not xmalloc.
25324         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
25325         xmalloc.
25326         (gl_avltree_oset_implementation): Update.
25327         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
25328         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
25329         xmalloc.
25330         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
25331         not xmalloc.
25332         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
25333         xmalloc.
25334         (gl_rbtree_oset_implementation): Update.
25335         * modules/array-oset (Depends-on): Remove xalloc.
25336         * modules/avltree-oset (Depends-on): Likewise.
25337         * modules/rbtree-oset (Depends-on): Likewise.
25338         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
25339         * tests/test-avltree_oset.c: Likewise.
25340         * tests/test-rbtree_oset.c: Likewise.
25341         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
25342         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
25343         * modules/rbtree-oset-tests (Makefile.am): Likewise.
25344         * NEWS: Mention the change.
25345
25346 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
25347
25348         maint.mk: allow a project to override release-prep commands
25349         * top/maint.mk (alpha, beta, stable): Move release-preparatory
25350         commands into a new rule.
25351         (release-prep): New rule.
25352         (release-prep-hook): New overridable variable.
25353
25354 2009-12-13  Bruno Haible  <bruno@clisp.org>
25355
25356         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
25357
25358 2009-12-13  Jim Meyering  <meyering@redhat.com>
25359
25360         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
25361         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
25362
25363 2009-12-12  Bruno Haible  <bruno@clisp.org>
25364
25365         duplocale: Tweak.
25366         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
25367
25368 2009-12-12  Karl Berry  <karl@gnu.org>
25369
25370         * config/srclist.txt (strtoll.c): tab changes, no more sync.
25371
25372 2009-12-12  Bruno Haible  <bruno@clisp.org>
25373
25374         * m4/po.m4: Undo incorrect untabification.
25375
25376 2009-12-12  Bruno Haible  <bruno@clisp.org>
25377
25378         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
25379         * modules/c-strtod (Depends-on): Add locale.
25380         * modules/c-strtold (Depends-on): Likewise.
25381
25382 2009-12-12  Bruno Haible  <bruno@clisp.org>
25383
25384         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
25385
25386 2009-12-11  Eric Blake  <ebb9@byu.net>
25387
25388         setenv: relax requirement in light of POSIX ruling
25389         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
25390         not NULL.
25391         * tests/test-setenv.c (main): Relax test.
25392         * tests/test-unsetenv.c (main): Likewise.
25393         * doc/posix-functions/setenv.texi (setenv): Document this.
25394         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
25395
25396 2009-12-11  Bruno Haible  <bruno@clisp.org>
25397
25398         New module 'fd-safer-flag'.
25399         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
25400         * lib/dup-safer.c (dup_safer_flag): Remove function.
25401         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
25402         * lib/fd-safer.c (fd_safer_flag): Remove function.
25403         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
25404         * modules/cloexec (configure.ac): Drop indicator macro.
25405         * modules/fd-safer-flag: New file.
25406         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
25407         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
25408         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
25409
25410 2009-12-11  Bruno Haible  <bruno@clisp.org>
25411
25412         Tests for module 'nl_langinfo'.
25413         * modules/nl_langinfo-tests: New file.
25414         * tests/test-nl_langinfo.sh: New file.
25415         * tests/test-nl_langinfo.c: New file.
25416
25417         New module 'nl_langinfo'.
25418         * lib/nl_langinfo.c: New file.
25419         * m4/nl_langinfo.m4: New file.
25420         * modules/nl_langinfo: New file.
25421         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
25422
25423 2009-12-11  Bruno Haible  <bruno@clisp.org>
25424
25425         Tests for module 'langinfo'.
25426         * modules/langinfo-tests: New file.
25427         * tests/test-langinfo.c: New file.
25428
25429         New module 'langinfo'.
25430         * lib/langinfo.in.h: New file.
25431         * m4/langinfo_h.m4: New file.
25432         * modules/langinfo: New file.
25433         * doc/posix-headers/langinfo.texi: Mention the new module.
25434
25435 2009-12-11  Bruno Haible  <bruno@clisp.org>
25436
25437         * lib/config.charset: Untabify.
25438
25439 2009-12-11  Bruno Haible  <bruno@clisp.org>
25440
25441         * modules/unistd-safer (configure.ac): Drop indicator macro.
25442
25443 2009-12-11  Bruno Haible  <bruno@clisp.org>
25444
25445         Move pipe2-safer code to its own file.
25446         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
25447         * lib/pipe-safer.c (pipe2_safer): Remove function.
25448         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
25449         (Makefile.am): Add it to lib_SOURCES.
25450
25451 2009-12-10  Bruno Haible  <bruno@clisp.org>
25452
25453         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
25454
25455 2009-12-10  Bruno Haible  <bruno@clisp.org>
25456
25457         Declare which arguments expect non-NULL values, for GCC and clang.
25458         * build-aux/arg-nonnull.h: New file.
25459         * modules/arg-nonnull: New file.
25460         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
25461         (inet_ntop, inet_pton): Use it.
25462         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
25463         (closedir, dirfd, opendir, scandir, alphasort): Use it.
25464         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
25465         (open, openat): Use it.
25466         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
25467         (fnmatch): Use it.
25468         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
25469         (getopt, getopt_long, getopt_long_only): Use it.
25470         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
25471         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
25472         Use it.
25473         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
25474         (iconv_open): Use it.
25475         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
25476         (strtoimax, strtoumax): Use it.
25477         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
25478         (duplocale): Use it.
25479         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
25480         (frexp, frexpl): Use it.
25481         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
25482         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
25483         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
25484         (tsearch, tfind, tdelete, twalk): Use it.
25485         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
25486         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25487         sigpending): Use it.
25488         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
25489         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25490         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25491         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25492         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25493         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25494         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25495         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25496         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25497         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25498         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25499         Use it.
25500         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
25501         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
25502         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
25503         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
25504         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
25505         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
25506         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
25507         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
25508         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
25509         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
25510         strtoull, unsetenv): Use it.
25511         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
25512         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
25513         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
25514         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
25515         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
25516         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
25517         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
25518         (strcasecmp, strncasecmp): Use it.
25519         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
25520         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
25521         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
25522         rpl_setsockopt): Use it.
25523         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
25524         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
25525         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
25526         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
25527         (gettimeofday): Use it.
25528         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
25529         (times): Use it.
25530         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
25531         (uname): Use it.
25532         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
25533         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
25534         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
25535         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
25536         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
25537         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
25538         unlinkat, write): Use it.
25539         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
25540         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
25541         * lib/argv-iter.h: Include arg-nonnull.h.
25542         (_ATTRIBUTE_NONNULL_): Remove macro.
25543         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
25544         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
25545         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
25546         optimization.
25547         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
25548         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
25549         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
25550         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
25551         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
25552         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
25553         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
25554         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
25555         * modules/arpa_inet (Depends-on): Add arg-nonnull.
25556         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
25557         * modules/dirent (Depends-on): Add arg-nonnull.
25558         (Makefile.am): Insert arg-nonnull.h into dirent.h.
25559         * modules/fcntl-h (Depends-on): Add arg-nonnull.
25560         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
25561         * modules/fnmatch (Depends-on): Add arg-nonnull.
25562         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
25563         * modules/getopt-posix (Depends-on): Add arg-nonnull.
25564         (Makefile.am): Insert arg-nonnull.h into getopt.h.
25565         * modules/glob (Depends-on): Add arg-nonnull.
25566         (Makefile.am): Insert arg-nonnull.h into glob.h.
25567         * modules/iconv_open (Depends-on): Add arg-nonnull.
25568         (Makefile.am): Insert arg-nonnull.h into iconv.h.
25569         * modules/inttypes (Depends-on): Add arg-nonnull.
25570         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
25571         * modules/locale (Depends-on): Add arg-nonnull.
25572         (Makefile.am): Insert arg-nonnull.h into locale.h.
25573         * modules/math (Depends-on): Add arg-nonnull.
25574         (Makefile.am): Insert arg-nonnull.h into math.h.
25575         * modules/netdb (Depends-on): Add arg-nonnull.
25576         (Makefile.am): Insert arg-nonnull.h into netdb.h.
25577         * modules/search (Depends-on): Add arg-nonnull.
25578         (Makefile.am): Insert arg-nonnull.h into search.h.
25579         * modules/signal (Depends-on): Add arg-nonnull.
25580         (Makefile.am): Insert arg-nonnull.h into signal.h.
25581         * modules/spawn (Depends-on): Add arg-nonnull.
25582         (Makefile.am): Insert arg-nonnull.h into spawn.h.
25583         * modules/stdio (Depends-on): Add arg-nonnull.
25584         (Makefile.am): Insert arg-nonnull.h into stdio.h.
25585         * modules/stdlib (Depends-on): Add arg-nonnull.
25586         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
25587         * modules/string (Depends-on): Add arg-nonnull.
25588         (Makefile.am): Insert arg-nonnull.h into string.h.
25589         * modules/strings (Depends-on): Add arg-nonnull.
25590         (Makefile.am): Insert arg-nonnull.h into strings.h.
25591         * modules/sys_socket (Depends-on): Add arg-nonnull.
25592         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
25593         * modules/sys_stat (Depends-on): Add arg-nonnull.
25594         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
25595         * modules/sys_time (Depends-on): Add arg-nonnull.
25596         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
25597         * modules/sys_times (Depends-on): Add arg-nonnull.
25598         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
25599         * modules/sys_utsname (Depends-on): Add arg-nonnull.
25600         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
25601         * modules/time (Depends-on): Add arg-nonnull.
25602         (Makefile.am): Insert arg-nonnull.h into time.h.
25603         * modules/unistd (Depends-on): Add arg-nonnull.
25604         (Makefile.am): Insert arg-nonnull.h into unistd.h.
25605         * modules/wchar (Depends-on): Add arg-nonnull.
25606         (Makefile.am): Insert arg-nonnull.h into wchar.h.
25607         * modules/argv-iter (Depends-on): Add arg-nonnull.
25608         * tests/test-canonicalize.c (null_ptr): New function.
25609         (main): Use it.
25610         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
25611         (main): Use it.
25612         * tests/test-memmem.c (null_ptr): New function.
25613         (main): Use it.
25614         Reported by Jim Meyering.
25615
25616 2009-12-10  Bruno Haible  <bruno@clisp.org>
25617
25618         Use spaces for indentation, not tabs.
25619         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
25620         * m4/*.m4: Untabify.
25621         * build-aux/*.h: Untabify.
25622         * tests/**/*.[hc]: Untabify.
25623         * README: New section "Indent with spaces, not TABs", based on
25624         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
25625         * NEWS: Mention the change.
25626
25627 2009-12-10  Bruno Haible  <bruno@clisp.org>
25628
25629         pty test: Fix link error.
25630         * modules/pty-tests (Makefile.am): Add the default LDADD value to
25631         test_pty_LDADD.
25632
25633 2009-12-07  Simon Josefsson  <simon@josefsson.org>
25634
25635         * modules/pty: New file.
25636         * modules/pty-tests: New file.
25637         * m4/pty.m4: New file.
25638         * tests/test-pty.c: New file.
25639         * doc/glibc-headers/pty.texi: Modified.
25640         * doc/glibc-functions/forkpty.texi: Modified.
25641         * doc/glibc-functions/openpty.texi: Modified.
25642
25643 2009-12-10  Bruno Haible  <bruno@clisp.org>
25644
25645         Avoid syntax error in C++ mode.
25646         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
25647
25648 2009-12-10  Bruno Haible  <bruno@clisp.org>
25649
25650         Use sed with option -e.
25651         * gnulib-tool (func_version, func_emit_copyright_notice,
25652         func_emit_initmacro_end, func_import, func_create_testdir): Pass
25653         option -e to sed.
25654         * modules/link-warning (Makefile.am): Likewise.
25655
25656 2009-12-10  Jim Meyering  <meyering@redhat.com>
25657
25658         mgetgroups: do not write bytes beyond end of malloc'd buffer
25659         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
25660         username, we call getgroups with a one-element-shorter buffer,
25661         but still told it the length was original, max_n_groups.
25662
25663 2009-12-09  Eric Blake  <ebb9@byu.net>
25664
25665         cloexec: relax license
25666         * modules/cloexec (Maintainer): Add myself.
25667         (License): Use LGPL, not GPL.
25668
25669         link-warning: optimize generation
25670         * modules/link-warning (Makefile.am): Reduce process usage.
25671
25672 2009-12-09  Bruno Haible  <bruno@clisp.org>
25673
25674         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
25675         workaround was added on 2009-11-17.
25676
25677 2009-12-09  Jim Meyering  <meyering@redhat.com>
25678             Bruno Haible  <bruno@clisp.org>
25679
25680         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
25681         * modules/link-warning (Makefile.am): Make the comment-removing sed
25682         command more robust in the face of bootstrap-prepended comment lines.
25683
25684 2009-12-09  Bruno Haible  <bruno@clisp.org>
25685
25686         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
25687         most one group.
25688
25689 2009-12-09  Simon Josefsson <simon@josefsson.org>
25690             Bruno Haible  <bruno@clisp.org>
25691
25692         * build-aux/link-warning.h: Add copyright notice.
25693         * modules/link-warning (Makefile.am): Generate link-warning.h from
25694         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
25695         * NEWS: Mention change in link-warning module.
25696         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
25697         * modules/dirent (Makefile.am): Add dependency to dirent.h.
25698         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
25699         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
25700         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
25701         * modules/math (Makefile.am): Add dependency to math.h.
25702         * modules/search (Makefile.am): Add dependency to search.h.
25703         * modules/signal (Makefile.am): Add dependency to signal.h.
25704         * modules/spawn (Makefile.am): Add dependency to spawn.h.
25705         * modules/stdio (Makefile.am): Add dependency to stdio.h.
25706         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
25707         * modules/string (Makefile.am): Add dependency to string.h.
25708         * modules/strings (Makefile.am): Add dependency to strings.h.
25709         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
25710         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
25711         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
25712         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
25713         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
25714         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
25715         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
25716         * modules/unistd (Makefile.am): Add dependency to unistd.h.
25717         * modules/wchar (Makefile.am): Add dependency to wchar.h.
25718
25719 2009-12-09  Bruno Haible  <bruno@clisp.org>
25720
25721         fchdir: Optimize away rpl_fstat when possible.
25722         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
25723         REPLACE_OPEN_DIRECTORY.
25724         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
25725
25726 2009-12-09  Bruno Haible  <bruno@clisp.org>
25727
25728         * lib/fchdir.c: Update comment.
25729
25730 2009-12-09  Bruno Haible  <bruno@clisp.org>
25731
25732         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
25733
25734 2009-12-08  Eric Blake  <ebb9@byu.net>
25735
25736         fchdir: avoid memory leak on re-registration.
25737         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
25738
25739 2009-12-08  Jim Meyering  <meyering@redhat.com>
25740
25741         init.sh: avoid Solaris 10 /bin/sh portability problem
25742         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
25743         sourced script:
25744           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
25745           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
25746           bar
25747         tests/init.sh relied on that, accepting a --set-path=DIR argument,
25748         and two tests used that idiom.
25749         * tests/init.sh: Update suggested usage comments.
25750         (path_prepend_): New function, to be used in place
25751         of the --src-path=DIR option.
25752         (setup_): Move PATH-prepending code into path_prepend_.
25753         * tests/test-pread.sh: Adapt to new usage.
25754         * tests/test-xalloc-die.sh: Likewise.
25755
25756 2009-12-08  Simon Josefsson  <simon@josefsson.org>
25757
25758         * doc/gnulib.texi (Glibc pty.h): Add.
25759         * doc/glibc-functions/forkpty.texi: Add.
25760         * doc/glibc-functions/openpty.texi: Add.
25761         Suggested by Bruno Haible.
25762
25763 2009-12-08  Eric Blake  <ebb9@byu.net>
25764
25765         fchdir: fix logic bugs
25766         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
25767         * tests/test-fchdir.c (main): Enhance test.
25768         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
25769         is in use.
25770
25771         dup2: fix logic bugs
25772         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
25773         REPLACE_DUP2 to decide when rpl_dup2 is needed.
25774         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
25775         exists.
25776         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
25777
25778 2009-12-07  Eric Blake  <ebb9@byu.net>
25779
25780         unlink: fix m4 detection
25781         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
25782
25783         unistd-safer: add unit test
25784         * modules/unistd-safer-tests: New file.
25785         * tests/test-dup-safer.c: Likewise.
25786         * tests/test-cloexec.c (setmode): Avoid compiler warning.
25787         * tests/test-dup2.c (setmode): Likewise.
25788         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
25789
25790         cloexec: preserve text vs. binary across dup_cloexec
25791         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
25792         mode.
25793         * modules/dup2-tests (Depends-on): Add binary-io.
25794         * modules/cloexec-tests (Depends-on): Likewise.
25795         * tests/test-dup2.c (setmode, is_mode): New helpers.
25796         (main): Add tests that translation mode is preserved.
25797         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
25798         Reported by Bruno Haible.
25799
25800         mgetgroups: reduce duplicate listings
25801         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
25802         resulting array.
25803         * tests/test-chown.h (test_chown): Simplify client.
25804         * tests/test-lchown.h (test_lchown): Likewise.
25805
25806 2009-12-06  Bruno Haible  <bruno@clisp.org>
25807
25808         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
25809         value.
25810
25811 2009-12-06  Bruno Haible  <bruno@clisp.org>
25812
25813         * lib/progname.c: Include stdio.h, stdlib.h.
25814         (set_program_name): Reject a NULL argument.
25815
25816 2009-12-05  Eric Blake  <ebb9@byu.net>
25817
25818         pipe2-safer: new module
25819         * modules/pipe2-safer: New file.
25820         * lib/unistd-safer.h (pipe2_safer): New prototype.
25821         * lib/unistd--.h (pipe2): New wrapper.
25822         * lib/pipe-safer.c (pipe2_safer): New function.
25823         * modules/pipe (Depends-on): Add pipe2-safer.
25824         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
25825
25826         stdlib-safer: preserve cloexec flag for mkostemp[s]
25827         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
25828         fd_safer_flag.
25829
25830         unistd-safer: allow preservation of cloexec status via flag
25831         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
25832         prototypes.
25833         * lib/dup-safer.c (dup_safer_flag): New function.
25834         * lib/fd-safer.c (fd_safer_flag): Likewise.
25835         * modules/cloexec (configure.ac): Set witness.
25836
25837         test-dup2: enhance test
25838         * modules/dup2-tests (Depends-on): Add cloexec.
25839         * tests/test-dup2.c (main): Enhance test.
25840
25841         cloexec: add dup_cloexec
25842         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
25843         header and comments.
25844         * lib/cloexec.c (set_cloexec_flag): Add comments.
25845         (dup_cloexec): New function, with mingw implementation borrowed
25846         from...
25847         * lib/w32spawn.h (dup_noinherit): ...here.
25848         * modules/execute (Depends-on): Add cloexec.
25849         * modules/pipe (Depends-on): Likewise.
25850         * modules/cloexec (Depends-on): Add dup2.
25851         * modules/cloexec-tests (Files): New file.
25852         * tests/test-cloexec.c: Likewise.
25853
25854         test-xalloc-die: fix test for mingw
25855         * modules/xalloc-die-tests (Files): Add tests/init.sh.
25856         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
25857         directory and .exe suffix off argv[0] output.
25858
25859         test-fseeko: fix test for mingw
25860         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
25861         than undefining fseek, so test will pass on mingw.
25862
25863 2009-12-05  Bruno Haible  <bruno@clisp.org>
25864
25865         * lib/progname.h (set_program_name): Clarify specification.
25866         * lib/progname.c (set_program_name): Likewise.
25867         Reported by Jim Meyering.
25868
25869 2009-12-05  Jim Meyering  <meyering@redhat.com>
25870
25871         maint.mk: backslash-escape parens in default regexp
25872         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
25873         backslash-escape the literal parentheses.
25874
25875         maint.mk: news-date-check: use grep -E
25876         * top/maint.mk (today): Define a Make variable, not a...
25877         (news-date-check): ...shell variable.
25878         (news-date-regexp): Use the Make variable.
25879         Use grep's -E option.  Change the failing diagnostic to mention
25880         the variable, $(news-date-regexp).
25881
25882 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
25883
25884         maintainer-makefile: allow customization of NEWS entry format
25885         * top/maint.mk (news-date-regexp): New overridable variable.
25886         (news-date-check): Use it.
25887
25888 2009-12-04  Eric Blake  <ebb9@byu.net>
25889
25890         mgetgroups: add xgetgroups, and avoid ENOSYS failures
25891         * lib/mgetgroups.h (xgetgroups): New prototype.
25892         * lib/mgetgroups.c (xgetgroups): New wrapper.
25893         (mgetgroups): Handle ENOSYS.
25894         * modules/mgetgroups (Depends-on): Add realloc.
25895         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
25896
25897         mgetgroups: avoid argument promotion issues with -1
25898         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
25899         for invalid gid_t.
25900         * tests/test-chown.h (getegid, test_chown): Likewise.
25901         * tests/test-lchown.h (getegid, test_lchown): Likewise.
25902
25903 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
25904
25905         exclude: Fix header file problems.
25906         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
25907
25908 2009-12-01  Jim Meyering  <meyering@redhat.com>
25909
25910         fts: fts_open: do not let an empty string cause immediate failure
25911         This is required in support of GNU rm, for which the command
25912         "rm A '' B" must process and remove both A and B, in spite of
25913         the empty string argument.
25914         * lib/fts.c (fts_open): Do not let the presence of an empty string
25915         cause fts_open to fail immediately.  Most fts-using tools must be
25916         able to process all arguments, in order, and can be expected to
25917         diagnose such arguments themselves.
25918
25919 2009-11-30  Eric Blake  <ebb9@byu.net>
25920
25921         utimens: fix compilation error
25922         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
25923         Declare variable at right scope.
25924
25925 2009-11-29  Jim Meyering  <meyering@redhat.com>
25926
25927         bootstrap: handle perl-5.11's changed --version output
25928         * build-aux/bootstrap (get_version): Handle perl separately,
25929         since perl-5.11's --version output is different.
25930
25931 2009-11-28  Jim Meyering  <meyering@redhat.com>
25932
25933         userspec: depend on the inttostr module, too
25934         * modules/userspec (Depends-on): Add inttostr.
25935
25936         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
25937         * lib/userspec.c (parse_with_separator): Do not accept a user ID
25938         number of MAXUID when it evaluates to (uid_t) -1.
25939         Likewise for group ID.  Reported by Matt McCutchen in
25940         <http://savannah.gnu.org/bugs/?28113>
25941
25942         userspec: reformat to use spaces, not TABs
25943         * lib/userspec.c: Expand TABs to spaces.
25944         Add Emacs' "indent-tabs-mode: nil" hint.
25945
25946 2009-11-27  Eric Blake  <ebb9@byu.net>
25947
25948         getopt-gnu: flush out another BSD bug
25949         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
25950         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
25951         flush out BSD bug.
25952         * tests/test-getopt.h (test_getopt): End lists with NULL.
25953         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25954         (test_getopt_long_posix): Enhance test.
25955         * modules/getopt-posix-tests (Depends-on): Add stdbool.
25956         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
25957         getopt-gnu.
25958         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25959         Likewise.
25960
25961 2009-11-27  Simon Josefsson  <simon@josefsson.org>
25962
25963         * modules/idpriv-droptemp-tests (Notice): Fix text.
25964
25965 2009-11-27  Jim Meyering  <meyering@redhat.com>
25966
25967         test-xalloc-die: avoid spurious failure due to libtool argv difference
25968         In a libtool-enabled project, this test would fail due to a difference
25969         in the emitted program name, e.g.,
25970         -test-xalloc-die: memory exhausted
25971         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
25972         Use program to avoid that.
25973         * modules/xalloc-die-tests (Depends-on): Add progname.
25974         * tests/test-xalloc-die.c: Include progname.h".
25975         (program_name): Remove decl.
25976         (main): Call set_program_name.
25977         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
25978
25979 2009-11-26  Richard Jones  <rjones@redhat.com>
25980
25981         w32sock: leave win32 error in place.
25982         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
25983
25984 2009-11-26  Eric Blake  <ebb9@byu.net>
25985
25986         init.sh: suggest to use skip_ and fail_ functions in comments
25987         * tests/init.sh: Add a sentence.
25988
25989 2009-11-25  Bruno Haible  <bruno@clisp.org>
25990
25991         init.sh: add documentation in comments
25992         * tests/init.sh: Add some developer and user documentation.
25993
25994 2009-11-26  Jim Meyering  <meyering@redhat.com>
25995
25996         init.sh: accommodate even those who specify bogus srcdir manually
25997         * tests/init.sh: Normally, srcdir is guaranteed by automake and
25998         configure-time tests to be sanitized, so that there is no need to
25999         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
26000         (with no double quotes) suffices.  However, since tests may be
26001         invoked manually, and since you may explicitly set srcdir to the
26002         name of a directory containing spaces, do quote its uses here.
26003         * tests/test-pread.sh: Likewise.
26004         Suggested by Bruno Haible.
26005
26006         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
26007         * tests/test-pread.sh: Write no data into the pipe, because
26008         test-pread actually reads none.  This avoids a diagnostic,
26009         "bash: echo: write error: Broken pipe", that arises in the unusual
26010         event something is ignoring SIGPIPE, and might be interpreted
26011         as some sort of failure.  Reported by Bruno Haible.
26012
26013 2009-11-25  Jim Meyering  <meyering@redhat.com>
26014
26015         test-pread: cover failure with ESPIPE and EINVAL
26016         * tests/test-pread.c (main): Test for failure, too.
26017         * tests/test-pread.sh: Invoke with stdin on a pipe.
26018         Suggested by Eric Blake.
26019
26020         pread: improvement and fix
26021         * modules/pread (Depends-on): Depend on lseek, for portability to
26022         e.g., mingw.  Suggested by Eric Blake.
26023         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
26024
26025         unistd.in.h: correct declaration of pread
26026         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
26027         Reported by Richard W.M. Jones.
26028
26029         test-pread.sh: distribute the test script
26030         * modules/pread-tests (Files): Include test-pread.sh.
26031
26032         test-pread.sh: clean up
26033         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
26034         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
26035         That is unnecessary, since it's always ".".
26036         Suggestion from Eric Blake.
26037
26038         test-pread.sh: make executable
26039         * tests/test-pread.sh: Set executable bit.
26040         Reported by Eric Blake.
26041
26042         correct typo in test-pread.sh
26043         * tests/test-pread.sh: Add #! line.
26044
26045         test pread
26046         * tests/test-pread.c: New file.
26047         * tests/test-pread.sh: Likewise.
26048         * modules/pread-tests: Likewise.
26049
26050         pread: new module
26051         * modules/pread: New file.
26052         * lib/unistd.in.h (pread): Define/declare.
26053         * lib/pread.c (pread): New file.
26054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
26055         * modules/unistd (Makefile.am): Substitute witnesses.
26056         * doc/posix-functions/pread.texi (pread): Update.
26057         * MODULES.html.sh: Add pread.
26058
26059 2009-11-25  Jim Meyering  <meyering@redhat.com>
26060
26061         tests/init.sh: new file to be used via most *.sh tests
26062         * tests/init.sh: New file.
26063
26064 2009-11-25  Eric Blake  <ebb9@byu.net>
26065
26066         utimens: work around older Linux failure with symlinks
26067         * lib/utimens.c (lutimensat_works_really): New variable.
26068         (fdutimens, lutimens): Use it to manage kernels that support
26069         nanosecond times on files, but not on symlinks.
26070         Reported by OndÅ™ej Vašík.
26071
26072         utimes: fix configure grammar
26073         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
26074
26075 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
26076
26077         regex: Fix fastmap for multibyte character ranges.
26078         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
26079         characters when a multibyte character range is included.
26080
26081 2009-11-22  Andy Wingo  <wingo@pobox.com>
26082
26083         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
26084         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
26085
26086 2009-11-24  Bruno Haible  <bruno@clisp.org>
26087
26088         doc: Most *_l functions exist in MacOS X 10.5.
26089         * doc/posix-functions/duplocale.texi: Update platforms list.
26090         * doc/posix-functions/freelocale.texi: Likewise.
26091         * doc/posix-functions/newlocale.texi: Likewise.
26092         * doc/posix-functions/uselocale.texi: Likewise.
26093         * doc/posix-functions/isalnum_l.texi: Likewise.
26094         * doc/posix-functions/isalpha_l.texi: Likewise.
26095         * doc/posix-functions/isblank_l.texi: Likewise.
26096         * doc/posix-functions/iscntrl_l.texi: Likewise.
26097         * doc/posix-functions/isdigit_l.texi: Likewise.
26098         * doc/posix-functions/isgraph_l.texi: Likewise.
26099         * doc/posix-functions/islower_l.texi: Likewise.
26100         * doc/posix-functions/isprint_l.texi: Likewise.
26101         * doc/posix-functions/ispunct_l.texi: Likewise.
26102         * doc/posix-functions/isspace_l.texi: Likewise.
26103         * doc/posix-functions/isupper_l.texi: Likewise.
26104         * doc/posix-functions/iswalnum_l.texi: Likewise.
26105         * doc/posix-functions/iswalpha_l.texi: Likewise.
26106         * doc/posix-functions/iswblank_l.texi: Likewise.
26107         * doc/posix-functions/iswcntrl_l.texi: Likewise.
26108         * doc/posix-functions/iswctype_l.texi: Likewise.
26109         * doc/posix-functions/iswdigit_l.texi: Likewise.
26110         * doc/posix-functions/iswgraph_l.texi: Likewise.
26111         * doc/posix-functions/iswlower_l.texi: Likewise.
26112         * doc/posix-functions/iswprint_l.texi: Likewise.
26113         * doc/posix-functions/iswpunct_l.texi: Likewise.
26114         * doc/posix-functions/iswspace_l.texi: Likewise.
26115         * doc/posix-functions/iswupper_l.texi: Likewise.
26116         * doc/posix-functions/iswxdigit_l.texi: Likewise.
26117         * doc/posix-functions/isxdigit_l.texi: Likewise.
26118         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
26119         * doc/posix-functions/strcasecmp_l.texi: Likewise.
26120         * doc/posix-functions/strcoll_l.texi: Likewise.
26121         * doc/posix-functions/strfmon_l.texi: Likewise.
26122         * doc/posix-functions/strftime_l.texi: Likewise.
26123         * doc/posix-functions/strncasecmp_l.texi: Likewise.
26124         * doc/posix-functions/strxfrm_l.texi: Likewise.
26125         * doc/posix-functions/tolower_l.texi: Likewise.
26126         * doc/posix-functions/toupper_l.texi: Likewise.
26127         * doc/posix-functions/towctrans_l.texi: Likewise.
26128         * doc/posix-functions/towlower_l.texi: Likewise.
26129         * doc/posix-functions/towupper_l.texi: Likewise.
26130         * doc/posix-functions/wcscoll_l.texi: Likewise.
26131         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
26132         * doc/posix-functions/wctrans_l.texi: Likewise.
26133         * doc/posix-functions/wctype_l.texi: Likewise.
26134         * doc/glibc-functions/strptime_l.texi: Likewise.
26135         * doc/glibc-functions/strtod_l.texi: Likewise.
26136         * doc/glibc-functions/strtof_l.texi: Likewise.
26137         * doc/glibc-functions/strtol_l.texi: Likewise.
26138         * doc/glibc-functions/strtold_l.texi: Likewise.
26139         * doc/glibc-functions/strtoll_l.texi: Likewise.
26140         * doc/glibc-functions/strtoul_l.texi: Likewise.
26141         * doc/glibc-functions/strtoull_l.texi: Likewise.
26142         * doc/glibc-functions/wcsftime_l.texi: Likewise.
26143         * doc/glibc-functions/wcstod_l.texi: Likewise.
26144         * doc/glibc-functions/wcstof_l.texi: Likewise.
26145         * doc/glibc-functions/wcstol_l.texi: Likewise.
26146         * doc/glibc-functions/wcstold_l.texi: Likewise.
26147         * doc/glibc-functions/wcstoll_l.texi: Likewise.
26148         * doc/glibc-functions/wcstoul_l.texi: Likewise.
26149         * doc/glibc-functions/wcstoull_l.texi: Likewise.
26150
26151 2009-11-24  Bruno Haible  <bruno@clisp.org>
26152
26153         duplocale: Fix logic bug.
26154         * lib/duplocale.c: Don't include <langinfo.h>.
26155         (_NL_LOCALE_NAME): Remove macro.
26156         (rpl_duplocale): Use setlocale instead of nl_langinfo.
26157         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
26158
26159 2009-11-23  Jim Meyering  <meyering@redhat.com>
26160
26161         test-update-copyright: don't hard-code /usr/bin/perl
26162         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
26163         perl to print the current year.  Gilles Espinasse reported that
26164         the replaced use of perl was hard-coded as /usr/bin/perl.
26165
26166 2009-11-23  Bruno Haible  <bruno@clisp.org>
26167
26168         duplocale: Add support for glibc 2.3.x.
26169         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
26170
26171 2009-11-22  Bruno Haible  <bruno@clisp.org>
26172
26173         vasnprintf: Tiny optimization.
26174         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
26175         MacOS X.
26176
26177 2009-11-22  Bruno Haible  <bruno@clisp.org>
26178
26179         Tests for module 'duplocale'.
26180         * modules/duplocale-tests: New file.
26181         * tests/test-duplocale.c: New file.
26182
26183         New module 'duplocale'.
26184         * m4/duplocale.m4: New file.
26185         * lib/locale.in.h (duplocale): New declaration.
26186         * lib/duplocale.c: New file.
26187         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
26188         gl_LOCALE_H_DEFAULTS): New macros.
26189         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
26190         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
26191         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
26192         REPLACE_DUPLOCALE.
26193         * modules/duplocale: New file.
26194         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
26195
26196 2009-11-22  Bruno Haible  <bruno@clisp.org>
26197
26198         * modules/locale-tests (configure.ac): Test for newlocale function.
26199         * tests/test-locale.c: When the system has extended locale functions,
26200         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
26201
26202         locale: Make locale_t available when possible.
26203         * lib/locale.in.h: Include <xlocale.h> when it exists.
26204         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
26205         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
26206         * modules/locale (Depends-on): Add extensions.
26207         (Makefile.am): Also substitute HAVE_XLOCALE_H.
26208         * doc/posix-headers/locale.texi: Document the problem with locale_t.
26209
26210 2009-11-22  Bruno Haible  <bruno@clisp.org>
26211
26212         Add comments.
26213         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
26214         invocation.
26215         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
26216         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26217         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26218
26219 2009-11-22  Bruno Haible  <bruno@clisp.org>
26220
26221         error: account for the possibility of freopen (stdout).
26222         * lib/error.c: Include <unistd.h>.
26223         (flush_stdout): New function, extracted from error and error_at_line.
26224         Determine stdout's fd dynamically.
26225         (error, error_at_line): Invoke flush_stdout.
26226         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
26227         * modules/error (Depends-on): Add unistd.
26228
26229 2009-11-22  Bruno Haible  <bruno@clisp.org>
26230
26231         diffseq: Add comment.
26232         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
26233
26234 2009-11-22  Jim Meyering  <meyering@redhat.com>
26235
26236         c-stack: avoid defining an unused static function
26237         * lib/c-stack.c (find_stack_direction): Do not define this function
26238         when it will not be used.
26239
26240         diffseq: avoid spurious gcc warnings
26241         * lib/diffseq.h (IF_LINT2): Define.
26242         (compareseq): Use it to initialize two members of "part".
26243         This avoids two used-uninitialized warnings.
26244
26245 2009-11-21  Jim Meyering  <meyering@redhat.com>
26246
26247         c-stack: avoid "ignoring return value of `write'" warning
26248         * lib/c-stack.c: Include "ignore-value.h".
26249         (die): Explicitly ignore each write return value.
26250         * modules/c-stack (Depends-on): Add ignore-value.
26251
26252 2009-11-21  Bruno Haible  <bruno@clisp.org>
26253
26254         diffseq: reduce scope of variable 'best'.
26255         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
26256         variable, earlier used for two different purposes.
26257
26258 2009-11-21  Jim Meyering  <meyering@redhat.com>
26259
26260         diffseq: remove useless assignment to "best"
26261         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
26262         assignment.  At that point "best" is already guaranteed to be zero.
26263
26264 2009-11-20  Eric Blake  <ebb9@byu.net>
26265
26266         build: mention ftp redirector in release announcements
26267         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
26268         values that used to come from cfg.mk; mention FTP redirect URL.
26269         * build-aux/announce-gen: Mention the mirror list.
26270         Suggested by Karl Berry.
26271
26272         nanosleep: improve port to mingw
26273         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
26274         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
26275         LIB_NANOSLEEP, but only when needed.
26276         * modules/select (Link): Document LIBSOCKET.
26277         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
26278         enough.
26279
26280         nanosleep: work around cygwin bug
26281         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
26282         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
26283         bug.
26284         (getnow): Delete, not needed.
26285         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
26286         LIB_CLOCK_GETTIME.
26287         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
26288         clock-time, gettime.
26289         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
26290         bug.
26291         * modules/nanosleep-tests: New test.
26292         * tests/test-nanosleep.c: New file.
26293
26294         sleep: work around cygwin bug
26295         * lib/sleep.c (rpl_sleep): Work around the bug.
26296         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
26297         (gl_PREREQ_SLEEP): Delete unused macro.
26298         * modules/sleep (Depends-on): Add verify.
26299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
26300         * modules/unistd (Makefile.am): Substitute witness.
26301         * lib/unistd.in.h (sleep): Update prototype.
26302         * doc/posix-functions/sleep.texi (sleep): Document the bug.
26303         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
26304         * modules/sleep-tests (Depends-on): Check for alarm.
26305
26306 2009-11-20  Jim Meyering  <meyering@redhat.com>
26307
26308         maint.mk: improve sc_prohibit_magic_number_exit
26309         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
26310         so it does not match uses like System.exit(1).
26311         Add comments showing how to correct all offenders.
26312
26313 2009-11-19  Eric Blake  <ebb9@byu.net>
26314
26315         xalloc-die-tests: add missing library
26316         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
26317
26318         test-xvasprintf: silence compiler warnings
26319         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
26320         empty string from gcc.
26321
26322 2009-11-19  Jim Meyering  <meyering@redhat.com>
26323
26324         xfreopen: new module, from coreutils
26325         * modules/xfreopen: New module.
26326         * lib/xfreopen.c: New file.
26327         * lib/xfreopen.h: New file.
26328         * MODULES.html.sh (File stream based Input/Output"): Add it.
26329
26330 2009-11-19  Eric Blake  <ebb9@byu.net>
26331
26332         manywarnings: depend on warnings
26333         * modules/manywarnings (Depends-on): Add warnings.
26334
26335         build: avoid compiler warnings
26336         * lib/select.c (rpl_select): Delete unused variable.
26337         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
26338
26339 2009-11-18  Eric Blake  <ebb9@byu.net>
26340
26341         tests: avoid false negative with --with-packager
26342         * tests/test-version-etc.sh: Discard packager information.
26343         * tests/test-argp-version-etc-1.sh: Likewise.
26344         Reported by Mike Frysinger.
26345
26346         utimens: fix regression on Solaris
26347         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
26348         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
26349         can only change fd timestamps via futimesat.  Instead, use an
26350         additional witness macro to avoid BSD bug.
26351         Reported by Jim Meyering.
26352
26353 2009-11-17  Eric Blake  <ebb9@byu.net>
26354
26355         usleep: use it to simplify tests
26356         * modules/stat-time-tests (Depends-on): Add usleep.
26357         (configure.ac): Drop usleep check.
26358         * modules/chown-tests (Depends-on, configure.ac): Likewise.
26359         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
26360         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
26361         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
26362         * modules/openat-tests (Depends-on, configure.ac): Likewise.
26363         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
26364         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
26365         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
26366         Likewise.
26367         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
26368         * tests/test-lchown.h (nap): Likewise.
26369         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
26370         * tests/test-stat-time.c (nap): Likewise.
26371         * tests/test-utimens-common.h (nap): Update comments.
26372
26373         usleep: new module
26374         * modules/usleep: New file.
26375         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
26376         * lib/usleep.c (usleep): Likewise.
26377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
26378         * modules/unistd (Makefile.am): Substitute witnesses.
26379         * lib/unistd.in.h (usleep): Add declaration.
26380         * doc/pastposix-functions/usleep.texi (usleep): Document this.
26381         * MODULES.html.sh (Date and time): Likewise.
26382         * modules/usleep-tests (Depends-on): New test.
26383         * tests/test-usleep.c: New file.
26384
26385         chown: work around OpenBSD bug
26386         * lib/chown.c (rpl_chown): Work around the bug.
26387         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
26388         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
26389         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
26390         * modules/chown (Depends-on): Add stdbool.
26391         * modules/lchown (Depends-on): Likewise.
26392         * doc/posix-functions/chown.texi (chown): Document the bug.
26393         * doc/posix-functions/lchown.texi (lchown): Likewise.
26394         * tests/test-lchown.h (test_chown): Relax test.
26395
26396         mkstemp: avoid conflict with C++ keyword template
26397         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
26398         * lib/mkostemp.c (mkostemp): Likewise.
26399         * lib/mkostemps.c (mkostemps): Likewise.
26400         * lib/mkstemp.c (mkstemp): Likewise.
26401         * lib/mkstemps.c (mkstemps): Likewise.
26402
26403         xalloc-die-tests: optimize
26404         * tests/test-xalloc-die.sh: Reduce number of processes.
26405
26406 2009-11-17  Simon Josefsson  <simon@josefsson.org>
26407
26408         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
26409         patch from ludo@gnu.org (Ludovic Courtès).
26410
26411 2009-11-17  Jim Meyering  <meyering@redhat.com>
26412
26413         version-etc: use proper license string
26414         * modules/version-etc (License): Use LGPL, not LGPLv3+.
26415         * modules/version-etc-fsf: Likewise.
26416
26417 2009-11-17  Simon Josefsson  <simon@josefsson.org>
26418
26419         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
26420         printed to stdout.  Deal with EOL differences.
26421
26422 2009-11-17  Eric Blake  <ebb9@byu.net>
26423
26424         unsetenv: work around Solaris bug
26425         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
26426         * lib/unsetenv.c (rpl_unsetenv): Work around it.
26427         Reported by Jim Meyering.
26428
26429         vasnprintf: avoid compiler warnings
26430         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
26431         variables.
26432         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
26433
26434 2009-11-17  Simon Josefsson  <simon@josefsson.org>
26435
26436         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
26437         settings since xalloc-die is no longer the self test,
26438         xalloc-die.sh is.
26439
26440 2009-11-17  Jim Meyering  <meyering@redhat.com>
26441
26442         test-xalloc-die.sh: make the code agree with the commit log
26443         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
26444         at the end, just in case you happen to have a test-xalloc-die
26445         program in some other PATH directory.
26446
26447         test-xalloc-die.sh: fix a portability bug
26448         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
26449         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
26450         Otherwise, argv[0] (as often seen in diagnostics) would be too
26451         system-dependent, sometimes with, and sometimes without the leading "./".
26452
26453         version-etc-fsf: relax license to LGPLv3+
26454         * modules/version-etc-fsf (License): Relax license.
26455
26456 2009-11-16  Eric Blake  <ebb9@byu.net>
26457
26458         xalloc-die-tests: avoid printing null pointer
26459         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
26460         shell script.
26461         * tests/test-xalloc-die.c (program_name): Declare.
26462         * tests/test-xalloc-die.sh (tmpfiles): New file.
26463
26464         setenv, unsetenv: work around various bugs
26465         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
26466         (setenv) [HAVE_SETENV]: Work around bugs.
26467         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
26468         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
26469         for bugs.
26470         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
26471         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
26472         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
26473         * modules/stdlib (Makefile.am): Update substitutions.
26474         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
26475         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
26476         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
26477         * modules/setenv-tests: New test.
26478         * modules/unsetenv-tests: Likewise.
26479         * tests/test-setenv.c: New file.
26480         * tests/test-unsetenv.c: Likewise.
26481
26482 2009-11-16  Jim Meyering  <meyering@redhat.com>
26483
26484         version-etc: relax license to LGPLv3+
26485         * modules/version-etc (License): Relax license.
26486
26487         better AC_REQUIRE expanded-before-required-warning avoidance
26488         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
26489         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
26490         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
26491         which is no longer needed.
26492
26493 2009-11-16  Eric Blake  <ebb9@byu.net>
26494
26495         test-freading: clean up temporary file
26496         * tests/test-freading.c (main): Remove file on success, and use
26497         ASSERT more liberally.
26498         Reported by Jim Meyering.
26499
26500 2009-11-16  Jim Meyering  <meyering@redhat.com>
26501
26502         avoid new AC_REQUIRE expanded-before-required warnings
26503         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
26504         merely using it.
26505         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
26506         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
26507
26508 2009-11-15  Simon Josefsson  <simon@josefsson.org>
26509
26510         * tests/test-xalloc-die.c: New file.
26511         * modules/xalloc-die-tests: New file.
26512         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
26513         XFAIL_TESTS so it can be appended by modules.
26514
26515 2009-11-15  Simon Josefsson  <simon@josefsson.org>
26516
26517         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
26518         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
26519
26520 2009-11-14  Eric Blake  <ebb9@byu.net>
26521
26522         fnmatch: avoid compiler warning
26523         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
26524         to silence compiler warning about mismatch signedness in ?:.
26525         Reported by Robert Millan.
26526
26527         intprops: add double-inclusion guard
26528         * lib/intprops.h: Allow idempotent includes.
26529         Suggested by Bruce Korb.
26530
26531         openat: detect Solaris fchownat bug
26532         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
26533         penalizing glibc chownat when only lchownat is broken.
26534         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
26535         trailing slash bugs.
26536         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
26537         * modules/openat-tests (Files): Include more files.
26538         (Depends-on): Add mgetgroups, sleep, stat-time.
26539         (configure.ac): Add additional checks.
26540         (Makefile.am): Build new test.
26541         * tests/test-fchownat.c: New file.
26542
26543         lchown: detect Solaris and FreeBSD bug
26544         * lib/lchown.c (rpl_lchown): Work around bug.
26545         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
26546         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26547         * modules/unistd (Makefile.am): Populate it.
26548         * lib/unistd.in.h (lchown): Update declaration.
26549         * doc/posix-functions/lchown.texi (lchown): Document the bug.
26550         * modules/lchown-tests: New file.
26551         * tests/test-lchown.h (test_lchown): Likewise.
26552         * tests/test-lchown.c (main): Likewise.
26553
26554         chown: detect Solaris and FreeBSD bug
26555         * lib/chown.c (rpl_chown): Work around bug.
26556         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
26557         (gl_PREREQ_CHOWN): Delete.
26558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26559         * modules/unistd (Makefile.am): Populate it.
26560         * lib/unistd.in.h (chown): Update declaration.
26561         * lib/lchown.c (chown): Update client.
26562         * modules/lchown (Depends-on): Add lstat.
26563         * doc/posix-functions/chown.texi (chown): Document the bug.
26564         * doc/posix-functions/getgroups.texi (getgroups): Document
26565         getgroups pitfall.
26566         * modules/chown-tests: New file.
26567         * tests/test-chown.h (test_chown): Likewise.
26568         * tests/test-chown.c (main): Likewise.
26569
26570 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
26571
26572         gnulib-tool: correctly detect absence of m4 directories
26573         * gnulib-tool: Avoid extra newline on data passed to wc -l.
26574
26575 2009-11-14  Jim Meyering  <meyering@redhat.com>
26576
26577         maint.mk: Prohibit inclusion of "xalloc.h" without use.
26578         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
26579
26580 2009-11-14  John W. Eaton  <jwe@gnu.org>
26581
26582         strftime.h: wrap funtion declaration in extern "C" block
26583         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
26584
26585 2009-11-13  Eric Blake  <ebb9@byu.net>
26586
26587         getgroups: avoid compiler warning
26588         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
26589
26590         getgroups: work around FreeBSD bug
26591         * lib/getgroups.c (rpl_getgroups): Work around the bug.
26592         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
26593         * doc/posix-functions/getgroups.texi (getgroups): Document it.
26594         * tests/test-getgroups.c (main): Fix buffer overrun.
26595
26596         getgroups: avoid compilation failure
26597         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
26598         * modules/getgroups (Depends-on): Add stdint.
26599
26600 2009-11-13  Jim Meyering  <meyering@redhat.com>
26601
26602         test-getgroups: avoid compilation failure
26603         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
26604
26605 2009-11-13  Eric Blake  <ebb9@byu.net>
26606
26607         mgetgroups: new module, taken from coreutils
26608         * modules/mgetgroups: New file.
26609         * lib/mgetgroups.h: Likewise.
26610         * lib/mgetgroups.c (mgetgroups): Likewise.
26611         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
26612         * MODULES.html.sh (Users and groups): Mention it.
26613
26614         getgroups: don't expose GETGROUPS_T to user
26615         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
26616         an element at a time if GETGROUPS_T is wrong size.
26617         * lib/getugroups.h (getugroups): Change signature.
26618         * lib/unistd.in.h (getgroups): Likewise.
26619         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
26620         signature needs fixing.
26621         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
26622         AC_TYPE_GETGROUPS.
26623         * modules/group-member (Depends-on): Add getgroups.
26624         * lib/group-member.c (group_info, get_group_info): Use gid_t.
26625         (group_member): Rely on getgroups replacement.
26626         * lib/getugroups.c (getugroups): Use gid_t.
26627         * tests/test-getgroups.c (main): Likewise.
26628         * NEWS: Mention the signature change.
26629         * doc/posix-functions/getgroups.texi (getgroups): Mention the
26630         problem with signature.
26631         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
26632         GETGROUPS_T is still useful for setgroups.
26633
26634         getgroups, getugroups: provide stubs for mingw
26635         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
26636         * lib/getugroups.c (getugroups): Likewise.
26637         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
26638         function.  Modernize replacement scheme.
26639         (gl_PREREQ_GETGROUPS): Delete.
26640         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
26641         * modules/getgroups (configure.ac): Declare witness.
26642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
26643         * modules/unistd (Depends-on): Substitute witness.
26644         * lib/unistd.in.h (getgroups): Declare replacement.
26645
26646         getgroups: avoid calling exit
26647         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
26648         drop xalloc.
26649         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
26650         dependencies.
26651         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
26652         exiting, in the rare case of malloc failure.
26653
26654         getgroups: fix logic error
26655         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
26656         has more than 20 groups.
26657         * modules/getgroups-tests: New test.
26658         * tests/test-getgroups.c: New file.
26659
26660 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26661
26662         * tests/test-base64.c: Improve.
26663
26664 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26665
26666         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
26667         Blake <ebb9@byu.net>.
26668
26669 2009-11-13  Simon Josefsson  <simon@josefsson.org>
26670
26671         * tests/test-xvasprintf.c: Add %s%s related checks.
26672
26673 2009-11-12  Eric Blake  <ebb9@byu.net>
26674
26675         version-etc: match standards.texi style
26676         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
26677         and use <> only for URLs.
26678
26679 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
26680
26681         fts: do not fail on a submount during traversal
26682         * lib/fts.c (fts_build): Read the stat info again after opening
26683         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
26684         Original report at http://bugzilla.redhat.com/501848.
26685
26686 2009-11-12  Jim Meyering  <meyering@redhat.com>
26687
26688         bootstrap: sync from coreutils
26689         * build-aux/bootstrap (bootstrap_epilogue): New function.
26690         Use git_modules_config in one more place.  This make bootstrap's
26691         --gnulib-srcdir option more useful for testing.
26692
26693         bootstrap: generalize autoheader check
26694         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
26695         AC_CONFIG_HEADERS.
26696
26697 2009-11-11  Eric Blake  <ebb9@byu.net>
26698
26699         mkfifoat: use new modules for Solaris and BSD bugs
26700         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
26701         * lib/mkfifoat.c (mknodat): Split...
26702         * lib/mknodat.c (mknodat): ...into new file.
26703         * modules/mkfifoat (Files): Ship new file.
26704         (Depends-on): Add mkfifo, mknod.
26705         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
26706         (Depends-on): Add symlink.
26707         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
26708         redundant with test_mkfifo.h.
26709         (do_mkfifoat, do_mknodat): New helpers.
26710
26711         mknod: new module
26712         * modules/mknod: New file.
26713         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
26714         * lib/mknod.c (mknod): Likewise.
26715         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
26716         defaults.
26717         * modules/sys_stat (Makefile.am): Substitute them.
26718         * lib/sys_stat.in.h (mknod): Declare replacement.
26719         * MODULES.html.sh (Support for systems lacking POSIX:2008):
26720         Document it.
26721         * doc/posix-functions/mknod.texi (mknod): Likewise.
26722         * modules/mknod-tests: New test.
26723         * tests/test-mknod.c: Likewise.
26724
26725         mkfifo: new module
26726         * modules/mkfifo: New file.
26727         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26728         * lib/mkfifo.c (mkfifo): Likewise.
26729         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
26730         defaults.
26731         * modules/sys_stat (Makefile.am): Substitute them.
26732         * lib/sys_stat.in.h (mkfifo): Declare replacement.
26733         * MODULES.html.sh (Support for systems lacking POSIX:2008):
26734         Document it.
26735         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
26736         * modules/mkfifo-tests: New test.
26737         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
26738         from test-mkfifoat.c.
26739         * tests/test-mkfifo.c: New file.
26740
26741         readlink: detect FreeBSD bug
26742         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
26743         slash on symlink.
26744         * doc/posix-functions/readlink.texi (readlink): Document the bug.
26745         * tests/test-readlink.h (test_readlink): Enhance test.
26746
26747         symlink: detect FreeBSD bug
26748         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
26749         slash on symlink.
26750         * doc/posix-functions/symlink.texi (symlink): Document the bug.
26751         * tests/test-symlink.h (test_symlink): Enhance test.
26752
26753 2009-11-10  Eric Blake  <ebb9@byu.net>
26754
26755         link: detect FreeBSD bug
26756         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
26757         symlink.
26758         * doc/posix-functions/link.texi (link): Document the bug.
26759         * tests/test-link.h (test_link): Enhance test.
26760         * tests/test-linkat.c (main): Update caller.
26761
26762         unlink, remove: detect FreeBSD bug
26763         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
26764         slash on symlink.
26765         * doc/posix-functions/unlink.texi (unlink): Document the bug.
26766         * doc/posix-functions/remove.texi (remove): Likewise.
26767         * tests/test-unlink.h (test_unlink): Enhance test.
26768         * tests/test-remove.c (main): Likewise.
26769
26770 2009-11-09  Eric Blake  <ebb9@byu.net>
26771
26772         rename: detect FreeBSD bug
26773         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
26774         slash on symlink.
26775         * modules/renameat-tests (Depends-on): Add filenamecat.
26776         * tests/test-rename.h (test_rename): Allow one more errno.
26777         * tests/test-renameat.c (main): Likewise.
26778         * doc/posix-functions/rename.texi (rename): Document the bug.
26779
26780         open: detect FreeBSD bug
26781         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
26782         symlink.
26783         * doc/posix-functions/open.texi (open): Document the bug.
26784         * doc/posix-functions/utimes.texi (utimes): Likewise.
26785         * tests/test-open.h (test_open): Add parameters, and test symlink
26786         handling.
26787         * tests/test-open.c (main): Adjust caller.
26788         * tests/test-fcntl-safer.c (main): Likewise.
26789         * modules/open-tests (Depends-on): Add stdbool, symlink.
26790         * modules/fcntl-safer-tests (Depends-on): Likewise.
26791         * tests/test-openat.c (main): Add test-open tests.
26792
26793         stat: detect FreeBSD bug
26794         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
26795         symlink.
26796         * doc/posix-functions/stat.texi (stat): Document the bug.
26797         * tests/test-stat.h (test_stat_func): Add argument.
26798         * tests/test-stat.c (main): Adjust caller.
26799         * tests/test-fstatat.c (main): Likewise.
26800         * modules/stat-tests (Depends-on): Add stdbool, symlink.
26801         Reported by Jim Meyering.
26802
26803 2009-11-09  James Youngman  <jay@gnu.org>
26804
26805         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
26806         * lib/strftime.c: Correct placement of #include "ignore-value.h".
26807
26808 2009-11-08  Jim Meyering  <meyering@redhat.com>
26809
26810         utimens: remove invalid futimesat call
26811         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
26812         It used the file descriptor of the target file as the DIR_FD
26813         parameter and NULL as the file name.  That caused failure with
26814         errno == EFAULT on FreeBSD-8.0-rc2
26815
26816 2009-11-07  Eric Blake  <ebb9@byu.net>
26817
26818         fflush, freadseek: use fseeko, not fseek
26819         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
26820         (clear_ungetc_buffer): Avoid potential problems on large files.
26821         * lib/freadseek.c (freadseek): Likewise.
26822         * modules/freadseek (Depends-on): Add fseeko.
26823         * modules/fseek (configure.ac): Set a witness.
26824         * tests/test-fflush.c (main): Use fseeko.
26825         * tests/test-fpurge.c (fseek): Disable link warning.
26826         * tests/test-freadable.c (fseek): Likewise.
26827         * tests/test-freading.c (fseek): Likewise.
26828         * tests/test-fseeko.c (fseek): Likewise.
26829         * tests/test-ftell.c (fseek): Likewise.
26830         * tests/test-ftello.c (fseek): Likewise.
26831         * tests/test-fwritable.c (fseek): Likewise.
26832         * tests/test-fwriting.c (fseek): Likewise.
26833
26834 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26835
26836         * modules/memchr (Depends-on): Drop getpagesize dependency.
26837
26838 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26839
26840         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
26841         Reported by Ludovic Courtès.
26842         * build-aux/pmccabe2html: Improve example usage.
26843         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
26844
26845 2009-11-06  Jim Meyering  <meyering@redhat.com>
26846
26847         do-release-commit-and-tag: New module.
26848         Automate the release-commit and tag process.
26849         * build-aux/do-release-commit-and-tag: New script, from coreutils.
26850         * modules/do-release-commit-and-tag: New file.
26851         * MODULES.html.sh (Support for maintaining and releasing): Add it.
26852
26853 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26854
26855         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
26856         because test-select.c uses inet_pton.
26857
26858 2009-11-06  Simon Josefsson  <simon@josefsson.org>
26859
26860         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
26861         GETADDRINFO_LIB.  Bump serial number.
26862         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
26863         Suggested by Eric Blake <ebb9@byu.net>.
26864
26865 2009-11-05  Eric Blake  <ebb9@byu.net>
26866
26867         strtod: detect darwin bug
26868         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
26869         Reported by Leo Davis.
26870
26871         freopen-safer: new module
26872         * modules/freopen-safer: New module.
26873         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
26874         * lib/freopen-safer.c (freopen_safer): New file.
26875         * lib/stdio-safer.h (freopen_safer): New declaration.
26876         * lib/stdio--.h (freopen): New override.
26877         * MODULES.html.sh (File stream based Input/Output): Mention it.
26878         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
26879         freopen-safer module.
26880         * doc/posix-functions/stderr.texi (stderr): Likewise.
26881         * doc/posix-functions/stdin.texi (stdin): Likewise.
26882         * doc/posix-functions/stdout.texi (stdout): Likewise.
26883         * modules/freopen-safer-tests: New test.
26884         * tests/test-reopen-safer.c: New file.
26885
26886 2009-11-05  Jim Meyering  <meyering@redhat.com>
26887
26888         maint.mk: Prohibit inclusion of "close-stream.h" without use.
26889         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
26890
26891 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26892
26893         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
26894
26895 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26896
26897         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
26898
26899 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26900
26901         Fix link error.
26902         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
26903         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26904
26905 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26906
26907         * tests/test-func.c: Also test value of __func__.
26908
26909 2009-11-05  Simon Josefsson  <simon@josefsson.org>
26910
26911         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
26912         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
26913
26914 2009-11-05  Bruno Haible  <bruno@clisp.org>
26915
26916         Fix link error.
26917         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
26918         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26919         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
26920
26921 2009-11-05  Bruno Haible  <bruno@clisp.org>
26922
26923         Tests for module 'inet_pton'.
26924         * modules/inet_pton-tests: New file.
26925         * tests/test-inet_pton.c: New file.
26926
26927 2009-11-05  Bruno Haible  <bruno@clisp.org>
26928
26929         Tests for module 'inet_ntop'.
26930         * modules/inet_ntop-tests: New file.
26931         * tests/test-inet_ntop.c: New file.
26932
26933 2009-11-04  Eric Blake  <ebb9@byu.net>
26934
26935         stdlib-safer: wrap all mkstemp variants
26936         * modules/mkostemp (configure.ac): Set witness.
26937         * modules/mkostemps (configure.ac): Likewise.
26938         * modules/mkstemps (configure.ac): Likewise.
26939         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
26940         (mkstemps_safer): Wrap more functions.
26941         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
26942         wrapping.
26943         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
26944         (mkstemps_safer): Implement the wrappers.
26945
26946         mkstemps, mkostemps: new modules
26947         * modules/mkostemps: New module.
26948         * modules/mkstemps: Likewise.
26949         * lib/mkostemps.c (mkostemps): New file.
26950         * lib/mkstemps.c (mkstemps): Likewise.
26951         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
26952         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
26953         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
26954         * modules/stdlib (Makefile.am): Substitute them.
26955         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
26956         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
26957         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26958         * doc/gnulib.texi (Glibc stdlib.h): Include them.
26959         * MODULES.html.sh (File system functions): Mention them.
26960
26961         tempname: resync from glibc
26962         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
26963         same values for __GT_FILE as glibc.  Abort even when assertions
26964         are disabled.
26965         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
26966         match its value otherwise.  Allow idempotent inclusion.
26967         * lib/mkdtemp.c (mkdtemp): Adjust caller.
26968         * lib/mkostemp.c (mkostemp): Likewise.
26969         * lib/mkstemp.c (mkstemp): Likewise.
26970         * lib/tmpfile.c (tmpfile): Likewise.
26971         * NEWS: Document this.
26972
26973         utimens: fix use of futimens on older Linux
26974         * lib/utimens.c (fdutimens): Use updated, rather than original,
26975         timespec to avoid bug in older Linux kernel.
26976         Reported by Simon Josefsson.
26977
26978 2009-11-04  Bruno Haible  <bruno@clisp.org>
26979
26980         Make num_processors more flexible and consistent.
26981         * lib/nproc.h (enum nproc_query): New type.
26982         (num_processors): Add a 'query' argument.
26983         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
26984         (num_processors): Add a 'query' argument. Test the value of the
26985         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
26986         mingw, count the number of CPUs available for the current process.
26987         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
26988         Check for sched_getaffinity and sched_getaffinity_np.
26989         * modules/nproc (Depends-on): Add c-ctype, extensions.
26990         * NEWS: Mention the change.
26991
26992 2009-11-03  Bruno Haible  <bruno@clisp.org>
26993
26994         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
26995
26996 2009-11-03  Jim Meyering  <meyering@redhat.com>
26997
26998         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
26999         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
27000         if it is defined.
27001
27002 2009-11-02  Eric Blake  <ebb9@byu.net>
27003
27004         mktime, timegm: share common declaration
27005         * lib/mktime-internal.h: New file.
27006         * lib/mktime.c: Use it rather than open-coding a declaration.
27007         * lib/timegm.c: Likewise.
27008         * modules/mktime (Files): Ship it.
27009         * modules/timegm (Files): Likewise.
27010         Suggested by Bruno Haible.
27011
27012         test-update-copyright: update test to match script changes
27013         * tests/test-update-copyright.sh: Avoid hard-coding perl
27014         location.  Don't update *.bak created by earlier runs.
27015
27016 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27017             Simon Josefsson  <simon@josefsson.org>
27018             Bruno Haible  <bruno@clisp.org>
27019
27020         Fix link error on Solaris 8.
27021         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
27022         also in libnsl. Define also INET_PTON_LIB.
27023         * modules/inet_pton (Link): New section.
27024
27025 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27026             Bruno Haible  <bruno@clisp.org>
27027
27028         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
27029         * modules/inet_ntop (Link): New section.
27030         Reported by Boyan Kasarov <bkasarov@gmail.com>.
27031
27032 2009-11-02  Eric Blake  <ebb9@byu.net>
27033
27034         maint: avoid compiler warnings in m4 macros
27035         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
27036         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
27037
27038 2009-11-02  Simon Josefsson  <simon@josefsson.org>
27039
27040         * m4/pmccabe2html.m4: Remove file.
27041         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
27042         function.  Change maintainer.
27043         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
27044         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
27045         Courtès).
27046
27047 2009-10-31  Eric Blake  <ebb9@byu.net>
27048
27049         fseeko: fix m4 regression
27050         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
27051         regression from 2009-10-27.
27052         Reported by Ralf Wildenhues.
27053
27054 2009-10-31  Jim Meyering  <meyering@redhat.com>
27055
27056         inttostr: aesthetics and improved (compile-time) safety
27057         Define inttype_is_signed rather than inttype_is_unsigned,
27058         since the sole use is via "#if inttype_is_signed".
27059         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
27060         inttype_is_unsigned.
27061         * lib/offtostr.c (inttype_is_signed): Likewise.
27062         * lib/uinttostr.c (inttype_is_signed): Likewise.
27063         * lib/umaxtostr.c (inttype_is_signed): Likewise.
27064         * lib/inttostr.c (inttostr): Use verify to cross-check the
27065         inttype_is_signed value and the signedness of the actual type.
27066         * modules/inttostr (Depends-on): Add verify.
27067
27068 2009-10-30  Eric Blake  <ebb9@byu.net>
27069
27070         build: avoid compiler warnings
27071         * lib/fchmodat.c (lchmod): Mark unused variables.
27072         * lib/getopt.c (_getopt_initialize): Likewise.
27073         * lib/mktime.c (__mktime_internal): Provide prototype.
27074         * lib/inttostr.c (inttostr): Avoid compiler warning even with
27075         older gcc that do not understand #pragma GCC diagnostic.
27076         * lib/uinttostr.c (inttype_is_unsigned): Define.
27077         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
27078
27079 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
27080
27081         stat: fix compilation on AIX
27082         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
27083         only see struct stat64.
27084
27085 2009-10-30  Eric Blake  <ebb9@byu.net>
27086
27087         exclude: make more robust
27088         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
27089         rather than masking a coding bug.
27090         Suggested by Bruno Haible.
27091
27092 2009-10-30  Jim Meyering  <meyering@redhat.com>
27093
27094         perl scripts: remove #!/usr/bin/perl in favor of more portable...
27095         Rather than putting #!/usr/bin/perl on the first line,
27096         start with a variant of what's recommended by "man perlrun" that
27097         invokes the first "perl" program from your shell's search path.
27098         * build-aux/gitlog-to-changelog: Replace #!... as above.
27099         Add a "Local Variables" perl mode setting.
27100         Prompted by a patch from Ludovic Courtès.
27101         Improved by Eric Blake.
27102         * build-aux/useless-if-before-free: Likewise.
27103         * build-aux/announce-gen: Likewise.
27104         * build-aux/update-copyright: Likewise.
27105
27106 2009-10-29  Eric Blake  <ebb9@byu.net>
27107
27108         filenamecat-lgpl: adjust clients
27109         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
27110         filenamecat.
27111         * modules/renameat (Depends-on): Likewise.
27112
27113         filenamecat: split into filenamecat-lgpl
27114         * modules/filenamecat-lgpl: New module.
27115         * modules/filenamecat (Files): Move library-safe files into
27116         filenamecat-lgpl.
27117         (Depends-on): Add filenamecat-lgpl.
27118         (configure.ac): Declare witness.
27119         * lib/filenamecat.h (file_name_concat): Only declare when using
27120         GPL module.
27121         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
27122         Move...
27123         * lib/filenamecat-lgpl.c: ...into new file.
27124         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
27125         (gl_FILE_NAME_CONCAT): Use it.
27126         * MODULES.html.sh (File system functions): Mention new module.
27127
27128         argp: avoid memory leak
27129         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
27130         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
27131         base_name, since the latter malloc()s and can call exit().
27132         Leak introduced 2006-07-03.
27133
27134         dirname-lgpl: adjust clients that don't need full dirname
27135         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
27136         * modules/filenamecat (Depends-on): Likewise.
27137         * modules/linkat (Depends-on): Likewise.
27138         * modules/mkancesdirs (Depends-on): Likewise.
27139         * modules/mkdir (Depends-on): Likewise.
27140         * modules/openat (Depends-on): Likewise.
27141         * modules/savewd (Depends-on): Likewise.
27142         * modules/rename (Depends-on): Likewise.
27143         (License): Relax license.
27144         * modules/mkdir-tests (Depends-on): Drop progname.
27145         (Makefile.am): Delete unneeded LDADD.
27146         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
27147
27148         dirname: split into dirname-lgpl
27149         * modules/dirname-lgpl: New module.
27150         * modules/dirname (Files): Move library-safe files into
27151         dirname-lgpl.
27152         (Depends-on): Add dirname-lgpl.
27153         (configure.ac): Declare witness.
27154         * modules/double-slash-root (License): Relax license.
27155         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
27156         module.
27157         * lib/dirname.c (dir_len, mdir_name): Move...
27158         * lib/dirname-lgpl.c: ...into new file.
27159         * lib/basename.c (last_component, base_len): Move...
27160         * lib/basename-lgpl.c: ...into new file.
27161         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
27162         (gl_DIRNAME): Use it.
27163         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
27164         Mention new module.
27165         * modules/dirname-tests (Depends-on): Add progname.
27166         * tests/test-dirname.c (program_name): Delete.
27167
27168         mkdir: make safe for libraries
27169         * modules/mkdir (Depends-on): Drop xalloc.
27170         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
27171         exit.
27172
27173         tests: avoid some compiler warnings
27174         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
27175         literals.
27176         * tests/test-memchr.c (main): Avoid type mismatch.
27177         * tests/test-arpa_inet.c (main): Avoid unused parameters.
27178         * tests/test-base64.c (main): Likewise.
27179         * tests/test-getdelim.c (main): Likewise.
27180         * tests/test-gethostname.c (main): Likewise.
27181         * tests/test-getline.c (main): Likewise.
27182         * tests/test-netinet_in.c (main): Likewise.
27183         * tests/test-select.c (open_server_socket, main): Likewise.
27184         * tests/test-select-stdin.c (main): Likewise.
27185         * tests/test-sockets.c (main): Likewise.
27186         * tests/test-strsignal.c (main): Likewise.
27187         * tests/test-sys_select.c (main): Likewise.
27188         * tests/test-sys_socket.c (main): Likewise.
27189         * tests/test-u64.c (main): Likewise.
27190         * tests/test-xfprintf-posix.c (main): Likewise.
27191         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
27192
27193         sockets: avoid compiler warning
27194         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
27195
27196         maint: detect usage(1) and other suspicious exits
27197         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
27198
27199 2009-10-29  Jim Meyering  <meyering@redhat.com>
27200
27201         timespec: long-to-int truncation could make timespec_cmp malfunction
27202         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
27203         a multiple of 2^32 nanoseconds as no difference.
27204
27205 2009-10-28  Jim Meyering  <meyering@redhat.com>
27206
27207         fprintftime: wrap macro code argument in "do {...} while(0)"
27208         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
27209         cpy macro must be a statement that can be followed by a semicolon.
27210         Now that the else clause contains a comment and is hence longer
27211         than one line, I require curly braces.  That in turn requires
27212         that we wrap this code block in the standard do...while(0).
27213
27214         fprintftime: remove stray semicolon from previous change
27215         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
27216
27217         fprintftime: avoid a warning about ignored fwrite return value
27218         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
27219         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
27220         that is unsafe.
27221         * modules/fprintftime (Depends-on): Add ignore-value.
27222
27223         exclude: avoid an unwarranted warning
27224         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
27225
27226 2009-10-27  Eric Blake  <ebb9@byu.net>
27227
27228         fseek: avoid compilation failure when fflush is replaced
27229         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
27230         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
27231         module is in use.
27232         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
27233         module is not in use; since REPLACE_FSEEK worked otherwise.
27234         (GNULIB_FTELLO): Likewise for ftell.
27235         Reported by Ian Beckwith and others.
27236
27237 2009-10-27  Bruno Haible  <bruno@clisp.org>
27238
27239         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
27240         Reported by Jim Meyering.
27241
27242 2009-10-27  Jim Meyering  <jim@meyering.net>
27243             Bruno Haible  <bruno@clisp.org>
27244
27245         Avoid warning despite dropping the return value of fwrite.
27246         * lib/unicodeio.c: Include ignore-value.h.
27247         (fwrite_success_callback): Explicitly ignore fwrite's return value.
27248         * modules/unicodeio (Depends-on): Add ignore-value.
27249
27250 2009-10-26  Eric Blake  <ebb9@byu.net>
27251
27252         areadlinkat: fix fallback path
27253         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
27254         pointer and zero.
27255
27256 2009-10-22  Pádraig Brady  <P@draigBrady.com>
27257
27258         Use a better IO block size for modern systems
27259         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
27260         * lib/md2.c: Likewise.
27261         * lib/md4.c: Likewise.
27262         * lib/md5.c: Likewise.
27263         * lib/sha1.c: Likewise.
27264         * lib/sha256.c: Likewise.
27265         * lib/sha512.c: Likewise.
27266
27267 2009-10-22  Eric Blake  <ebb9@byu.net>
27268
27269         tests: avoid several compiler warnings
27270         * tests/test-getcwd.c (main): Avoid buffer underflow.
27271         * tests/test-getdate.c (main): String literals are not safe with
27272         putenv, so use setenv.  Declare unused argument.
27273         * modules/getdate-tests (Depends-on): Add setenv.
27274         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
27275         problems with string literals in char *.
27276         * tests/test-hash.c (main): Avoid shadowing declaration.
27277         (insert_new): Treat string literals as char const *.
27278         * tests/test-getopt.h (test_getopt): Likewise.
27279         (getopt_loop): Alter types to minimize casting elsewhere.
27280         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
27281         (test_getopt_long_posix): Likewise.
27282         (do_getopt_long): Add wrapper to minimize casting.
27283         * tests/test-atexit.c (clear_temp_file): Use void.
27284         * tests/test-areadlink-with-size.c (main): Declare unused
27285         arguments.
27286         * tests/test-areadlink.c (main): Likewise.
27287         * tests/test-areadlinkat-with-size.c (main): Likewise.
27288         * tests/test-areadlinkat.c (main): Likewise.
27289         * tests/test-canonicalize-lgpl.c (main): Likewise.
27290         * tests/test-canonicalize.c (main): Likewise.
27291         * tests/test-dirent-safer.c (main): Likewise.
27292         * tests/test-dirname.c (main): Likewise.
27293         * tests/test-dup2.c (main): Likewise.
27294         * tests/test-fchdir.c (main): Likewise.
27295         * tests/test-fcntl-h.c (main): Likewise.
27296         * tests/test-fcntl-safer.c (main): Likewise.
27297         * tests/test-fdopendir.c (main): Likewise.
27298         * tests/test-fdutimensat.c (main): Likewise.
27299         * tests/test-fflush.c (main): Likewise.
27300         * tests/test-filenamecat.c (main): Likewise.
27301         * tests/test-filevercmp.c (main): Likewise.
27302         * tests/test-fopen-safer.c (main): Likewise.
27303         * tests/test-fopen.c (main): Likewise.
27304         * tests/test-fpending.c (main): Likewise.
27305         * tests/test-fpurge.c (main): Likewise.
27306         * tests/test-freading.c (main): Likewise.
27307         * tests/test-fstatat.c (main): Likewise.
27308         * tests/test-fsync.c (main): Likewise.
27309         * tests/test-futimens.c (main): Likewise.
27310         * tests/test-getndelim2.c (main): Likewise.
27311         * tests/test-gettimeofday.c (main): Likewise.
27312         * tests/test-getopt.c (main): Likewise.
27313         * tests/test-i-ring.c (main): Likewise.
27314         * tests/test-inttypes.c (main): Likewise.
27315         * tests/test-link.c (main): Likewise.
27316         * tests/test-lstat.c (main): Likewise.
27317         * tests/test-math.c (main): Likewise.
27318         * tests/test-md5.c (main): Likewise.
27319         * tests/test-memchr2.c (main): Likewise.
27320         * tests/test-memrchr.c (main): Likewise.
27321         * tests/test-mkdir.c (main): Likewise.
27322         * tests/test-mkdirat.c (main): Likewise.
27323         * tests/test-mkfifoat.c (main): Likewise.
27324         * tests/test-open.c (main): Likewise.
27325         * tests/test-openat-safer.c (main): Likewise.
27326         * tests/test-openat.c (main): Likewise.
27327         * tests/test-quotearg.c (main): Likewise.
27328         * tests/test-rawmemchr.c (main): Likewise.
27329         * tests/test-readlink.c (main): Likewise.
27330         * tests/test-remove.c (main): Likewise.
27331         * tests/test-rename.c (main): Likewise.
27332         * tests/test-renameat.c (main): Likewise.
27333         * tests/test-rmdir.c (main): Likewise.
27334         * tests/test-sha1.c (main): Likewise.
27335         * tests/test-signal.c (main): Likewise.
27336         * tests/test-sigaction.c (main): Likewise.
27337         * tests/test-stat.c (main): Likewise.
27338         * tests/test-stat-time.c (main): Likewise.
27339         * tests/test-stddef.c (main): Likewise.
27340         * tests/test-stdint.c (main): Likewise.
27341         * tests/test-stdio.c (main): Likewise.
27342         * tests/test-stdlib.c (main): Likewise.
27343         * tests/test-strchrnul.c (main): Likewise.
27344         * tests/test-strerror.c (main): Likewise.
27345         * tests/test-string.c (main): Likewise.
27346         * tests/test-strtod.c (main): Likewise.
27347         * tests/test-strverscmp.c (main): Likewise.
27348         * tests/test-symlink.c (main): Likewise.
27349         * tests/test-symlinkat.c (main): Likewise.
27350         * tests/test-sys_stat.c (main): Likewise.
27351         * tests/test-sys_time.c (main): Likewise.
27352         * tests/test-time.c (main): Likewise.
27353         * tests/test-unistd.c (main): Likewise.
27354         * tests/test-unlink.c (main): Likewise.
27355         * tests/test-unlinkat.c (main): Likewise.
27356         * tests/test-utimens.c (main): Likewise.
27357         * tests/test-utimensat.c (main): Likewise.
27358         * tests/test-version-etc.c (main): Likewise.
27359         * tests/test-wchar.c (main): Likewise.
27360         * tests/test-wctype.c (main): Likewise.
27361         * tests/test-xprintf-posix.c (main): Likewise.
27362         * tests/test-posixtm.c (main): Likewise.
27363         (STREQ): Delete unused macro.
27364         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
27365         shadowed variables.
27366         * tests/test-memchr.c (main): Likewise.
27367
27368 2009-10-21  Eric Blake  <ebb9@byu.net>
27369
27370         areadlinkat: avoid failure on older glibc
27371         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
27372         rather than mis-comparing 0 against FUNC_RESULT of char*.
27373
27374 2009-10-21  Bruno Haible  <bruno@clisp.org>
27375
27376         * modules/stpncpy (License): Relicense under LGPLv2+.
27377         Reported by David Lutterkort <lutter@redhat.com>.
27378
27379 2009-10-20  Eric Blake  <ebb9@byu.net>
27380
27381         utimensat: work around Solaris 9 bug
27382         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
27383         has trailing slash bugs.
27384         * tests/test-lutimens.h (test_lutimens): Enhance test.
27385         * tests/test-utimens.h (test_utimens): Likewise.
27386         * doc/posix-functions/utime.texi (utime): Enhance documentation.
27387         * doc/posix-functions/utimes.texi (utimes): Likewise.
27388         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27389         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
27390         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
27391         * doc/posix-functions/futimens.texi (futimens): Likewise.
27392
27393         fdutimensat: new module
27394         * modules/fdutimensat: New file.
27395         * lib/fdutimensat.c (fdutimensat): Likewise.
27396         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
27397         * MODULES.html.sh (File system functions): Mention module.
27398         * modules/fdutimensat-tests: New test.
27399         * tests/test-fdutimensat.c: Likewise.
27400
27401         doc: regenerate INSTALL
27402         * doc/INSTALL: Reflect recent autoconf update.
27403         * doc/INSTALL.ISO: Likewise.
27404         * doc/INSTALL.UTF-8: Likewise.
27405
27406 2009-10-20  Pádraig Brady  <P@draigBrady.com>
27407
27408         acl: warn if ACL support is not detected
27409         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
27410
27411 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
27412
27413         * lib/nproc.h: Add extern "C" block for C++.
27414
27415 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
27416             Bruno Haible  <bruno@clisp.org>
27417
27418         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
27419         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
27420         * doc/posix-functions/isalpha.texi: Likewise.
27421         * doc/posix-functions/isblank.texi: Likewise.
27422         * doc/posix-functions/iscntrl.texi: Likewise.
27423         * doc/posix-functions/isdigit.texi: Likewise.
27424         * doc/posix-functions/isgraph.texi: Likewise.
27425         * doc/posix-functions/islower.texi: Likewise.
27426         * doc/posix-functions/isprint.texi: Likewise.
27427         * doc/posix-functions/ispunct.texi: Likewise.
27428         * doc/posix-functions/isspace.texi: Likewise.
27429         * doc/posix-functions/isupper.texi: Likewise.
27430         * doc/posix-functions/isxdigit.texi: Likewise.
27431
27432 2009-10-18  Bruno Haible  <bruno@clisp.org>
27433
27434         Tests for module 'isblank'.
27435         * modules/isblank-tests: New file.
27436         * tests/test-isblank.c: New file.
27437
27438         New module 'isblank'.
27439         * lib/isblank.c: New file.
27440         * m4/isblank.m4: New file.
27441         * modules/isblank: New file.
27442         * doc/posix-functions/isblank.texi: Mention the new module.
27443
27444 2009-10-18  Bruno Haible  <bruno@clisp.org>
27445
27446         New module 'ctype'.
27447         * lib/ctype.in.h: New file.
27448         * m4/ctype.m4: New file.
27449         * modules/ctype: New file.
27450         * doc/posix-headers/ctype.texi: Mention the new module.
27451
27452 2009-10-18  Jim Meyering  <meyering@redhat.com>
27453
27454         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
27455         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
27456         right after its initialization, rather than farther down.
27457         Keeping these in close proximity makes it easier to ensure
27458         that each such variable is initialized.  E.g.,
27459
27460             LIB_CLOCK_GETTIME=
27461             AC_SUBST([LIB_CLOCK_GETTIME])
27462
27463         This change also increments these serial numbers.
27464         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
27465         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
27466         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27467
27468 2009-10-18  Bruno Haible  <bruno@clisp.org>
27469
27470         Don't let environment variables perturb build.
27471         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
27472         (gl_PREREQ_GETHRXTIME): ... not here.
27473
27474 2009-10-18  Bruno Haible  <bruno@clisp.org>
27475
27476         Avoid symlink attack in localcharset module.
27477         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
27478         (O_NOFOLLOW): Define fallback.
27479         (get_charset_aliases): Don't open the file if it is a symbolic link.
27480         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
27481         gl_FCNTL_H.
27482         (gl_FCNTL_H): Require it.
27483         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
27484         * modules/localcharset (Files): Add m4/fcntl_h.m4.
27485         Reported by Fergal Glynn <fglynn@veracode.com>.
27486
27487 2009-10-18  Bruno Haible  <bruno@clisp.org>
27488
27489         Implement nproc for mingw.
27490         * lib/nproc.c: Include <windows.h>
27491         (num_processors): On native Windows platforms, try GetSystemInfo.
27492
27493 2009-10-18  Bruno Haible  <bruno@clisp.org>
27494
27495         Implement nproc for IRIX.
27496         * lib/nproc.c: Include <sys/sysmp.h>.
27497         (num_processors): On IRIX systems, try sysmp.
27498         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
27499
27500 2009-10-18  Bruno Haible  <bruno@clisp.org>
27501
27502         Implement nproc for HP-UX.
27503         * lib/nproc.c: Include <sys/pstat.h>
27504         (num_processors): On HP-UX systems, try pstat_getdynamic.
27505         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
27506         pstat_getdynamic.
27507
27508 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
27509             Bruno Haible  <bruno@clisp.org>
27510
27511         Implement nproc for NetBSD, OpenBSD.
27512         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
27513         (ARRAY_SIZE): New macro.
27514         (num_processors): On BSD systems, try sysctl of HW_NCPU.
27515         * m4/nproc.m4: New file.
27516         * modules/nproc (Files): Add m4/nproc.m4.
27517         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
27518         (Makefile.am): Instead, augment lib_SOURCES.
27519
27520 2009-10-18  Bruno Haible  <bruno@clisp.org>
27521
27522         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
27523         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
27524         sys/param.h.
27525
27526 2009-10-16  Eric Blake  <ebb9@byu.net>
27527
27528         utimensat: new module
27529         * modules/utimensat: New file.
27530         * lib/utimensat.c (utimensat): Likewise.
27531         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27532         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
27533         so we can work around Linux bugs.
27534         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27535         * modules/sys_stat (Makefile.am): Substitute them.
27536         * lib/sys_stat.in.h (utimensat): Declare it.
27537         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27538         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27539         * modules/utimensat-tests: New test.
27540         * tests/test-utimensat.c: Likewise.
27541
27542         utimens: let lutimens work on non-symlinks
27543         * lib/utimens.c (lutimens): Fall back to utimens rather than
27544         failing with ENOSYS, when file is not a symlink.
27545         (utimens): Reduce redirection.
27546         * tests/test-lutimens.h (test_lutimens): Update test to cover
27547         non-symlinks.
27548         * tests/test-utimens.h (test_utimens): Update test to cover
27549         symlinks.
27550         * tests/test-utimens.c (main): Update caller.
27551
27552         utimens: cache whether utimensat syscall works
27553         * lib/utimens.c (utimensat_works_really): New cache variable.
27554         (fdutimens, lutimens): Use it to avoid failing syscall.
27555
27556         test-stat-time, test-utimens: improve portability
27557         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
27558         ext4 on alpha, and for cygwin.
27559         * tests/test-utimens-common.h: New file.
27560         (nap): Factor delays into single function.
27561         * tests/test-lutimens.h (test_lutimens): Use new header.
27562         * tests/test-futimens.h (test_futimens): Likewise.
27563         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
27564         timestamps to occur from same machine, as was done previously for
27565         test_utimens.
27566         * modules/utimens-tests (Files): Ship new file.
27567         * modules/futimens-tests (Files): Likewise.
27568         Reported in part by Jim Meyering.
27569
27570         sys_stat: sort replacement declarations
27571         * lib/sys_stat.in.h: Sort declarations.
27572         * lib/futimens.c (futimens): Fix typo.
27573
27574 2009-10-15  Jim Meyering  <meyering@redhat.com>
27575
27576         don't let environment settings perturb build
27577         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
27578         could cause a configure-time and/or build-time malfunction.
27579         Typically, a configure-time function-in-library test is performed
27580         via code like this:
27581
27582           LIB_VAR=
27583           AC_SUBST([LIB_VAR])
27584           prefix_saved_LIBS=$LIBS
27585             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
27586                        [test "$ac_cv_search_FUNC" = "none required" ||
27587                         LIB_VAR=$ac_cv_search_FUNC])
27588           LIBS=$prefix_saved_LIBS
27589
27590         However, in each of the files affected by this change, the LIB_VAR=
27591         initialization was omitted.  Thus, when set in the environment, its
27592         value would propagate into generated Makefiles when FUNC is not found
27593         in LIB_NAME.
27594         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
27595         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
27596         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27597
27598 2009-10-14  Eric Blake  <ebb9@byu.net>
27599
27600         fchdir: avoid infinite recursion in mingw
27601         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
27602         recursing.
27603
27604         test-stat-time: port to mingw
27605         * tests/test-stat-time.c (force_unlink): Return a value.
27606         (test_ctime) [W32]: Fix compilation error.
27607         (nap): Don't call usleep with too large an argument.  Use
27608         force_unlink.
27609         * doc/pastposix-functions/usleep.texi (usleep): Document the
27610         portability issue.
27611
27612 2009-10-13  Jim Meyering  <meyering@redhat.com>
27613
27614         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
27615         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
27616         * modules/pipe-filter-ii: Likewise.
27617         * modules/sys_socket-tests: Likewise.
27618         * modules/tsearch-tests: Likewise.
27619         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
27620         (check): Depend on it.
27621
27622 2009-10-12  Eric Blake  <ebb9@byu.net>
27623
27624         utimens-tests: port to NFS file systems
27625         * tests/test-utimens.h (test_utimens): Refactor utimecmp
27626         comparisons to avoid spurious failures from timestamp drift
27627         between NFS machines.
27628
27629 2009-10-12  Eric Blake  <ebb9@byu.net>
27630
27631         stat-time-tests: minor cleanups
27632         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
27633         * tests/test-stat-time.c (nap): Separate assignment from call.
27634         Suggested by Paolo Bonzini and Bruno Haible.
27635
27636         sys_stat: guarantee struct timespec
27637         * lib/sys_stat.in.h (includes): Always include <time.h>
27638         * modules/sys_stat (Depends-on): Add time.
27639         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
27640         mode_t permission values.
27641         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
27642         get at subsecond timestamps.
27643
27644 2009-10-10  Eric Blake  <ebb9@byu.net>
27645
27646         futimens: new module
27647         * modules/futimens: New file.
27648         * lib/futimens.c (futimens): Likewise.
27649         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
27650         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
27651         we can work around Linux bugs.
27652         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27653         * modules/sys_stat (Makefile.am): Substitute them.
27654         * lib/sys_stat.in.h (futimens): Declare it.
27655         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27656         * doc/posix-functions/futimens.texi (futimens): Likewise.
27657         * modules/futimens-tests: New test.
27658         * tests/test-futimens.c: Likewise.
27659
27660         utimens: introduce fdutimens
27661         * lib/utimens.h (fdutimens): New prototype.
27662         * lib/utimens.c (gl_futimens): Move guts...
27663         (fdutimens): ...to new interface.
27664         * tests/test-utimens.c (do_fdutimens): Use it.
27665
27666         utimens: add UTIME_NOW and UTIME_OMIT support
27667         * lib/utimens.c (validate_timespec, update_timespec): New helper
27668         functions.
27669         (gl_futimens, lutimens): Use them.
27670         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
27671         stdbool, sys_stat.
27672         (Link): Mention resulting library dependency.
27673         * modules/utimecmp (Link): Likewise.
27674         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
27675         (Makefile.am): Pick up library dependency.
27676         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
27677         definition.
27678         * tests/test-sys_stat.c: Test the definitions.
27679         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
27680         * NEWS: Document library dependency.
27681
27682         utimecmp: support symlink timestamps
27683         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
27684         hashing when possible.  Use pathconf when available.
27685         (SYSCALL_RESOLUTION): Recognize tighter resolution.
27686         * modules/utimecmp (Depends-on): Add lstat.
27687
27688         utimens: add lutimens interface
27689         * lib/utimens.c (lutimens): New function.
27690         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
27691         * lib/utimens.h (lutimens): Declare new interface.
27692         * tests/test-utimens.c (main): Enhance test.
27693         * tests/test-lutimens.h (test_lutimens): New file.
27694         * modules/utimens-tests (Files): Distribute it.
27695         (Depends-on): Add symlink.
27696         (configure.ac): Check for usleep.
27697
27698         utimens: validate futimens usage
27699         * lib/utimens.c (gl_futimens): Require valid fd up front, using
27700         fewer syscalls on failure later on.  Avoid compiler warning on
27701         mingw.
27702         * modules/utimens (Depends-on): Add dup2.
27703
27704         utimens: add test
27705         * modules/utimens-tests: New test.
27706         * tests/test-utimens.h: New file.
27707         * tests/test-futimens.h: Likewise.
27708         * tests/test-utimens.c: Likewise.
27709
27710         doc: mention timestamp portability issues
27711         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
27712         instead.
27713         * doc/posix-functions/utime.texi (utime): Likewise.
27714         * doc/posix-functions/utimes.texi (utimes): Likewise.
27715         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
27716         instead.
27717         * doc/posix-functions/futimens.texi (futimens): Mention utimens
27718         module.
27719         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27720         Mention weakness with symlink timestamps.
27721         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
27722         to utimensat/futimens instead.
27723         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
27724
27725         test-dup2: enhance test
27726         * tests/test-dup2.c (main): Also check AT_FDCWD.
27727
27728         test-stat-time: avoid more spurious failures
27729         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
27730         xfs; and avoid race if the two timestamps cross quantization edge.
27731
27732         relocatable: prefer 'file system' over 'filesystem'
27733         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
27734         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
27735         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
27736         * doc/relocatable.texi (Enabling Relocatability): Likewise.
27737         * lib/relocatable.c (compute_curr_prefix): Likewise.
27738
27739 2009-10-10  Jim Meyering  <meyering@redhat.com>
27740
27741         stat-time-tests: check for the usleep function
27742         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
27743
27744 2009-10-10  Bruno Haible  <bruno@clisp.org>
27745
27746         * modules/xnanosleep: Put the Link section after the Include section.
27747
27748 2009-10-09  Eric Blake  <ebb9@byu.net>
27749
27750         dup2: work around FreeBSD 6.1 bug
27751         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
27752         * doc/posix-functions/dup2.texi (dup2): Document it.
27753         Reported by Nelson H. F. Beebe and Jim Meyering.
27754
27755         test-stat-time: port to buggy NFS clients
27756         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
27757         (test_ctime): Also skip test if mtime and ctime are skewed.
27758
27759         maint: prefer 'file system' over 'filesystem'
27760         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27761         * doc/posix-functions/lstat.texi (lstat): Likewise.
27762         * lib/file-has-acl.c (file_has_acl): Likewise.
27763         * lib/fwriteerror.c [TEST]: Likewise.
27764         * tests/test-areadlink.h (test_areadlink): Likewise.
27765         * tests/test-areadlinkat-with-size.c (main): Likewise.
27766         * tests/test-areadlinkat.c (main): Likewise.
27767         * tests/test-canonicalize-lgpl.c (main): Likewise.
27768         * tests/test-canonicalize.c (main): Likewise.
27769         * tests/test-fstatat.c (main): Likewise.
27770         * tests/test-linkat.c (main): Likewise.
27771         * tests/test-lstat.h (test_lstat_func): Likewise.
27772         * tests/test-mkdir.h (test_mkdir): Likewise.
27773         * tests/test-readlink.h (test_readlink): Likewise.
27774         * tests/test-remove.c (main): Likewise.
27775         * tests/test-rename.h (test_rename): Likewise.
27776         * tests/test-renameat.c (main): Likewise.
27777         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27778         * tests/test-symlink.h (test_symlink): Likewise.
27779         * tests/test-symlinkat.c (main): Likewise.
27780         * tests/test-unlink.h (test_unlink_func): Likewise.
27781         * tests/test-unlinkat.c (main): Likewise.
27782
27783         maint: make realtime library usage explicit
27784         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
27785         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
27786         * modules/settime (Link): Likewise.
27787         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
27788
27789         test-stat-time: speed up execution
27790         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
27791         warning on mingw.
27792         (nap): New helper function.
27793         (prepare_test): Use it to reduce sleep time.
27794         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
27795         execution.
27796         * modules/stat-time-tests (configure.ac): Check for usleep.
27797
27798 2009-10-09  Jim Meyering  <meyering@redhat.com>
27799
27800         selinux-h: always use getfilecon wrappers
27801         * lib/getfilecon.c: New file.
27802         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
27803         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
27804         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
27805         (fgetfilecon): Provide a stub.
27806         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
27807         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
27808         file unconditionally.
27809         When <selinux/selinux.h> is found, arrange to use wrappers.
27810         * modules/selinux-h (Files): Add getfilecon.c.
27811         (Makefile.am): Substitute include-next-related bits
27812         into the now-always-generated selinux/selinux.h file.
27813         * doc/glibc-functions/lgetfilecon.texi: New file.
27814         * doc/glibc-functions/fgetfilecon.texi: New file.
27815         * doc/glibc-functions/getfilecon.texi: New file.
27816         * doc/glibc-functions/getfilecon-desc.texi: New file.
27817         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
27818         which to pull in the new files.
27819         * MODULES.html.sh (Misc): Add selinux-h.
27820
27821 2009-10-08  Jim Meyering  <meyering@redhat.com>
27822
27823         unistd: fix comment typo
27824         * lib/unistd.in.h (euidaccess): Fix a comment typo.
27825
27826 2009-10-08  Eric Blake  <ebb9@byu.net>
27827
27828         areadlink: use SIZE_MAX consistently
27829         * modules/areadlink (Depends-on): Add stdint.
27830         * modules/areadlink-with-size (Depends-on): Likewise.
27831         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
27832         gives NULL; drop sys/types, since unistd gives size_t; and add
27833         stdint for SIZE_MAX.
27834         (SIZE_MAX): Rely on headers.
27835         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
27836         and add stdint.
27837         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
27838         (SIZE_MAX): Likewise.
27839         (INITIAL_BUF_SIZE): Turn into enum.
27840         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
27841
27842 2009-10-08  Jim Meyering  <meyering@redhat.com>
27843
27844         areadlinkat: avoid compilation failure
27845         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
27846         Fix typo in comment.
27847
27848 2009-10-07  Eric Blake  <ebb9@byu.net>
27849
27850         areadlinkat-with-size: new module
27851         * modules/areadlinkat-with-size: New module.
27852         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
27853         * lib/areadlink.h (areadlinkat): Declare it.
27854         * MODULES.html.sh (File system functions): Mention it.
27855         * modules/areadlinkat-with-size-tests: New test.
27856         * tests/test-areadlinkat-with-size.c: New file.
27857
27858         xreadlinkat: new module
27859         * modules/xreadlinkat: New module.
27860         * lib/xreadlinkat.c (xreadlinkat): New file.
27861         * lib/xreadlink.h (xreadlinkat): Declare it.
27862         * MODULES.html.sh (File system functions): Mention it.
27863
27864         areadlinkat: new module
27865         * lib/at-func.c (FUNC_FAIL): New define.
27866         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
27867         * modules/areadlinkat: New module.
27868         * lib/linkat.c (areadlinkat): Move...
27869         * lib/areadlinkat.c (areadlinkat): ...to new file.
27870         * lib/areadlink.h (areadlinkat): Declare it.
27871         * modules/linkat (Depends-on): Add areadlinkat.
27872         * MODULES.html.sh (File system functions): Mention it.
27873         * modules/areadlinkat-tests: New test.
27874         * tests/test-areadlinkat.c: New file.
27875
27876         areadlink, areadlink-with-size: add tests
27877         * modules/areadlink-tests: New test.
27878         * modules/areadlink-with-size-tests: Likewise.
27879         * tests/test-areadlink.h: New file.
27880         * tests/test-areadlink.c: Likewise.
27881         * tests/test-areadlink-with-size.c: Likewise.
27882
27883         maint: minor cleanups
27884         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
27885         _UNUSED_PARAMETER_ instead.
27886         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
27887         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
27888         * modules/linkat-tests (Files): Distribute test-link.h.
27889
27890         openat, utimens: whitespace cleanup
27891         * lib/openat.c: Prefer space throughout, rather than mix of 8
27892         spaces vs. tabs.
27893         * lib/at-func.c: Likewise.
27894         * lib/utimens.c: Likewise.
27895
27896         openat: avoid using wrong fd
27897         * lib/openat.c (openat_permissive): Reject user's fd if saving the
27898         working directory chooses same fd.
27899         * lib/at-func.c (AT_FUNC_NAME): Likewise.
27900
27901         mkdir, mkdirat: fix cygwin 1.5.x bug
27902         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
27903         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
27904         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
27905         bug.
27906         (gl_PREREQ_MKDIR): Delete unused macro.
27907         * modules/mkdir (Files): Track file rename.
27908         (configure.ac): Update macro name.
27909         * modules/openat (Depends-on): Add mkdir.
27910         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
27911
27912         mkdir, mkdirat: add tests
27913         * modules/mkdir-tests: New test.
27914         * tests/test-mkdir.h: New file.
27915         * tests/test-mkdir.c: Likewise.
27916         * tests/test-mkdirat.c: Likewise.
27917         * modules/openat-tests (Files): Add new files.
27918         (Makefile.am): Run new test.
27919
27920 2009-10-06  Eric Blake  <ebb9@byu.net>
27921
27922         doc: tweak *at function documentation
27923         * doc/posix-functions/faccessat.texi (faccessat): Mention
27924         known issue with replacement.
27925         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
27926         * doc/posix-functions/linkat.texi (linkat): Likewise.
27927         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
27928         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
27929         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27930         * doc/posix-functions/renameat.texi (renameat): Likewise.
27931         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27932
27933         openat: fix GNU/Hurd bug in unlinkat
27934         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
27935         broken.
27936         * doc/posix-functions/unlink.texi (unlink): Document this.
27937         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
27938
27939         fdopendir: fix GNU/Hurd bug
27940         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
27941         allowing non-directory fds.
27942         * lib/fdopendir.c (rpl_fdopendir): Work around it.
27943         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
27944         * modules/dirent (Makefile.am): Substitute it.
27945         * lib/dirent.in.h (fdopendir): Declare replacement.
27946         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
27947         * tests/test-fdopendir.c (main): Test something other than
27948         /dev/null, since on Hurd that behaves like a directory.
27949
27950         test-symlink: port to GNU/Hurd
27951         * tests/test-symlink.h (test_symlink): Relax expected errno.
27952
27953         doc: tweak more cygwin information
27954         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
27955         now compatible with glibc.
27956         * doc/posix-functions/getopt.texi (getopt): Likewise.
27957
27958         getopt-gnu: add another test
27959         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
27960         guarantee behavior relied on by m4.
27961         * tests/test-getopt.c (main): Use it.
27962         * modules/getopt-posix-tests (Depends-on): Add setenv.
27963         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
27964
27965         getopt: fix compilation on darwin
27966         * lib/getopt.in.h (includes): Leave breadcrumbs during system
27967         include.
27968         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
27969         Reported by Ludovic Courtès.
27970
27971 2009-10-06  Bruno Haible  <bruno@clisp.org>
27972
27973         * modules/size_max (Description): Discourage its use.
27974         Reported by Simon Josefsson.
27975
27976 2009-10-06  Jim Meyering  <meyering@redhat.com>
27977
27978         linkat: avoid compilation failure
27979         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
27980
27981 2009-10-05  Eric Blake  <ebb9@byu.net>
27982
27983         linkat: support Linux 2.6.17
27984         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
27985         linkat on Linux, but allow cache variable override.
27986         * lib/linkat.c (rpl_linkat): Define override.
27987         * modules/linkat (Depends-on): Add symlinkat.
27988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
27989         * modules/unistd (Makefile.am): Substitute it.
27990         * lib/unistd.in.h (linkat): Declare replacement.
27991         Reported by Pádraig Brady.
27992
27993         quotearg: port test to systems with C.UTF-8 locale
27994         * tests/test-quotearg.c (struct result_strings): Add another
27995         member, differentiating between C.ASCII and C.UTF-8 handling.
27996         (compare_strings): Add parameter.
27997         (main): Adjust all callers.
27998
27999         getopt: avoid clash with FreeBSD _getopt_internal
28000         * lib/getopt.in.h (_getopt_internal): Override the name.
28001         * lib/getopt_int.h (includes): Pick up any overrides.
28002         Reported by Reuben Thomas.
28003
28004         hash: allow C89 compilation
28005         * lib/hash.c (check_tuning): Move declaration before statement.
28006         Reported by Reuben Thomas.
28007
28008 2009-10-05  Karl Berry  <karl@gnu.org>
28009
28010         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
28011
28012 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
28013             Bruno Haible  <bruno@clisp.org>
28014
28015         * lib/uname.c (uname): Use a table-driven algorithm to compute
28016         Windows NT versions.
28017
28018 2009-10-04  Bruno Haible  <bruno@clisp.org>
28019
28020         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
28021         program_invocation_short_name.
28022         * modules/progname (configure.ac): Test for presence of
28023         program_invocation_short_name.
28024         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
28025
28026 2009-10-04  Bruno Haible  <bruno@clisp.org>
28027
28028         * lib/progname.c (set_program_name): Fix comment.
28029         Reported by Jim Meyering.
28030
28031 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28032             Bruno Haible  <bruno@clisp.org>
28033
28034         * lib/uname.c: Include <string.h>.
28035         (uname): Do only one call to GetVersionEx in the common case.
28036
28037 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
28038             Bruno Haible  <bruno@clisp.org>
28039
28040         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
28041         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
28042         (uname): Add support for Windows CE and various non-x86 CPU types.
28043
28044 2009-10-03  Bruno Haible  <bruno@clisp.org>
28045
28046         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
28047         invocation to tests/configure.ac.
28048         Reported by Ian Beckwith <ianb@erislabs.net>.
28049
28050 2009-10-02  Eric Blake  <ebb9@byu.net>
28051
28052         fchdir: avoid compiler warning
28053         * lib/fchdir.c (canonicalize_file_name)
28054         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
28055
28056         test-open: support mingw errno values
28057         * tests/test-open.h (test_open): Relax test.
28058         * tests/test-fopen.h (test_fopen): Likewise.
28059         * tests/test-openat-safer.c (main): Likewise.
28060
28061         open: fix opening directory on mingw
28062         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
28063
28064         test-open: on GNU/Hurd, /dev/null is a directory
28065         * tests/test-fopen.h (main): Rename...
28066         (test_fopen): ...to this.  Use a guaranteed non-directory when
28067         confirming open behavior on trailing slash.
28068         * tests/test-openat-safer.c (main): Likewise.
28069         * tests/test-open.h (main): Likewise....
28070         (test_open): ...to this.
28071         * tests/test-fopen.c (main): Adjust caller.
28072         * tests/test-fopen-safer.c (main): Likewise.
28073         * tests/test-open.c (main): Likewise.
28074         * tests/test-fcntl-safer.c (main): Likewise.
28075         Reported by Samuel Thibault.
28076
28077         rename, fchdir: don't ignore chdir failure
28078         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
28079         * lib/rename.c (rpl_rename) [W32]: Likewise.
28080         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
28081         an empty destination directory if source cannot be renamed,
28082         although there is still possibility for failure.
28083         * doc/posix-functions/rename.texi (rename): Document the race.
28084         Reported by Jim Meyering.
28085
28086         maint: cleanup whitespace in recent commits
28087         * lib/rename.c (rpl_rename): Remove tabs.
28088         * tests/test-link.h (test_link): Likewise.
28089         * lib/fchdir.c (get_name): Likewise.
28090         Reported by Jim Meyering.
28091
28092 2009-10-02  Ben Pfaff  <blp@gnu.org>
28093
28094         relocatable-prog-wrapper: Add missing dependency on
28095         double-slash-root.
28096         * modules/relocatable-prog-wrapper: Add dependency.
28097         Reported by Ian Beckwith <ianb@erislabs.net>.
28098
28099 2009-10-02  Eric Blake  <ebb9@byu.net>
28100
28101         renameat: fix Solaris bugs
28102         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
28103         needed fixing.
28104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
28105         * modules/stdio (Makefile.am): Substitute it.
28106         * lib/stdio.in.h (renameat): Declare replacement.
28107         * lib/renameat.c (rpl_renameat): Implement fix.
28108
28109         renameat: new module
28110         * modules/renameat: New file.
28111         * lib/renameat.c (renameat): Likewise.
28112         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
28113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
28114         * modules/stdio (Makefile.am): Substitute them.
28115         * lib/stdio.in.h (renameat): Declare it.
28116         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28117         * doc/posix-functions/renameat.texi (renameat): Likewise.
28118         * modules/renameat-tests: New test.
28119         * tests/test-renameat.c: Likewise.
28120
28121         rename: fix mingw bugs
28122         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
28123         directory overwrite bugs.
28124
28125         rename: fix another cygwin 1.5 bug
28126         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
28127         checks.
28128         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
28129         unnecessary cygwin workarounds.  Also work around bug with moving
28130         full directory onto an empty one.
28131         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
28132
28133         rename-dest-slash: merge into rename module
28134         * modules/rename-dest-slash (Status): Mark obsolete.
28135         (Depends-on): Add rename.
28136         (Files): Let rename do it all.
28137         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
28138         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
28139         * m4/rename-dest-slash.m4: ...so this file can be deleted.
28140         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
28141         * lib/rename.c (rpl_rename): Update comments.
28142
28143         rename: fix cygwin 1.5.x bugs
28144         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
28145         * lib/rename.c (rpl_rename): Work around them.
28146         * modules/rename (Depends-on): Add same-inode.
28147
28148         rename: fix Solaris 10 bug
28149         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
28150         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
28151         was the only bug.
28152
28153         rename: fix Solaris 9 bug
28154         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
28155         on non-directory.  Avoid calling exit.
28156         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
28157         strdup.
28158         * modules/rename-tests (Depends-on): Drop lstat.
28159         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
28160         (gl_PREREQ_RENAME): Delete unused macro.
28161
28162         rename-dest-slash: fix NetBSD bug
28163         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
28164         links.
28165         * modules/rename-dest-slash (Depends-on): Add same-inode.
28166
28167         rename-tests: new test, exposes several platform bugs
28168         * modules/rename-tests: New file.
28169         * tests/test-rename.h: Likewise.
28170         * tests/test-rename.c: Likewise.
28171         * doc/posix-functions/rename.texi (rename): Improve documentation,
28172         including bugs that will eventually be fixed in gnulib.
28173
28174 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
28175
28176         * lib/uname.c: Include <stdlib.h>
28177         (uname): Assume version info is available.
28178
28179 2009-10-02  Jim Meyering  <meyering@redhat.com>
28180
28181         gnu-web-doc-update: correct --help output
28182         * build-aux/gnu-web-doc-update: Make --help output relevant.
28183
28184         gnu-web-doc-update: add standard options
28185         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
28186
28187         gnu-web-doc-update: New module.
28188         Use this script to automatically update the on-line web documentation
28189         for your GNU project at http://www.gnu.org/software/$pkg/manual/
28190         * modules/gnu-web-doc-update: New file, from coreutils.
28191         * build-aux/gnu-web-doc-update: New script.
28192
28193 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
28194
28195         link: LoadLibrary is not needed.
28196         * lib/link.c: Use GetModuleHandle.
28197
28198 2009-10-01  Eric Blake  <ebb9@byu.net>
28199
28200         getopt: bump serial number
28201         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
28202         change.
28203
28204         tests: tighten link, rmdir, and remove tests
28205         * tests/test-link.h (includes): No need to use <config.h> here.
28206         Clean up if directory hard link was created, otherwise test for
28207         trailing '.'.
28208         * tests/test-linkat.c (main): Simplify.
28209         * tests/test-remove.c (main): Enhance test for trailing '.'.
28210         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28211
28212 2009-10-01  Jim Meyering  <meyering@redhat.com>
28213
28214         maint.mk: requiring "make major" was annoying, for a "minor" release.
28215         What is intended is "stable", to contrast with alpha and beta,
28216         so require "make stable", not "make major".
28217         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
28218         (get_tool_versions): Likewise.
28219         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
28220
28221 2009-09-30  Ben Pfaff  <blp@gnu.org>
28222
28223         Fix broken build of replacement for Windows tmpfile().
28224         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
28225         flags argument added along with the 'mkostemp' module.
28226
28227 2009-09-28  Bruno Haible  <bruno@clisp.org>
28228
28229         Avoid identifier clash with POSIX function 'remove' defined as a macro.
28230         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
28231         to 'remove_elt'.
28232         (gl_list_remove): Update.
28233         * lib/gl_list.c (gl_list_remove): Update.
28234         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
28235         to 'remove_elt'.
28236         (gl_oset_remove): Update.
28237         * lib/gl_list.c (gl_oset_remove): Update.
28238         Reported by Eric Blake.
28239
28240 2009-09-28  Eric Blake  <ebb9@byu.net>
28241
28242         doc: mention yet more cygwin 1.7 status
28243         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
28244         cygwin.
28245         * doc/glibc-functions/execvpe.texi (execvpe): New file.
28246         * doc/gnulib.texi (Glibc unistd.h): Mention it.
28247
28248         argp: fix test failure
28249         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
28250         that are not upper-case.  Pass correct range to tolower.
28251
28252 2009-09-27  Jim Meyering  <meyering@redhat.com>
28253
28254         test-yesno: work around sparc-dash here-document infelicity
28255         Without this change, the literal \177 byte in a here document
28256         would make dash 0.5.5.1-3 access uninitialized memory.
28257         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
28258         Instead, use a marker, "@", and filter through tr to create the desired
28259         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
28260
28261 2009-09-27  Bruno Haible  <bruno@clisp.org>
28262
28263         Disable untested support for new flavours of ACLs on AIX.
28264         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
28265         progress.
28266         * lib/set-mode-acl.c (qset_acl): Likewise.
28267
28268 2008-12-07  Bruno Haible  <bruno@clisp.org>
28269
28270         Add support for new flavours of ACLs on AIX. (Untested.)
28271         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
28272         (file_has_acl): Add support for newer AIX.
28273         * lib/set-mode-acl.c (qset_acl): Likewise.
28274         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
28275         Rainer Tammer <tammer@tammer.net>.
28276
28277 2009-09-26  Eric Blake  <ebb9@byu.net>
28278
28279         argp: fix compilation of getopt
28280         * lib/getopt.in.h (includes): Use different guard than glibc.
28281         Reported by Sergey Poznyakoff.
28282
28283         doc: mention more cygwin 1.7 status
28284         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
28285         bug.
28286         * doc/posix-functions/execl.texi (execl): Likewise.
28287         * doc/posix-functions/execle.texi (execle): Likewise.
28288         * doc/posix-functions/execlp.texi (execlp): Likewise.
28289         * doc/posix-functions/execv.texi (execv): Likewise.
28290         * doc/posix-functions/execve.texi (execve): Likewise.
28291         * doc/posix-functions/execvp.texi (execvp): Likewise.
28292         * doc/glibc-functions/canonicalize_file_name.texi
28293         (canonicalize_file_name): Cygwin 1.7 now provides this.
28294         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
28295         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
28296         on AT_SYMLINK_NOFOLLOW.
28297
28298 2009-09-24  Eric Blake  <ebb9@byu.net>
28299
28300         test-linkat: make test more robust
28301         * tests/test-linkat.c (main): Avoid collision with EEXIST.
28302
28303         getopt: fix inclusion guards for cygwin
28304         * modules/getopt-posix (Depends-on): Add include-next.
28305         (Makefile.am): Substitute more items in replacement header.
28306         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
28307         <getopt.h>.
28308         * lib/getopt.in.h (includes): Use split inclusion guard, and
28309         prefer <getopt.h> over include <unistd.h> when one is present.
28310         (option): Also override name of 'struct option'.
28311
28312         same-inode: revert prior change; it is not yet ready
28313         * NEWS: Undo mention of this change.
28314         * lib/same-inode.h (same-inode.h): Undo tri-state change.
28315         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
28316         * lib/cycle-check.c (cycle_check): Likewise.
28317         * lib/same.c (same_name): Likewise.
28318         * lib/at-func2.c (at_func2): Likewise.
28319
28320 2009-09-23  Eric Blake  <ebb9@byu.net>
28321
28322         linkat: new module
28323         * modules/linkat: New file.
28324         * lib/at-func2.c (at_func2): Likewise.
28325         * lib/linkat.c (linkat): Likewise.
28326         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
28327         * lib/openat-priv.h (at_func2): Add declaration.
28328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28329         * modules/unistd (Makefile.am): Substitute them.
28330         * lib/unistd.in.h (linkat): Declare it.
28331         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28332         * doc/posix-functions/linkat.texi (linkat): Likewise.
28333         * doc/posix-functions/link.texi (link): Tweak wording.
28334         * tests/test-link.c (main): Move guts...
28335         * tests/test-link.h (test_link): ...into new file.
28336         * modules/linkat-tests: New test.
28337         * tests/test-linkat.c: Likewise.
28338         * modules/link-tests (Files): Ship new file.
28339         (Depends-on): Add stdbool.
28340
28341         dirname: add library-safe mdir_name
28342         * lib/dirname.h (mdir_name): New prototype.
28343         * lib/dirname.c (dir_name): Move guts...
28344         (mdir_name): ...to new function that avoids xalloc_die.
28345
28346         fchdir: another mingw fix
28347         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
28348         * lib/fchdir.c (get_name): New helper method; skips canonicalize
28349         on mingw (where it has not yet been ported), and make it optional
28350         elsewhere.
28351         (_gl_register_fd): Use it.
28352
28353         same-inode: make SAME_INODE tri-state, to port to mingw
28354         * NEWS: Mention this change.
28355         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
28356         st_ino always being 0.
28357         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
28358         * lib/cycle-check.c (cycle_check): Likewise.
28359         * lib/same.c (same_name): Likewise.
28360
28361         lstat: avoid mingw compilation error
28362         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
28363         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
28364         lstat ourselves.
28365         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
28366         was adequate.
28367         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
28368         the checks for lstat.
28369         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
28370
28371         link: fix test failure on Solaris 9
28372         * lib/link.c (rpl_link): Don't assume link will catch bogus
28373         trailing slash on source.
28374
28375         test-symlinkat: enhance test
28376         * tests/test-readlink.c (main): Move guts...
28377         * tests/test-readlink.h (test_readlink): ...into new file.
28378         * tests/test-symlink.c (main): Move guts...
28379         * tests/test-symlink.h (test_symlink): ...into new file.
28380         * tests/test-symlinkat.c (main): Use new files for further
28381         coverage.
28382         (do_symlink, do_readlink): New helper functions.
28383         * modules/symlink-tests (Files): Ship new file.
28384         (Depends-on): Add stdbool.
28385         * modules/readlink-tests (Files): Ship new file.
28386         (Depends-on): Add stdbool.
28387         * modules/symlinkat-tests (Files): Use new files.
28388
28389 2009-09-23  Eric Blake  <ebb9@byu.net>
28390
28391         readlink: document portability issue with symlink length
28392         * doc/posix-functions/lstat.texi (lstat): Mention that some file
28393         systems have bogus st_size on symlinks, and mention the
28394         areadlink-with-size module.
28395         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
28396         * doc/posix-functions/readlink.texi (readlink): Mention the
28397         areadlink module, and ERANGE failure.
28398         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28399         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
28400
28401         readlink: fix Solaris 9 bug with trailing slash
28402         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
28403         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
28404         * doc/posix-functions/readlink.texi (readlink): Document this.
28405         * modules/readlink-tests: New test.
28406         * tests/test-readlink.c: Likewise.
28407
28408         readlink: fix cygwin 1.5.x bug with return type
28409         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
28410         * lib/unistd.in.h (readlink): Use ssize_t.
28411         * lib/readlink.c (readlink): Likewise.
28412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28413         * modules/unistd (Makefile.am): Substitute it.
28414         * lib/unistd.in.h (readlink): Declare replacement.
28415         * doc/posix-functions/readlink.texi (readlink): Document this.
28416
28417         symlink: use throughout gnulib
28418         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
28419         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
28420         symlink is not used.
28421         * modules/symlinkat (Depends-on): Add symlink.
28422         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28423         * modules/canonicalize-tests (Depends-on): Likewise.
28424         * modules/lstat-tests (Depends-on): Likewise.
28425         * modules/openat-tests (Depends-on): Likewise.
28426         * modules/remove-tests (Depends-on): Likewise.
28427         * modules/rmdir-tests (Depends-on): Likewise.
28428         * modules/unlink-tests (Depends-on): Likewise.
28429         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
28430         * tests/test-canonicalize.c (symlink): Likewise.
28431         * tests/test-fstatat.c (symlink): Likewise.
28432         * tests/test-lstat.c (symlink): Likewise.
28433         * tests/test-remove.c (symlink): Likewise.
28434         * tests/test-rmdir.c (symlink): Likewise.
28435         * tests/test-unlink.c (symlink): Likewise.
28436         * tests/test-unlinkat.c (symlink): Likewise.
28437
28438         symlink: new module, for Solaris 9 bug
28439         * modules/symlink: New file.
28440         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
28441         * lib/symlink.c: Likewise.
28442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
28443         * modules/unistd (Makefile.am): Substitute them.
28444         * lib/unistd.in.h (symlink): Declare replacement.
28445         * MODULES.html.sh (File system functions): Mention it.
28446         * doc/posix-functions/symlink.texi (symlink): Likewise.
28447         * modules/symlink-tests: New test.
28448         * tests/test-symlink.c: Likewise.
28449
28450 2009-09-23  Bruno Haible  <bruno@clisp.org>
28451
28452         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
28453         when needed.
28454         Test case: gnulib-tool --import --with-tests atexit inttypes.
28455         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
28456
28457 2009-09-23  Bruno Haible  <bruno@clisp.org>
28458
28459         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
28460         subcommand, not in a subshell.
28461
28462 2009-09-22  Eric Blake  <ebb9@byu.net>
28463
28464         unistd: sort replacement declarations
28465         * lib/unistd.in.h: Sort declarations.
28466
28467         open, openat: minor optimization
28468         * lib/open.c (open): If open succeeded, len is non-zero.
28469         * lib/openat.c (rpl_openat): Likewise.
28470
28471         link-follow: ensure correct result
28472         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
28473         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
28474         distinguish between possible failures.
28475
28476 2009-09-21  Eric Blake  <ebb9@byu.net>
28477
28478         fts: avoid compiler warning
28479         * lib/fts.c (dirent_inode_sort_may_be_useful)
28480         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
28481
28482 2009-09-19  Bruno Haible  <bruno@clisp.org>
28483
28484         * lib/progreloc.c (canonicalize_file_name): New declaration.
28485
28486 2009-09-19  Eric Blake  <ebb9@byu.net>
28487
28488         link: fix quoting
28489         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
28490
28491         openat: fix openat bugs on Solaris 9
28492         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
28493         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
28494         * modules/openat (Depends-on): Add open.
28495         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
28496         * modules/fcntl-h (Makefile.am): Substitute it.
28497         * lib/fcntl.in.h (openat): Declare replacement.
28498         * doc/posix-functions/openat.texi (openat): Document this.
28499
28500         openat: move fstatat and unlinkat into correct files
28501         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
28502         compiled.
28503         * lib/openat.c (fstatat, unlinkat): Move...
28504         * lib/fstatat.c (fstatat): ...into correct files.
28505         * lib/unlinkat.c (unlinkat): Likewise.
28506
28507         openat: fix unlinkat bugs on Solaris 9
28508         * lib/unlinkat.c (unlinkat): New file.
28509         * modules/openat (Depends-on): Add unlink.
28510         (Files): Distribute it.
28511         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
28512         trailing slash behavior is broken.
28513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28514         * modules/unistd (Makefile.am): Substitute it.
28515         * lib/unistd.in.h (unlinkat): Declare replacement.
28516         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
28517
28518         openat: fix fstatat bugs on Solaris 9
28519         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
28520         stat.
28521         * doc/posix-functions/fstatat.texi (fstatat): Document this.
28522
28523         test-unlinkat: enhance test, to expose Solaris 9 bug
28524         * tests/test-unlink.c (main): Factor guts...
28525         * tests/test-unlink.h (test_rmdir_func): ...into new file.
28526         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
28527         * tests/test-rmdir.c (main): Adjust caller.
28528         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
28529         (unlinker): New helper function.
28530         (rmdirat): Enhance check.
28531         * modules/rmdir-tests (Depends-on): Add stdbool.
28532         * modules/unlink-tests (Depends-on): Likewise.
28533         (Files): Add test-unlink.h.
28534         * modules/openat-tests (Files): Likewise.
28535         (Depends-on): Add unlinkdir.
28536
28537         test-fstatat: new test, to expose Solaris 9 bugs
28538         * tests/test-stat.c (main): Factor guts...
28539         * tests/test-stat.h (test_stat_func): ...into new file.
28540         * tests/test-lstat.c (main): Factor guts...
28541         * tests/test-lstat.h (test_lstat_func): ...into new file.
28542         * tests/test-fstatat.c: New file.
28543         * modules/stat-tests (Files): Add test-stat.h.
28544         * modules/lstat-tests (Files): Add test-lstat.h.
28545         (Depends-on): Add stdbool.
28546         * modules/openat-tests (Depends-on): Add pathmax.
28547         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
28548         (Makefile.am): Run new test.
28549
28550         remove: new module, for mingw and Solaris 9 bugs
28551         * modules/remove: New file.
28552         * lib/remove.c: Likewise.
28553         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
28554         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
28555         * modules/stdio (Makefile.am): Use them.
28556         * lib/stdio.in.h (remove): Declare replacement.
28557         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28558         * doc/posix-functions/remove.texi (remove): Likewise.
28559         * modules/remove-tests: New test.
28560         * tests/test-remove.c: Likewise.
28561
28562         unlink: new module, for Solaris 9 bug
28563         * modules/unlink: New file.
28564         * lib/unlink.c: Likewise.
28565         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
28566         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28567         * modules/unistd (Makefile.am): Use them.
28568         * lib/unistd.in.h (stat): Declare replacement.
28569         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28570         * doc/posix-functions/unlink.texi (unlink): Likewise.
28571         * modules/unlink-tests: New test.
28572         * tests/test-unlink.c: Likewise.
28573
28574         lstat: fix Solaris 9 bug
28575         * lib/lstat.c (lstat): Also check for trailing slash on
28576         non-symlink, non-directories.  Use stat module to simplify logic.
28577         * doc/posix-functions/lstat.texi (lstat): Document it.
28578         * modules/lstat-tests (Depends-on): Add errno, same-inode.
28579         (configure.ac): Check for symlink.
28580         * tests/test-lstat.c (main): Add more tests.
28581
28582         stat: add as dependency to other modules
28583         * modules/chown (Depends-on): Add stat.
28584         * modules/euidaccess (Depends-on): Likewise.
28585         * modules/fchdir (Depends-on): Likewise.
28586         * modules/isdir (Depends-on): Likewise.
28587         * modules/link (Depends-on): Likewise.
28588         * modules/lstat (Depends-on): Likewise.
28589         * modules/mkdir-p (Depends-on): Likewise.
28590         * modules/modechange (Depends-on): Likewise.
28591         * modules/open (Depends-on): Likewise.
28592         * modules/readlink (Depends-on): Likewise.
28593         * modules/same (Depends-on): Likewise.
28594
28595         stat: fix Solaris 9 bug
28596         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
28597         slash.
28598         * lib/stat.c (rpl_stat): Work around it.
28599         * doc/posix-functions/stat.texi (stat): Update documentation.
28600
28601         stat: new module, for mingw bug
28602         * modules/stat: New file.
28603         * lib/stat.c: Likewise.
28604         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28605         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28606         * modules/sys_stat (Makefile.am): Use them.
28607         * lib/sys_stat.in.h (stat): Declare replacement.
28608         * lib/openat.c (fstatat): Deal with lstat and stat being function
28609         macros.
28610         * modules/openat (Depends-on): Add inline.
28611         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
28612         * doc/posix-functions/stat.texi (stat): Likewise.
28613         * modules/stat-tests: New test.
28614         * tests/test-stat.c: Likewise.
28615
28616 2009-09-19  Jim Meyering  <meyering@redhat.com>
28617
28618         syntax-check: detect unnecessary inclusion of canonicalize.h
28619         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
28620
28621 2009-09-19  Eric Blake  <ebb9@byu.net>
28622
28623         canonicalize-lgpl: adjust clients to use correct header
28624         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
28625         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
28626         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
28627         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
28628         * lib/progreloc.c (includes): Likewise.
28629
28630 2009-09-19  Jim Meyering  <meyering@redhat.com>
28631
28632         test-posixtm.c: correct a comment
28633         * tests/test-posixtm.c: Correct first-line comment.
28634         Spotted by Eric Blake.
28635
28636 2009-09-16  Jim Meyering  <meyering@redhat.com>
28637
28638         posixtm-tests: make T const-correct; add a test case
28639         * tests/test-posixtm.c (T): Declare const.
28640         Add a test for -(2^31+1).
28641         Remove useless can-succeed-only-in-2002 test.
28642
28643         posixtm-tests: adjust the sole failing test
28644         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
28645         expected output matches what mktime now produces.  Cross-checked via
28646         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
28647
28648         posixtm: move #ifdef'd tests into a new module
28649         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
28650         * tests/test-posixtm.c: ... this new file.
28651         * modules/posixtm-tests: New module.
28652
28653 2009-09-19  Eric Blake  <ebb9@byu.net>
28654
28655         openat: simplify use of at-func.c
28656         * lib/at-func.c (includes): Include prerequisites here, to
28657         simplify requirements on client files.
28658         * lib/openat-priv.h: Add double-inclusion guard.
28659         * lib/faccessat.c (includes): Simplify.
28660         * lib/fchmodat.c (includes): Likewise.
28661         * lib/fchownat.c (includes): Likewise.
28662         * lib/mkdirat.c (includes): Likewise.
28663         * lib/mkfifoat.c (includes): Likewise.
28664         * lib/symlinkat.c (includes): Likewise.
28665
28666         openat: allow return of fd 0
28667         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
28668         * modules/save-cwd (Depends-on): Replace fcntl-safer with
28669         unistd-safer.
28670         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
28671         <fcntl.h>; this module does not leak fds.
28672         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
28673         must be allowed to return 0, leaving openat_safer to add the
28674         safety.
28675         (openat_permissive): Avoid writing to just-opened fd 2 if
28676         restoring the current directory fails.
28677         * lib/openat-die.c (openat_restore_fail): Add comment.
28678         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
28679         (save_cwd): Guarantee safe fd, but without use of open_safer.
28680         * tests/test-openat.c: New test.
28681         * modules/openat-tests (Files, Makefile.am): Distribute and build
28682         new file.
28683
28684         relocatable-prog-wrapper: fix build
28685         * modules/relocatable-prog-wrapper (Files): Update name of
28686         canonicalize m4 file, broken on 2009-09-17.
28687         Reported by emad hajjar <aleppos@hotmail.com>.
28688
28689 2009-09-19  Bruno Haible  <bruno@clisp.org>
28690
28691         * lib/safe-alloc.h: Use the standard header with GPL copyright.
28692         * lib/safe-alloc.c: Likewise.
28693         Reported by Ian Beckwith <ianb@erislabs.net>.
28694
28695 2009-09-18  Bruno Haible  <bruno@clisp.org>
28696
28697         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
28698         Reported by <erobles@sensacd.com.mx>.
28699
28700 2009-09-17  Eric Blake  <ebb9@byu.net>
28701
28702         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
28703         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
28704         slashes when checking if last component is missing.
28705         * tests/test-canonicalize.c (main): Test this.
28706
28707         canonicalize, canonicalize-lgpl: honor // if distinct from /
28708         * modules/canonicalize (Files): Add double-slash-root.m4.
28709         * modules/canonicalize-lgpl (Files): Likewise.
28710         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
28711         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
28712         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
28713         fallback definition.
28714         (canonicalize_filename_mode): Use it to protect //.
28715         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
28716         (__realpath): Likewise.
28717         * tests/test-canonicalize.c (main): Test this.
28718         * tests/test-canonicalize-lgpl.c (main): Likewise.
28719         * modules/canonicalize-tests (Depends-on): Add same-inode.
28720         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28721
28722         canonicalize-lgpl: fix glibc bug with trailing slash
28723         * m4/canonicalize-lgpl.m4: Move contents...
28724         * m4/canonicalize.m4: ...here.
28725         (gl_CANONICALIZE_LGPL): Factor realpath check...
28726         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
28727         glibc 2.3.5 bug, fixed 2005-04-27.
28728         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
28729         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
28730         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
28731         * modules/canonicalize-lgpl (Files): Manage file rename.
28732         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
28733         * modules/stdlib (Makefile.am): Substitute witness.
28734         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
28735         is needed.
28736         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
28737         replacement is required.
28738         * lib/canonicalize.c (canonicalize_file_name): Likewise.
28739         * doc/glibc-functions/canonicalize_file_name.texi
28740         (canonicalize_file_name): Document this.
28741         * doc/posix-functions/realpath.texi (realpath): Likewise.
28742
28743         canonicalize-lgpl: reject non-directory with trailing slash
28744         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
28745         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
28746         catches failures in glibc 2.3.5.
28747         * tests/test-canonicalize.c (main): Likewise.
28748
28749         canonicalize-lgpl: use native realpath if it works
28750         * lib/canonicalize-lgpl.c (realpath): Guard with
28751         FUNC_REALPATH_WORKS.
28752         * lib/stdlib.in.h (realpath): Make declaration optional based on
28753         HAVE_REALPATH.
28754         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
28755         native realpath works.
28756         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
28757         * modules/stdlib (Makefile.am): Substitute witness.
28758
28759         canonicalize, canonicalize-lgpl: use <stdlib.h>
28760         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
28761         (Include): Mention <stdlib.h>.
28762         (configure.ac): Mention functions we provide.
28763         * modules/canonicalize (configure.ac): Likewise.
28764         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
28765         realpath if canonicalize_file_name is missing.
28766         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
28767         * modules/stdlib (Makefile.am): Substitute witnesses.
28768         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
28769         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
28770         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
28771         * NEWS: Document this.
28772         * doc/glibc-functions/canonicalize_file_name.texi
28773         (canonicalize_file_name): Likewise.
28774         * doc/posix-functions/realpath.texi (realpath): Likewise.
28775         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
28776
28777         test-canonicalize: consolidate into single C program
28778         * tests/test-canonicalize.sh: Delete; move setup into...
28779         * tests/test-canonicalize.c (main): ...the program, making it
28780         easier to run in debugger.  Add some tests.
28781         * modules/canonicalize-tests (Files): Remove unused file.
28782         (Depends-on): Add progname.
28783         (configure.ac, Makefile.am): Simplify.
28784
28785         test-canonicalize-lgpl: consolidate into single C program
28786         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
28787         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
28788         easier to run in debugger.  Add some tests.
28789         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
28790         (configure.ac, Makefile.am): Simplify.
28791
28792         canonicalize: avoid resolvepath
28793         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
28794         unnecessary checks.
28795         * lib/canonicalize.c (includes): Simplify.
28796         (canonicalize_file_name): Drop resolvepath implementation.
28797         * modules/canonicalize (Depends-on): Drop filenamecat.
28798
28799         canonicalize: don't lose errno
28800         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
28801         over calls to free.
28802
28803         canonicalize: simplify errno handling
28804         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
28805         assignment.
28806
28807         canonicalize, canonicalize-lgpl: update module dependencies
28808         * modules/canonicalize (Depends-on): Add extensions, lstat,
28809         pathmax, stdlib.
28810         (Files): Drop pathmax.h.
28811         (configure.ac): Adjust macro name.
28812         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
28813         lstat, stdlib, sys_stat.
28814         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
28815         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
28816         extensions.
28817         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
28818         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
28819         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
28820         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
28821         declaration, if available.
28822         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
28823         we can rely on the readlink module.
28824         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
28825         (includes): Use <unistd.h> unconditionally.
28826
28827 2009-09-17  Eric Blake  <ebb9@byu.net>
28828
28829         maint: make Include sections of modules consistent
28830         * modules/alloca: Use only header name; no need to list #include.
28831         * modules/alloca-opt: Likewise.
28832         * modules/arpa_inet: Likewise.
28833         * modules/canon-host: Likewise.
28834         * modules/configmake: Likewise.
28835         * modules/dirent: Likewise.
28836         * modules/eealloc: Likewise.
28837         * modules/environ: Likewise.
28838         * modules/fchdir: Likewise.
28839         * modules/fcntl: Likewise.
28840         * modules/fcntl-h: Likewise.
28841         * modules/gethrxtime: Likewise.
28842         * modules/gettime: Likewise.
28843         * modules/ignore-value: Likewise.
28844         * modules/inet_ntop: Likewise.
28845         * modules/inet_pton: Likewise.
28846         * modules/inttypes: Likewise.
28847         * modules/isnand-nolibm: Likewise.
28848         * modules/isnanf-nolibm: Likewise.
28849         * modules/mbchar: Likewise.
28850         * modules/mbfile: Likewise.
28851         * modules/mbiter: Likewise.
28852         * modules/mbuiter: Likewise.
28853         * modules/netdb: Likewise.
28854         * modules/netinet_in: Likewise.
28855         * modules/nproc: Likewise.
28856         * modules/pagealign_alloc: Likewise.
28857         * modules/poll: Likewise.
28858         * modules/printf-frexp: Likewise.
28859         * modules/pthread: Likewise.
28860         * modules/putenv: Likewise.
28861         * modules/random_r: Likewise.
28862         * modules/relocatable-prog: Likewise.
28863         * modules/search: Likewise.
28864         * modules/select: Likewise.
28865         * modules/selinux-h: Likewise.
28866         * modules/settime: Likewise.
28867         * modules/signal: Likewise.
28868         * modules/size_max: Likewise.
28869         * modules/socklen: Likewise.
28870         * modules/ssize_t: Likewise.
28871         * modules/stdarg: Likewise.
28872         * modules/stdbool: Likewise.
28873         * modules/stddef: Likewise.
28874         * modules/stdint: Likewise.
28875         * modules/stdio: Likewise.
28876         * modules/stdlib: Likewise.
28877         * modules/string: Likewise.
28878         * modules/strings: Likewise.
28879         * modules/sys_file: Likewise.
28880         * modules/sys_ioctl: Likewise.
28881         * modules/sys_select: Likewise.
28882         * modules/sys_socket: Likewise.
28883         * modules/sys_stat: Likewise.
28884         * modules/sys_time: Likewise.
28885         * modules/sys_times: Likewise.
28886         * modules/sys_utsname: Likewise.
28887         * modules/sys_wait: Likewise.
28888         * modules/sysexits: Likewise.
28889         * modules/time: Likewise.
28890         * modules/times: Likewise.
28891         * modules/tmpfile: Likewise.
28892         * modules/trim: Likewise.
28893         * modules/unistd: Likewise.
28894         * modules/wchar: Likewise.
28895         * modules/wctype: Likewise.
28896
28897 2009-09-17  Bruno Haible  <bruno@clisp.org>
28898
28899         Make getdate.y compile on QNX and NetBSD 5 / i386.
28900         * m4/getdate.m4 (gl_GETDATE): Conditionally define
28901         TIME_T_FITS_IN_LONG_INT.
28902         * lib/getdate.y (long_time_t): New type.
28903         (relative_time): Change type of 'seconds' field to long_time_t.
28904         (get_date): Update types of local variables. Check against overflow
28905         during conversion from long_time_t to time_t.
28906         Reported by Matt Kraai <kraai@ftbfs.org>
28907         and Hasso Tepper <hasso@netbsd.org>.
28908
28909 2009-09-17  Bruno Haible  <bruno@clisp.org>
28910
28911         * modules/COPYING: Update copyright years.
28912         * modules/README: Likeiwse.
28913         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
28914         Reported by Ian Beckwith <ianb@erislabs.net>.
28915
28916 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
28917
28918         * users.txt: Update references for gnuit package.
28919
28920 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
28921
28922         * m4/getdelim.m4: Fix typo in copyright line.
28923
28924 2009-09-17  Bruno Haible  <bruno@clisp.org>
28925
28926         * lib/atoll.c: Use the standard header with GPL copyright.
28927         * lib/argz.in.h: Likewise.
28928         * lib/glob.c: Likewise.
28929         * lib/glob-libc.h: Likewise.
28930         * lib/random_r.c: Likewise.
28931         * lib/siglist.h: Likewise.
28932         * lib/strsignal.c: Likewise.
28933         Reported by Ian Beckwith <ianb@erislabs.net>.
28934
28935 2009-09-17  Eric Blake  <ebb9@byu.net>
28936
28937         rmdir: ensure correct dependency order
28938         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
28939
28940 2009-09-17  Bruno Haible  <bruno@clisp.org>
28941
28942         Disable assertion that fails on NetBSD 5 / i386.
28943         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
28944         Reported by Sam Steingold <sds@gnu.org>
28945         and Hasso Tepper <hasso@netbsd.org>.
28946
28947 2009-09-16  Eric Blake  <ebb9@byu.net>
28948
28949         unlinkdir: port to mingw
28950         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
28951         on which no one can unlink a directory.
28952
28953         stdlib: sort witness names
28954         * modules/stdlib (Makefile.am): Sort replacements.
28955         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
28956         * lib/stdlib.in.h: Likewise.
28957
28958         parse-duration-tests: avoid link failure
28959         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
28960         LIBINTL.
28961         Reported by Tom G. Christensen.
28962
28963         openat-tests: ensure unlinkat behaves like rmdir
28964         * tests/test-rmdir.c (main): Factor guts...
28965         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
28966         * modules/rmdir-tests (Files): Ship new file.
28967         * modules/openat-tests: New test.
28968         * tests/test-unlinkat.c: Likewise.
28969
28970         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
28971         * modules/rmdir-errno (Status, Notice): Now obsolete.
28972
28973         rmdir: work around cygwin 1.5.x and mingw bugs
28974         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
28975         * lib/rmdir.c (rmdir): Work around it.
28976         * modules/rmdir (Status, Notice): No longer obsolete.
28977         (Files): Add dos.m4.
28978         (Depends-on): Add unistd.
28979         (configure.ac): Set witnesses.
28980         (License): Relax to LGPLv2+.
28981         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
28982         * modules/unistd (Makefile.am): Substitute witnesses.
28983         * lib/unistd.in.h (rmdir): Declare replacement.
28984         * doc/posix-functions/rmdir.texi (rmdir): Document this.
28985         * modules/rmdir-tests: New tests.
28986         * tests/test-rmdir.c: Likewise.
28987
28988 2009-09-15  Eric Blake  <ebb9@byu.net>
28989
28990         fchdir: improve use of replacement functions
28991         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
28992         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
28993         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
28994         REPLACE_CLOSEDIR.
28995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
28996         * modules/sys_stat (Makefile.am): Substitute correct witness.
28997         * modules/dirent (Makefile.am): Likewise.
28998         * modules/unistd (Makefile.am): Likewise.
28999         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
29000         * lib/unistd.in.h (dup): Likewise.
29001         * lib/sys_stat.in.h (fstat): Likewise.
29002
29003         maint: ignore gnulib-tool temp files
29004         * .gitignore: Ignore files created during gnulib-tool --test.
29005
29006 2009-09-13  Jim Meyering  <meyering@redhat.com>
29007
29008         posixtm: don't reject a time that specify "60" as the number of seconds
29009         * lib/posixtm.c (posixtime): The code to reject invalid dates
29010         would also reject a time specified with the .60 suffix.
29011         But POSIX allows that, in order to accommodate leap seconds.
29012         So don't reject it.
29013         (main): Adjust tests accordingly.
29014         * modules/posixtm (Depends-on): Add stpcpy.
29015
29016 2009-09-11  Jim Meyering  <meyering@redhat.com>
29017
29018         announce-gen: include [$release_type] in emitted Subject:
29019         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
29020         e.g., [stable] in the emitted Subject: line.
29021
29022 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29023
29024         Remove obsolete macros from several modules.
29025         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
29026         obsolete Autoconf macros with their modern counterparts.
29027         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
29028         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
29029         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
29030         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
29031         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
29032         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29033         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29034         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29035         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
29036         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
29037         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
29038         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
29039         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
29040         * m4/sockets.m4 (gl_SOCKETS): Likewise.
29041         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
29042         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
29043         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
29044         * m4/time_r.m4 (gl_TIME_R): Likewise.
29045         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29046         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
29047         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29048
29049         Fix copyright header in build-aux scripts.
29050         * build-aux/git-version-gen: Fix copyright header to match GPLv3
29051         recommendation.
29052         * build-aux/ncftpput-ftp: Likewise.
29053         * build-aux/update-copyright: Likewise.
29054
29055 2009-09-09  Eric Blake  <ebb9@byu.net>
29056
29057         test-link: allow Linux choice of errno
29058         * tests/test-link.c (main): Relax test for alternate error.
29059
29060         strndup: fix improper m4 caching
29061         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
29062         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
29063         (gl_PREREQ_STRNDUP): Delete.
29064         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
29065         * modules/string (Makefile.am): Substitute it.
29066         * lib/string.in.h (strndup): Modernize prototype.
29067
29068         getcwd: port to mingw
29069         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
29070         different from the POSIX assumptions made throughout the getcwd
29071         module; fortunately, the mingw getcwd does not need replacement.
29072         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
29073         * modules/getcwd-tests: New test.
29074         * tests/test-getcwd.c: Likewise.
29075
29076         link: fix platform bugs
29077         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
29078         * lib/link.c (link): Work around them.  Fix related mingw bug.
29079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
29080         * modules/unistd (Makefile.am): Substitute it.
29081         * lib/unistd.in.h (link): Declare replacement.
29082         * doc/posix-functions/link.texi (link): Document this.
29083         * modules/link (Depends-on): Add strdup-posix, sys_stat.
29084
29085         test-link: consolidate into single C program, test more cases
29086         * tests/test-link.sh: Delete.
29087         * tests/test-link.c: Test more error conditions.  Exposes bugs on
29088         at least Cygwin and Solaris.
29089         * modules/link-tests (Files): Remove unused file.
29090         (Depends-on): Add errno, sys_stat.
29091         (Makefile.am): Simplify.
29092
29093 2009-09-08  Bruno Haible  <bruno@clisp.org>
29094
29095         Work around towlower, towupper bug on mingw.
29096         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
29097         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
29098         * doc/posix-functions/towlower.texi: Mention the mingw bug.
29099         * doc/posix-functions/towupper.texi: Likewise.
29100         Reported by Eric Blake.
29101
29102 2009-09-08  Jim Meyering  <meyering@redhat.com>
29103
29104         build: don't try to run autoheader if we don't use it
29105         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
29106         is not used in configure.ac.
29107
29108 2009-09-08  Eric Blake  <ebb9@byu.net>
29109
29110         euidaccess: fix compilation error
29111         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
29112
29113         rawmemchr: relax license
29114         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
29115         okay.
29116         Reported by Jim Meyering.
29117
29118         mkfifoat: new module
29119         * modules/mkfifoat: New file.
29120         * lib/mkfifoat.c: Likewise.
29121         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
29122         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29123         * modules/sys_stat (Makefile.am): Use them.
29124         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
29125         * MODULES.html.sh (File system functions): Mention module.
29126         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
29127         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
29128         * modules/mkfifoat-tests: New test.
29129         * tests/test-mkfifoat.c: Likewise.
29130
29131         strchrnul: relax license
29132         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
29133         okay.
29134         Reported by Jim Meyering.
29135
29136 2009-09-08  Eric Blake  <ebb9@byu.net>
29137
29138         fstatat: fix compilation on Solaris
29139         * lib/fstatat.c (includes): Add fcntl.h.
29140         Reported by Pádraig Brady.
29141
29142 2009-09-07  Eric Blake  <ebb9@byu.net>
29143
29144         rename: modernize replacement
29145         * modules/rename (Depends-on): Add stdio.
29146         (configure.ac): Declare witness.
29147         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
29148         stdio take care of replacement.
29149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
29150         * modules/stdio (Makefile.am): Substitute them.
29151         * lib/stdio.in.h (rename): Declare replacement.
29152         * lib/rename.c (includes): Allow cross-compilation to non-windows
29153         machines.
29154         * doc/posix-functions/rename.texi (rename): Improve
29155         documentation.
29156
29157         stdio: sort witness names
29158         * modules/stdio (Makefile.am): Sort replacements.
29159         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29160         * lib/stdio.in.h: Likewise.
29161
29162         getcwd: minor cleanups
29163         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
29164         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
29165
29166         openat: provide more convenience names
29167         * modules/faccessat (configure.ac): Add C witness.
29168         * lib/unistd.in.h (readlinkat): Fix typo.
29169         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
29170         convenience wrappers.
29171         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
29172         wrappers in syntax checks.
29173
29174 2009-09-06  Eric Blake  <ebb9@byu.net>
29175
29176         doc: fix comments in recent patches
29177         * lib/faccessat.c: Mention correct function.
29178         * lib/fchmodat.c: Likewise.
29179         * lib/fchownat.c: Likewise.
29180         * lib/symlinkat.c: Likewise.
29181         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
29182         constants.
29183
29184         faccessat, symlinkat: continue cleanup of previous patch
29185         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
29186         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
29187         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
29188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
29189         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
29190         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
29191         set.
29192
29193 2009-09-06  Bruno Haible  <bruno@clisp.org>
29194
29195         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
29196         (fstatat): Declare if GNULIB_FSTATAT is set.
29197         (mkdirat): Declare if GNULIB_MKDIRAT is set.
29198         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
29199         (unlinkat): Declare if GNULIB_UNLINKAT is set.
29200         * modules/fcntl-h (Files): Remove m4/openat.m4.
29201         * modules/sys_stat (Files): Remove m4/openat.m4.
29202         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
29203         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
29204         * modules/unistd (Files): Remove m4/openat.m4.
29205         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
29206         GNULIB_OPENAT.
29207         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
29208         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
29209         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
29210         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
29211         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
29212         gl_OPENAT_DEFAULTS.
29213         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
29214         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
29215         Don't require gl_OPENAT_DEFAULTS.
29216         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
29217         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
29218         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
29219         (gl_OPENAT_DEFAULTS): Remove macro.
29220
29221 2009-09-06  Bruno Haible  <bruno@clisp.org>
29222
29223         * modules/openat (configure.ac): Remove unneeded witness.
29224
29225 2009-09-06  Bruno Haible  <bruno@clisp.org>
29226
29227         Set errno to ENOSYS when a function is entirely unsupported.
29228         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
29229         EOPNOTSUPP.
29230         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
29231         * modules/chown (Depends-on): Remove errno.
29232
29233 2009-09-06  Bruno Haible  <bruno@clisp.org>
29234
29235         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
29236
29237 2009-09-06  Bruno Haible  <bruno@clisp.org>
29238
29239         * lib/sys_stat.in.h: Fix preprocessor command indentation.
29240
29241 2009-09-06  Ben Pfaff  <blp@gnu.org>
29242             Bruno Haible  <bruno@clisp.org>
29243
29244         Work around a glibc bug in strtok_r.
29245         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
29246         Undefine if UNDEFINE_STRTOK_R is set.
29247         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
29248         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29249         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
29250         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
29251         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
29252         UNDEFINE_STRTOK_R.
29253         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
29254
29255 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29256
29257         exclude: minor fix
29258         * lib/exclude.c: Include wctype.h
29259
29260 2009-09-06  Akim Demaille  <demaille@gostai.com>
29261
29262         bootstrap: improve error message
29263         * build-aux/bootstrap (find_tool): Upon failure, report the list
29264         of candidates.
29265         Honor the initial value of the envvar.
29266
29267 2009-09-05  Eric Blake  <ebb9@byu.net>
29268
29269         symlinkat: new module
29270         * modules/symlinkat: New file.
29271         * lib/symlinkat.c: Likewise.
29272         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
29273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
29274         * modules/unistd (Makefile.am): Use them.
29275         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
29276         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
29277         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
29278         * MODULES.html.sh (File system functions): Mention module.
29279         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29280         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29281         * modules/symlinkat-tests: New test.
29282         * tests/test-symlinkat.c: Likewise.
29283
29284         test-openat-safer: add more checks
29285         * tests/test-openat-safer.c (main): Check more code paths.
29286
29287 2009-09-05  Jim Meyering  <meyering@redhat.com>
29288
29289         syntax-check: detect unnecessary inclusion of openat.h
29290         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
29291
29292 2009-09-05  Bruno Haible  <bruno@clisp.org>
29293
29294         Support towlower, towupper.
29295         * doc/posix-functions/towlower.texi: Mention module wctype.
29296         * doc/posix-functions/towupper.texi: Likewise.
29297         * lib/wctype.in.h (towlower, towupper): New functions.
29298         * tests/test-wctype.c: Include stdio.h, stdlib.h.
29299         (ASSERT): New macro.
29300         (e): New variable.
29301         (main): Test also towlower, towupper. Test WEOF argument.
29302         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
29303
29304 2009-09-05  Bruno Haible  <bruno@clisp.org>
29305
29306         Fix conversion behaviour when the input is invalid.
29307         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
29308         mark occurring in first pass of indirect conversion.
29309         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
29310         input.
29311         Found by clang's static analyzer.
29312
29313 2009-09-05  Bruno Haible  <bruno@clisp.org>
29314
29315         * tests/test-striconveh.c (main): Test indirect conversion on platforms
29316         where direct conversion is possible.
29317
29318 2009-09-04  Eric Blake  <ebb9@byu.net>
29319
29320         openat: fail with ENOENT on empty name
29321         * lib/openat-proc.c (openat_proc_name): Special-case the empty
29322         buffer.
29323
29324         link-follow: fix logic bug in prior patch
29325         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
29326         reversed sense of yes and no in prior patch.  Avoid confusing
29327         compilation failure with desired semantics.
29328
29329         link-follow: accomodate mingw and cross-compilation
29330         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
29331         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
29332         cross-compilation results to -1, to make linkat easier to
29333         implement when cross-compiling.  Trivially support mingw.
29334         * modules/link-follow (configure.ac): Call new name.
29335         * NEWS: Mention this.
29336
29337 2009-09-03  Eric Blake  <ebb9@byu.net>
29338
29339         faccessat: compile replacement
29340         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
29341         needed.
29342
29343         fts: fix compilation error
29344         * lib/fts.c (includes): Re-add "openat.h", for
29345         openat_needs_fchdir.
29346
29347         faccessat: new module
29348         * modules/faccessat: New file.
29349         * lib/faccessat.c: Likewise.
29350         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
29351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29352         * modules/unistd (Makefile.am): Use it.
29353         * lib/unistd.in.h (faccessat): Declare it.
29354         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
29355         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
29356         * MODULES.html.sh (File system functions): Mention it.
29357         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
29358         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
29359
29360         euidaccess: prefer POSIX over non-standard implementation
29361         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
29362         * lib/euidaccess.c (euidaccess): Use it if available.
29363
29364         openat: make template easier to use
29365         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
29366         AT_FUNC_F2 to be undefined.
29367         (VALIDATE_FLAG): New macro; use it to reject bad flags.
29368         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
29369         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
29370         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
29371         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
29372         Likewise.
29373         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
29374         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
29375         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
29376         Likewise.
29377
29378         openat: declare in POSIX headers
29379         * NEWS: Mention this.
29380         * modules/openat (configure.ac): Declare witnesses.
29381         (Depends-on): Add fcntl-h, sys_stat, unistd.
29382         (Include): Mention correct headers.
29383         * modules/fcntl-h (Depends-on): Add link-warning.
29384         (Files): Add openat.m4.
29385         (Makefile.am): Substitute witnesses.
29386         * modules/sys_stat (Files, Makefile.am): Likewise.
29387         * modules/unistd (Files, Makefile.am): Likewise.
29388         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
29389         (gl_OPENAT_DEFAULTS): New macro.
29390         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
29391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
29392         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
29393         (SYS_STAT_H): Remove unused variable.
29394         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
29395         * lib/fcntl--.h (includes): Remove unneeded header.
29396         * lib/openat-safer.c (includes): Likewise.
29397         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
29398         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
29399         appropriate headers.
29400         (__OPENAT_PREFIX): Delete.
29401         * lib/fcntl.in.h (openat): Provide declaration.
29402         (AT_FDCWD): Fix Solaris bug.
29403         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
29404         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
29405         * lib/fchmodat.c (includes):  Adjust to find declaration.
29406         * lib/fchownat.c (includes): Likewise.
29407         * lib/mkdirat.c (includes): Likewise.
29408         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
29409         still visible.
29410
29411 2009-09-02  Eric Blake  <ebb9@byu.net>
29412
29413         errno: use consistently
29414         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
29415         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
29416         * lib/canonicalize.c (ELOOP): Likewise.
29417         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
29418         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
29419         * lib/lchown.c (EOPNOTSUPP): Likewise.
29420         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
29421         * lib/savewd.c (ESTALE): Likewise.
29422         * lib/settime.c (ENOSYS): Likewise.
29423         * lib/utimens.c (ENOSYS): Likewise.
29424         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
29425         * lib/chdir-safer.c (ELOOP): Likewise.
29426         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
29427         * modules/c-stack (Depends-on): Add errno.
29428         * modules/canonicalize (Depends-on): Likewise.
29429         * modules/chdir-safer (Depends-on): Likewise.
29430         * modules/fdopendir (Depends-on): Likewise.
29431         * modules/inet_ntop (Depends-on): Likewise.
29432         * modules/inet_pton (Depends-on): Likewise.
29433         * modules/lchown (Depends-on): Likewise.
29434         * modules/openat (Depends-on): Likewise.
29435         * modules/savewd (Depends-on): Likewise.
29436         * modules/settime (Depends-on): Likewise.
29437         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
29438
29439         fts: avoid leaking fds
29440         * modules/fts (Depends-on): Add cloexec.
29441         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
29442         flag.
29443
29444         fts: make directory fds more robust
29445         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
29446         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
29447
29448         backupfile, chdir-long, fts, savedir: make safer
29449         * lib/backupfile.c (includes): Use "dirent--.h", since
29450         numbered_backup can write to stderr during readdir.
29451         * lib/savedir.c (includes): Likewise.
29452         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
29453         emulation can write to stderr on failure.
29454         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
29455         * lib/getcwd.c: Document why opendir_safer is unused.
29456         * lib/glob.c: Likewise.
29457         * lib/scandir.c: Likewise.
29458         * lib/openat-proc.c: Likewise, for open_safer.
29459         * modules/backupfile (Depends-on): Add dirent-safer.
29460         * modules/savedir (Depends-on): Likewise.
29461         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
29462         * modules/chdir-long (Depends-on): Add openat-safer.
29463
29464         openat-safer: new module
29465         * modules/openat-safer: New file.
29466         * lib/openat-safer.c: Likewise.
29467         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
29468         * lib/fcntl-safer.h (openat_safer): Declare.
29469         * lib/fcntl--.h (openat): Override.
29470         * MODULES.html.sh (File descriptor based I/O): Mention it.
29471         * lib/openat.h: Add double-inclusion guards.
29472         * lib/openat.c (includes): Only include "fcntl-safer.h", not
29473         "fcntl--.h", so we can implement openat.
29474         * modules/openat-safer-tests: New test.
29475         * tests/test-openat-safer.c: New file.
29476
29477         dirent-safer: new module
29478         * modules/dirent-safer: New file.
29479         * lib/dirent--.h: Likewise.
29480         * lib/dirent-safer.h: Likewise.
29481         * lib/opendir-safer.c: Likewise.
29482         * m4/dirent-safer.m4: Likewise.
29483         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
29484         * modules/dirent-safer-tests: New test.
29485         * tests/test-dirent-safer.c: New file.
29486         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
29487
29488         fdopendir: optimize on mingw
29489         * lib/unistd.in.h (_gl_directory_name): New prototype.
29490         * lib/fchdir.c (_gl_directory_name): Implement it.
29491         (fchdir): Use it to simplify implementation.
29492         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
29493         fchdir, when available, to avoid calling [f]chdir().
29494
29495         fdopendir: split into its own module
29496         * lib/openat.c (fdopendir): Move...
29497         * lib/fdopendir.c: ...into new file.
29498         * modules/fdopendir: New module.
29499         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
29500         * modules/openat (Depends-on): Add fdopendir.
29501         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
29502         fdopendir here.
29503         * modules/savedir (Depends-on): Only need fdopendir, not full
29504         openat.
29505         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
29506         * lib/openat.h (fdopendir): Drop prototype.
29507         * lib/dirent.in.h (fdopendir): Provide prototype.
29508         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
29509         * modules/dirent (Makefile.am): Substitute them.
29510         * MODULES.html.sh (File system functions): Mention it.
29511         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
29512         * modules/fdopendir-tests: New file.
29513         * tests/test-fdopendir.c: Likewise.
29514
29515         fchdir: use more consistent macro convention
29516         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
29517         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
29518         REPLACE_FCHDIR, rather than relying on config.h macros.
29519         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
29520         inside a single make-time REPLACE_FCHDIR block, rather than using
29521         the config.h FCHDIR_REPLACEMENT.
29522         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
29523         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
29524         Manage fstat replacement.
29525         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
29526         REPLACE_FCHDIR.
29527         * modules/sys_stat (Files): Add m4/unistd_h.m4.
29528         (Makefile.am): Substitute REPLACE_FCHDIR.
29529         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
29530         FCHDIR_REPLACEMENT.
29531         * lib/dup-safer.c (dup_safer): Likewise.
29532         * lib/dup2.c (rpl_dup2): Likewise.
29533         * lib/dup3.c (rpl_dup3): Likewise.
29534         * lib/open.c (rpl_open): Likewise.
29535
29536         fchdir: simplify error handling, and support dup3
29537         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
29538         stdbool, malloc-posix, realloc-posix.
29539         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
29540         (ensure_dirs_slot): Return false on allocation failure.
29541         (rpl_dup2): Delete.
29542         (_gl_register_dup): New function.
29543         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
29544         (_gl_register_fd): Close fd on allocation failure.
29545         * lib/fcntl.in.h (_gl_register_fd): Update signature.
29546         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
29547         prototype.
29548         (rpl_dup2_fchdir): Delete prototype.
29549         * lib/open.c (open): Update caller.
29550         * lib/dup2.c (dup2): Track fchdir metadata.
29551         * lib/dup3.c (dup3): Likewise.
29552         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
29553         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
29554
29555 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29556
29557         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
29558         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
29559         don't pass arguments to AC_OUTPUT.
29560
29561 2009-09-02  Bruno Haible  <bruno@clisp.org>
29562
29563         * modules/mkdtemp (License): Relicense under LGPLv2+.
29564         Reported by Paolo Bonzini.
29565
29566 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29567
29568         Replace uses of obsolete autoconf macros in Jim's modules.
29569         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
29570         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
29571         can evoke a warning from autoconf when run with -Wobsolete
29572         enabled.  They were declared obsolete for good reasons (see
29573         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
29574         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
29575         should not continue using the deprecated macros.
29576         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
29577         obsolete Autoconf macros with modern counterparts.
29578         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29579         * m4/dos.m4 (gl_AC_DOS): Likewise.
29580         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
29581         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
29582         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
29583         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
29584         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
29585         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
29586         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
29587         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
29588         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
29589         Likewise.
29590         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
29591         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
29592         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
29593         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
29594         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
29595         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
29596
29597 2009-09-01  Eric Blake  <ebb9@byu.net>
29598
29599         fchdir: fix off-by-one bug in previous patch
29600         * lib/fchdir.c (rpl_fstat): Use correct bounds.
29601         (_gl_unregister_fd): Delete useless if.
29602
29603 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
29604
29605         maint.mk: sort the list of syntax-check rules
29606         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
29607         easier to get a sense of progress when the rules are run sequentially
29608         and take a long time.
29609
29610 2009-09-01  Simon Josefsson  <simon@josefsson.org>
29611
29612         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
29613         * modules/netinet_in: Likewise.
29614         * modules/sys_file: Likewise.
29615         * modules/sys_ioctl: Likewise.
29616         * modules/sys_select: Likewise.
29617         * modules/sys_socket: Likewise.
29618         * modules/sys_stat: Likewise.
29619         * modules/sys_time: Likewise.
29620         * modules/sys_times: Likewise.
29621         * modules/sys_utsname: Likewise.
29622         * modules/sys_wait: Likewise.
29623
29624 2009-09-01  Jim Meyering  <meyering@redhat.com>
29625
29626         fts: help ensure that return values are not ignored
29627         * lib/fts_.h (__GNUC_PREREQ): Define.
29628         (__attribute_warn_unused_result__): Define.
29629         (fts_children, fts_close, fts_open, fts_read): Declare with
29630         __attribute_warn_unused_result__.
29631
29632         fts: fts_close now fails also when closing a dir file descriptor fails
29633         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
29634         and propagate to caller, along with errno.
29635
29636         announce-gen: correct formatting in --help output
29637         * build-aux/announce-gen (usage): Move the one-line description in
29638         --help output "up", to where it belongs, just after Usage:.
29639
29640 2009-08-31  Eric Blake  <ebb9@byu.net>
29641
29642         fchdir: port to mingw
29643         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
29644         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
29645         opened, then use a substitute.
29646         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
29647         replacement.
29648         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
29649         (_gl_register_fd): No need to check stat if open already filters
29650         all directories.
29651         (fchdir): Fix error condition to match POSIX.
29652         * modules/fchdir (Depends-on): Add sys_stat.
29653         * doc/posix-functions/open.texi (open): Document the limitation.
29654         * modules/fchdir-tests: New file.
29655         * tests/test-fchdir.c: Likewise.
29656
29657         canonicalize: allow cross-testing from cygwin to mingw
29658         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
29659         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
29660         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
29661         Likewise.
29662         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
29663         target does not support symlinks.
29664         * tests/test-canonicalize-lgpl.sh: Likewise.
29665
29666         chown: avoid compilation warning on mingw
29667         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
29668         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
29669         mingw.
29670         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
29671         * modules/chown (Depends-on): Add errno.
29672
29673 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29674
29675         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
29676         command.
29677
29678 2009-08-31  Jim Meyering  <meyering@redhat.com>
29679
29680         canonicalize: remove useless initialization
29681         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
29682         initialization of local, "end".
29683
29684 2009-08-30  Bruno Haible  <bruno@clisp.org>
29685
29686         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
29687         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
29688         ENOSYS.
29689
29690 2009-08-30  Bruno Haible  <bruno@clisp.org>
29691
29692         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
29693         /usr/xpg4/bin/tr when it exists.
29694         * tests/test-pipe-filter-gi1.sh: Likewise.
29695
29696 2009-08-30  Bruno Haible  <bruno@clisp.org>
29697
29698         Work around deficient /usr/bin/id program on Solaris.
29699         * tests/test-file-has-acl.sh (ID): New variable.
29700         * tests/test-set-mode-acl.sh (ID): Likewise.
29701         * tests/test-copy-acl.sh (ID): Likewise.
29702         * tests/test-copy-file.sh (ID): Likewise.
29703
29704 2009-08-30  Bruno Haible  <bruno@clisp.org>
29705
29706         New module 'xstriconveh'.
29707         * lib/xstriconveh.h: New file.
29708         * lib/xstriconveh.c: New file.
29709         * modules/xstriconveh: New file.
29710
29711 2009-08-30  Bruno Haible  <bruno@clisp.org>
29712
29713         Make it easier to use mem_cd_iconveh.
29714         * lib/striconveh.h (iconveh_t): New type.
29715         (iconveh_open, iconveh_close): New declarations.
29716         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
29717         with a single 'const iconveh_t *' argument.
29718         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
29719         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
29720         with a single 'const iconveh_t *' argument.
29721         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
29722         * tests/test-striconveh.c (main): Update.
29723         * NEWS: Mention the change.
29724
29725 2009-08-30  Bruno Haible  <bruno@clisp.org>
29726
29727         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
29728         problem.
29729
29730 2009-08-30  Bruno Haible  <bruno@clisp.org>
29731
29732         Work around iconv_open problem on Solaris.
29733         * lib/iconv_open-solaris.gperf: New file.
29734         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
29735         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
29736         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
29737         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
29738         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
29739         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
29740
29741 2009-08-29  Jim Meyering  <meyering@redhat.com>
29742
29743         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
29744         * top/maint.mk (cvs-check): Remove target; it was just an alias
29745         to the better-named vc-diff-check.
29746         (maintainer-distcheck): Remove rule.  It was used only from
29747         the (alpha/beta/major) target, and all of its commands but one
29748         were coreutils-specific.
29749         (vc-dist): Remove rule.
29750         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
29751         Run vc-diff-check, not vc-dist.
29752         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
29753
29754 2009-08-27  Bruno Haible  <bruno@clisp.org>
29755
29756         * tests/test-bitrotate.c (main): Remove test that uses a shift count
29757         of 0.
29758
29759 2009-08-27  Bruno Haible  <bruno@clisp.org>
29760
29761         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
29762         compilers.
29763         * doc/func.texi: Document the SunPRO C bug.
29764
29765 2009-08-27  Bruno Haible  <bruno@clisp.org>
29766
29767         Fix link error on Solaris.
29768         * tests/test-parse-duration.c (xstrdup): Remove function.
29769
29770 2009-08-26  Pádraig Brady  <P@draigbrady.com>
29771
29772         ignore-value: handle pointer types, too
29773         * lib/ignore-value.h (__attribute__): Remove definition.
29774         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
29775         of a more concise and more-often effective "(void) i" statement.
29776         (ignore_ptr): New function to suppress warnings from functions that
29777         return pointers, and to make it explicit that one function doesn't
29778         handle all cases.
29779
29780 2009-08-25  Bruno Haible  <bruno@clisp.org>
29781
29782         dup2: work around a Linux bug.
29783         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
29784         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
29785         * doc/posix-functions/dup2.texi: Mention the Linux bug.
29786         Reported by Simon Josefsson.
29787
29788 2009-08-25  Jim Meyering  <meyering@redhat.com>
29789
29790         libguestfs uses gnulib
29791         * users.txt: Add libguestfs.
29792
29793 2009-08-24  Eric Blake  <ebb9@byu.net>
29794
29795         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
29796         * lib/pipe2.c (includes): Add binary-io.h.
29797         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
29798
29799 2009-08-24  Bruno Haible  <bruno@clisp.org>
29800
29801         Tolerate declared but missing accept4 syscall.
29802         * lib/accept4.c (accept4): Invoke original accept4 function first, if
29803         available.
29804         * lib/sys_socket.in.h (accept4): If the function is already present,
29805         override it.
29806         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
29807         * modules/accept4 (Makefile.am): Compile accept4.c always.
29808         Reported by Paolo Bonzini and Eric Blake.
29809
29810 2009-08-23  Bruno Haible  <bruno@clisp.org>
29811
29812         New module 'accept4'.
29813         * lib/sys_socket.in.h (accept4): New declaration.
29814         * lib/accept4.c: New file.
29815         * m4/accept4.m4: New file.
29816         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29817         GNULIB_ACCEPT4, HAVE_ACCEPT4.
29818         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
29819         HAVE_ACCEPT4.
29820         * modules/accept4: New file.
29821         * doc/glibc-functions/accept4.texi: Mention the new module.
29822
29823 2009-08-24  Jim Meyering  <meyering@redhat.com>
29824
29825         progname: also set global program_invocation_name, when possible
29826         Before this change, a libtool-enabled program that calls glibc's
29827         error function would report the program name as
29828         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
29829         * modules/progname (configure.ac): Check for a declaration of
29830         program_invocation_name.
29831         * lib/progname.c:  Include <errno.h>.
29832         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
29833         Set program_invocation_name.
29834
29835 2009-08-23  Bruno Haible  <bruno@clisp.org>
29836
29837         * lib/dup3.c: Include <string.h>.
29838
29839 2009-08-23  Bruno Haible  <bruno@clisp.org>
29840
29841         * lib/dup3.c (dup3): Test only once whether the system actually exists.
29842         * lib/pipe2.c (pipe2): Likewise.
29843         Suggested by Eric Blake.
29844
29845 2009-08-23  Bruno Haible  <bruno@clisp.org>
29846
29847         Tolerate declared but missing dup3 syscall.
29848         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
29849         * lib/unistd.in.h (dup3): If the function is already present,
29850         override it.
29851         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
29852         * modules/dup3 (Makefile.am): Compile dup3.c always.
29853         Reported by Paolo Bonzini.
29854
29855 2009-08-23  Bruno Haible  <bruno@clisp.org>
29856
29857         Tolerate declared but missing pipe2 syscall.
29858         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
29859         available.
29860         * lib/unistd.in.h (pipe2): If the function is already present,
29861         override it.
29862         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
29863         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
29864         Reported by Paolo Bonzini.
29865
29866 2009-08-23  Bruno Haible  <bruno@clisp.org>
29867
29868         * lib/pipe2.c (pipe2): Move #ifs inside function.
29869
29870 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29871
29872         quotearg: document limitations of quote_these_too
29873         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
29874         those limitations are created.
29875         * lib/quotearg.h (set_char_quoting): Document that digits and
29876         letters that are special after backslash are not permitted.
29877         (quotearg_char): Cross-reference set_char_quoting documentation.
29878
29879 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
29880
29881         quotearg: implement custom_quoting_style
29882         * lib/quotearg.c: (struct quoting_options): Add left_quote and
29883         right_quote fields.
29884         (set_custom_quoting): New public function.
29885         (quotearg_buffer_restyled): Add left_quote and right_quote
29886         arguments, handle them very much like locale quoting, and update
29887         all uses.
29888         (quotearg_n_custom): New public function.
29889         (quotearg_n_custom_mem): New public function.
29890         (quotearg_custom): New public function.
29891         (quotearg_custom_mem): New public function.
29892         * lib/quotearg.h: Prototype and document new public functions.
29893         (enum quoting_style): For escape_quoting_style and
29894         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
29895         ignored even though they're otherwise like c_quoting_style.
29896         Add custom_quoting_style member and document with comparison to
29897         clocale_quoting_style.
29898         * tests/test-quotearg.c (custom_quotes): New array.
29899         (custom_results): New array.
29900         (main): Extend to test custom quoting.
29901
29902 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29903
29904         quotearg: fix right quote escaping when it's in quote_these_too
29905         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
29906         quote, be sure to prepend only one backslash.
29907         * tests/test-quotearg.c (use_quote_double_quotes): New function.
29908         (main): Test it.
29909
29910 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
29911
29912         quotearg-tests: test escaping of embedded locale quotes
29913         * tests/test-quotearg.c (struct result_strings): Add member for
29914         new input.
29915         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
29916         (inputs): Add new input.
29917         (results_g): Add expected results.
29918         (flag_results): Likewise.
29919         (locale_results): Likewise.
29920         (compare_strings): Check those.
29921
29922 2009-08-23  Bruno Haible  <bruno@clisp.org>
29923
29924         Tests for module 'dup3'.
29925         * modules/dup3-tests: New file.
29926         * tests/test-dup3.c: New file.
29927
29928         New module 'dup3'.
29929         * lib/unistd.in.h (dup3): New declaration.
29930         * lib/dup3.c: New file.
29931         * m4/dup3.m4: New file.
29932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
29933         HAVE_DUP3.
29934         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
29935         * modules/dup3: New file.
29936         * doc/glibc-functions/dup3.texi: Mention the new module.
29937
29938 2009-08-23  Bruno Haible  <bruno@clisp.org>
29939
29940         Tweak the dup2 test.
29941         * tests/test-dup2.c (main): Create the test file empty. Verify that an
29942         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
29943         the test file is still empty. Fix argument order of lseek.
29944
29945 2009-08-23  Bruno Haible  <bruno@clisp.org>
29946
29947         Avoid test link errors when the modules getopt-gnu, gettext are used.
29948         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
29949         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29950
29951 2009-08-23  Bruno Haible  <bruno@clisp.org>
29952
29953         Fix getdtablesize() on mingw.
29954         * lib/getdtablesize.c (getdtablesize): Implement differently.
29955         * lib/unistd.in.h (getdtablesize): Improve comment.
29956
29957 2009-08-23  Bruno Haible  <bruno@clisp.org>
29958
29959         New module 'mkostemp'.
29960         Based on Ulrich Drepper's 2007-08-10 change in glibc.
29961         * lib/stdlib.in.h (mksotemp): New declaration.
29962         * lib/mkostemp.c: New file, from glibc with modifications.
29963         * lib/tempname.h (GT_FILE): Remove outdated comment.
29964         (gen_tempname): Add flags argument.
29965         * lib/tempname.c (__GT_BIGFILE): Remove macro.
29966         (__GT_FILE): Map to 1.
29967         (small_open, large_open): Remove macros.
29968         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
29969         * lib/mkstemp.c (mkstemp): Update.
29970         * lib/mkdtemp.c (mkdtemp): Likewise.
29971         * m4/mkostemp.m4: New file.
29972         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
29973         HAVE_MKOSTEMP.
29974         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
29975         HAVE_MKOSTEMP.
29976         * modules/mkostemp: New file, based on modules/mkstemp.
29977         * doc/glibc-functions/mkostemp.texi: Mention the new module.
29978         * NEWS: Mention the change.
29979
29980 2009-08-23  Bruno Haible  <bruno@clisp.org>
29981
29982         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
29983         Reported by Eric Blake.
29984
29985 2009-08-23  Bruno Haible  <bruno@clisp.org>
29986
29987         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
29988         Reported by Eric Blake.
29989
29990 2009-08-23  Bruno Haible  <bruno@clisp.org>
29991
29992         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
29993         * modules/pipe2 (Depends-on): Likewise.
29994
29995 2009-08-23  Eric Blake  <ebb9@byu.net>
29996
29997         fcntl-h: add O_TTY_INIT support
29998         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
29999         * tests/test-fcntl-h.c (o): Test it.
30000         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30001
30002         fcntl-h: rename from fcntl, in preparation for fcntl(2)
30003         * modules/fcntl: Move <fcntl.h> header replacement...
30004         * modules/fcntl-h: ...to new name, so as not to collide with
30005         like-named function.
30006         * tests/test-fcntl.c: Rename...
30007         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
30008         * modules/fcntl-tests: Rename...
30009         * modules/fcntl-h-tests: ...to this.  Update test file name.
30010         * modules/chdir-long (Depends-on): Update clients.
30011         * modules/chdir-safer (Depends-on): Likewise.
30012         * modules/fcntl-safer (Depends-on): Likewise.
30013         * modules/fts (Depends-on): Likewise.
30014         * modules/mkancesdirs (Depends-on): Likewise.
30015         * modules/mkdir-p (Depends-on): Likewise.
30016         * modules/open (Depends-on): Likewise.
30017         * modules/savewd (Depends-on): Likewise.
30018         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
30019         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
30020
30021 2009-08-22  Bruno Haible  <bruno@clisp.org>
30022
30023         * modules/binary-io (License): Relicense under LGPL.
30024         * modules/pipe2 (License): Likewise.
30025
30026 2009-08-22  Bruno Haible  <bruno@clisp.org>
30027
30028         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
30029         return value.
30030         * lib/pipe-filter-gi.c (filter_init): Likewise.
30031         Reported by Eric Blake.
30032
30033 2009-08-22  Bruno Haible  <bruno@clisp.org>
30034
30035         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
30036         * modules/pipe (Depends-on): Add pipe2.
30037
30038 2009-08-22  Bruno Haible  <bruno@clisp.org>
30039
30040         Tests for module 'pipe2'.
30041         * modules/pipe2-tests: New file.
30042         * tests/test-pipe2.c: New file.
30043
30044         New module 'pipe2'.
30045         * lib/unistd.in.h (pipe2): New declaration.
30046         * lib/pipe2.c: New file.
30047         * m4/pipe2.m4: New file.
30048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
30049         HAVE_PIPE2.
30050         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
30051         * modules/pipe2: New file.
30052         * doc/glibc-functions/pipe2.texi: Mention the new module.
30053
30054 2009-08-22  Bruno Haible  <bruno@clisp.org>
30055
30056         Reference some new glibc functions.
30057         * doc/glibc-functions/accept4.texi: New file.
30058         * doc/glibc-functions/dup3.texi: New file.
30059         * doc/glibc-functions/mkostemp.texi: New file.
30060         * doc/glibc-functions/pipe2.texi: New file.
30061         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
30062         (Glibc sys/socket.h): Refer to accept4.
30063         (Glibc unistd.h): Refer to dup3, pipe2.
30064         Reported by Eric Blake.
30065
30066 2009-08-22  Jim Meyering  <meyering@redhat.com>
30067             Bruno Haible  <bruno@clisp.org>
30068
30069         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
30070         This makes it so packages using automake-1.11's silent-rules option
30071         can print e.g., a single "GEN    configmake.h" line, rather than
30072         the 30+ statements that perform the job.  If you want to see the
30073         actual commands, you can still run "make V=1".
30074         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
30075         so that make output is abbreviated when those variables are defined
30076         appropriately.
30077         * modules/argz: Likewise.
30078         * modules/arpa_inet: Likewise.
30079         * modules/byteswap: Likewise.
30080         * modules/configmake: Likewise.
30081         * modules/dirent: Likewise.
30082         * modules/errno: Likewise.
30083         * modules/fcntl: Likewise.
30084         * modules/float: Likewise.
30085         * modules/fnmatch: Likewise.
30086         * modules/getopt-posix: Likewise.
30087         * modules/glob: Likewise.
30088         * modules/iconv_open: Likewise.
30089         * modules/inttypes: Likewise.
30090         * modules/localcharset: Likewise.
30091         * modules/locale: Likewise.
30092         * modules/math: Likewise.
30093         * modules/netdb: Likewise.
30094         * modules/netinet_in: Likewise.
30095         * modules/poll: Likewise.
30096         * modules/posix_spawnp-tests: Likewise.
30097         * modules/sched: Likewise.
30098         * modules/search: Likewise.
30099         * modules/selinux-h: Likewise.
30100         * modules/signal: Likewise.
30101         * modules/spawn: Likewise.
30102         * modules/stdarg: Likewise.
30103         * modules/stdbool: Likewise.
30104         * modules/stddef: Likewise.
30105         * modules/stdint: Likewise.
30106         * modules/stdio: Likewise.
30107         * modules/stdlib: Likewise.
30108         * modules/string: Likewise.
30109         * modules/strings: Likewise.
30110         * modules/sys_file: Likewise.
30111         * modules/sys_ioctl: Likewise.
30112         * modules/sys_select: Likewise.
30113         * modules/sys_socket: Likewise.
30114         * modules/sys_stat: Likewise.
30115         * modules/sys_time: Likewise.
30116         * modules/sys_times: Likewise.
30117         * modules/sys_utsname: Likewise.
30118         * modules/sys_wait: Likewise.
30119         * modules/sysexits: Likewise.
30120         * modules/time: Likewise.
30121         * modules/unistd: Likewise.
30122         * modules/wchar: Likewise.
30123         * modules/wctype: Likewise.
30124
30125 2009-08-22  Jim Meyering  <meyering@redhat.com>
30126
30127         announce-gen: detect write failure
30128         * build-aux/announce-gen: Add Coda at end.
30129         Remove equivalent-but-more-verbose block at top.
30130
30131 2009-08-19  Akim Demaille  <demaille@gostai.com>
30132
30133         bootstrap: --help to stdout.
30134         * bootstrap (usage): Don't send --help to stderr.
30135         Use a here doc instead of a long string.
30136
30137 2009-08-21  Eric Blake  <ebb9@byu.net>
30138
30139         test-popen-safer: split from test-popen
30140         * tests/test-popen.c (main): Move...
30141         * tests/test-popen.h: ...into new file.
30142         * tests/test-popen-safer2.c: New file.
30143         * modules/popen-tests (Files): Add test-popen.h.
30144         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
30145         Suggested by Bruno Haible.
30146
30147         test-fcntl-safer: split from test-open
30148         * tests/test-open.c (main): Move...
30149         * tests/test-open.h: ...into new file.
30150         * tests/test-fcntl-safer.c: New file.
30151         * modules/open-tests (Files): Add test-open.h.
30152         * modules/fcntl-safer-tests: New file.
30153         Suggested by Bruno Haible.
30154
30155         test-fopen-safer: split from test-fopen
30156         * tests/test-fopen.c (main): Move...
30157         * tests/test-fopen.h: ...into new file.
30158         * tests/test-fopen-safer.c: New file.
30159         * modules/fopen-tests (Files): Add test-fopen.h.
30160         * modules/fopen-safer-tests: New file.
30161         Suggested by Bruno Haible.
30162
30163 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
30164
30165         popen-safer: test O_CLOEXEC at run-time.
30166         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
30167
30168 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
30169
30170         fcntl: move more flags to the header
30171         * lib/cloexec.c: Do not define FD_CLOEXEC here.
30172         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
30173         * lib/fcntl.in.h: Do both things here.
30174
30175 2009-08-21  Jim Meyering  <meyering@redhat.com>
30176
30177         consistently remove $@-t before redirecting to it
30178         * modules/argz: Remove $@-t and $@ before redirecting to the former.
30179         * modules/alloca-opt: Likewise.
30180         * modules/byteswap: Likewise.
30181         * modules/fnmatch: Likewise.
30182         * modules/getopt-posix: Likewise.
30183         * modules/glob: Likewise.
30184         * modules/poll: Likewise.
30185         * modules/posix_spawnp-tests: Likewise.
30186         * modules/sys_socket: Likewise.
30187         * modules/sysexits: Likewise.
30188
30189 2009-08-21  Eric Blake  <ebb9@byu.net>
30190
30191         popen: simplify access to original popen
30192         * lib/popen.c (rpl_popen): No need to worry about popen being a
30193         macro.
30194         Reported by Bruno Haible.
30195
30196 2009-08-20  Eric Blake  <ebb9@byu.net>
30197
30198         build: avoid some compiler warnings
30199         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
30200         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
30201         type.
30202         (new_exclude_segment, excluded_file_pattern_p)
30203         (excluded_file_name_p): Reduce scope.
30204         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
30205         old-style declaration.
30206
30207 2009-08-20  Simon Josefsson  <simon@josefsson.org>
30208
30209         * tests/test-exclude1.sh: Handle Windows EOL.
30210         * tests/test-exclude2.sh: Likewise.
30211         * tests/test-exclude3.sh: Likewise.
30212         * tests/test-exclude4.sh: Likewise.
30213         * tests/test-exclude5.sh: Likewise.
30214         * tests/test-exclude6.sh: Likewise.
30215         * tests/test-exclude7.sh: Likewise.
30216
30217 2009-08-19  Akim Demaille  <demaille@gostai.com>
30218
30219         bootstrap: find sha1sum when named gsha1sum.
30220         * bootstrap (find_tool): New.
30221         ($SHA1SUM): New.
30222         Use it.
30223
30224 2009-08-20  Jim Meyering  <meyering@redhat.com>
30225
30226         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
30227         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
30228         expression that converts "." in a file name to "\." in the resulting
30229         regexp.  Start with a dummy statement, so that prior shell variable
30230         definitions are expanded portably.  Reported by Simon Josefsson.
30231
30232 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
30233
30234         Fix polling for writeability of a screen buffer.
30235         * lib/poll.c: Distinguish input and screen buffers for the
30236         Win32 implementation.
30237         * lib/select.c: Likewise.
30238
30239 2009-08-19  Eric Blake  <ebb9@byu.net>
30240
30241         popen-safer: prevent popen from clobbering std descriptors
30242         * modules/popen-safer: New file.
30243         * lib/popen-safer.c: Likewise.
30244         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
30245         * lib/stdio--.h (popen): Provide override.
30246         * lib/stdio-safer.h (popen_safer): Provide declaration.
30247         * tests/test-popen.c (includes): Partially test this.
30248         * modules/popen-safer-tests: New file, for more tests.
30249         * tests/test-popen-safer.c: Likewise.
30250         * MODULES.html.sh (file stream based Input/Output): Mention it.
30251
30252         tests: test some of the *-safer modules
30253         * modules/fopen-safer (Depends-on): Add fopen.
30254         * modules/fcntl-safer (Depends-on): Add fcntl.
30255         * modules/stdlib-safer (Depends-on): Add stdlib.
30256         (configure.ac): Set indicator.
30257         * modules/unistd-safer (configure.ac): Likewise.
30258         * modules/tmpfile-safer (configure.ac): Likewise.
30259         (Depends-on): Add tmpfile.
30260         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
30261         active.
30262         * tests/test-fopen.c (includes): Test safer versions when they are
30263         in use.
30264         * tests/test-open.c (includes): Likewise.
30265
30266         popen: fix cygwin 1.5 bug when stdin closed
30267         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
30268         * modules/popen: New file.
30269         * modules/popen-tests: Likewise.
30270         * tests/test-popen.c: Likewise.
30271         * m4/popen.m4: Likewise.
30272         * lib/popen.c: Likewise.
30273         * lib/stdio.in.h (popen): New declaration.
30274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
30275         * modules/stdio (Makefile.am): Likewise.
30276         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
30277
30278 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
30279
30280         maint.mk: give full control over update-copyright exclusions
30281         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
30282         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
30283         (update-copyright): Don't force inclusion of top-level
30284         ChangeLog.  Don't force exclusion of all COPYING files, but make
30285         them the default exclusion instead.
30286
30287 2009-08-16  Bruno Haible  <bruno@clisp.org>
30288
30289         Fix test failures on Solaris 10.
30290         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
30291         tests when Solaris iconv() is used.
30292         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
30293         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
30294         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
30295         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
30296         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
30297
30298 2009-08-16  Bruno Haible  <bruno@clisp.org>
30299
30300         Fix test failures on Solaris 10.
30301         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
30302         'tr' program and pass it as first argument.
30303         * tests/test-pipe-filter-gi1.sh: Likewise.
30304         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
30305         program as first argument.
30306         * tests/test-pipe-filter-gi1.c (main): Likewise.
30307
30308 2009-08-16  Eric Blake  <ebb9@byu.net>
30309
30310         fpurge: fix previous commits
30311         * modules/fpurge (Makefile.am): Make replacement conditional,
30312         partially reverting 2007-04-29 change; missed in previous
30313         attempt.
30314         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
30315         is missing.
30316
30317 2009-08-16  Bruno Haible  <bruno@clisp.org>
30318
30319         Clarify fpurge's effect on the file position.
30320         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
30321         * tests/test-fpurge.c (main): Make a second pass for checking the file
30322         position.
30323
30324 2009-08-16  Bruno Haible  <bruno@clisp.org>
30325
30326         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
30327         declaration of fpurge is missing.
30328         * tests/test-fpurge.c (main): Check that the file has not more contents
30329         than expected. Close the file before removing it.
30330
30331 2009-08-15  Eric Blake  <ebb9@byu.net>
30332
30333         fpurge: don't wrap working cygwin implementation
30334         * lib/fpurge.c (fpurge): Fix comment typo.
30335         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
30336         1.7 to avoid replacement.
30337         * tests/test-fpurge.c (main): Enhance test.
30338
30339 2009-08-15  Eric Blake  <ebb9@byu.net>
30340         and Jim Meyering  <meyering@redhat.com>
30341
30342         test-update-copyright: skip if perl is insufficient
30343         * tests/test-update-copyright.sh: Failure to run maintainer tool
30344         should not cause testsuite failure on cygwin 1.5.
30345
30346 2009-08-14  Eric Blake  <ebb9@byu.net>
30347
30348         doc: mention more functions added in cygwin 1.7.0
30349         * doc/posix-headers/limits.texi (limits.h): Update for recent
30350         cygwin additions.
30351         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
30352         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
30353         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
30354         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
30355         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
30356
30357 2009-08-14  Eric Blake  <ebb9@byu.net>
30358
30359         maint.mk: simplify update-copyright rule
30360         * top/maint.mk (update-copyright-local): Delete, and document how
30361         to do it in cfg.mk instead.
30362         (update-copyright-exclude-regexp): Delete, and document how to do
30363         it in .x-update-copyright instead.
30364         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
30365         exclude ChangeLog.
30366
30367 2009-08-14  Bruno Haible  <bruno@clisp.org>
30368
30369         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
30370
30371 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30372
30373         maint.mk: support update-copyright-env
30374         * top/maint.mk (update-copyright-env): Define place-holder.
30375         (update-copyright): Expand $(update-copyright-env) before
30376         invoking update-copyright.
30377
30378 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30379
30380         update-copyright: implement forced reformatting
30381         * build-aux/update-copyright: Implement and document
30382         UPDATE_COPYRIGHT_FORCE.
30383         * tests/test-update-copyright.sh: Test it.
30384
30385 2009-08-14  Eric Blake  <ebb9@byu.net>
30386         and Bruno Haible  <bruno@clisp.org>
30387
30388         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
30389         * tests/test-locale.c: Revert previous patch related to NULL.
30390         * tests/test-stdio.c: Likewise.
30391         * tests/test-stdlib.c: Likewise.
30392         * tests/test-string.c: Likewise.
30393         * tests/test-unistd.c: Likewise.
30394         * modules/time-tests (Depends-on): Add verify.
30395         * modules/wchar-tests (Depends-on): Likewise.
30396         * tests/test-time.c: Test for NULL compliance.
30397         * tests/test-wchar.c: Likewise.
30398         * modules/locale (Depends-on): Add stddef.
30399         * modules/stdio (Depends-on): Likewise.
30400         * modules/stdlib (Depends-on): Likewise.
30401         * modules/string (Depends-on): Likewise.
30402         * modules/time (Depends-on): Likewise.
30403         * modules/unistd (Depends-on): Likewise.
30404         * modules/wchar (Depends-on): Likewise.
30405         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
30406         * lib/stdlib.in.h (includes): Likewise.
30407         * lib/string.in.h (includes): Likewise.
30408         * lib/time.in.h (includes): Likewise.
30409         * lib/unistd.in.h (includes): Likewise.
30410         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
30411         replaced.
30412         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30413         * m4/stddef_h.m4: New file.
30414         * modules/stddef: Likewise.
30415         * lib/stddef.in.h: Likewise.
30416         * modules/stddef-tests: Likewise.
30417         * tests/test-stddef.c: Likewise.
30418         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
30419         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
30420         * doc/posix-headers/locale.texi (locale.h): Likewise.
30421         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
30422         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30423         * doc/posix-headers/string.texi (string.h): Likewise.
30424         * doc/posix-headers/time.texi (time.h): Likewise.
30425         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
30426         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
30427
30428 2009-08-14  Eric Blake  <ebb9@byu.net>
30429
30430         doc: improve git diff of texinfo files
30431         * .gitattributes: Add rule for *.texi files, with hint on how to
30432         use it.
30433         Copied from m4, and based on a report by Bruno Haible.
30434
30435 2009-08-14  Bruno Haible  <bruno@clisp.org>
30436
30437         Disable multithread support by default on Cygwin 1.5.x for real.
30438         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
30439
30440 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
30441
30442         update-copyright: much ado about intervals
30443         * build-aux/update-copyright: Implement and document
30444         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
30445         of copyright year intervals.
30446         Also, document UPDATE_COPYRIGHT_YEAR.
30447         * tests/test-update-copyright.sh: Test it.
30448
30449         update-copyright: convert 2-digit to 4-digit years
30450         * build-aux/update-copyright: Implement and document.
30451         * tests/test-update-copyright.sh: Update.
30452
30453 2009-08-14  Jim Meyering  <meyering@redhat.com>
30454
30455         test-exclude: avoid coreutils "make check" failure
30456         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
30457         just as in test-argmatch.c.
30458
30459 2009-08-13  Eric Blake  <ebb9@byu.net>
30460
30461         test-dup2: fix bad assumption
30462         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
30463         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
30464
30465         test-version-etc: fix CRLF portability issue
30466         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
30467         recognize \r.
30468         * tests/test-argp-version-etc-1.sh: Likewise.
30469
30470         getopt: update client modules
30471         * modules/argp (Depends-on): Use getopt-gnu.
30472         * modules/git-merge-changelog (Depends-on): Likewise.
30473         * modules/long-options (Depends-on): Likewise.
30474         * modules/xstrtol (Depends-on): Likewise.
30475
30476 2009-08-13  Simon Josefsson  <simon@josefsson.org>
30477
30478         * tests/test-version-etc.sh: Don't fail on different
30479         project/version.  Don't fail on CRLF differences.  Rewrite to use
30480         multiple -e instead of multiple sed forks, suggested by Eric Blake
30481         <ebb9@byu.net>.
30482         * tests/test-argp-version-etc-1.sh: Likewise.
30483
30484 2009-08-13  Simon Josefsson  <simon@josefsson.org>
30485
30486         * tests/test-version-etc.sh: Don't fail on different
30487         project/version.
30488
30489 2009-08-12  Bruno Haible  <bruno@clisp.org>
30490
30491         Tests for modules 'getopt-posix', 'getopt-gnu'.
30492         * modules/getopt-posix-tests: New file.
30493         * tests/test-getopt.c: New file.
30494         * tests/test-getopt.h: New file.
30495         * tests/test-getopt_long.h: New file.
30496
30497         New modules 'getopt-posix', 'getopt-gnu'.
30498         * modules/getopt-gnu: New file, renamed from modules/getopt.
30499         * modules/getopt-posix: New file.
30500         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
30501         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
30502         (gl_GETOPT): Remove macro.
30503         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
30504         Disable the test against BSD systems that declare optreset. Test
30505         against mingw bug. Test against lack of support of optional arguments
30506         on many platforms.
30507         * doc/glibc-headers/getopt.texi: Update module name and list of
30508         relevant platforms.
30509         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
30510         'getopt-gnu' and more portability problems.
30511         * NEWS: Mention the changes.
30512
30513 2009-08-12  Bruno Haible  <bruno@clisp.org>
30514
30515         Ensure that optarg etc. get declared by <unistd.h>.
30516         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
30517         AC_USE_SYSTEM_EXTENSIONS.
30518         * modules/getopt (Depends-on): Add 'extensions'.
30519
30520 2009-08-12  Bruno Haible  <bruno@clisp.org>
30521
30522         Avoid test link errors.
30523         * modules/pipe-filter-ii-tests (Makefile.am): Define
30524         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
30525         * modules/pipe-filter-gi-tests (Makefile.am): Define
30526         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
30527         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30528
30529 2009-08-12  Bruno Haible  <bruno@clisp.org>
30530
30531         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
30532         gl_GETOPT_SUBSTITUTE before.
30533         (gl_GETOPT): Use it.
30534         * m4/argp.m4 (gl_ARGP): Update.
30535         Reported by Sergey Poznyakoff.
30536
30537         * m4/getopt.m4: Reorder macros.
30538         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
30539         (gl_GETOPT_SUBSTITUTE): Remove macro.
30540
30541 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30542
30543         Minor improvement in gitlog-to-changelog
30544
30545         * build-aux/gitlog-to-changelog: New option `--format' makes
30546         output format string configurable.
30547
30548 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30549
30550         Optimize exclude: use hash tables for non-wildcard patterns.
30551
30552         * lib/exclude.c: Include hash.h and mbuiter.h
30553         (struct exclude_pattern, exclude_segment): New data types.
30554         (struct exclude): Rewrite.
30555         (fnmatch_pattern_has_wildcards): New function.
30556         (new_exclude_segment, free_exclude_segment): New functions.
30557         (excluded_file_pattern_p, excluded_file_name_p): New functions.
30558         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
30559         * lib/exclude.h (is_fnmatch_pattern): New prototype.
30560         * modules/exclude: Depend on hash and mbuiter.
30561
30562         * modules/exclude-tests: New file.
30563         * tests/test-exclude.c: New file.
30564         * tests/test-exclude1.sh: New file.
30565         * tests/test-exclude2.sh: New file.
30566         * tests/test-exclude3.sh: New file.
30567         * tests/test-exclude4.sh: New file.
30568         * tests/test-exclude5.sh: New file.
30569         * tests/test-exclude6.sh: New file.
30570         * tests/test-exclude7.sh: New file.
30571
30572 2009-08-12  Bruno Haible  <bruno@clisp.org>
30573
30574         Ensure that getopt() gets declared by <unistd.h>.
30575         * lib/unistd.in.h: Conditionally include getopt.h.
30576         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
30577         Set GNULIB_UNISTD_H_GETOPT.
30578         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30579         GNULIB_UNISTD_H_GETOPT.
30580         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
30581
30582 2009-08-12  Bruno Haible  <bruno@clisp.org>
30583
30584         Clarify logic.
30585         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
30586         gl_replace_getopt instead of GETOPT_H.
30587
30588 2009-08-12  Bruno Haible  <bruno@clisp.org>
30589
30590         * m4/getopt.m4: Add comments.
30591
30592 2009-08-12  Bruno Haible  <bruno@clisp.org>
30593
30594         Disable multithread support by default on Cygwin 1.5.x.
30595         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
30596         set gl_use_threads=no if not specified otherwise.
30597
30598 2009-08-11  Bruno Haible  <bruno@clisp.org>
30599
30600         Avoid compilation error on NetBSD 5.0.
30601         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
30602         * tests/test-stdio.c: Likewise.
30603         * tests/test-stdlib.c: Likewise.
30604         * tests/test-string.c: Likewise.
30605         * tests/test-unistd.c: Likewise.
30606         Reported by Greg Troxel <gdt@ir.bbn.com>
30607         at <https://savannah.gnu.org/support/?106973>.
30608
30609 2009-08-11  Bruno Haible  <bruno@clisp.org>
30610
30611         * modules/dup2-tests (Depends-on): Remove close.
30612
30613         Undo 2009-07-19 commit.
30614         * modules/acl-tests (Depends-on): Remove close.
30615         * modules/binary-io-tests (Depends-on): Likewise.
30616         * modules/closein-tests (Depends-on): Likewise.
30617         * modules/flock-tests (Depends-on): Likewise.
30618         * modules/fsync-tests (Depends-on): Likewise.
30619         * modules/lseek-tests (Depends-on): Likewise.
30620         * modules/pipe-tests (Depends-on): Likewise.
30621         * modules/posix_spawn-tests (Depends-on): Likewise.
30622         * modules/posix_spawnp-tests (Depends-on): Likewise.
30623         * modules/stat-time-tests (Depends-on): Likewise.
30624         * modules/yesno-tests (Depends-on): Likewise.
30625
30626 2009-08-10  Bruno Haible  <bruno@clisp.org>
30627
30628         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
30629
30630 2009-08-10  Bruno Haible  <bruno@clisp.org>
30631
30632         Fix a gcc warning.
30633         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
30634
30635 2009-08-10  Bruno Haible  <bruno@clisp.org>
30636
30637         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
30638         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
30639         not only the first time.
30640         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
30641         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
30642         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
30643         is 1, not only the the first time.
30644
30645 2009-08-10  Bruno Haible  <bruno@clisp.org>
30646
30647         Make it possible to use module 'gethostname' without module 'close'.
30648         * lib/unistd.in.h (close): Evoke a link error only if
30649         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
30650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30651         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30652         * modules/unistd (Makefile.am): Substitute
30653         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30654         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
30655         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
30656         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30657         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30658         * modules/sys_ioctl (Makefile.am): Substitute
30659         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30660         * modules/socket (configure.ac): On native Windows, set
30661         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
30662         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
30663         Reported by Sam Steingold <sds@gnu.org>.
30664
30665 2009-08-10  Bruno Haible  <bruno@clisp.org>
30666
30667         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
30668         * modules/ioctl (configure.ac): Likewise.
30669
30670 2009-08-10  Bruno Haible  <bruno@clisp.org>
30671
30672         Avoid collision between gnulib wrapper and libintl wrapper.
30673         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
30674         already defined in intl/printf.c.
30675         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
30676         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
30677
30678 2009-08-09  Bruno Haible  <bruno@clisp.org>
30679
30680         Make <sys/select.h> really self-contained, also on Solaris 10.
30681         * lib/sys_select.in.h: Include <string.h>.
30682         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
30683         Solaris 10 problem.
30684         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
30685         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
30686         Reported by Jim Meyering.
30687
30688 2009-08-09  Bruno Haible  <bruno@clisp.org>
30689
30690         Avoid warnings from 'aclocal' that are due to a use of macro name
30691         AM_XGETTEXT_OPTION that is not defined in automake.
30692         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
30693         automake.
30694         * modules/error (configure.ac): Likewise.
30695         * modules/propername (configure.ac): Likewise.
30696         * modules/vasprintf (configure.ac): Likewise.
30697         * modules/verror (configure.ac): Likewise.
30698         * modules/xprintf (configure.ac): Likewise.
30699         * modules/xvasprintf (configure.ac): Likewise.
30700
30701 2009-08-08  Bruno Haible  <bruno@clisp.org>
30702
30703         Avoid compilation error in C++ mode.
30704         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
30705         Reported by Sam Steingold <sds@gnu.org>.
30706
30707 2009-08-08  Bruno Haible  <bruno@clisp.org>
30708
30709         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
30710         for the various Unix platforms.
30711         * doc/posix-headers/limits.texi: Update platforms list regarding
30712         HOST_NAME_MAX.
30713         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30714
30715 2009-08-07  Jim Meyering  <meyering@redhat.com>
30716
30717         selinux-at: fix typo in a comment
30718         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
30719         Spotted by Paolo Bonzini.
30720
30721         selinux-at: remove redundant m4 code, add documentation
30722         * modules/selinux-at (configure.ac): Remove redundant code.
30723         LIB_SELINUX is already set via the dependent module, selinux-h.
30724         (Include): Add quotes around selinux-at.h.
30725         * lib/selinux-at.h: Add documentation.
30726         Reported by Bruno Haible in
30727         http://marc.info/?l=gnulib-bug&m=124958988300749
30728
30729 2009-08-07  Bruno Haible  <bruno@clisp.org>
30730
30731         Avoid link error on MacOS X 10.3 and 10.4.
30732         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
30733         on non-ELF systems.
30734         * lib/argp-pv.c (argp_program_version): Likewise.
30735         Reported by Simon Josefsson.
30736
30737 2009-08-07  Simon Josefsson  <simon@josefsson.org>
30738
30739         * tests/test-version-etc.sh: Use $EXEEXT.
30740
30741 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
30742
30743         update-copyright: update documentation to point to maint.mk
30744         * build-aux/update-copyright: Here.
30745
30746 2009-08-06  Jim Meyering  <meyering@redhat.com>
30747
30748         maint.mk: support update-copyright-local
30749         * top/maint.mk (update-copyright-local): Define place-holder.
30750         (update-copyright): Depend on $(update-copyright-local).
30751
30752 2009-08-06  Jim Meyering  <meyering@redhat.com>
30753
30754         selinux-at: new module
30755         Initially written for coreutils, this module will soon be
30756         used by findutils, too.
30757         * MODULES.html.sh [Misc]: Add selinux-at.
30758         * lib/selinux-at.h: New file, from coreutils.
30759         * lib/selinux-at.c: Likewise.
30760         * modules/selinux-at: Likewise.
30761         (License): Change from LGPL to GPL, since it depends
30762         on the GPL'd openat module.
30763
30764         doc: update README
30765         * README: Remove references to cogito.
30766         Remove cvs-repo-updating instructions from 2007.
30767         Don't imply that CVS is better if you have limited disk space.
30768
30769 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30770
30771         update-copyright: support C-style comments
30772         * build-aux/update-copyright: Implement and document.
30773         * tests/test-update-copyright.sh: Test.
30774
30775 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30776
30777         update-copyright: support omitted "(C)"
30778         * build-aux/update-copyright: Implement and document.  Also,
30779         allow variable whitespace before "(C)".
30780         * tests/test-update-copyright.sh: Test.
30781
30782 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30783
30784         update-copyright: don't trip on non-FSF copyright statements
30785         * build-aux/update-copyright: Fix so that the first correctly
30786         formatted FSF copyright statement is recognized no matter what
30787         appears before it.  Update documentation.
30788         * tests/test-update-copyright.sh: Test that.
30789
30790 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30791
30792         update-copyright: clean up code a little
30793         * build-aux/update-copyright: Append "_re" to the name of any
30794         variable holding a regular expression.
30795         Replace "old" and "new" with "stmt" in variable names.
30796         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
30797         handled correctly.
30798         Format code more consistently.
30799
30800 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
30801
30802         update-copyright-tests: improve portability
30803         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
30804         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
30805
30806 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
30807
30808         update-copyright: support @copyright{} and &copy;
30809         * build-aux/update-copyright: Implement and document.
30810         * tests/test-update-copyright.sh: Test.
30811
30812 2009-08-04  Jim Meyering  <meyering@redhat.com>
30813
30814         update-copyright-tests: correctly test EOL=\r\n handling
30815         * tests/test-update-copyright.sh: Put \r at the end of some lines
30816         for the dos-eol tests.  Based on a patch by Joel E. Denny.
30817
30818         maint.mk: make update-copyright exclusion list more configurable
30819         * top/maint.mk (update-copyright): Default to excluding COPYING,
30820         but allow an override, in case someone does want to update that file.
30821
30822         maint.mk: don't update copyright date in COPYING
30823         * top/maint.mk (update-copyright): Exclude COPYING.
30824
30825         maint.mk: add a copyright-updating rule
30826         * top/maint.mk (update-copyright): New rule.
30827         Derived from coreutils/Makefile.am.
30828
30829         update-copyright: rename some variables
30830         * build-aux/update-copyright: Rename a few variables for clarity.
30831         Tweak syntax.  List Joel E. Denny as coauthor.
30832
30833 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
30834
30835         update-copyright: fix bug for 2-digit last year and add tests
30836         * build-aux/update-copyright: Fix bug.
30837         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
30838         specified.
30839         * modules/update-copyright-tests: New
30840         * tests/test-update-copyright.sh: New.
30841
30842 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30843
30844         update-copyright: handle leading tabs in line prefix
30845         * build-aux/update-copyright: Count leading tabs as 8 spaces
30846         when computing margin.  This helps with the formatting of
30847         ChangeLogs, for example.
30848         Fix documentation a little.
30849
30850 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30851
30852         update-copyright: support EOL=\r\n
30853         * build-aux/update-copyright: Implement that.
30854
30855 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
30856
30857         update-copyright: automatically format copyright statements
30858         * build-aux/update-copyright: Implement that.
30859         Also, be a little more predictable and safer by always failing
30860         when the full copyright format is not perfectly recognized as an
30861         unbroken whole.  Discussed at
30862         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
30863         Rewrite documentation.
30864
30865 2009-08-03  Bruno Haible  <bruno@clisp.org>
30866
30867         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
30868
30869 2009-08-02  Bruno Haible  <bruno@clisp.org>
30870
30871         Tests for module 'uname'.
30872         * modules/uname-tests: New file.
30873         * tests/test-uname.c: New file.
30874
30875         New module 'uname'.
30876         * lib/uname.c: New file.
30877         * m4/uname.m4: New file.
30878         * modules/uname: New file.
30879         * doc/posix-functions/uname.texi: Mention the new module.
30880
30881 2009-08-02  Bruno Haible  <bruno@clisp.org>
30882
30883         Tests for module 'sys_utsname'.
30884         * modules/sys_utsname-tests: New file.
30885         * tests/test-sys_utsname.c: New file.
30886
30887         New module 'sys_utsname'.
30888         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
30889         * m4/sys_utsname_h.m4: New file.
30890         * modules/sys_utsname: New file.
30891         * doc/posix-headers/sys_utsname.texi: Mention the new module.
30892
30893 2009-08-02  Bruno Haible  <bruno@clisp.org>
30894
30895         Implicitly initialize the sockets library.
30896         * lib/gethostname.c: Include sockets.h.
30897         (rpl_gethostname): Invoke gl_sockets_startup.
30898         * lib/socket.c: Include sockets.h.
30899         (rpl_socket): Invoke gl_sockets_startup.
30900         * modules/gethostname (Depends-on): Add sockets.
30901         * modules/socket (Depends-on): Likewise.
30902         * tests/test-poll.c: Don't include sockets.h.
30903         (main): Don't invoke gl_sockets_startup.
30904         * tests/test-select.c: Don't include sockets.h.
30905         (main): Don't invoke gl_sockets_startup.
30906
30907 2009-08-02  Bruno Haible  <bruno@clisp.org>
30908
30909         Allow multiple calls to gl_sockets_startup.
30910         * lib/sockets.c (initialized_sockets_version): New variable.
30911         (gl_sockets_startup): Do nothing if already called for this or a higher
30912         version.
30913         (gl_sockets_cleanup): Reset initialized_sockets_version.
30914
30915 2009-08-03  Simon Josefsson  <simon@josefsson.org>
30916
30917         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
30918         different project/version.
30919
30920 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
30921             Bruno Haible  <bruno@clisp.org>
30922
30923         Tests for module 'pipe-filter-gi'.
30924         * modules/pipe-filter-gi-tests: New file.
30925         * tests/test-pipe-filter-gi1.sh: New file.
30926         * tests/test-pipe-filter-gi1.c: New file.
30927         * tests/test-pipe-filter-gi2.sh: New file.
30928         * tests/test-pipe-filter-gi2-main.c: New file.
30929         * tests/test-pipe-filter-gi2-child.c: New file.
30930
30931         New module 'pipe-filter-gi'.
30932         * lib/pipe-filter-gi.c: New file.
30933         * modules/pipe-filter-gi: New file.
30934
30935 2009-08-02  Bruno Haible  <bruno@clisp.org>
30936             Paolo Bonzini  <bonzini@gnu.org>
30937
30938         Tests for module 'pipe-filter-ii'.
30939         * modules/pipe-filter-ii-tests: New file.
30940         * tests/test-pipe-filter-ii1.sh: New file.
30941         * tests/test-pipe-filter-ii1.c: New file.
30942         * tests/test-pipe-filter-ii2.sh: New file.
30943         * tests/test-pipe-filter-ii2-main.c: New file.
30944         * tests/test-pipe-filter-ii2-child.c: New file.
30945
30946         New module 'pipe-filter-ii'.
30947         * lib/pipe-filter.h: New file.
30948         * lib/pipe-filter-ii.c: New file.
30949         * lib/pipe-filter-aux.h: New file.
30950         * modules/pipe-filter-ii: New file.
30951
30952 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30953
30954         * lib/gc-libgcrypt.c: Change copyright to FSF.
30955         * lib/gc-gnulib.c: Likewise.
30956
30957 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
30958
30959         * lib/gethostname.c: Include limits.h.
30960
30961 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30962             Bruno Haible  <bruno@clisp.org>
30963
30964         Ensure HOST_NAME_MAX as part of the gethostname module.
30965         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
30966         define also HOST_NAME_MAX.
30967         * tests/test-gethostname.c: Include <limits.h>.
30968         (main): Check also HOST_NAME_MAX.
30969         * doc/posix-headers/limits.texi: Document the mingw problem.
30970
30971 2009-08-02  Bruno Haible  <bruno@clisp.org>
30972
30973         * lib/gethostname.c (gethostname): Fix handling of large len argument.
30974         Add comments.
30975
30976 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30977
30978         * lib/gethostname.c: Add Windows wrapper.
30979         * m4/gethostname.m4: Look for gethostname in -lws2_32.
30980         * modules/gethostname: Depend on sys_socket & errno, for also
30981         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
30982         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
30983
30984 2009-07-31  Jim Meyering  <meyering@redhat.com>
30985
30986         getloadavg: fix symbol name in comment
30987         * lib/getloadavg.c: Correct a typo I introduced when adding
30988         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
30989         Matt Kraai spotted the problem.
30990
30991 2009-07-29  Matt Kraai  <mkraai@beckman.com>
30992
30993         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
30994         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
30995         code also if ! defined N_NAME_POINTER.
30996         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
30997         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
30998         but the n_name member is a 12-byte array.
30999
31000 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
31001
31002         update-copyright: generalize comment handling
31003         * build-aux/update-copyright: Handle copyright statements
31004         within more comment styles.
31005         Document usage.
31006         Report any file with an external copyright holder or parse failure.
31007
31008 2009-07-29  Jim Meyering  <meyering@redhat.com>
31009
31010         mktime: correct setting of REPLACE_MKTIME
31011         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
31012
31013         update-copyright: new module
31014         * modules/update-copyright: New file.
31015         * build-aux/update-copyright: New file.
31016         * MODULES.html.sh (maint+release support): Add update-copyright.
31017
31018 2009-07-27  Bruno Haible  <bruno@clisp.org>
31019
31020         Fix compilation error when <ctime> is used and mktime is replaced.
31021         * lib/time.in.h (mktime): New declaration.
31022         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
31023         REPLACE_MKTIME instead of defining mktime in config.h.
31024         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
31025         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
31026         Reported by Ross McFarland <rwmcfa1@neces.com>.
31027
31028 2009-07-27  Bruno Haible  <bruno@clisp.org>
31029
31030         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
31031         Reported by Matt Kraai <mkraai@beckman.com>.
31032
31033 2009-07-25  Jim Meyering  <meyering@redhat.com>
31034
31035         maint.mk: avoid warnings about missing files
31036         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
31037         diagnostic when .prev-version does not exist.
31038         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
31039         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
31040         nonexistent cfg.mk.
31041         Suggestions from Simon Josefsson.
31042
31043 2009-07-25  Bruno Haible  <bruno@clisp.org>
31044
31045         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
31046         defined as macros. Needed on QNX 6.4.1.
31047         Reported by Matt Kraai <mkraai@beckman.com>.
31048
31049 2009-07-23  Jim Meyering  <meyering@redhat.com>
31050
31051         maint.mk: invoke "make dist" with a working value of XZ_OPT
31052         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
31053
31054 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
31055
31056         Make fseeko.c compile on QNX.
31057         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
31058
31059 2009-07-22  Peter Simons  <simons@cryp.to>
31060
31061         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
31062         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
31063         * lib/md4.h: Likewise.
31064         * lib/md5.h: Likewise.
31065         * lib/sha1.h: Likewise.
31066         * lib/sha256.h: Likewise.
31067         * lib/sha512.h: Likewise.
31068
31069         tests-sha1: don't assign literal string to 'char *' variable
31070         * tests/test-sha1.c (main): Declare locals with "const" to match
31071         attributes of the right hand side.
31072
31073 2009-07-21  Eric Blake  <ebb9@byu.net>
31074
31075         dup2: fix more mingw problems
31076         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
31077         fd to itself.
31078         * doc/posix-functions/dup2.texi (dup2): Document the bug.
31079         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
31080         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
31081         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
31082         care of mingw bugs.
31083
31084 2009-07-21  Jim Meyering  <meyering@redhat.com>
31085
31086         vc-list-files: avoid failure when /bin/sh is dash
31087         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
31088         On some Debian based systems, /bin/sh is a symlink to dash, and running
31089         this command would omit the "/" following each 'tests' prefix:
31090           dash -x build-aux/vc-list-files -C . tests
31091         That is because bash and dash work differently:
31092           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
31093           bash ok
31094           dash odd
31095
31096 2009-07-21  Eric Blake  <ebb9@byu.net>
31097
31098         dup2-tests: test previous patch
31099         * modules/dup2-tests: New file.
31100         * tests/test-dup2.c: Likewise.
31101         * tests/test-open.c (main): Avoid unspecified behavior.
31102         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
31103         test.
31104
31105         dup2: work around mingw and cygwin 1.5 bug
31106         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
31107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31108         * modules/unistd (Makefile.am): Substitute it.
31109         * lib/unistd.in.h (dup2): Declare the replacement.
31110         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
31111         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
31112         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
31113         * modules/execute (Depends-on): Add dup2.
31114         * modules/fseterr (Depends-on): Likewise.
31115         * modules/pipe (Depends-on): Likewise.
31116         * modules/posix_spawn-internal (Depends-on): Likewise.
31117
31118 2009-07-21  Bruno Haible  <bruno@clisp.org>
31119
31120         * modules/.gitattributes: New file.
31121
31122 2009-07-20  Bruno Haible  <bruno@clisp.org>
31123
31124         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
31125         (main): Use it.
31126
31127 2009-07-20  Eric Blake  <ebb9@byu.net>
31128
31129         test-pipe: make a bit more robust.
31130         * tests/test-pipe.c (myerr): Allow error messages regardless of
31131         what we do to stderr.
31132         (test_pipe): Rearrange to avoid deadlock.
31133         (child_main): Try a larger read, to ensure we avoided deadlock.
31134         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
31135         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
31136         if misused.
31137
31138 2009-07-19  Jim Meyering  <meyering@redhat.com>
31139
31140         fts: avoid false-positive cycle-detection
31141         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
31142         for each new command line argument.
31143
31144 2009-07-19  Bruno Haible  <bruno@clisp.org>
31145
31146         Fix build error on mingw with the modules sys_select and unistd.
31147         * modules/acl-tests (Depends-on): Add close.
31148         * modules/binary-io-tests (Depends-on): Likewise.
31149         * modules/closein-tests (Depends-on): Likewise.
31150         * modules/flock-tests (Depends-on): Likewise.
31151         * modules/fsync-tests (Depends-on): Likewise.
31152         * modules/lseek-tests (Depends-on): Likewise.
31153         * modules/pipe-tests (Depends-on): Likewise.
31154         * modules/posix_spawn-tests (Depends-on): Likewise.
31155         * modules/posix_spawnp-tests (Depends-on): Likewise.
31156         * modules/stat-time-tests (Depends-on): Likewise.
31157         * modules/yesno-tests (Depends-on): Likewise.
31158
31159 2009-07-19  Bruno Haible  <bruno@clisp.org>
31160
31161         Unify conditionals.
31162         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
31163         macros, not at the compiler macros.
31164         * lib/pipe.c: Likewise.
31165         * lib/execute.c: Likewise.
31166         * lib/spawni.c: Likewise.
31167
31168 2009-07-19  Bruno Haible  <bruno@clisp.org>
31169
31170         Fix handling of closed stdin/stdout/stderr on mingw.
31171         * lib/w32spawn.h: Include unistd.h.
31172         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
31173         file descriptor with O_NOINHERIT flag.
31174         (fd_safer_noinherit): New function, based on fd-safer.c.
31175         (dup_safer_noinherit): New function, based on dup-safer.c.
31176         (undup_safer_noinherit): New function.
31177         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
31178         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
31179         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
31180         instead of fd_safer.
31181         * tests/test-pipe.c: Include <windows.h>.
31182         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
31183         result.
31184
31185         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
31186         from main.
31187         (test_pipe): Pass an extra argument for disambiguation.
31188         (main): Invoke parent_main or child_main.
31189
31190         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
31191         consistently.
31192
31193 2009-07-18  Eric Blake  <ebb9@byu.net>
31194
31195         test-pipe: fix mingw build
31196         * tests/test-pipe.c (main): Avoid fcntl on mingw.
31197
31198 2009-07-18  Bruno Haible  <bruno@clisp.org>
31199
31200         * modules/pipe-tests (Makefile.am): Fix typo.
31201
31202 2009-07-18  Eric Blake  <ebb9@byu.net>
31203
31204         error: fix mingw build
31205         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
31206         Reported by Bruno Haible.
31207
31208         error: avoid undefined use of stdout
31209         * lib/error.c (error, error_at_line): Check that fd 1 is open
31210         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
31211         is handling faults and the close_stdout module wants to report the
31212         detection of closed stdout as an error.
31213
31214 2009-07-17  Eric Blake  <ebb9@byu.net>
31215
31216         pipe: be robust in face of closed fds
31217         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
31218         should cause child to misbehave.
31219         * modules/pipe-tests: New module.
31220         * tests/test-pipe.c: New file.
31221         * tests/test-pipe.sh: New file.
31222         Reported by Akim Demaille.
31223
31224 2009-07-14  Bruno Haible  <bruno@clisp.org>
31225
31226         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
31227         Reported by anonymous kc.
31228
31229 2009-07-07  Jim Meyering  <meyering@redhat.com>
31230
31231         maint.mk: don't look for translatable strings in *.m4 or *.mk
31232         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
31233         when searching for translatable strings.
31234
31235 2009-07-05  Jim Meyering  <meyering@redhat.com>
31236
31237         remove superfluous parentheses in STREQ definition
31238         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
31239         * lib/getugroups.c (STREQ): Likewise.
31240         * lib/fnmatch.c (STREQ): Likewise.
31241         Spotted by Bruno Haible.
31242
31243 2009-07-04  Jim Meyering  <meyering@redhat.com>
31244
31245         argv-iter: new module
31246         * MODULES.html.sh: Add argv-iter.
31247         * lib/argv-iter.c, lib/argv-iter.h: New files.
31248         * modules/argv-iter: New file.
31249         * modules/argv-iter-tests: New file.
31250         * tests/test-argv-iter.c: Test it.
31251
31252 2009-07-04  Bruno Haible  <bruno@clisp.org>
31253
31254         Fix assertion.
31255         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
31256         contains more exact copies of a given entry than file2, leave the extra
31257         copies unpaired rather than aborting.
31258         Reported by Eric Blake.
31259
31260 2009-07-02  Bruno Haible  <bruno@clisp.org>
31261
31262         Speedup git-merge-changelog for git cherry-pick.
31263         * lib/git-merge-changelog.c (struct entries_mapping): New type.
31264         (entries_mapping_get): New function, extracted from compute_mapping.
31265         (entries_mapping_reverse_get): New function.
31266         (compute_mapping): Add a 'full' argument. Return the result in a
31267         'struct entries_mapping'.
31268         (main): Update. Access the mappings through entries_mapping_get.
31269         Reported by Eric Blake.
31270
31271 2009-07-02  Bruno Haible  <bruno@clisp.org>
31272
31273         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
31274         best_i.
31275
31276 2009-07-02  Bruno Haible  <bruno@clisp.org>
31277
31278         Speed up approximate search for matching ChangeLog entries.
31279         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
31280         argument. Call fstrcmp_bounded instead of fstrcmp.
31281         (compute_mapping, try_split_merged_entry, main): Update callers.
31282
31283 2009-07-02  Bruno Haible  <bruno@clisp.org>
31284
31285         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
31286
31287 2009-06-30  Bruno Haible  <bruno@clisp.org>
31288
31289         Reduce the number of uc_is_cased calls.
31290         * lib/unicase.h (casing_suffix_context_t): Add
31291         'first_char_except_ignorable' field.
31292         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
31293         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
31294         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
31295         Update initializer.
31296         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
31297         case-ignorable characters.
31298         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
31299         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
31300         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
31301         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
31302         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
31303
31304 2009-06-30  Bruno Haible  <bruno@clisp.org>
31305
31306         Tests for module 'unicase/ignorable'.
31307         * modules/unicase/ignorable-tests: New file.
31308         * tests/unicase/test-ignorable.c: New file, generated by
31309         gen-uni-tables.
31310
31311         Tests for module 'unicase/cased'.
31312         * modules/unicase/cased-tests: New file.
31313         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
31314         * tests/unicase/test-predicate-part1.h: New file, derived from
31315         tests/unictype/test-predicate-part1.h.
31316         * tests/unicase/test-predicate-part2.h: New file, same as
31317         tests/unictype/test-predicate-part2.h.
31318
31319         Fix evaluation of "Before C" condition of FINAL_SIGMA.
31320         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
31321         (output_casing_properties): New function.
31322         (main): Call it.
31323         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
31324         * lib/unicase/cased.c: Include unictype/bitmap.h.
31325         (uc_is_cased): Define through a bitmap lookup.
31326         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
31327         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
31328         (uc_is_case_ignorable): Define through a bitmap lookup.
31329         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
31330         lib/unictype/bitmap.h.
31331         (Depends-on): Add inline. Clean up.
31332         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
31333         lib/unictype/bitmap.h.
31334         (Depends-on): Add inline. Clean up.
31335         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
31336         recognition.
31337         * tests/unicase/test-u16-tolower.c (main): Likewise.
31338         * tests/unicase/test-u32-tolower.c (main): Likewise.
31339
31340 2009-06-30  Bruno Haible  <bruno@clisp.org>
31341
31342         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
31343         * lib/unicase/u16-casemap.c: Likewise.
31344         * lib/unicase/u32-casemap.c: Likewise.
31345
31346 2009-06-29  Bruno Haible  <bruno@clisp.org>
31347
31348         Define u32_casefold as a wrapper around u32_ct_casefold.
31349         * lib/unicase/u32-casefold.c: Update.
31350         * modules/unicase/u32-casefold (Depends-on): Add
31351         unicase/u32-ct-casefold, unicase/empty-prefix-context,
31352         unicase/empty-suffix-context. Clean up.
31353
31354         Define u16_casefold as a wrapper around u16_ct_casefold.
31355         * lib/unicase/u16-casefold.c: Update.
31356         * modules/unicase/u16-casefold (Depends-on): Add
31357         unicase/u16-ct-casefold, unicase/empty-prefix-context,
31358         unicase/empty-suffix-context. Clean up.
31359
31360         Define u8_casefold as a wrapper around u8_ct_casefold.
31361         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
31362         * lib/unicase/u8-casefold.c: Update.
31363         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
31364         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31365
31366         Define u32_totitle as a wrapper around u32_ct_totitle.
31367         * lib/unicase/u32-totitle.c: Update.
31368         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
31369         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31370
31371         Define u16_totitle as a wrapper around u16_ct_totitle.
31372         * lib/unicase/u16-totitle.c: Update.
31373         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
31374         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31375
31376         Define u8_totitle as a wrapper around u8_ct_totitle.
31377         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
31378         functions.
31379         (FUNC): Delegate to U_CT_TOTITLE.
31380         * lib/unicase/u8-totitle.c: Update.
31381         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
31382         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
31383
31384         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
31385         invocation.
31386         * modules/unicase/u32-tolower (Depends-on): Add
31387         unicase/empty-prefix-context, unicase/empty-suffix-context.
31388
31389         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
31390         invocation.
31391         * modules/unicase/u16-tolower (Depends-on): Add
31392         unicase/empty-prefix-context, unicase/empty-suffix-context.
31393
31394         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
31395         * modules/unicase/u8-tolower (Depends-on): Add
31396         unicase/empty-prefix-context, unicase/empty-suffix-context.
31397
31398         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
31399         invocation.
31400         * modules/unicase/u32-toupper (Depends-on): Add
31401         unicase/empty-prefix-context, unicase/empty-suffix-context.
31402
31403         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
31404         invocation.
31405         * modules/unicase/u16-toupper (Depends-on): Add
31406         unicase/empty-prefix-context, unicase/empty-suffix-context.
31407
31408         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
31409         * modules/unicase/u8-toupper (Depends-on): Add
31410         unicase/empty-prefix-context, unicase/empty-suffix-context.
31411
31412         New module 'unicase/u32-ct-casefold'.
31413         * lib/unicase/u32-ct-casefold.c: New file.
31414         * modules/unicase/u32-ct-casefold: New file.
31415
31416         New module 'unicase/u16-ct-casefold'.
31417         * lib/unicase/u16-ct-casefold.c: New file.
31418         * modules/unicase/u16-ct-casefold: New file.
31419
31420         New module 'unicase/u8-ct-casefold'.
31421         * lib/unicase/u8-ct-casefold.c: New file.
31422         * lib/unicase/u-ct-casefold.h: New file, derived from
31423         lib/unicase/u-casefold.h.
31424         * modules/unicase/u8-ct-casefold: New file.
31425
31426         New module 'unicase/u32-ct-totitle'.
31427         * lib/unicase/u32-ct-totitle.c: New file.
31428         * modules/unicase/u32-ct-totitle: New file.
31429
31430         New module 'unicase/u16-ct-totitle'.
31431         * lib/unicase/u16-ct-totitle.c: New file.
31432         * modules/unicase/u16-ct-totitle: New file.
31433
31434         New module 'unicase/u8-ct-totitle'.
31435         * lib/unicase/u8-ct-totitle.c: New file.
31436         * lib/unicase/u-ct-totitle.h: New file, derived from
31437         lib/unicase/u-totitle.h.
31438         * modules/unicase/u8-ct-totitle: New file.
31439
31440         New module 'unicase/u32-ct-tolower'.
31441         * lib/unicase/u32-ct-tolower.c: New file.
31442         * modules/unicase/u32-ct-tolower: New file.
31443
31444         New module 'unicase/u16-ct-tolower'.
31445         * lib/unicase/u16-ct-tolower.c: New file.
31446         * modules/unicase/u16-ct-tolower: New file.
31447
31448         New module 'unicase/u8-ct-tolower'.
31449         * lib/unicase/u8-ct-tolower.c: New file.
31450         * modules/unicase/u8-ct-tolower: New file.
31451
31452         New module 'unicase/u32-ct-toupper'.
31453         * lib/unicase/u32-ct-toupper.c: New file.
31454         * modules/unicase/u32-ct-toupper: New file.
31455
31456         New module 'unicase/u16-ct-toupper'.
31457         * lib/unicase/u16-ct-toupper.c: New file.
31458         * modules/unicase/u16-ct-toupper: New file.
31459
31460         New module 'unicase/u8-ct-toupper'.
31461         * lib/unicase/u8-ct-toupper.c: New file.
31462         * modules/unicase/u8-ct-toupper: New file.
31463
31464         Add context arguments to u*_casemap functions.
31465         * lib/unicase/unicasemap.h: Include unicase.h.
31466         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
31467         suffix_context arguments.
31468         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
31469         functions.
31470         (FUNC): Add prefix_context and suffix_context arguments. Use
31471         uc_is_cased and uc_is_case_ignorable.
31472         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
31473         * lib/unicase/u16-casemap.c: Likewise.
31474         * lib/unicase/u32-casemap.c: Likewise.
31475         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
31476         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31477         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
31478         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31479         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
31480         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
31481
31482         New module 'unicase/u32-suffix-context'.
31483         * lib/unicase/u32-suffix-context.c: New file.
31484         * modules/unicase/u32-suffix-context: New file.
31485
31486         New module 'unicase/u16-suffix-context'.
31487         * lib/unicase/u16-suffix-context.c: New file.
31488         * modules/unicase/u16-suffix-context: New file.
31489
31490         New module 'unicase/u8-suffix-context'.
31491         * lib/unicase/u8-suffix-context.c: New file.
31492         * lib/unicase/u-suffix-context.h: New file.
31493         * modules/unicase/u8-suffix-context: New file.
31494
31495         New module 'unicase/empty-suffix-context'.
31496         * lib/unicase/empty-suffix-context.c: New file.
31497         * modules/unicase/empty-suffix-context: New file.
31498
31499         New module 'unicase/u32-prefix-context'.
31500         * lib/unicase/u32-prefix-context.c: New file.
31501         * modules/unicase/u32-prefix-context: New file.
31502
31503         New module 'unicase/u16-prefix-context'.
31504         * lib/unicase/u16-prefix-context.c: New file.
31505         * modules/unicase/u16-prefix-context: New file.
31506
31507         New module 'unicase/u8-prefix-context'.
31508         * lib/unicase/u8-prefix-context.c: New file.
31509         * lib/unicase/u-prefix-context.h: New file.
31510         * lib/unicase/context.h: New file.
31511         * modules/unicase/u8-prefix-context: New file.
31512
31513         New module 'unicase/empty-prefix-context'.
31514         * lib/unicase/empty-prefix-context.c: New file.
31515         * modules/unicase/empty-prefix-context: New file.
31516
31517         New module 'unicase/ignorable'.
31518         * lib/unicase/ignorable.c: New file.
31519         * modules/unicase/ignorable: New file.
31520
31521         New module 'unicase/cased'.
31522         * lib/unicase/caseprop.h: New file.
31523         * lib/unicase/cased.c: New file.
31524         * modules/unicase/cased: New file.
31525
31526         New functions for case mapping of substrings.
31527         * lib/unicase.h (casing_prefix_context_t): New type.
31528         (unicase_empty_prefix_context): New variable.
31529         (u8_casing_prefix_context, u16_casing_prefix_context,
31530         u32_casing_prefix_context, u8_casing_prefixes_context,
31531         u16_casing_prefixes_context, u32_casing_prefixes_context): New
31532         declarations.
31533         (casing_suffix_context_t): New type.
31534         (unicase_empty_suffix_context): New variable.
31535         (u8_casing_suffix_context, u16_casing_suffix_context,
31536         u32_casing_suffix_context, u8_casing_suffixes_context,
31537         u16_casing_suffixes_context, u32_casing_suffixes_context,
31538         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
31539         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
31540         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
31541         declarations.
31542
31543 2009-06-28  Jim Meyering  <meyering@redhat.com>
31544
31545         boostrap: indent only with spaces
31546         * build-aux/bootstrap: Indent only with spaces, never TABs.
31547
31548         bootstrap: split long lines
31549         * build-aux/bootstrap: Keep line length < 80.
31550
31551         bootstrap: sync from coreutils
31552         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
31553         just as autoreconf does.  Verify a list of prerequisite
31554         package-name,version-number pairs if defined in bootstrap.conf.
31555         Refer to README-prereq, if prerequisites are not satisfied.
31556
31557 2009-06-27  Eric Blake  <ebb9@byu.net>
31558
31559         tests: add test for bogus NULL definition
31560         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
31561         * tests/test-stdlib.c: Likewise.
31562         * tests/test-string.c: Likewise.
31563         * tests/test-locale.c: Likewise.
31564         * tests/test-unistd.c: Likewise.
31565         * modules/stdio-tests (Depends-on): Add verify.
31566         * modules/stdlib-tests (Depends-on): Likewise.
31567         * modules/string-tests (Depends-on): Likewise.
31568         * modules/locale-tests (Depends-on): Likewise.
31569         * modules/unistd-tests (Depends-on): Likewise.
31570
31571 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
31572
31573         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
31574         self-explaining comment.
31575         * m4/selinux-selinux-h: Update serial.
31576         (gl_LIBSELINUX): New macro, adding a warning for missing development
31577         packages to code extracted from...
31578         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
31579         Add warning for missing development packages here, too.
31580
31581 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
31582
31583         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
31584
31585 2009-06-25  Eric Blake  <ebb9@byu.net>
31586
31587         version-etc: fix regression
31588         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
31589         gcc.
31590         (version_etc): Use it, to catch bugs with trailing NULL.
31591         * lib/version-etc.c (version_etc_arn): Delete unused argument.
31592         (version_etc_va): Fix logic bug.
31593         * modules/version-etc-tests: Add test.
31594         * tests/test-version-etc.c: New file.
31595         * tests/test-version-etc.sh: Likewise.
31596
31597 2009-06-25  Sam Steingold  <sds@gnu.org>
31598
31599         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
31600         mbtowc declaration.
31601
31602 2009-06-25  Eric Blake  <ebb9@byu.net>
31603
31604         fpurge: migrate into <stdio.h>
31605         * lib/fpurge.h: Delete...
31606         * lib/stdio.in.h (fpurge): ...and declare here, instead.
31607         * lib/fpurge.c (fpurge): Change declaring header.
31608         * modules/fpurge (Files): Drop deleted file.
31609         (Depends-on): Add stdio.
31610         (configure.ac): Set witness.
31611         * modules/stdio (Makefile.am): Support fpurge macros.
31612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31613         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
31614         * lib/fflush.c: Update client.
31615         * tests/test-fpurge.c: Likewise.
31616         * NEWS: Mention the change.
31617
31618 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31619
31620         * lib/argp-version-etc.c (program_authors): Add const
31621         qualifier.
31622         * lib/version-etc.c: Fix typos in the comments.
31623         * modules/argp-version-etc: Depends on version-etc.
31624
31625 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31626
31627         argp-version-etc: new module.
31628
31629         * lib/argp-version-etc.c: New file.
31630         * lib/argp-version-etc.h: New file.
31631         * modules/argp-version-etc: New file.
31632         * modules/argp-version-etc-tests: New file.
31633         * tests/test-argp-version-etc.c: New test.
31634         * tests/test-argp-version-etc-1.sh: New test.
31635
31636 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
31637
31638         Provide additional interfaces and documentation for version-etc
31639         module.
31640
31641         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
31642         interfaces.
31643         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
31644         prototypes.
31645
31646 2009-06-24  Bruno Haible  <bruno@clisp.org>
31647
31648         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
31649         HAVE_LIB${NAME} macro.
31650         Reported by Sam Steingold <sds@gnu.org>.
31651
31652 2009-06-23  Simon Josefsson  <simon@josefsson.org>
31653
31654         * modules/hash-tests (test_hash_LDADD): Link to libintl when
31655         needed.
31656
31657 2009-06-21  Bruno Haible  <bruno@clisp.org>
31658
31659         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
31660         work.
31661         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
31662         together with LIB${NAME}, LTLIB${NAME}.
31663         Reported by Sam Steingold <sds@gnu.org>.
31664
31665 2009-06-20  Jim Meyering  <meyering@redhat.com>
31666
31667         tests: make sc_require_test_exit_idiom more generic
31668         * top/maint.mk (Exit_witness_file): New overridable variable.
31669         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
31670         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
31671
31672 2009-06-19  Jim Meyering  <meyering@redhat.com>
31673
31674         hash: reverse order of src/dst parameters in an internal interface
31675         * lib/hash.c (transfer_entries): Reverse order of parameters to
31676         put DST before SRC.  Adjust callers.
31677
31678         tests: test-hash: avoid wholesale duplication
31679         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
31680         Instead, use a loop and add a single conditional.
31681
31682         tests: test-hash: allow seed selection via a command line argument
31683         * tests/test-hash.c (get_seed): New function.
31684         (main): Use it.
31685
31686 2009-06-19  Eric Blake  <ebb9@byu.net>
31687
31688         hash: avoid memory leak on allocation failure
31689         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
31690         failure.  Factor repeated algorithm...
31691         (transfer_entries): ...into new helper routine.
31692         (hash_delete): React to hash_rehash return value.
31693
31694         hash: reduce memory pressure in hash_rehash no-op case
31695         * lib/hash.c (next_prime): Avoid overflow.
31696         (hash_initialize): Factor bucket size computation...
31697         (compute_bucket_size): ...into new helper function.
31698         (hash_rehash): Use new function and open coding to reduce memory
31699         pressure, and avoid a memory leak in USE_OBSTACK code.
31700         Reported by Jim Meyering.
31701
31702 2009-06-18  Eric Blake  <ebb9@byu.net>
31703
31704         hash: make rotation more obvious
31705         * modules/hash (Depends-on): Add bitrotate and stdint.
31706         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
31707         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
31708         (SIZE_MAX): Rely on headers for definition.
31709         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
31710         (raw_hasher): Use rotr_sz.
31711         Suggested by Jim Meyering.
31712
31713         hash: fix memory leak in last patch
31714         * lib/hash.c (hash_rehash): Avoid memory leak.
31715
31716         hash: avoid no-op rehashing
31717         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
31718
31719         hash: provide default callback functions
31720         * lib/hash.c (raw_hasher, raw_comparator): New functions.
31721         (hash_initialize): Use them as defaults.
31722         * tests/test-hash.c (main): Test this.
31723
31724         hash: minor optimization
31725         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
31726         when possible.
31727         (hash_initialize): Document this promise.
31728         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
31729         * tests/test-hash.c (hash_compare_strings): Test this.
31730
31731 2009-06-18  Bruno Haible  <bruno@clisp.org>
31732
31733         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
31734         going to be replaced anyway.
31735
31736 2009-06-18  Bruno Haible  <bruno@clisp.org>
31737
31738         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
31739         in one place.
31740         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
31741         be replaced anyway.
31742
31743 2009-06-18  Eric Blake  <ebb9@byu.net>
31744
31745         hash: check for resize before insertion
31746         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
31747         threshold before insertion, so that a pathological hash_rehash
31748         that fills every bucket can still trigger another rehash.
31749
31750 2009-06-18  Jim Meyering  <meyering@redhat.com>
31751
31752         hash-tests: add a loop around the small tests
31753         * tests/test-hash.c (main): Repeat small tests with selected
31754         small initial table sizes.
31755
31756 2009-06-17  Eric Blake  <ebb9@byu.net>
31757
31758         hash: minor cleanups
31759         * lib/hash.h (hash_entry): Make opaque, by moving...
31760         * lib/hash.c (hash_entry): ...here.
31761         (hash_insert): Clarify restrictions on what can be inserted.
31762         (hash_get_next): Clarify when it is safe to remove an element
31763         during traversal.
31764         (check_tuning): Skip verification when tuning is known safe.
31765         (hash_initialize): Clarify restrictions on tuning.
31766
31767 2009-06-17  Jim Meyering  <jim@meyering.net>
31768         and Eric Blake  <ebb9@byu.net>
31769
31770         hash-tests: new module
31771         * modules/hash-tests: New file.
31772         * tests/test-hash.c: New file.
31773
31774 2009-06-17  Eric Blake  <ebb9@byu.net>
31775
31776         strstr-simple: document new module
31777         * MODULES.html.sh: Document new module.
31778
31779         strstr, strcasestr: replace on platforms with broken memchr
31780         * modules/strstr: Split into...
31781         * modules/strstr-simple: ...new module that does not care about
31782         performance, but does care about glibc bug.
31783         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
31784         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
31785         if platform memchr is broken, per Debian bug 521737.
31786         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
31787         memchr.
31788         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
31789         * doc/posix-functions/strstr.texi (strstr): Document the fix.
31790         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
31791         * modules/mountlist (Depends-on): Add strstr-simple.
31792         * modules/gen-uni-tables (Depends-on): Likewise.
31793         * modules/argz (Depends-on): Add strstr.
31794
31795 2009-06-17  Bruno Haible  <bruno@clisp.org>
31796
31797         * modules/posix_spawn-internal (Depends-on): Add errno.
31798
31799 2009-06-17  Bruno Haible  <bruno@clisp.org>
31800
31801         Define missing ESTALE on Interix 3.5.
31802         * lib/errno.in.h (ESTALE): Assign a value if missing.
31803         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
31804         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
31805         missing.
31806         * doc/posix-headers/errno.texi: Mention the Interix bug.
31807         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
31808
31809 2009-06-15  Eric Blake  <ebb9@byu.net>
31810
31811         memchr, memchr2: add valgrind exception
31812         * lib/memchr.valgrind: New file.
31813         * lib/memchr2.valgrind: New file.
31814         * modules/memchr (Files): Distribute valgrind file.
31815         * modules/memchr2 (Files): Likewise.
31816
31817         docs: memchr is no longer obsolete
31818         * MODULES.html.sh: Move memchr from obsolete to string.h section.
31819         * lib/string.in.h (memchr): Simplify logic.
31820
31821 2009-06-14  Jim Meyering  <meyering@redhat.com>
31822
31823         link-follow: fix the "checking..." message to not mention trailing slash
31824         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
31825         never considered trailing slashes.
31826
31827 2009-06-14  Bruno Haible  <bruno@clisp.org>
31828
31829         * m4/memchr.m4: Mention also the bug on IA-64.
31830         * doc/posix-functions/memchr.texi: Likewise.
31831
31832 2009-06-12  Eric Blake  <ebb9@byu.net>
31833
31834         memchr: detect broken x86_64 and alpha implementations
31835         * modules/memchr-tests (Depends-on): Move mmap detection...
31836         * modules/memchr (Depends-on): ...here.
31837         (configure.ac): Set indicator.
31838         * lib/string.in.h (memchr): Declare replacement.
31839         * modules/string (Makefile.am): Trigger replacement.
31840         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
31841         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
31842         bugs.
31843         * doc/posix-functions/memchr.texi (memchr): Document the bug.
31844         * modules/getpagesize (License): Relax license.
31845
31846 2009-06-11  Bruno Haible  <bruno@clisp.org>
31847
31848         * lib/idpriv.h: Add more references.
31849
31850 2009-06-08  Bruno Haible  <bruno@clisp.org>
31851
31852         Tests for module 'idpriv-droptemp'.
31853         * modules/idpriv-droptemp-tests: New file.
31854         * tests/test-idpriv-droptemp.sh: New file.
31855         * tests/test-idpriv-droptemp.su.sh: New file.
31856         * tests/test-idpriv-droptemp.c: New file.
31857
31858         New module 'idpriv-droptemp'.
31859         * lib/idpriv-droptemp.c: New file.
31860         * modules/idpriv-droptemp: New file.
31861
31862 2009-06-08  Bruno Haible  <bruno@clisp.org>
31863
31864         Tests for module 'idpriv-drop'.
31865         * modules/idpriv-drop-tests: New file.
31866         * tests/test-idpriv-drop.sh: New file.
31867         * tests/test-idpriv-drop.su.sh: New file.
31868         * tests/test-idpriv-drop.c: New file.
31869
31870         New module 'idpriv-drop'.
31871         * lib/idpriv.h: New file.
31872         * lib-idpriv-drop.c: New file.
31873         * m4/idpriv.m4: New file.
31874         * modules/idpriv-drop: New file.
31875
31876 2009-06-08  Bruno Haible  <bruno@clisp.org>
31877
31878         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
31879         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31880         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31881         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31882         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31883         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31884         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31885
31886 2009-06-08  Eric Blake  <ebb9@byu.net>
31887
31888         test-strstr: use memory fence, when possible
31889         * tests/test-strstr.c (main): Use memory fence, in order to be
31890         more likely to trigger Debian bug 521737.
31891         * modules/strstr-tests (Files): Pull in additional files.
31892
31893         memchr: no longer obsolete, for wider field testing
31894         * modules/memchr (Status, Notice): Delete, this module is no
31895         longer obsolete.
31896         * modules/vasnprintf (Depends-on): Add memchr.
31897
31898 2009-06-07  Jim Meyering  <meyering@redhat.com>
31899
31900         hash: declare some functions with the warn_unused_result attribute
31901         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
31902
31903 2009-06-07  Bruno Haible  <bruno@clisp.org>
31904
31905         * tests/test-alignof.c: Don't test int64_t if it does not exist.
31906         Reported by Eric Blake.
31907
31908 2009-06-06  Eric Blake  <ebb9@byu.net>
31909
31910         test-alignof: fix typo with long double
31911         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
31912         compiler error.
31913
31914 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
31915
31916         Escape non-texinfo { and }s.
31917         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
31918         markup error.
31919
31920 2009-06-04  Jim Meyering  <meyering@redhat.com>
31921
31922         gitlog-to-changelog: don't infloop on an empty commit log
31923         * build-aux/gitlog-to-changelog: Warn about an empty log message.
31924         Reported by Boris Petersen <transacid@centerim.org>.
31925
31926 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
31927
31928         version-etc: extend for packagers
31929         Add three new configure options, intended for packagers:
31930           --with-packager="packager name"
31931           --with-packager-version="packager-specific version"
31932           --with-packager-bug-reports="packager bug reporting"
31933         An example with coreutils:
31934           $ ./configure \
31935             --with-packager=Gentoo \
31936             --with-packager-bug-report=http://bugs.gentoo.org/ \
31937             --with-packager-version="patchset 1.6"
31938           $ ./src/ls --version | head -n2
31939           ls (GNU coreutils) 7.1-dirty
31940           Packaged by Gentoo (patchset 1.6)
31941         Note that the bug reporting info via --help doesn't show up because
31942         coreutils uses its own custom emit_bug_reporting_address() implementation
31943         in src/system.h.  If it didn't, it'd look like:
31944           $ ./src/ls --help | tail -n4
31945           Report bugs to <bug-coreutils@gnu.org>.
31946           Report Gentoo bugs to <http://bugs.gentoo.org/>.
31947           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
31948           General help using GNU software: <http://www.gnu.org/gethelp/>.
31949         * lib/version-etc.c: Print new information, if provided.
31950         * m4/version-etc.m4: New file.
31951         * modules/version-etc (Files): Add m4/version-etc.m4.
31952         (configure.ac): Add gl_VERSION_ETC.
31953
31954 2009-05-31  Bruno Haible  <bruno@clisp.org>
31955
31956         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
31957         and 'int64_t'.
31958         * modules/alignof-tests (Dependencies): Add stdint.
31959         Reported by Eric Blake.
31960
31961 2009-05-31  Bruno Haible  <bruno@clisp.org>
31962
31963         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
31964         restriction due to compiler bugs.
31965         Reported by Eric Blake.
31966
31967 2009-05-31  Simon Josefsson  <simon@josefsson.org>
31968             Bruno Haible  <bruno@clisp.org>
31969
31970         Fix test-alignof failure.
31971         * lib/alignof.h (alignof_slot): New macro.
31972         (alignof_type): New macro, with the same semantics as the previous
31973         'alignof'.
31974         (alignof): Alias to alignof_slot.
31975         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
31976         check that the results are usable as constant expressions.
31977
31978 2009-05-31  Bruno Haible  <bruno@clisp.org>
31979
31980         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
31981         * tests/test-memchr.c (main): Check that memchr does not read past the
31982         first occurrence of the byte.
31983         * tests/test-strstr.c (main): Update comment.
31984         Suggested by Eric Blake.
31985
31986 2009-05-30  Bruno Haible  <bruno@clisp.org>
31987
31988         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
31989         detail how to use dumpbin.
31990         Reported by David Byron <dbyron@dbyron.com>.
31991
31992 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31993
31994         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
31995
31996 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31997
31998         * m4/manywarnings.m4: Add GCC 4.4 warnings.
31999
32000 2009-05-28  Bruno Haible  <bruno@clisp.org>
32001
32002         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
32003         build-aux/ files.
32004
32005 2009-05-28  Simon Josefsson  <simon@josefsson.org>
32006
32007         * gnulib-tool (func_import): Transform license on build-aux/ files too.
32008
32009 2009-05-27  Simon Josefsson  <simon@josefsson.org>
32010
32011         * gnulib-tool (sed_transform_main_lib_file)
32012         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
32013         regexps.
32014
32015 2009-05-26  Simon Josefsson  <simon@josefsson.org>
32016
32017         * tests/test-strstr.c: Add another self-test.
32018         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
32019         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
32020
32021 2009-05-23  Bruno Haible  <bruno@clisp.org>
32022
32023         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
32024         change.
32025
32026 2009-05-21  Bruno Haible  <bruno@clisp.org>
32027
32028         Simplify use of mode_t varargs.
32029         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
32030         uses 'mode_t' or 'int'.
32031         * lib/openat.c (openat): Likewise.
32032         * lib/open-safer.c (open_safer): Likewise.
32033         * m4/mode_t.m4: New file.
32034         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
32035         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
32036         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
32037         * modules/open (Files): Add m4/mode_t.m4.
32038         * modules/openat (Files): Likewise.
32039         * modules/fcntl-safer (Files): Likewise.
32040         Suggested by Eric Blake.
32041
32042 2009-05-21  Pádraig Brady  <P@draigbrady.com>
32043
32044         * doc/glibc-functions/fallocate.texi: New file.
32045         * doc/gnulib.texi: Include it.
32046
32047 2009-05-21  Eric Blake  <ebb9@byu.net>
32048             Bruno Haible  <bruno@clisp.org>
32049
32050         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
32051         invocations.
32052         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32053
32054 2009-05-21  Eric Blake  <ebb9@byu.net>
32055             Bruno Haible  <bruno@clisp.org>
32056
32057         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
32058         include_next. Fix of 2008-11-20 commit.
32059         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
32060         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
32061         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
32062         NEXT_MATH_H.
32063         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
32064         instead of NEXT_MATH_H.
32065
32066 2009-05-21  Bruno Haible  <bruno@clisp.org>
32067
32068         Avoid redefinition warnings for SIZE_MAX.
32069         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
32070         Reported by Simon Josefsson.
32071
32072 2009-05-21  Bruno Haible  <bruno@clisp.org>
32073
32074         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
32075         AC_CACHE_VAL.
32076
32077 2009-05-20  Bruno Haible  <bruno@clisp.org>
32078
32079         Make zeroptr.h work on mingw.
32080         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
32081         mprotect.
32082         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
32083         * modules/memchr2-tests (configure.ac): Likewise.
32084         * modules/memcmp-tests (configure.ac): Likewise.
32085         * modules/memmem-tests (configure.ac): Likewise.
32086         * modules/memrchr-tests (configure.ac): Likewise.
32087         Reported by Simon Josefsson.
32088
32089 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32090
32091         * tests/test-glob.c: Include string.h for strcmp prototype.
32092
32093 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32094
32095         * modules/getdelim (Depends-on): Add explicit stdint, although it
32096         was implicitly already pulled in via realloc-posix.
32097         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
32098
32099 2009-05-20  Simon Josefsson  <simon@josefsson.org>
32100
32101         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
32102         G. Christensen" <tgc@jupiterrise.com>.
32103         * m4/sys_socket_h.m4: Check for sa_family_t.
32104         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
32105         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
32106         * tests/test-sys_socket.c: Check that sa_family_t works.
32107
32108 2009-05-18  Eric Blake  <ebb9@byu.net>
32109
32110         maint.mk: allow gnulib_dir in VPATH build
32111         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
32112
32113 2009-05-15  Jim Meyering  <meyering@redhat.com>
32114
32115         maint.mk: Give gnulib_dir a default definition.
32116         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
32117         Thus, most packages no longer need to specify this variable in cfg.mk
32118
32119 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
32120
32121         rename.m4: fix typos that would make non-mingw cross-configure fail
32122         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
32123
32124 2009-05-13  Eric Blake  <ebb9@byu.net>
32125
32126         mmap-anon: avoid out-of-order autoconf expansion
32127         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
32128         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
32129         * modules/memchr-tests (Depends-on): Add extensions.
32130         * modules/memchr2-tests (Depends-on): Add extensions.
32131         * modules/memcmp-tests (Depends-on): Add extensions.
32132         * modules/memmem-tests (Depends-on): Add extensions.
32133         * modules/memrchr-tests (Depends-on): Add extensions.
32134
32135 2009-05-13  Bruno Haible  <bruno@clisp.org>
32136
32137         Make some tests ISO C 99 compliant.
32138         * tests/zerosize-ptr.h: New file.
32139         * tests/test-memchr.c: Include zerosize-ptr.h.
32140         (main): Use a zero-size object pointer instead of NULL.
32141         * tests/test-memchr2.c: Include zerosize-ptr.h.
32142         (main): Use a zero-size object pointer instead of NULL.
32143         * tests/test-memcmp.c: Include zerosize-ptr.h.
32144         (main): Use a zero-size object pointer instead of NULL.
32145         * tests/test-memmem.c: Include zerosize-ptr.h.
32146         (main): Use a zero-size object pointer instead of NULL.
32147         * tests/test-memrchr.c: Include zerosize-ptr.h.
32148         (main): Use a zero-size object pointer instead of NULL.
32149         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
32150         m4/mmap-anon.m4.
32151         (Depends-on): Add getpagesize.
32152         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32153         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
32154         m4/mmap-anon.m4.
32155         (Depends-on): Add getpagesize.
32156         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32157         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
32158         m4/mmap-anon.m4.
32159         (Depends-on): Add getpagesize.
32160         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32161         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
32162         m4/mmap-anon.m4.
32163         (Depends-on): Add getpagesize.
32164         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32165         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
32166         m4/mmap-anon.m4.
32167         (Depends-on): Add getpagesize.
32168         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
32169
32170 2009-05-12  Bruno Haible  <bruno@clisp.org>
32171
32172         Tests for module 'alignof'.
32173         * modules/alignof-tests: New file.
32174         * tests/test-alignof.c: New file.
32175
32176 2009-05-12  Bruno Haible  <bruno@clisp.org>
32177
32178         Fix alignof macro.
32179         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
32180         vendor compilers that are always correct.
32181
32182 2009-05-12  Bruno Haible  <bruno@clisp.org>
32183
32184         Make the MAP_ANONYMOUS detection work on HP-UX 11.
32185         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
32186         not whether its fully works.
32187
32188 2009-05-12  Bruno Haible  <bruno@clisp.org>
32189
32190         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
32191
32192 2009-05-12  Jim Meyering  <meyering@redhat.com>
32193
32194         * top/maint.mk: Adjust backslash alignment.
32195
32196 2009-05-11  Simon Josefsson  <simon@josefsson.org>
32197
32198         * top/maint.mk: Make $(srcdir)/build-aux configurable.
32199
32200 2009-05-11  Eric Blake  <ebb9@byu.net>
32201
32202         argp: avoid undefined behavior
32203         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
32204         macros.
32205
32206 2009-05-08  Simon Josefsson  <simon@josefsson.org>
32207
32208         * tests/test-vc-list-files-git.sh: Do git config of user.email and
32209         user.name to prevent git commit from complaining.
32210
32211 2009-05-10  Bruno Haible  <bruno@clisp.org>
32212
32213         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
32214         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
32215         it rewrites every file name only once.
32216         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
32217
32218 2009-05-08  Bruno Haible  <bruno@clisp.org>
32219
32220         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
32221         instead of 'max'.
32222
32223 2009-05-08  Simon Josefsson  <simon@josefsson.org>
32224
32225         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
32226         sockaddr_storage test.
32227
32228 2009-05-07  Simon Josefsson  <simon@josefsson.org>
32229
32230         * modules/sys_socket (Makefile.am): Substitute
32231         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
32232         * m4/sys_socket_h.m4: Check for sockaddr_storage.
32233         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
32234         * tests/test-sys_socket.c: Check sockaddr_storage.
32235
32236 2009-05-08  Bruno Haible  <bruno@clisp.org>
32237
32238         New module 'alignof'.
32239         * lib/alignof.h: New file.
32240         * modules/alignof: New file.
32241
32242 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32243             Bruno Haible  <bruno@clisp.org>
32244
32245         Fix test-file-has-acl on FreeBSD.
32246         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
32247         mask is implicitly added.
32248         * tests/test-file-has-acl.c: Include <signal.h>.
32249         (main): Terminate the test after 5 seconds.
32250         * modules/acl-tests (configure.ac): Check for alarm function.
32251
32252 2009-05-04  Bruno Haible  <bruno@clisp.org>
32253
32254         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
32255         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
32256         * modules/errno (configure.ac): Drop AC_REQUIRE.
32257         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
32258         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
32259
32260 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32261
32262         * modules/glob-tests: New module.
32263         * tests/test-glob.c: Add.
32264
32265 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32266
32267         * modules/fnmatch-tests: New module.
32268         * tests/test-fnmatch.c: Add.
32269
32270 2009-05-04  Eric Blake  <ebb9@byu.net>
32271
32272         maint: make the new no-submodule-changes rule VPATH-safe
32273         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
32274
32275 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32276             Bruno Haible  <bruno@clisp.org>
32277
32278         acl: Fix infinite loop on FreeBSD.
32279         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
32280         of return value from acl_get_entry.
32281         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
32282         Likewise.
32283
32284 2009-05-03  Bruno Haible  <bruno@clisp.org>
32285
32286         * lib/acl-internal.h (acl_entries): Clarify return value.
32287         * lib/acl_entries.c (acl_entries): Likewise.
32288
32289 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32290
32291         Bug fix in acl module.
32292         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
32293
32294 2009-05-03  Bruno Haible  <bruno@clisp.org>
32295
32296         Create gperf-generated file in the source dir, not in the build dir.
32297         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
32298         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
32299         * modules/unicase/locale-language (unicase/locale-languages.h):
32300         Likewise.
32301         * modules/unicase/special-casing (unicase/special-casing-table.h):
32302         Likewise.
32303         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
32304         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
32305         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
32306         Reported by Ralf Wildenhues.
32307
32308 2009-05-03  Bruno Haible  <bruno@clisp.org>
32309
32310         * modules/fnmatch (Description, configure.ac): Taken from
32311         fnmatch-posix.
32312         * modules/fnmatch-posix: Turn into a symbolic reference to the
32313         'fnmatch' module, and deprecate.
32314         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
32315
32316 2009-05-03  Bruno Haible  <bruno@clisp.org>
32317
32318         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
32319         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
32320         Reported by Ralf Wildenhues.
32321
32322 2009-05-04  Simon Josefsson  <simon@josefsson.org>
32323
32324         * m4/fnmatch.m4: Fix fnmatch re-define.
32325
32326 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
32327
32328         priv-set: new module and tests; adapt write-any-file
32329         * lib/priv-set.c: New file.
32330         * lib/priv-set.h: New file.
32331         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
32332         * lib/write-any-file.c: Simplify by using priv-set module.
32333         * m4/priv-set.m4: New file.
32334         * modules/priv-set: New file.
32335         * modules/unlinkdir: Add dependency on priv-set module.
32336         * modules/write-any-file: Likewise.
32337
32338         Tests for module 'priv-set'.
32339         * modules/priv-set-tests: New file.
32340         * tests/test-priv-set.c: New file.
32341
32342 2009-05-03  Jim Meyering  <meyering@redhat.com>
32343             Bruno Haible  <bruno@clisp.org>
32344
32345         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
32346         use the converted UTF-8 variant of the name instead.
32347
32348 2009-05-03  Jim Meyering  <meyering@redhat.com>
32349
32350         tests: tighten some getdate tests
32351         * tests/test-getdate.c (main): Tighten tests: require equality,
32352         not just greater than.  Set TZ envvar to UTC0.
32353
32354 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32355
32356         getdate: correctly interpret "next monday" when run on a Monday
32357         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
32358         that e.g., "next tues" (when run on a tuesday) results in a date
32359         that is one week in the future, and not today's date.
32360         I.e., add a week when the wday is the same as the current one.
32361         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
32362         and earlier by Martin Bernreuther and Jan Minář.
32363         * tests/test-getdate.c (main): Check that "next DAY" is always in
32364         the future and that "last DAY" is always in the past.
32365
32366 2009-05-02  Jim Meyering  <meyering@redhat.com>
32367
32368         build: ensure that a release build fails when a submodule is unclean
32369         * top/maint.mk (no-submodule-changes): New rule.
32370         (alpha beta major): Depend on it.
32371
32372 2009-05-02  Bruno Haible  <bruno@clisp.org>
32373
32374         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
32375         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
32376         shell variable gl_fnmatch_required to detect which variant is
32377         requested.
32378         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
32379         gl_FUNC_FNMATCH_POSIX.
32380         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
32381         exclude fnmatch-posix.
32382
32383 2009-05-02  Bruno Haible  <bruno@clisp.org>
32384
32385         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
32386         * modules/mbsrtowcs (License): Change to LGPLv2+.
32387         * modules/strnlen1 (License): Likewise.
32388         Reported by Simon Josefsson.
32389
32390 2009-05-02  Bruno Haible  <bruno@clisp.org>
32391
32392         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
32393         "cross".
32394         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
32395         gnulib-tool was called with option --source-base=lib.
32396
32397 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32398
32399         Use automake *-local hooks without commands, for extensibility.
32400         * modules/localcharset (Makefile.am): Rename install-exec-local
32401         rule to install-exec-localcharset, and make it a prerequisite of
32402         install-exec-local.  Likewise, rename the uninstall-local rule to
32403         uninstall-localcharset, and make it a prerequisite of the former.
32404
32405 2009-05-01  Bruno Haible  <bruno@clisp.org>
32406
32407         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
32408         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
32409         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
32410         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
32411         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
32412         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
32413         m4/locale-zh.m4, m4/codeset.m4.
32414
32415         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
32416         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
32417         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
32418         m4/locale-zh.m4.
32419
32420         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
32421         REPLACE_WCRTOMB if mbstate_t must be replaced.
32422         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
32423         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
32424
32425 2009-05-01  Bruno Haible  <bruno@clisp.org>
32426
32427         Avoid compiler warnings when redefining macros defined by <libintl.h>.
32428         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
32429         dngettext, dcngettext, textdomain, bindtextdomain,
32430         bind_textdomain_codeset): Undefine before redefining.
32431
32432 2009-04-30  Bruno Haible  <bruno@clisp.org>
32433
32434         Fix bug introduced on 2009-04-25.
32435         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
32436         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
32437         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
32438         is defined.
32439         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
32440         is defined.
32441         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
32442         is defined.
32443         Reported by Elbert_Pol <elbert.pol@gmail.com>.
32444
32445 2009-04-28  Bruno Haible  <bruno@clisp.org>
32446
32447         Comment tweaks.
32448         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
32449         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
32450         * lib/unicase.h (u*_casexfrm): Likewise.
32451         Reported by Paolo Bonzini.
32452
32453 2009-04-28  Bruno Haible  <bruno@clisp.org>
32454
32455         Fix a compilation error.
32456         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
32457         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
32458         Reported by Jim Meyering.
32459
32460 2009-04-27  Bruno Haible  <bruno@clisp.org>
32461
32462         New module 'libunistring'.
32463         * modules/libunistring: New file.
32464         * m4/libunistring.m4: New file.
32465         * MODULES.html.sh (Unicode string functions): Add it.
32466
32467 2009-04-27  Eric Blake  <ebb9@byu.net>
32468
32469         maint.mk: allow package-specific header to provide <config.h>
32470         * top/maint.mk (sc_require_config_h): New variable.
32471         (sc_require_config_h, sc_require_config_h_first): Use it.
32472
32473 2009-04-27  Simon Josefsson  <simon@josefsson.org>
32474
32475         * top/maint.mk (sc_avoid_if_before_free): Except
32476         useless-if-before-free script.
32477
32478 2009-04-27  Eric Blake  <ebb9@byu.net>
32479
32480         maintainer-makefile: depend on all required helper scripts
32481         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
32482         useless-if-before-free.
32483         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
32484         version, rather than assuming gnulib checkout is available.
32485         Reported by Simen Josefsson.
32486
32487 2009-04-26  Bruno Haible  <bruno@clisp.org>
32488
32489         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
32490         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
32491         "../" or "..".
32492
32493 2009-04-26  Bruno Haible  <bruno@clisp.org>
32494
32495         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
32496         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
32497         AC_LIB_HAVE_LINKFLAGS.
32498
32499 2009-04-26  Bruno Haible  <bruno@clisp.org>
32500
32501         Simplify calling convention of u*_conv_from_encoding.
32502         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
32503         u32_conv_from_encoding): Expect a resultbuf argument and return the
32504         result directly as a pointer.
32505         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
32506         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
32507         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
32508         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
32509         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
32510         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
32511         Update.
32512         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
32513         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
32514         * lib/vasnprintf.c (VASNPRINTF): Update.
32515         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
32516         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
32517         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
32518         * NEWS: Mention the change.
32519
32520 2009-04-26  Bruno Haible  <bruno@clisp.org>
32521
32522         Simplify calling convention of u*_conv_to_encoding.
32523         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32524         u32_conv_to_encoding): Expect a resultbuf argument and return the
32525         result directly as a pointer.
32526         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
32527         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
32528         freeing scaled_offsets if mem_iconveha failed.
32529         * lib/unicase/u-casexfrm.h (FUNC): Update.
32530         * lib/uninorm/u-normxfrm.h (FUNC): Update.
32531         * lib/vasnprintf.c (VASNPRINTF): Update.
32532         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
32533         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
32534         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
32535         * NEWS: Mention the change.
32536
32537 2009-04-26  Bruno Haible  <bruno@clisp.org>
32538
32539         Avoid test failures on AIX and OSF/1.
32540         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
32541         malloc(0).
32542         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
32543         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
32544         Likewise.
32545         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
32546         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
32547         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
32548         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
32549         * doc/posix-functions/malloc.texi: Document the portability problem
32550         related to malloc(0).
32551
32552 2009-04-26  Bruno Haible  <bruno@clisp.org>
32553
32554         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
32555         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
32556         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
32557
32558 2009-04-25  Bruno Haible  <bruno@clisp.org>
32559
32560         Avoid link error when creating a namespace clean library.
32561         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
32562         as macro with arguments if already defined as an alias.
32563         * lib/signbitf.c (gl_signbitf): Don't undefine.
32564         * lib/signbitd.c (gl_signbitd): Don't undefine.
32565         * lib/signbitl.c (gl_signbitl): Don't undefine.
32566
32567 2009-04-25  Jim Meyering  <meyering@redhat.com>
32568
32569         vc-list-files: fix another quoting bug
32570         * build-aux/vc-list-files: Avoid sed backslash expansion
32571         of pathological directory names.
32572
32573 2009-04-25  Eric Blake  <ebb9@byu.net>
32574
32575         vc-list-files: fix shell quoting error
32576         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
32577         timestamp.
32578
32579 2009-04-25  Jim Meyering  <meyering@redhat.com>
32580
32581         vc-list-files: restore lost functionality with subdir argument
32582         * build-aux/vc-list-files: When given a non-"." sub-directory
32583         argument, substitute the $dir/ prefix back onto each resulting name.
32584         Otherwise, coreutils' root_tests check would fail.
32585
32586 2009-04-24  Eric Blake  <ebb9@byu.net>
32587
32588         vc-list-files: ignore git symlinks
32589         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
32590         than ls-files, to ignore git symlinks.
32591
32592         maint.mk: import improvements from m4
32593         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
32594         (move_if_change): Delete unused macro.
32595         (news-date-check, vc-diff-check): Support VPATH builds.
32596         (announcement): Likewise.  Split --bootstrap-tools list...
32597         (boostrap-tools): ...into separate list, which can be overridden
32598         in cfg.mk.
32599         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
32600         requiring dependency on useless-if-before-free module.
32601         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
32602         Support VPATH builds.
32603
32604 2009-04-24  Jim Meyering  <meyering@redhat.com>
32605
32606         maint.mk: remove coreutils-specific rules and variables
32607         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
32608         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
32609         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
32610
32611         maint.mk: remove obsolete rule
32612         * top/maint.mk (rel-check): Remove rule.
32613         (WGET, WGETFLAGS): Remove now-unused variables.
32614
32615 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32616
32617         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
32618         consistency.
32619
32620         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
32621         '$(PATH_SEPARATOR)' instead of ':'.
32622
32623 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32624
32625         * lib/getopt1.c (main): Use 'const' for static array.
32626
32627 2009-04-24  Simon Josefsson  <simon@josefsson.org>
32628
32629         * top/maint.mk: Sync with coreutils.
32630         * NEWS: Explain incompatibilities.
32631
32632 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32633             Bruno Haible  <bruno@clisp.org>
32634
32635         Fix cross-compilation results.
32636         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
32637         statement, as third argument of AC_TRY_RUN.
32638         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
32639         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
32640         Likewise.
32641         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
32642         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
32643         Likewise.
32644         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
32645         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
32646         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
32647
32648 2009-04-20  Bruno Haible  <bruno@clisp.org>
32649
32650         Avoid test failure on mingw.
32651         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
32652
32653 2009-04-20  Bruno Haible  <bruno@clisp.org>
32654
32655         Avoid compilation error on mingw.
32656         * modules/localename-tests (Depends-on): Add locale.
32657
32658 2009-04-19  Bruno Haible  <bruno@clisp.org>
32659
32660         Support for building a shared library on Windows platforms.
32661         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
32662         (main): Test the presence of UNINORM_NFC here.
32663         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
32664         (main): Test the presence of UNINORM_NFD here.
32665         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
32666         (main): Test the presence of UNINORM_NFKC here.
32667         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
32668         (main): Test the presence of UNINORM_NFKD here.
32669
32670 2009-04-19  Bruno Haible  <bruno@clisp.org>
32671
32672         Avoid a compiler warning.
32673         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
32674         Change type of variable 'sequence'.
32675
32676 2009-04-19  Bruno Haible  <bruno@clisp.org>
32677
32678         * modules/configmake (Makefile.am): When the contents of configmake.h
32679         does not change, arrange to preserve its modification time.
32680
32681 2009-04-17  Simon Josefsson  <simon@josefsson.org>
32682
32683         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
32684         gettext domain.
32685
32686 2009-04-16  Jim Meyering  <meyering@redhat.com>
32687
32688         useless-if-before-free: improve conversion code
32689         * build-aux/useless-if-before-free: Adjust code-in-comment to match
32690         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
32691
32692 2009-04-14  Bruno Haible  <bruno@clisp.org>
32693
32694         * modules/fcntl (Depends-on): Add extensions.
32695         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
32696
32697 2009-04-12  Ben Pfaff  <blp@gnu.org>
32698
32699         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
32700         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
32701
32702 2009-03-20  Ben Pfaff  <blp@gnu.org>
32703
32704         Make rename replace existing destinations on Windows.
32705         * m4/rename.m4: Add test for Mingw.
32706         * lib/rename.c: Add rename replacement that uses MoveFileEx with
32707         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
32708         * doc/posix-functions/rename.texi: Document.
32709
32710 2009-04-10  Bruno Haible  <bruno@clisp.org>
32711
32712         New include file "iconveh.h".
32713         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
32714         * lib/striconveh.h: Include it.
32715         (enum iconv_ilseq_handler): Remove definition.
32716         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
32717         striconveh.h.
32718         * lib/striconveha.c: Include striconveh.h.
32719         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
32720         * modules/striconveh (Files): Add lib/iconveh.h.
32721         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
32722         lib/striconveh.h.
32723
32724 2009-04-10  Bruno Haible  <bruno@clisp.org>
32725
32726         * lib/uniconv.h: Update comment.
32727
32728 2009-04-10  Bruno Haible  <bruno@clisp.org>
32729
32730         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
32731         always.
32732         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
32733         * lib/unistr/u16-mbtouc-aux.c: Likewise.
32734         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
32735         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
32736         "unistring-notinline.h", so that the function gets defined always.
32737         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
32738         * lib/unistr/u8-uctomb.c: Likewise.
32739         * lib/unistr/u16-mbtouc.c: Likewise.
32740         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
32741         * lib/unistr/u16-uctomb.c: Likewise.
32742         * lib/unistr/u32-mbtouc.c: Likewise.
32743         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
32744         * lib/unistr/u32-uctomb.c: Likewise.
32745
32746 2009-04-10  Bruno Haible  <bruno@clisp.org>
32747
32748         Mark 'utime' obsolete.
32749         * modules/utime (Status, Notice): New sections.
32750         Suggested by Jim Meyering.
32751
32752         Fix cross-compile guess for utime test.
32753         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
32754         autoconf.
32755         * doc/posix-functions/utime.texi: Give more precisions.
32756         Reported by Jan <ipif@ymail.com>.
32757
32758 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
32759
32760         filevercmp: correct today's change
32761         * lib/filevercmp.c: Also handle coreutils' test inputs.
32762         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
32763
32764         Fix regression in 'filevercmp' module. Thanks Sven Joachim
32765         for reporting it.
32766         * lib/filevercmp.c: Special handle for "", "." and "..".
32767         * tests/test-filevercmp.c: Enlarge the set suite.
32768
32769 2009-04-07  Jim Meyering  <meyering@redhat.com>
32770
32771         useless-if-before-free: show how to remove braced useless free, too
32772         * build-aux/useless-if-before-free: still only in a comment, though.
32773
32774 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
32775
32776         maint.mk: import changes to syntax-check macros from coreutils
32777         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
32778         Use them in the relevant macros.
32779
32780 2009-04-06  Bruno Haible  <bruno@clisp.org>
32781
32782         Fix unportable use of bit-fields.
32783         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
32784         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
32785         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
32786
32787 2009-04-06  Bruno Haible  <bruno@clisp.org>
32788
32789         Avoid test failures on AIX and OSF/1.
32790         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
32791         that malloc(0) = NULL.
32792         * tests/unicase/test-u8-tolower.c (check): Likewise.
32793         * tests/unicase/test-u8-totitle.c (check): Likewise.
32794         * tests/unicase/test-u8-toupper.c (check): Likewise.
32795         * tests/unicase/test-u16-casefold.c (check): Likewise.
32796         * tests/unicase/test-u16-tolower.c (check): Likewise.
32797         * tests/unicase/test-u16-totitle.c (check): Likewise.
32798         * tests/unicase/test-u16-toupper.c (check): Likewise.
32799         * tests/unicase/test-u32-casefold.c (check): Likewise.
32800         * tests/unicase/test-u32-tolower.c (check): Likewise.
32801         * tests/unicase/test-u32-totitle.c (check): Likewise.
32802         * tests/unicase/test-u32-toupper.c (check): Likewise.
32803         * tests/uninorm/test-u8-nfc.c (check): Likewise.
32804         * tests/uninorm/test-u8-nfd.c (check): Likewise.
32805         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
32806         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
32807         * tests/uninorm/test-u16-nfc.c (check): Likewise.
32808         * tests/uninorm/test-u16-nfd.c (check): Likewise.
32809         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
32810         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
32811         * tests/uninorm/test-u32-nfc.c (check): Likewise.
32812         * tests/uninorm/test-u32-nfd.c (check): Likewise.
32813         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
32814         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
32815
32816 2009-04-05  Bruno Haible  <bruno@clisp.org>
32817
32818         Work around an autoconf limitation.
32819         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
32820         comment line if it would be longer than 3 KB.
32821
32822 2009-04-05  Bruno Haible  <bruno@clisp.org>
32823
32824         Avoid test failure with libiconv-1.13.
32825         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
32826         of the expected test results.
32827
32828 2009-04-05  Bruno Haible  <bruno@clisp.org>
32829
32830         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
32831         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
32832         that it should be installed.
32833
32834 2009-04-05  Bruno Haible  <bruno@clisp.org>
32835
32836         * gnulib-tool: New option --copy-file.
32837         (func_usage): Document it.
32838         (func_dest_tmpfilename): Moved out of func_import.
32839         (func_add_file, func_update_file): New functions, extracted from
32840         func_import.
32841         (func_import): Update.
32842
32843 2009-04-05  Karl Berry  <karl@gnu.org>
32844
32845         * README: prominently mention gnulib-tool.
32846         Rearrange sections so getting the code is near the top.
32847
32848 2009-04-05  Bruno Haible  <bruno@clisp.org>
32849
32850         * lib/unicase.h: Mention u*_cmp2.
32851         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
32852         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
32853         * lib/unicase/ulc-casecmp.c: Likewise.
32854         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
32855         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
32856         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
32857         unistr/u8-cmp.
32858         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
32859         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
32860         unistr/u16-cmp.
32861         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
32862         unistr/u32-cmp.
32863
32864         * lib/uninorm.h: Mention u*_cmp2.
32865         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
32866         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
32867         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
32868         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
32869         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
32870         unistr/u8-cmp.
32871         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
32872         unistr/u16-cmp.
32873         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
32874         unistr/u32-cmp.
32875
32876         New module 'unistr/u32-cmp2'.
32877         * lib/unistr/u32-cmp2.c: New file.
32878         * modules/unistr/u32-cmp2: New file.
32879
32880         New module 'unistr/u16-cmp2'.
32881         * lib/unistr/u16-cmp2.c: New file.
32882         * modules/unistr/u16-cmp2: New file.
32883
32884         New module 'unistr/u8-cmp2'.
32885         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
32886         * lib/unistr/u8-cmp2.c: New file.
32887         * lib/unistr/u-cmp2.h: New file.
32888         * modules/unistr/u8-cmp2: New file.
32889
32890 2009-04-05  Bruno Haible  <bruno@clisp.org>
32891
32892         * lib/unictype.h (uc_property_is_valid): New macro.
32893         * tests/unictype/test-pr_byname.c (main): Use it.
32894
32895         * lib/unistr.h: Doc fixes.
32896         * lib/uniconv.h: Doc fixes.
32897         * lib/unictype.h: Doc fixes.
32898
32899 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
32900
32901         Port coreutils 7.2 to Solaris 8.
32902
32903         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
32904         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
32905         for Solaris 8.  This is a bit of a hack, as it means it's the
32906         caller's responsibility to add -lnsl if needed, but most likely it
32907         won't be needed since only getaddrinfo uses this and getaddrinfo
32908         isn't needed on Solaris 8.
32909
32910         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
32911         problem to Solaris 8 encountered with coreutils 7.2, which
32912         resulted in a message "fnmatch.c:292: warning: passing argument 4
32913         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
32914         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
32915
32916 2009-04-03  Simon Josefsson  <simon@josefsson.org>
32917
32918         * m4/ld-version-script.m4: Add FIXME comment.
32919
32920 2009-04-02  Simon Josefsson  <simon@josefsson.org>
32921
32922         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
32923         SOVERSION variable.
32924
32925 2009-04-02  Bruno Haible  <bruno@clisp.org>
32926
32927         * Makefile (info, html, dvi, pdf): Combine the rules.
32928         Suggested by Jim Meyering.
32929
32930 2009-04-01  Bruno Haible  <bruno@clisp.org>
32931
32932         * Makefile (info, html, dvi, pdf): New targets.
32933         Reported by Reuben Thomas <rrt@sc3d.org>.
32934
32935 2009-04-01  Bruno Haible  <bruno@clisp.org>
32936
32937         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
32938         can be put into PATH.
32939         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
32940
32941 2009-04-01  Bruno Haible  <bruno@clisp.org>
32942
32943         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
32944
32945 2009-04-01  Bruno Haible  <bruno@clisp.org>
32946
32947         Rename module 'visibility'.
32948         * modules/lib-symbol-visibility: Renamed from modules/visibility.
32949         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
32950         * doc/gnulib.texi: Update.
32951         * MODULES.html.sh (Misc): Update.
32952         * NEWS: Mention the change.
32953
32954 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32955
32956         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
32957         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
32958         Eric Blake <ebb9@byu.net> for review.
32959         * MODULES.html.sh: Add lib-msvc-compat.
32960         * doc/gnulib.texi: Link to new section.
32961         * m4/ld-output-def.m4: New file.
32962         * doc/ld-output-def.texi: New file.
32963
32964 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32965
32966         Rename ld-version-script to lib-symbol-versions.  Suggested by
32967         Bruno Haible <bruno@clisp.org>.
32968         * modules/ld-version-script: Renamed to lib-symbol-versions.
32969         * doc/ld-version-script.texi: Fix module name.
32970         * MODULES.html.sh: Add lib-symbol-versions.
32971
32972 2009-03-31  Simon Josefsson  <simon@josefsson.org>
32973
32974         * modules/u64-tests: New file.
32975         * tests/test-u64.c: New file.
32976
32977 2009-03-04  Simon Josefsson  <simon@josefsson.org>
32978
32979         * MODULES.html.sh: Mention u64.
32980         * modules/u64: New module.
32981         * modules/crypto/sha512: Depend on u64 module instead of providing
32982         u64.h.
32983
32984 2009-03-27  Eric Blake  <ebb9@byu.net>
32985
32986         test-strerror: make debugging EAI_SYSTEM easier
32987         * modules/getaddrinfo-tests (Depends-on): Add strerror.
32988         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
32989         failure was EAI_SYSTEM.
32990
32991 2009-03-25  Bruno Haible  <bruno@clisp.org>
32992
32993         Fix a problem with --enable-relocatable on Solaris 7.
32994         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
32995         since 2008-02-24.
32996
32997 2009-03-25  Eric Blake  <ebb9@byu.net>
32998
32999         test-sockets: avoid gcc warning
33000         * tests/test-sockets.c (main): Silence compiler warning.
33001
33002 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
33003
33004         New modules nproc, pthread, contributed by Glen Lenker.
33005
33006         * MODULES.html.sh: Add pthread, nproc.
33007         * lib/nproc.c: New file.
33008         * lib/nproc.h: New file.
33009         * lib/pthread.in.h: New file.
33010         * m4/pthread.m4: New file.
33011         * modules/nproc: New file.
33012         * modules/pthread: New file.
33013
33014 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33015
33016         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
33017         New variable.
33018
33019 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
33020
33021         filevercmp: handle simple~ and numbered.~3~ backup suffixes
33022         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
33023         * tests/test-filevercmp.c: Add tests for backup suffixes.
33024
33025 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33026
33027         * modules/stdlib (Depends-on): Add stdint, needed when defining
33028         struct random_data on, for example, HP-UX 10.20.  Reported by
33029         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33030
33031 2009-03-24  Simon Josefsson  <simon@josefsson.org>
33032
33033         * lib/readline.c (readline): Call fflush on stdout after printing
33034         prompt.
33035
33036 2009-03-20  Bruno Haible  <bruno@clisp.org>
33037
33038         Remove dependency from 'close' module to -lws2_32 on native Windows.
33039         * lib/close-hook.h: New file.
33040         * lib/close-hook.c: New file.
33041         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
33042         w32sock.h.
33043         (_gl_close_fd_maybe_socket): Remove function.
33044         (rpl_close): Invoke execute_all_close_hooks instead of
33045         _gl_close_fd_maybe_socket.
33046         * lib/sockets.c: Include close-hook.h, w32sock.h.
33047         (close_fd_maybe_socket): New function, essentially from lib/close.c.
33048         (close_sockets_hook): New variable.
33049         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
33050         (gl_sockets_cleanup): Unregister it.
33051         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
33052         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
33053         * modules/close-hook: New file.
33054         * modules/close (Files): Remove lib/w32sock.h.
33055         (Depends-on): Add close-hook.
33056         (Link): Remove section.
33057         * modules/sockets (Files): Add lib/w32sock.h.
33058         (Depends-on): Add close-hook.
33059         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
33060         invocation.
33061         * NEWS: Mention that LIB_CLOSE is gone.
33062
33063 2009-03-23  Eric Blake  <ebb9@byu.net>
33064
33065         signal-tests: test previous patch
33066         * tests/test-signal.c: New file.
33067         * modules/signal-tests: Likewise.
33068
33069         signal.h: always support 'volatile sig_atomic_t'
33070         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
33071         (gl_SIGNAL_H_DEFAULTS): Add a default.
33072         * modules/signal (Makefile.am): Substitute if needed.
33073         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
33074         users can blindly add volatile.
33075         * doc/posix-headers/signal.texi (signal.h): Document it.
33076         Reported by Matthew Woehlke.
33077
33078 2009-03-23  Jim Meyering  <meyering@redhat.com>
33079
33080         pathmax: PATH_MAX: use pathconf only when available
33081         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
33082         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
33083         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
33084         This avoids a link failure in a PSP cross-compilation environment
33085         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
33086
33087         * lib/vasnprintf.c (divide): Fix typo in comment.
33088
33089 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33090
33091         * gnulib-tool (func_filter_filelist): Fix comment.
33092
33093 2009-03-20  Bruno Haible  <bruno@clisp.org>
33094
33095         Make sockets.h self-contained.
33096         * lib/sockets.c: Include sockets.h first.
33097         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
33098
33099 2009-03-19  Eric Blake  <ebb9@byu.net>
33100
33101         doc: mention more functions added in cygwin 1.7.0
33102         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
33103         addition.
33104         * doc/posix-functions/log2f.texi: Likewise.
33105
33106 2009-03-19  Jim Meyering  <meyering@redhat.com>
33107
33108         fsusage: avoid syntax error due to statement-before-declaration
33109         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
33110         after all declarations.  Reported by Matthew Woehlke in
33111         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
33112
33113 2009-03-18  Eric Blake  <ebb9@byu.net>
33114
33115         build-aux/compile: sync from automake
33116         * build-aux/compile: New file, from automake.
33117         * config/srclist.txt: Mention build-aux/compile.
33118
33119 2009-03-17  Bruno Haible  <bruno@clisp.org>
33120
33121         * lib/git-merge-changelog.c: Fix typo in comment.
33122         Reported by Reuben Thomas <rrt@sc3d.org>.
33123
33124 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
33125
33126         * m4/regex.m4: update and improve help for
33127         --without-included-regex.
33128
33129 2009-03-17  Simon Josefsson  <simon@josefsson.org>
33130
33131         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
33132         failure on missing include files.
33133
33134 2009-03-17  Eric Blake  <ebb9@byu.net>
33135
33136         doc: mention more functions added in cygwin 1.7.0
33137         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
33138         addition.
33139         * doc/posix-functions/fwscanf.texi: Likewise.
33140         * doc/posix-functions/swprintf.texi: Likewise.
33141         * doc/posix-functions/swscanf.texi: Likewise.
33142         * doc/posix-functions/vfwprintf.texi: Likewise.
33143         * doc/posix-functions/vfwscanf.texi: Likewise.
33144         * doc/posix-functions/vswprintf.texi: Likewise.
33145         * doc/posix-functions/vswscanf.texi: Likewise.
33146         * doc/posix-functions/vwprintf.texi: Likewise.
33147         * doc/posix-functions/vwscanf.texi: Likewise.
33148         * doc/posix-functions/wcscasecmp.texi: Likewise.
33149         * doc/posix-functions/wcsdup.texi: Likewise.
33150         * doc/posix-functions/wcsftime.texi: Likewise.
33151         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33152         * doc/posix-functions/wprintf.texi: Likewise.
33153         * doc/posix-functions/wscanf.texi: Likewise.
33154         * doc/glibc-functions/gethostbyname2.texi: Likewise.
33155
33156 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33157
33158         maint.mk: really add $(AM_MAKEFLAGS)
33159         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
33160         was inadvertently omitted in the last commit.
33161         Spotted by Bruno Haible.
33162
33163         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
33164         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
33165         $(AM_MAKEFLAGS)' rather than plain `make'.
33166
33167         gnulib-tool: execute $MAKE not make
33168         * gnulib-tool: Default $MAKE to 'make'.
33169         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
33170         than make.  Initialize $MAKE in the do-autobuild script.
33171
33172         gnulib-tool: use $MAKE not make in generated files
33173         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
33174         make, in generated files.  Initialize $MAKE in the do-autobuild
33175         script.
33176
33177         * top/GNUmakefile (_have-git-version-gen): Fix typo.
33178
33179         GNUmakefile: disable parallelism only for multiple, recursive targets
33180         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
33181         additions in the Makefile.
33182         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
33183         by Automake.
33184         (.NOTPARALLEL): Only disable parallel builds if multiple targets
33185         are listed on the command line and at least one of them is
33186         listed in $(ALL_RECURSIVE_TARGETS).
33187
33188 2009-03-14  Bruno Haible  <bruno@clisp.org>
33189
33190         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
33191         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
33192         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
33193         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
33194         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
33195         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
33196         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
33197         unistr/u8-uctomb.
33198         * modules/unistr/u8-strchr (Depends-on): Likewise.
33199         * modules/unistr/u8-strrchr (Depends-on): Likewise.
33200         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
33201         unistr/u16-uctomb.
33202         * modules/unistr/u16-strchr (Depends-on): Likewise.
33203         * modules/unistr/u16-strrchr (Depends-on): Likewise.
33204
33205 2009-03-12  Bruno Haible  <bruno@clisp.org>
33206
33207         Work around select() bug on Interix 3.5.
33208         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
33209         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
33210         * m4/select.m4: New file.
33211         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
33212         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
33213         * modules/select (Files): Add m4/select.m4.
33214         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
33215         * modules/nanosleep (Depends-on): Add select.
33216         * modules/poll (Depends-on): Likewise.
33217         * doc/posix-functions/select.texi: Mention the Interix bug.
33218         Reported by Markus Duft <mduft@gentoo.org>.
33219
33220         * lib/select.c: Renamed from lib/winsock-select.c.
33221         * modules/select (Files): Add lib/select.c, remove
33222         lib/winsock-select.c.
33223         (configure.ac): Update.
33224
33225 2009-03-12  Jim Meyering  <meyering@redhat.com>
33226
33227         avoid gcc warnings about unused macro definitions
33228         * lib/readtokens.c (STREQ): Remove unused definition.
33229         * lib/xmalloc.c (SIZE_MAX): Likewise.
33230         * lib/openat-die.c (N_): Likewise.
33231         * lib/mountlist.c (SIZE_MAX): Remove definition.
33232         Instead, include <stdint.h>.
33233         * lib/readutmp.c: Likewise.
33234         * modules/readutmp (Depends-on): Add stdint.
33235         * modules/mountlist (Depends-on): Add stdint.
33236         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
33237
33238 2009-03-10  Bruno Haible  <bruno@clisp.org>
33239
33240         Tests for module 'mbmemcasecoll'.
33241         * modules/mbmemcasecoll-tests: New file.
33242         * tests/test-mbmemcasecoll1.sh: New file.
33243         * tests/test-mbmemcasecoll2.sh: New file.
33244         * tests/test-mbmemcasecoll3.sh: New file.
33245         * tests/test-mbmemcasecoll.c: New file.
33246
33247         New module 'mbmemcasecoll'.
33248         * lib/mbmemcasecoll.h: New file.
33249         * lib/mbmemcasecoll.c: New file.
33250         * modules/mbmemcasecoll: New file.
33251
33252         * tests/test-mbmemcasecmp.h: New file, extracted from
33253         tests/test-mbmemcasecmp.c.
33254         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
33255         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
33256         (main): Update.
33257         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
33258
33259 2009-03-09  Bruno Haible  <bruno@clisp.org>
33260
33261         Tests for module 'mbmemcasecmp'.
33262         * modules/mbmemcasecmp-tests: New file.
33263         * tests/test-mbmemcasecmp1.sh: New file.
33264         * tests/test-mbmemcasecmp2.sh: New file.
33265         * tests/test-mbmemcasecmp3.sh: New file.
33266         * tests/test-mbmemcasecmp.c: New file.
33267
33268         New module 'mbmemcasecmp'.
33269         * lib/mbmemcasecmp.h: New file.
33270         * lib/mbmemcasecmp.c: New file.
33271         * modules/mbmemcasecmp: New file.
33272
33273 2009-03-09  Bruno Haible  <bruno@clisp.org>
33274
33275         Tests for module 'unicase/ulc-casecoll'.
33276         * modules/unicase/ulc-casecoll-tests: New file.
33277         * tests/unicase/test-ulc-casecoll1.sh: New file.
33278         * tests/unicase/test-ulc-casecoll2.sh: New file.
33279         * tests/unicase/test-ulc-casecoll.c: New file.
33280
33281         New module 'unicase/ulc-casecoll'.
33282         * lib/unicase.h (ulc_casecoll): New declaration.
33283         * lib/unicase/ulc-casecoll.c: New file.
33284         * modules/unicase/ulc-casecoll: New file.
33285
33286         New module 'unicase/ulc-casexfrm'.
33287         * lib/unicase.h (ulc_casexfrm): New declaration.
33288         * lib/unicase/ulc-casexfrm.c: New file.
33289         * modules/unicase/ulc-casexfrm: New file.
33290
33291 2009-03-09  Bruno Haible  <bruno@clisp.org>
33292
33293         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
33294         invocations.
33295
33296         * m4/mbscasecmp.m4: Remove file.
33297         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
33298         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
33299
33300         * m4/mbscasestr.m4: Remove file.
33301         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
33302         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
33303
33304         * m4/mbschr.m4: Remove file.
33305         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
33306         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
33307
33308         * m4/mbscspn.m4: Remove file.
33309         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
33310         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
33311
33312         * m4/mbslen.m4: Remove file.
33313         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
33314         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
33315
33316         * m4/mbsncasecmp.m4: Remove file.
33317         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
33318         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
33319
33320         * m4/mbsnlen.m4: Remove file.
33321         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
33322         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
33323
33324         * m4/mbspbrk.m4: Remove file.
33325         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
33326         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
33327
33328         * m4/mbspcasecmp.m4: Remove file.
33329         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
33330         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
33331
33332         * m4/mbsrchr.m4: Remove file.
33333         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
33334         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
33335
33336         * m4/mbssep.m4: Remove file.
33337         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
33338         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
33339
33340         * m4/mbsspn.m4: Remove file.
33341         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
33342         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
33343
33344         * m4/mbsstr.m4: Remove file.
33345         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
33346         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
33347
33348         * m4/mbstok_r.m4: Remove file.
33349         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
33350         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
33351
33352         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
33353
33354         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
33355         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
33356
33357         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
33358
33359 2009-03-08  Bruno Haible  <bruno@clisp.org>
33360
33361         Tests for module 'unicase/ulc-casecmp'.
33362         * modules/unicase/ulc-casecmp-tests: New file.
33363         * tests/unicase/test-ulc-casecmp1.sh: New file.
33364         * tests/unicase/test-ulc-casecmp2.sh: New file.
33365         * tests/unicase/test-ulc-casecmp.c: New file.
33366
33367         New module 'unicase/ulc-casecmp'.
33368         * lib/unicase.h (ulc_casecmp): New declaration.
33369         * lib/unicase/ulc-casecmp.c: New file.
33370         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
33371         'const SRC_UNIT *'.
33372         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
33373         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
33374         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
33375         * modules/unicase/ulc-casecmp: New file.
33376
33377         Tests for module 'unicase/u32-is-cased'.
33378         * modules/unicase/u32-is-cased-tests: New file.
33379         * tests/unicase/test-u32-is-cased.c: New file.
33380
33381         Tests for module 'unicase/u16-is-cased'.
33382         * modules/unicase/u16-is-cased-tests: New file.
33383         * tests/unicase/test-u16-is-cased.c: New file.
33384
33385         Tests for module 'unicase/u8-is-cased'.
33386         * modules/unicase/u8-is-cased-tests: New file.
33387         * tests/unicase/test-u8-is-cased.c: New file.
33388         * tests/unicase/test-is-cased.h: New file.
33389
33390         New module 'unicase/u32-is-cased'.
33391         * lib/unicase/u32-is-cased.c: New file.
33392         * modules/unicase/u32-is-cased: New file.
33393
33394         New module 'unicase/u16-is-cased'.
33395         * lib/unicase/u16-is-cased.c: New file.
33396         * modules/unicase/u16-is-cased: New file.
33397
33398         New module 'unicase/u8-is-cased'.
33399         * lib/unicase/u8-is-cased.c: New file.
33400         * lib/unicase/u-is-cased.h: New file.
33401         * modules/unicase/u8-is-cased: New file.
33402
33403         Tests for module 'unicase/u32-is-casefolded'.
33404         * modules/unicase/u32-is-casefolded-tests: New file.
33405         * tests/unicase/test-u32-is-casefolded.c: New file.
33406
33407         Tests for module 'unicase/u16-is-casefolded'.
33408         * modules/unicase/u16-is-casefolded-tests: New file.
33409         * tests/unicase/test-u16-is-casefolded.c: New file.
33410
33411         Tests for module 'unicase/u8-is-casefolded'.
33412         * modules/unicase/u8-is-casefolded-tests: New file.
33413         * tests/unicase/test-u8-is-casefolded.c: New file.
33414         * tests/unicase/test-is-casefolded.h: New file.
33415
33416         New module 'unicase/u32-is-casefolded'.
33417         * lib/unicase/u32-is-casefolded.c: New file.
33418         * modules/unicase/u32-is-casefolded: New file.
33419
33420         New module 'unicase/u16-is-casefolded'.
33421         * lib/unicase/u16-is-casefolded.c: New file.
33422         * modules/unicase/u16-is-casefolded: New file.
33423
33424         New module 'unicase/u8-is-casefolded'.
33425         * lib/unicase/u8-is-casefolded.c: New file.
33426         * modules/unicase/u8-is-casefolded: New file.
33427
33428         Tests for module 'unicase/u32-is-titlecase'.
33429         * modules/unicase/u32-is-titlecase-tests: New file.
33430         * tests/unicase/test-u32-is-titlecase.c: New file.
33431
33432         Tests for module 'unicase/u16-is-titlecase'.
33433         * modules/unicase/u16-is-titlecase-tests: New file.
33434         * tests/unicase/test-u16-is-titlecase.c: New file.
33435
33436         Tests for module 'unicase/u8-is-titlecase'.
33437         * modules/unicase/u8-is-titlecase-tests: New file.
33438         * tests/unicase/test-u8-is-titlecase.c: New file.
33439         * tests/unicase/test-is-titlecase.h: New file.
33440
33441         New module 'unicase/u32-is-titlecase'.
33442         * lib/unicase/u32-is-titlecase.c: New file.
33443         * modules/unicase/u32-is-titlecase: New file.
33444
33445         New module 'unicase/u16-is-titlecase'.
33446         * lib/unicase/u16-is-titlecase.c: New file.
33447         * modules/unicase/u16-is-titlecase: New file.
33448
33449         New module 'unicase/u8-is-titlecase'.
33450         * lib/unicase/u8-is-titlecase.c: New file.
33451         * modules/unicase/u8-is-titlecase: New file.
33452
33453         Tests for module 'unicase/u32-is-lowercase'.
33454         * modules/unicase/u32-is-lowercase-tests: New file.
33455         * tests/unicase/test-u32-is-lowercase.c: New file.
33456
33457         Tests for module 'unicase/u16-is-lowercase'.
33458         * modules/unicase/u16-is-lowercase-tests: New file.
33459         * tests/unicase/test-u16-is-lowercase.c: New file.
33460
33461         Tests for module 'unicase/u8-is-lowercase'.
33462         * modules/unicase/u8-is-lowercase-tests: New file.
33463         * tests/unicase/test-u8-is-lowercase.c: New file.
33464         * tests/unicase/test-is-lowercase.h: New file.
33465
33466         New module 'unicase/u32-is-lowercase'.
33467         * lib/unicase/u32-is-lowercase.c: New file.
33468         * modules/unicase/u32-is-lowercase: New file.
33469
33470         New module 'unicase/u16-is-lowercase'.
33471         * lib/unicase/u16-is-lowercase.c: New file.
33472         * modules/unicase/u16-is-lowercase: New file.
33473
33474         New module 'unicase/u8-is-lowercase'.
33475         * lib/unicase/u8-is-lowercase.c: New file.
33476         * modules/unicase/u8-is-lowercase: New file.
33477
33478         Tests for module 'unicase/u32-is-uppercase'.
33479         * modules/unicase/u32-is-uppercase-tests: New file.
33480         * tests/unicase/test-u32-is-uppercase.c: New file.
33481
33482         Tests for module 'unicase/u16-is-uppercase'.
33483         * modules/unicase/u16-is-uppercase-tests: New file.
33484         * tests/unicase/test-u16-is-uppercase.c: New file.
33485
33486         Tests for module 'unicase/u8-is-uppercase'.
33487         * modules/unicase/u8-is-uppercase-tests: New file.
33488         * tests/unicase/test-u8-is-uppercase.c: New file.
33489         * tests/unicase/test-is-uppercase.h: New file.
33490
33491         New module 'unicase/u32-is-uppercase'.
33492         * lib/unicase/u32-is-uppercase.c: New file.
33493         * modules/unicase/u32-is-uppercase: New file.
33494
33495         New module 'unicase/u16-is-uppercase'.
33496         * lib/unicase/u16-is-uppercase.c: New file.
33497         * modules/unicase/u16-is-uppercase: New file.
33498
33499         New module 'unicase/u8-is-uppercase'.
33500         * lib/unicase/u8-is-uppercase.c: New file.
33501         * modules/unicase/u8-is-uppercase: New file.
33502
33503         New module 'unicase/u32-is-invariant'.
33504         * lib/unicase/u32-is-invariant.c: New file.
33505         * modules/unicase/u32-is-invariant: New file.
33506
33507         New module 'unicase/u16-is-invariant'.
33508         * lib/unicase/u16-is-invariant.c: New file.
33509         * modules/unicase/u16-is-invariant: New file.
33510
33511         New module 'unicase/u8-is-invariant'.
33512         * lib/unicase/u8-is-invariant.c: New file.
33513         * lib/unicase/invariant.h: New file.
33514         * lib/unicase/u-is-invariant.h: New file.
33515         * modules/unicase/u8-is-invariant: New file.
33516
33517         Tests for module 'unicase/u32-casecoll'.
33518         * modules/unicase/u32-casecoll-tests: New file.
33519         * tests/unicase/test-u32-casecoll.c: New file.
33520
33521         Tests for module 'unicase/u16-casecoll'.
33522         * modules/unicase/u16-casecoll-tests: New file.
33523         * tests/unicase/test-u16-casecoll.c: New file.
33524
33525         Tests for module 'unicase/u8-casecoll'.
33526         * modules/unicase/u8-casecoll-tests: New file.
33527         * tests/unicase/test-u8-casecoll.c: New file.
33528
33529         New module 'unicase/u32-casecoll'.
33530         * lib/unicase/u32-casecoll.c: New file.
33531         * modules/unicase/u32-casecoll: New file.
33532
33533         New module 'unicase/u16-casecoll'.
33534         * lib/unicase/u16-casecoll.c: New file.
33535         * modules/unicase/u16-casecoll: New file.
33536
33537         New module 'unicase/u8-casecoll'.
33538         * lib/unicase/u8-casecoll.c: New file.
33539         * lib/unicase/u-casecoll.h: New file.
33540         * modules/unicase/u8-casecoll: New file.
33541
33542         New module 'unicase/u32-casexfrm'.
33543         * lib/unicase/u32-casexfrm.c: New file.
33544         * modules/unicase/u32-casexfrm: New file.
33545
33546         New module 'unicase/u16-casexfrm'.
33547         * lib/unicase/u16-casexfrm.c: New file.
33548         * modules/unicase/u16-casexfrm: New file.
33549
33550         New module 'unicase/u8-casexfrm'.
33551         * lib/unicase/u8-casexfrm.c: New file.
33552         * lib/unicase/u-casexfrm.h: New file.
33553         * modules/unicase/u8-casexfrm: New file.
33554
33555         Tests for module 'unicase/u32-casecmp'.
33556         * modules/unicase/u32-casecmp-tests: New file.
33557         * tests/unicase/test-u32-casecmp.c: New file.
33558
33559         Tests for module 'unicase/u16-casecmp'.
33560         * modules/unicase/u16-casecmp-tests: New file.
33561         * tests/unicase/test-u16-casecmp.c: New file.
33562
33563         Tests for module 'unicase/u8-casecmp'.
33564         * modules/unicase/u8-casecmp-tests: New file.
33565         * tests/unicase/test-u8-casecmp.c: New file.
33566         * tests/unicase/test-casecmp.h: New file.
33567
33568         New module 'unicase/u32-casecmp'.
33569         * lib/unicase/u32-casecmp.c: New file.
33570         * modules/unicase/u32-casecmp: New file.
33571
33572         New module 'unicase/u16-casecmp'.
33573         * lib/unicase/u16-casecmp.c: New file.
33574         * modules/unicase/u16-casecmp: New file.
33575
33576         New module 'unicase/u8-casecmp'.
33577         * lib/unicase/u8-casecmp.c: New file.
33578         * lib/unicase/u-casecmp.h: New file.
33579         * modules/unicase/u8-casecmp: New file.
33580
33581         Tests for module 'unicase/u32-casefold'.
33582         * modules/unicase/u32-casefold-tests: New file.
33583         * tests/unicase/test-u32-casefold.c: New file.
33584
33585         Tests for module 'unicase/u16-casefold'.
33586         * modules/unicase/u16-casefold-tests: New file.
33587         * tests/unicase/test-u16-casefold.c: New file.
33588
33589         Tests for module 'unicase/u8-casefold'.
33590         * modules/unicase/u8-casefold-tests: New file.
33591         * tests/unicase/test-u8-casefold.c: New file.
33592
33593         New module 'unicase/u32-casefold'.
33594         * lib/unicase/u32-casefold.c: New file.
33595         * modules/unicase/u32-casefold: New file.
33596
33597         New module 'unicase/u16-casefold'.
33598         * lib/unicase/u16-casefold.c: New file.
33599         * modules/unicase/u16-casefold: New file.
33600
33601         New module 'unicase/u8-casefold'.
33602         * lib/unicase/u8-casefold.c: New file.
33603         * lib/unicase/u-casefold.h: New file.
33604         * modules/unicase/u8-casefold: New file.
33605
33606         New module 'unicase/tocasefold'.
33607         * lib/unicase/casefold.h: New file.
33608         * lib/unicase/tocasefold.c: New file.
33609         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
33610         * modules/unicase/tocasefold: New file.
33611
33612         Tests for module 'unicase/u32-totitle'.
33613         * modules/unicase/u32-totitle-tests: New file.
33614         * tests/unicase/test-u32-totitle.c: New file.
33615
33616         Tests for module 'unicase/u16-totitle'.
33617         * modules/unicase/u16-totitle-tests: New file.
33618         * tests/unicase/test-u16-totitle.c: New file.
33619
33620         Tests for module 'unicase/u8-totitle'.
33621         * modules/unicase/u8-totitle-tests: New file.
33622         * tests/unicase/test-u8-totitle.c: New file.
33623
33624         New module 'unicase/u32-totitle'.
33625         * lib/unicase/u32-totitle.c: New file.
33626         * modules/unicase/u32-totitle: New file.
33627
33628         New module 'unicase/u16-totitle'.
33629         * lib/unicase/u16-totitle.c: New file.
33630         * modules/unicase/u16-totitle: New file.
33631
33632         New module 'unicase/u8-totitle'.
33633         * lib/unicase/u8-totitle.c: New file.
33634         * lib/unicase/u-totitle.h: New file.
33635         * modules/unicase/u8-totitle: New file.
33636
33637         Tests for module 'unicase/u32-tolower'.
33638         * modules/unicase/u32-tolower-tests: New file.
33639         * tests/unicase/test-u32-tolower.c: New file.
33640
33641         Tests for module 'unicase/u16-tolower'.
33642         * modules/unicase/u16-tolower-tests: New file.
33643         * tests/unicase/test-u16-tolower.c: New file.
33644
33645         Tests for module 'unicase/u8-tolower'.
33646         * modules/unicase/u8-tolower-tests: New file.
33647         * tests/unicase/test-u8-tolower.c: New file.
33648
33649         New module 'unicase/u32-tolower'.
33650         * lib/unicase/u32-tolower.c: New file.
33651         * modules/unicase/u32-tolower: New file.
33652
33653         New module 'unicase/u16-tolower'.
33654         * lib/unicase/u16-tolower.c: New file.
33655         * modules/unicase/u16-tolower: New file.
33656
33657         New module 'unicase/u8-tolower'.
33658         * lib/unicase/u8-tolower.c: New file.
33659         * modules/unicase/u8-tolower: New file.
33660
33661         Tests for module 'unicase/u32-toupper'.
33662         * modules/unicase/u32-toupper-tests: New file.
33663         * tests/unicase/test-u32-toupper.c: New file.
33664
33665         Tests for module 'unicase/u16-toupper'.
33666         * modules/unicase/u16-toupper-tests: New file.
33667         * tests/unicase/test-u16-toupper.c: New file.
33668
33669         Tests for module 'unicase/u8-toupper'.
33670         * modules/unicase/u8-toupper-tests: New file.
33671         * tests/unicase/test-u8-toupper.c: New file.
33672
33673         New module 'unicase/u32-toupper'.
33674         * lib/unicase/u32-toupper.c: New file.
33675         * modules/unicase/u32-toupper: New file.
33676
33677         New module 'unicase/u16-toupper'.
33678         * lib/unicase/u16-toupper.c: New file.
33679         * modules/unicase/u16-toupper: New file.
33680
33681         New module 'unicase/u8-toupper'.
33682         * lib/unicase/u8-toupper.c: New file.
33683         * modules/unicase/u8-toupper: New file.
33684
33685         New module 'unicase/u32-casemap'.
33686         * lib/unicase/u32-casemap.c: New file.
33687         * modules/unicase/u32-casemap: New file.
33688
33689         New module 'unicase/u16-casemap'.
33690         * lib/unicase/u16-casemap.c: New file.
33691         * modules/unicase/u16-casemap: New file.
33692
33693         New module 'unicase/u8-casemap'.
33694         * lib/unicase/unicasemap.h: New file.
33695         * lib/unicase/u8-casemap.c: New file.
33696         * lib/unicase/u-casemap.h: New file.
33697         * modules/unicase/u8-casemap: New file.
33698
33699         New module 'unicase/special-casing'.
33700         * lib/unicase/special-casing.h: New file.
33701         * lib/unicase/special-casing.c: New file.
33702         * lib/unicase/special-casing-table.gperf: New file, generated by
33703         gen-uni-tables.c.
33704         * modules/unicase/special-casing: New file.
33705
33706         Tests for module 'unicase/locale-language'.
33707         * modules/unicase/locale-language-tests: New file.
33708         * tests/unicase/test-locale-language.sh: New file.
33709         * tests/unicase/test-locale-language.c: New file.
33710
33711         New module 'unicase/locale-language'.
33712         * lib/unicase/locale-language.c: New file.
33713         * lib/unicase/locale-languages.gperf: New file.
33714         * modules/unicase/locale-language: New file.
33715
33716         Generate more tables for case conversion and case folding.
33717         * lib/gen-uni-tables.c (SCC_*): New enum items.
33718         (struct special_casing_rule): New type.
33719         (casing_rules, num_casing_rules, allocated_casing_rules): New
33720         variables.
33721         (add_casing_rule, fill_casing_rules): New functions.
33722         (struct casefold_rule): New type.
33723         (casefolding_rules, num_casefolding_rules,
33724         allocated_casefolding_rules): New variables.
33725         (fill_casefolding_rules): New function.
33726         (unicode_casefold): New variable.
33727         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
33728         sort_casing_rules, output_casing_rules): New functions.
33729         (main): Accept to more arguments: SpecialCasing.txt and
33730         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
33731         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
33732         Output mapping for casefolding.
33733
33734         * lib/unicase.h: Include stdbool.h, uninorm.h.
33735         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
33736         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
33737         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
33738         arguments.
33739         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
33740         resultp arguments.
33741         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
33742         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
33743         resultp arguments.
33744         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
33745         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
33746         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
33747         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
33748         declarations.
33749         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
33750
33751 2009-03-08  Bruno Haible  <bruno@clisp.org>
33752
33753         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
33754         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
33755         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
33756         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
33757
33758 2009-03-07  Bruno Haible  <bruno@clisp.org>
33759
33760         Adjust u*_normcmp, u*_normcoll API.
33761         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
33762         u16_normcoll, u32_normcoll): Change failure conventions.
33763         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
33764         errno and return -1.
33765         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
33766
33767 2009-03-07  Bruno Haible  <bruno@clisp.org>
33768
33769         Tests for module 'uninorm/u32-normcoll'.
33770         * modules/uninorm/u32-normcoll-tests: New file.
33771         * tests/uninorm/test-u32-normcoll.c: New file.
33772
33773         Tests for module 'uninorm/u16-normcoll'.
33774         * modules/uninorm/u16-normcoll-tests: New file.
33775         * tests/uninorm/test-u16-normcoll.c: New file.
33776
33777         Tests for module 'uninorm/u8-normcoll'.
33778         * modules/uninorm/u8-normcoll-tests: New file.
33779         * tests/uninorm/test-u8-normcoll.c: New file.
33780
33781 2009-03-07  Bruno Haible  <bruno@clisp.org>
33782
33783         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
33784         tests/uninorm/test-u32-normcmp.c.
33785         * tests/uninorm/test-u32-normcmp.c: Include it.
33786         (test_nonascii): New function, extracted from main. Add some more
33787         tests.
33788         (main): Invoke test_ascii and test_nonascii.
33789         * modules/uninorm/u32-normcmp-tests (Files): Add
33790         tests/uninorm/test-u32-normcmp.h.
33791         (Depends-on): Remove uninorm/u32-normcmp.
33792
33793         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
33794         tests/uninorm/test-u16-normcmp.c.
33795         * tests/uninorm/test-u16-normcmp.c: Include it.
33796         (test_nonascii): New function, extracted from main. Add some more
33797         tests.
33798         (main): Invoke test_ascii and test_nonascii.
33799         * modules/uninorm/u16-normcmp-tests (Files): Add
33800         tests/uninorm/test-u16-normcmp.h.
33801         (Depends-on): Remove uninorm/u16-normcmp.
33802
33803         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
33804         tests/uninorm/test-u8-normcmp.c.
33805         * tests/uninorm/test-u8-normcmp.c: Include it.
33806         (test_nonascii): New function, extracted from main. Add some more
33807         tests.
33808         (main): Invoke test_ascii and test_nonascii.
33809         * modules/uninorm/u8-normcmp-tests (Files): Add
33810         tests/uninorm/test-u8-normcmp.h.
33811         (Depends-on): Remove uninorm/u8-normcmp.
33812
33813 2009-03-07  Bruno Haible  <bruno@clisp.org>
33814
33815         New module 'uninorm/u32-normcoll'.
33816         * lib/uninorm/u32-normcoll.c: New file.
33817         * modules/uninorm/u32-normcoll: New file.
33818
33819         New module 'uninorm/u16-normcoll'.
33820         * lib/uninorm/u16-normcoll.c: New file.
33821         * modules/uninorm/u16-normcoll: New file.
33822
33823         New module 'uninorm/u8-normcoll'.
33824         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
33825         declarations.
33826         * lib/uninorm/u8-normcoll.c: New file.
33827         * lib/uninorm/u-normcoll.h: New file.
33828         * modules/uninorm/u8-normcoll: New file.
33829
33830         New module 'uninorm/u32-normxfrm'.
33831         * lib/uninorm/u32-normxfrm.c: New file.
33832         * modules/uninorm/u32-normxfrm: New file.
33833
33834         New module 'uninorm/u16-normxfrm'.
33835         * lib/uninorm/u16-normxfrm.c: New file.
33836         * modules/uninorm/u16-normxfrm: New file.
33837
33838         New module 'uninorm/u8-normxfrm'.
33839         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
33840         declarations.
33841         * lib/uninorm/u8-normxfrm.c: New file.
33842         * lib/uninorm/u-normxfrm.h: New file.
33843         * modules/uninorm/u8-normxfrm: New file.
33844
33845 2009-03-07  Bruno Haible  <bruno@clisp.org>
33846
33847         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
33848         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
33849         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
33850
33851 2009-03-07  Bruno Haible  <bruno@clisp.org>
33852
33853         New module 'memxfrm'.
33854         * lib/memxfrm.h: New file.
33855         * lib/memxfrm.c: New file.
33856         * modules/memxfrm: New file.
33857
33858 2009-03-07  Bruno Haible  <bruno@clisp.org>
33859
33860         New module 'memcmp2'.
33861         * lib/memcmp2.h: New file.
33862         * lib/memcmp2.c: New file.
33863         * modules/memcmp2: New file.
33864
33865 2009-03-07  Bruno Haible  <bruno@clisp.org>
33866
33867         Tests for module 'uninorm/decomposing-form'.
33868         * modules/uninorm/decomposing-form-tests: New file.
33869         * tests/uninorm/test-decomposing-form.c: New file.
33870
33871         New module 'uninorm/decomposing-form'.
33872         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
33873         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
33874         Add 'decomposing_variant' field.
33875         * lib/uninorm/decomposing-form.c: New file.
33876         * lib/uninorm/nfc.c (uninorm_nfc): Update.
33877         * lib/uninorm/nfd.c (uninorm_nfd): Update.
33878         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
33879         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
33880         * modules/uninorm/decomposing-form: New file.
33881         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
33882         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
33883
33884 2009-03-07  Bruno Haible  <bruno@clisp.org>
33885
33886         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
33887         strings.
33888
33889 2009-03-06  Bruno Haible  <bruno@clisp.org>
33890
33891         Tests for module 'uninorm/u32-normcmp'.
33892         * tests/uninorm/test-u32-normcmp.c: New file.
33893         * modules/uninorm/u32-normcmp-tests: New file.
33894
33895         Tests for module 'uninorm/u16-normcmp'.
33896         * tests/uninorm/test-u16-normcmp.c: New file.
33897         * modules/uninorm/u16-normcmp-tests: New file.
33898
33899         Tests for module 'uninorm/u8-normcmp'.
33900         * tests/uninorm/test-u8-normcmp.c: New file.
33901         * modules/uninorm/u8-normcmp-tests: New file.
33902
33903         New module 'uninorm/u32-normcmp'.
33904         * lib/uninorm/u32-normcmp.c: New file.
33905         * modules/uninorm/u32-normcmp: New file.
33906
33907         New module 'uninorm/u16-normcmp'.
33908         * lib/uninorm/u16-normcmp.c: New file.
33909         * modules/uninorm/u16-normcmp: New file.
33910
33911         New module 'uninorm/u8-normcmp'.
33912         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
33913         declarations.
33914         * lib/uninorm/u8-normcmp.c: New file.
33915         * lib/uninorm/u-normcmp.h: New file.
33916         * modules/uninorm/u8-normcmp: New file.
33917
33918 2009-03-06  Bruno Haible  <bruno@clisp.org>
33919
33920         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
33921         Reported by Eric Blake.
33922
33923 2009-03-06  Eric Blake  <ebb9@byu.net>
33924             Bruno Haible  <bruno@clisp.org>
33925
33926         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
33927         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
33928         condition.
33929         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
33930         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
33931         condition.
33932         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
33933
33934 2009-03-06  Eric Blake  <ebb9@byu.net>
33935
33936         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
33937         to avoid compiler warnings.
33938         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
33939
33940 2009-03-05  Bruno Haible  <bruno@clisp.org>
33941
33942         * tests/test-ftell.c (main): Disable test beyond end of file on
33943         FreeMiNT.
33944         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33945
33946 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
33947
33948         * lib/filevercmp.c: Move hidden files up in ordering.
33949         * tests/test-filevercmp.c: Add tests for hidden files.
33950
33951 2009-03-04  Bruno Haible  <bruno@clisp.org>
33952
33953         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
33954         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
33955         AM_CFLAGS.
33956         Reported by Simon Josefsson.
33957
33958 2009-03-03  Bruno Haible  <bruno@clisp.org>
33959
33960         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
33961         Reported by Simon Josefsson.
33962
33963         * doc/ld-version-script.texi: Update node reference.
33964
33965 2009-03-03  Bruno Haible  <bruno@clisp.org>
33966
33967         * modules/visibility (License): Change to 'unlimited'.
33968         Suggested by Simon Josefsson.
33969
33970 2009-03-03  Jim Meyering  <meyering@redhat.com>
33971
33972         unlinkdir: cannot_unlink_dir may modify process state
33973         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
33974         it's neither thread-safe nor appropriate for use in a library.
33975
33976 2009-03-03  Eric Blake  <ebb9@byu.net>
33977
33978         test-closein: silence test under Darwin
33979         * tests/test-closein.sh: Ignore stderr from cat, since we don't
33980         care if it dies from EPIPE or EBADF.
33981
33982 2009-03-03  Bruno Haible  <bruno@clisp.org>
33983
33984         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
33985         earlier.
33986         * doc/visibility.texi: Fix @node and @section.
33987
33988 2009-03-03  Simon Josefsson  <simon@josefsson.org>
33989
33990         * doc/gnulib.texi: Link to sections for ld version script and
33991         visibility.
33992         * doc/visibility.texi: Add @node and @section.
33993         * modules/ld-version-script: New module.
33994         * m4/ld-version-script.m4: New file.
33995         * doc/ld-version-script.texi: New file.
33996
33997 2009-03-02  David Lutterkort  <lutter@redhat.com>
33998
33999         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
34000         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34001
34002 2009-03-02  Bruno Haible  <bruno@clisp.org>
34003
34004         * doc/visibility.texi: Mention libtool's -export-symbols option.
34005
34006 2009-03-02  Jim Meyering  <meyering@redhat.com>
34007
34008         announce-gen: new option: --no-print-checksums
34009         * build-aux/announce-gen (usage): Describe it.
34010         (print_checksums): Print a newline here, not in the [*] footnote.
34011         (main): Honor it.
34012
34013 2009-03-01  Bruno Haible  <bruno@clisp.org>
34014
34015         Use socklen_t in the native Windows replacements prototypes.
34016         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
34017         instead of 'int'.
34018         * lib/getsockopt.c (rpl_getsockopt): Likewise.
34019         * lib/setsockopt.c (rpl_setsockopt): Likewise.
34020         * modules/getsockopt (Depends-on): Add socklen.
34021         * modules/setsockopt (Depends-on): Add socklen.
34022
34023 2009-03-01  Bruno Haible  <bruno@clisp.org>
34024
34025         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
34026         least 4.2.
34027
34028 2009-03-01  Eric Blake  <ebb9@byu.net>
34029             Bruno Haible  <bruno@clisp.org>
34030
34031         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
34032         error messages.
34033         * lib/wait-process.c (wait_subprocess): Omit error message about
34034         deadly signal sent to the child of termsigp != NULL.
34035
34036 2009-03-01  Eric Blake  <ebb9@byu.net>
34037
34038         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
34039
34040 2009-03-01  Bruno Haible  <bruno@clisp.org>
34041
34042         Avoid a gcc warning.
34043         * tests/test-sched.c (b): Make global.
34044         Reported by Eric Blake.
34045
34046 2009-01-19  Martin Lambers  <marlam@marlam.de>
34047
34048         Provide POSIX semantics for socket timeout options on W32.
34049         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
34050         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
34051         * modules/setsockopt: Depend on sys_time module for struct timeval.
34052         * modules/getsockopt: Depend on sys_time module for struct timeval.
34053
34054 2009-03-01  Simon Josefsson  <simon@josefsson.org>
34055
34056         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
34057         __USE_GNU, for consistency with netdb.in.h.
34058         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34059
34060 2009-03-01  Bruno Haible  <bruno@clisp.org>
34061
34062         More support for FreeMiNT.
34063         * lib/fseeko.c (rpl_fseeko): Complete last commit.
34064         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34065
34066 2009-03-01  Bruno Haible  <bruno@clisp.org>
34067
34068         More support for FreeMiNT.
34069         * lib/fpurge.c (fpurge): Correct last commit.
34070         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34071
34072 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34073
34074         Fix unportable awk script in vc-list-files.
34075         * build-aux/vc-list-files: In the replacement awk script, use
34076         substr with a second argument of 1, not zero.
34077         Report by Simon Josefsson.
34078
34079 2009-02-28  Bruno Haible  <bruno@clisp.org>
34080
34081         More support for FreeMiNT.
34082         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
34083         to FreeMiNT today.
34084         * lib/fwriting.c (fwriting): Likewise.
34085         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
34086
34087 2009-02-28  Bruno Haible  <bruno@clisp.org>
34088
34089         * tests/test-freadseek.c (main): Disable test beyond end of file on
34090         FreeMiNT.
34091         * tests/test-ftello.c (main): Likewise.
34092         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
34093
34094 2009-02-28  Bruno Haible  <bruno@clisp.org>
34095
34096         Add tentative support for FreeMiNT.
34097         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
34098         * lib/fpurge.c (fpurge): Likewise.
34099         * lib/freadable.c (freadable): Likewise.
34100         * lib/freading.c (freading): Likewise.
34101         * lib/freadptr.c (freadptr): Likewise.
34102         * lib/freadseek.c (freadptrinc): Likewise.
34103         * lib/fseeko.c (rpl_fseeko): Likewise.
34104         * lib/fseterr.c (fseterr): Likewise.
34105         * lib/fwritable.c (fwritable): Likewise.
34106         * lib/fwriting.c (fwriting): Likewise.
34107         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
34108         Hourihane.
34109         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34110
34111 2009-02-28  Bruno Haible  <bruno@clisp.org>
34112
34113         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
34114         SIGCHLD.
34115         Reported by Jim Meyering.
34116
34117 2009-02-28  Bruno Haible  <bruno@clisp.org>
34118
34119         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
34120         Mention the results of these tests on various platforms.
34121         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
34122         order.
34123         * doc/posix-functions/printf.texi: Likewise.
34124         * doc/posix-functions/snprintf.texi: Likewise.
34125         * doc/posix-functions/sprintf.texi: Likewise.
34126         * doc/posix-functions/vfprintf.texi: Likewise.
34127         * doc/posix-functions/vprintf.texi: Likewise.
34128         * doc/posix-functions/vsnprintf.texi: Likewise.
34129         * doc/posix-functions/vsprintf.texi: Likewise.
34130         * doc/glibc-functions/obstack_printf.texi: Likewise.
34131         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
34132
34133 2009-02-28  Bruno Haible  <bruno@clisp.org>
34134
34135         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
34136         Reported by Loïc Minier <lool@dooz.org>.
34137
34138 2009-02-27  Bruno Haible  <bruno@clisp.org>
34139
34140         * gnulib-tool (func_import): Make the sed expression used to create the
34141         sed script for updating the .gitignore file POSIX compliant.
34142         Reported by Eric Blake.
34143
34144 2009-02-27  Bruno Haible  <bruno@clisp.org>
34145
34146         * gnulib-tool (sed): Don't alias as "sed --posix".
34147         Reported by Eric Blake.
34148
34149 2009-02-27  Bruno Haible  <bruno@clisp.org>
34150
34151         Avoid test link errors.
34152         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
34153         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
34154         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
34155         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
34156         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34157
34158 2009-02-27  Bruno Haible  <bruno@clisp.org>
34159
34160         Avoid spurious "(cached)" in configure output.
34161         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
34162         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
34163         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
34164         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
34165         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
34166         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
34167         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
34168         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
34169         Reported by Eric Blake.
34170
34171 2009-02-27  Eric Blake  <ebb9@byu.net>
34172
34173         printf: fix regression in previous patch
34174         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
34175
34176 2009-02-27  Bruno Haible  <bruno@clisp.org>
34177
34178         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
34179         value.
34180         * lib/stdint.in.h: Likewise.
34181         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
34182
34183 2009-02-27  Eric Blake  <ebb9@byu.net>
34184
34185         doc: mention more functions added in cygwin 1.7.0
34186         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
34187         addition.
34188         * doc/posix-functions/open_wmemstream.texi: Likewise.
34189         * doc/posix-functions/wcsnlen.texi: Likewise.
34190         * doc/posix-functions/wcsnrtombs.texi: Likewise.
34191         * doc/posix-functions/wcstod.texi: Likewise.
34192         * doc/posix-functions/wcstof.texi: Likewise.
34193         * doc/posix-functions/wcstoimax.texi: Likewise.
34194         * doc/posix-functions/wcstok.texi: Likewise.
34195         * doc/posix-functions/wcstoumax.texi: Likewise.
34196
34197         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
34198         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
34199         * doc/posix-functions/fprintf.texi: Update.
34200         * doc/posix-functions/printf.texi: Update.
34201         * doc/posix-functions/snprintf.texi: Update.
34202         * doc/posix-functions/sprintf.texi: Update.
34203         * doc/posix-functions/vfprintf.texi: Update.
34204         * doc/posix-functions/vprintf.texi: Update.
34205         * doc/posix-functions/vsnprintf.texi: Update.
34206         * doc/posix-functions/vsprintf.texi: Update.
34207         * doc/glibc-functions/obstack_printf.texi: Update.
34208         * doc/glibc-functions/obstack_vprintf.texi: Update.
34209
34210 2009-02-26  Eric Blake  <ebb9@byu.net>
34211
34212         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
34213         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
34214         compilation bug by using runtime conversion.
34215         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34216         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
34217         * modules/ceill-tests (Files): Use nan.h.
34218         * modules/floorl-tests (Files): Likewise.
34219         * modules/frexpl-tests (Files): Likewise.
34220         * modules/isnanl-tests (Files): Likewise.
34221         * modules/ldexpl-tests (Files): Likewise.
34222         * modules/roundl-tests (Files): Likewise.
34223         * modules/truncl-tests (Files): Likewise.
34224         * tests/test-ceill.c (main): Use a working NaN.
34225         * tests/test-floorl.c (main): Likewise.
34226         * tests/test-frexpl.c (main): Likewise.
34227         * tests/test-isnan.c (test_long_double): Likewise.
34228         * tests/test-isnanl.h (main): Likewise.
34229         * tests/test-ldexpl.h (main): Likewise.
34230         * tests/test-roundl.h (main): Likewise.
34231         * tests/test-truncl.h (main): Likewise.
34232         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
34233
34234 2009-02-26  Eric Blake  <ebb9@byu.net>
34235             Bruno Haible  <bruno@clisp.org>
34236
34237         Work around a *printf bug with %ls on Solaris.
34238         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
34239         precision is specified, sprintf stops converting the wide string
34240         argument when the number of bytes that have been produced by this
34241         conversion equals or exceeds the precision.
34242         * doc/posix-functions/fprintf.texi: Update.
34243         * doc/posix-functions/printf.texi: Update.
34244         * doc/posix-functions/snprintf.texi: Update.
34245         * doc/posix-functions/sprintf.texi: Update.
34246         * doc/posix-functions/vfprintf.texi: Update.
34247         * doc/posix-functions/vprintf.texi: Update.
34248         * doc/posix-functions/vsnprintf.texi: Update.
34249         * doc/posix-functions/vsprintf.texi: Update.
34250         * doc/glibc-functions/obstack_printf.texi: Update.
34251         * doc/glibc-functions/obstack_vprintf.texi: Update.
34252
34253 2009-02-26  Eric Blake  <ebb9@byu.net>
34254
34255         stdlib: favor compiler check of random.h
34256         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
34257         to avoid an ObjC random.h installed by Swarm.
34258
34259 2009-02-26  Bruno Haible  <bruno@clisp.org>
34260
34261         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
34262         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
34263         Reported by Gary V. Vaughan <gary@gnu.org>.
34264
34265 2009-02-26  Bruno Haible  <bruno@clisp.org>
34266
34267         Fix *printf behaviour regarding the %ls directive.
34268         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
34269         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
34270         NEED_PRINTF_DIRECTIVE_LS.
34271         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
34272         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34273         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34274         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
34275         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
34276         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
34277         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
34278         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34279         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34280         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34281         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34282         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
34283         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34284         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34285         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34286         * doc/posix-functions/fprintf.texi: Update.
34287         * doc/posix-functions/printf.texi: Update.
34288         * doc/posix-functions/snprintf.texi: Update.
34289         * doc/posix-functions/sprintf.texi: Update.
34290         * doc/posix-functions/vfprintf.texi: Update.
34291         * doc/posix-functions/vprintf.texi: Update.
34292         * doc/posix-functions/vsnprintf.texi: Update.
34293         * doc/posix-functions/vsprintf.texi: Update.
34294         * doc/glibc-functions/obstack_printf.texi: Update.
34295         * doc/glibc-functions/obstack_vprintf.texi: Update.
34296         Reported by Eric Blake.
34297
34298 2009-02-25  Bruno Haible  <bruno@clisp.org>
34299
34300         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
34301         with known value.
34302         Reported by Gary V. Vaughan <gary@gnu.org>.
34303
34304 2009-02-25  Bruno Haible  <bruno@clisp.org>
34305
34306         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
34307         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
34308         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
34309         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
34310         Reported by Gary V. Vaughan <gary@gnu.org>.
34311
34312 2009-02-25  Bruno Haible  <bruno@clisp.org>
34313
34314         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
34315         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
34316         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
34317         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
34318         Reported by Gary V. Vaughan <gary@gnu.org>.
34319
34320 2009-02-25  Eric Blake  <ebb9@byu.net>
34321
34322         tests: skip fseek/ftell tests if ungetc is broken
34323         * m4/ungetc.m4: New file.
34324         * modules/fseek-tests: Split test, so ungetc dependency is
34325         separate from rest of test.
34326         * modules/fseeko-tests: Likewise.
34327         * modules/ftell-tests: Likewise.
34328         * modules/ftello-tests: Likewise.
34329         * tests/test-fseek.c (main): Isolate ungetc dependency.
34330         * tests/test-fseeko.c (main): Likewise.
34331         * tests/test-ftell.c (main): Likewise.
34332         * tests/test-ftello.c (main): Likewise.
34333         * tests/test-fseek2.sh: New file.
34334         * tests/test-fseeko2.sh: Likewise.
34335         * tests/test-ftell2.sh: Likewise.
34336         * tests/test-ftello2.sh: Likewise.
34337
34338 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
34339
34340         test-getaddrinfo: fix usage of skip return code 77
34341         * tests/test-gettaddrinfo.c: Return skip code 77 only
34342         for first occurance of skip (4x77 is not 77)
34343
34344 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
34345
34346         strtod: avoid C99 decl-after-statement
34347         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
34348
34349 2009-02-24  Eric Blake  <ebb9@byu.net>
34350
34351         strtod: detect HP-UX 11.31 bug
34352         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
34353         Reported by Gary V. Vaughan.
34354
34355 2009-02-23  Bruno Haible  <bruno@clisp.org>
34356
34357         Fix invalid read past end of memory block.
34358         * lib/vasnprintf.c (DCHAR_SET): Define.
34359         (local_wcslen): Define only when needed.
34360         (local_strnlen, local_wcsnlen): New functions.
34361         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
34362         directives that involve a conversion ourselves.
34363         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
34364         wcsnlen, mbrtowc, wcrtomb.
34365         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
34366         * tests/test-vasprintf-posix.c (test_function): Likewise.
34367         * tests/test-snprintf-posix.h (test_function): Likewise.
34368         * tests/test-sprintf-posix.h (test_function): Likewise.
34369         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34370
34371 2009-02-22  Bruno Haible  <bruno@clisp.org>
34372
34373         Implement new clarified decomposition of Hangul syllables.
34374         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
34375         of type LTV, return only a pairwise decomposition.
34376         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
34377         Likewise.
34378         * tests/uninorm/test-decomposition.c (main): Updated expected result.
34379         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
34380         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
34381
34382 2009-02-22  Bruno Haible  <bruno@clisp.org>
34383
34384         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
34385         zero-length results and shrink excess allocated memory.
34386         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
34387         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
34388         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
34389         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
34390         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
34391         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
34392         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
34393         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
34394         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
34395         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
34396         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
34397         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
34398
34399 2009-02-21  Bruno Haible  <bruno@clisp.org>
34400
34401         * doc/gnulib.texi: Include safe-alloc.texi earlier.
34402         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
34403         spaces after a period. Put a space between a macro name and its
34404         argument list. Trivial rewordings.
34405         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
34406         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
34407         (main): Return 0 explicitly.
34408
34409 2009-02-21  Bruno Haible  <bruno@clisp.org>
34410
34411         Tests for module 'uninorm/filter'.
34412         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
34413         * modules/uninorm/filter-tests: New file.
34414
34415         New module 'uninorm/filter'.
34416         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
34417         uninorm_filter_flush, uninorm_filter_free): New declarations.
34418         * lib/uninorm/uninorm-filter.c: New file.
34419         * modules/uninorm/filter: New file.
34420
34421 2009-02-21  Bruno Haible  <bruno@clisp.org>
34422
34423         Tests for module 'uninorm/nfkc'.
34424         * tests/uninorm/test-nfkc.c: New file.
34425         * tests/uninorm/test-u8-nfkc.c: New file.
34426         * tests/uninorm/test-u16-nfkc.c: New file.
34427         * tests/uninorm/test-u32-nfkc.c: New file.
34428         * tests/uninorm/test-u32-nfkc-big.sh: New file.
34429         * tests/uninorm/test-u32-nfkc-big.c: New file.
34430         * modules/uninorm/nfkc-tests: New file.
34431
34432         New module 'uninorm/nfkc'.
34433         * lib/uninorm/nfkc.c: New file.
34434         * modules/uninorm/nfkc: New file.
34435
34436         Tests for module 'uninorm/nfkd'.
34437         * tests/uninorm/test-nfkd.c: New file.
34438         * tests/uninorm/test-u8-nfkd.c: New file.
34439         * tests/uninorm/test-u16-nfkd.c: New file.
34440         * tests/uninorm/test-u32-nfkd.c: New file.
34441         * tests/uninorm/test-u32-nfkd-big.sh: New file.
34442         * tests/uninorm/test-u32-nfkd-big.c: New file.
34443         * modules/uninorm/nfkd-tests: New file.
34444
34445         New module 'uninorm/nfkd'.
34446         * lib/uninorm/nfkd.c: New file.
34447         * modules/uninorm/nfkd: New file.
34448
34449         Tests for module 'uninorm/nfc'.
34450         * tests/uninorm/test-nfc.c: New file.
34451         * tests/uninorm/test-u8-nfc.c: New file.
34452         * tests/uninorm/test-u16-nfc.c: New file.
34453         * tests/uninorm/test-u32-nfc.c: New file.
34454         * tests/uninorm/test-u32-nfc-big.sh: New file.
34455         * tests/uninorm/test-u32-nfc-big.c: New file.
34456         * modules/uninorm/nfc-tests: New file.
34457
34458         New module 'uninorm/nfc'.
34459         * lib/uninorm/nfc.c: New file.
34460         * modules/uninorm/nfc: New file.
34461
34462         Tests for module 'uninorm/nfd'.
34463         * tests/uninorm/test-nfd.c: New file.
34464         * tests/uninorm/test-u8-nfd.c: New file.
34465         * tests/uninorm/test-u16-nfd.c: New file.
34466         * tests/uninorm/test-u32-nfd.c: New file.
34467         * tests/uninorm/test-u32-nfd-big.sh: New file.
34468         * tests/uninorm/test-u32-nfd-big.c: New file.
34469         * tests/uninorm/test-u32-normalize-big.h: New file.
34470         * tests/uninorm/test-u32-normalize-big.c: New file.
34471         * tests/uninorm/NormalizationTest.txt: New file, created from
34472         Unicode 5.1.0 NormalizationTest.txt.
34473         * modules/uninorm/nfd-tests: New file.
34474
34475         New module 'uninorm/nfd'.
34476         * lib/uninorm/nfd.c: New file.
34477         * modules/uninorm/nfd: New file.
34478
34479         New module 'uninorm/u32-normalize'.
34480         * lib/uninorm/u32-normalize.c: New file.
34481         * modules/uninorm/u32-normalize: New file.
34482
34483         New module 'uninorm/u16-normalize'.
34484         * lib/uninorm/u16-normalize.c: New file.
34485         * modules/uninorm/u16-normalize: New file.
34486
34487         New module 'uninorm/u8-normalize'.
34488         * lib/uninorm/u8-normalize.c: New file.
34489         * lib/uninorm/normalize-internal.h: New file.
34490         * lib/uninorm/u-normalize-internal.h: New file.
34491         * modules/uninorm/u8-normalize: New file.
34492
34493         New module 'uninorm/decompose-internal'.
34494         * lib/uninorm/decompose-internal.c: New file.
34495         * modules/uninorm/decompose-internal: New file.
34496
34497         Tests for module 'uninorm/composition'.
34498         * tests/uninorm/test-composition.c: New file.
34499         * modules/uninorm/composition-tests: New file.
34500
34501         New module 'uninorm/composition'.
34502         * lib/uninorm/composition.c: New file.
34503         * lib/uninorm/composition-table.gperf: New file, generated by
34504         gen-uni-tables.
34505         * modules/uninorm/composition: New file.
34506
34507         Tests for module 'uninorm/compat-decomposition'.
34508         * tests/uninorm/test-compat-decomposition.c: New file.
34509         * modules/uninorm/compat-decomposition-tests: New file.
34510
34511         New module 'uninorm/compat-decomposition'.
34512         * lib/uninorm/decompose-internal.h: New file.
34513         * lib/uninorm/compat-decomposition.c: New file.
34514         * modules/uninorm/compat-decomposition: New file.
34515
34516         Tests for module 'uninorm/canonical-decomposition'.
34517         * tests/uninorm/test-canonical-decomposition.c: New file.
34518         * modules/uninorm/canonical-decomposition-tests: New file.
34519
34520         New module 'uninorm/canonical-decomposition'.
34521         * lib/uninorm/canonical-decomposition.c: New file.
34522         * modules/uninorm/canonical-decomposition: New file.
34523
34524         Tests for module 'uninorm/decomposition'.
34525         * tests/uninorm/test-decomposition.c: New file.
34526         * modules/uninorm/decomposition-tests: New file.
34527
34528         New module 'uninorm/decomposition'.
34529         * lib/uninorm/decomposition.c: New file.
34530         * modules/uninorm/decomposition: New file.
34531
34532         New module 'uninorm/decomposition-table'.
34533         * lib/uninorm/decomposition-table.h: New file.
34534         * lib/uninorm/decomposition-table.c: New file.
34535         * lib/uninorm/decomposition-table1.h: New file, generated by
34536         gen-uni-tables.
34537         * lib/uninorm/decomposition-table2.h: New file, generated by
34538         gen-uni-tables.
34539         * modules/uninorm/decomposition-table: New file.
34540
34541         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
34542         (UC_DECOMP_*): New enumeration items.
34543         (get_decomposition): New function.
34544         (struct decomp_table): New type.
34545         (output_decomposition, output_decomposition_tables): New functions.
34546         (unicode_composition_exclusions): New variable.
34547         (fill_composition_exclusions, debug_output_composition_tables): New
34548         functions.
34549         (main): Accept one more argument. Invoke fill_composition_exclusions.
34550         Output decomposition and composition tables.
34551
34552         New module 'uninorm/base'.
34553         * lib/uninorm.h: New file.
34554         * lib/unictype.h: Update comment.
34555         * modules/uninorm/base: New file.
34556
34557 2009-02-21  David Lutterkort  <lutter@redhat.com>
34558
34559         Tests for module 'safe-alloc'.
34560         * tests/test-safe-alloc.c: New file.
34561         * modules/safe-alloc-tests: New file.
34562
34563         New module 'safe-alloc'.
34564         * lib/safe-alloc.h: New file.
34565         * lib/safe-alloc.c: New file.
34566         * m4/safe-alloc.m4: New file.
34567         * modules/safe-alloc: New file.
34568         * doc/safe-alloc.texi: New file.
34569         * doc/gnulib.texi: Include it.
34570         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
34571         safe-alloc.
34572
34573 2009-02-18  Bruno Haible  <bruno@clisp.org>
34574
34575         Fix link error on non-glibc systems.
34576         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
34577         variable.
34578         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34579
34580 2009-02-18  Jim Meyering  <meyering@redhat.com>
34581
34582         fts: avoid used-uninitialized error due to recent change
34583         * lib/fts.c (fts_read): Guard uses of the new member,
34584         parent->fts_n_dirs_remaining, since it's not relevant for
34585         the parent of a directory specified on the command-line.
34586
34587 2009-02-17  James Youngman  <jay@gnu.org>
34588             Bruno Haible  <bruno@clisp.org>
34589
34590         * m4/include_next.m4: Reformulate comment.
34591
34592 2009-02-16  Jim Meyering  <meyering@redhat.com>
34593
34594         fts: add #if guards so that the fts_lgpl module still builds
34595         * lib/fts.c: Guard just-added hash-table-using parts with
34596         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
34597         Reported by Simon Josefsson.
34598
34599 2009-02-15  Bruno Haible  <bruno@clisp.org>
34600
34601         * modules/array-mergesort-tests: New file.
34602         * tests/test-array-mergesort.c: New file.
34603
34604         New module 'array-mergesort'.
34605         * modules/array-mergesort: New file.
34606         * lib/array-mergesort.h: New file.
34607
34608 2009-02-15  Bruno Haible  <bruno@clisp.org>
34609
34610         Fix 2009-02-07 commit.
34611         * lib/gen-uni-tables.c (output_predicate, output_category,
34612         output_combclass, output_bidi_category, output_decimal_digit,
34613         output_digit, output_numeric, output_mirror, output_scripts,
34614         output_ident_category, output_simple_mapping): Fix format directives.
34615         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
34616
34617 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
34618
34619         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
34620         fixes are available from IBM.
34621
34622 2009-02-13  Jim Meyering  <meyering@redhat.com>
34623
34624         fts: arrange not to stat non-directories in more cases
34625         This makes GNU find (when it doesn't need to stat each file)
34626         *much* more efficient at traversing reiserfs file systems.
34627         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
34628         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
34629         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
34630         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
34631         (leaf_optimization_applies): New function.
34632         (LCO_hash, LCO_compare): New helper functions.
34633         (link_count_optimize_ok): New function.
34634         (fts_stat): Initialize new member (if dir).
34635         (fts_read): Decrement parent's fts_n_dirs_remaining count if
34636         we've just stat'ed a directory.  Skip the stat call when possible.
34637         ---
34638         Note this AFS-related exchange:
34639         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
34640         and note find's pioctl call in find/fstype.c.
34641         But that is necessary only if you want to enable the
34642         optimization for AFS, and for now, I don't.
34643
34644         fts: move a function definition "up" (no semantic change)
34645         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
34646         "up" to precede upcoming use of a related function.
34647
34648 2009-02-11  Jim Meyering  <meyering@redhat.com>
34649
34650         fts: correct internal computation of nlinks (optimization-related)
34651         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
34652         whether the current entry is a directory, so don't test it.
34653
34654 2009-02-10  Bruno Haible  <bruno@clisp.org>
34655
34656         Tests for module 'uniwbrk/ulc-wordbreaks'.
34657         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
34658         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
34659         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
34660
34661         Tests for module 'uniwbrk/u32-wordbreaks'.
34662         * modules/uniwbrk/u32-wordbreaks-tests: New file.
34663         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
34664
34665         Tests for module 'uniwbrk/u16-wordbreaks'.
34666         * modules/uniwbrk/u16-wordbreaks-tests: New file.
34667         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
34668
34669         Tests for module 'uniwbrk/u8-wordbreaks'.
34670         * modules/uniwbrk/u8-wordbreaks-tests: New file.
34671         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
34672
34673 2009-02-10  Bruno Haible  <bruno@clisp.org>
34674
34675         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
34676         property.
34677         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
34678         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
34679         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
34680
34681 2009-02-10  Simon Josefsson  <simon@josefsson.org>
34682
34683         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
34684         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
34685
34686 2009-02-10  Bruno Haible  <bruno@clisp.org>
34687
34688         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
34689         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
34690         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
34691         * lib/unilbrk/u8-possible-linebreaks.c: Update.
34692         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
34693         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
34694
34695 2009-02-09  Simon Josefsson  <simon@josefsson.org>
34696
34697         * lib/sockets.h (gl_fd_to_handle): New function.
34698
34699         * tests/test-sockets.c: Call gl_fd_to_handle.
34700
34701 2009-02-09  Bruno Haible  <bruno@clisp.org>
34702
34703         * doc/havelib.texi: Document the conventions on bi-arch systems.
34704
34705 2009-02-08  Bruno Haible  <bruno@clisp.org>
34706
34707         Document the AC_LIB_LINKFLAGS macro.
34708         * doc/havelib.texi: New file, mostly written on 2005-05-24.
34709         * doc/gnulib.texi: Include it.
34710
34711 2009-02-08  Bruno Haible  <bruno@clisp.org>
34712
34713         Fix wrong order of sections, compared to TOC.
34714         * doc/gnulib.texi: Include relocatable-maint.texi after the
34715         "Regular expressions" node, not before.
34716
34717 2009-02-08  Bruno Haible  <bruno@clisp.org>
34718
34719         Tests for module 'unicase/totitle'.
34720         * modules/unicase/totitle-tests: New file.
34721
34722         Tests for module 'unicase/tolower'.
34723         * modules/unicase/tolower-tests: New file.
34724
34725         Tests for module 'unicase/toupper'.
34726         * modules/unicase/toupper-tests: New file.
34727         * tests/unicase/test-mapping-part1.h: New file.
34728         * tests/unicase/test-mapping-part2.h: New file.
34729
34730         New module 'unicase/totitle'.
34731         * modules/unicase/totitle: New file.
34732         * lib/unicase/totitle.c: New file.
34733
34734         New module 'unicase/tolower'.
34735         * modules/unicase/tolower: New file.
34736         * lib/unicase/tolower.c: New file.
34737
34738         New module 'unicase/toupper'.
34739         * modules/unicase/toupper: New file.
34740         * lib/unicase/toupper.c: New file.
34741         * lib/unicase/simple-mapping.h: New file.
34742
34743         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
34744         (mapping_table): New structure.
34745         (output_simple_mapping): New function.
34746         (main): Invoke output_simple_mapping_test and output_simple_mapping.
34747         * modules/gen-uni-tables (Description): Update.
34748         * lib/unicase/toupper.h: New file, automatically generated by
34749         gen-uni-tables.
34750         * lib/unicase/tolower.h: New file, automatically generated by
34751         gen-uni-tables.
34752         * lib/unicase/totitle.h: New file, automatically generated by
34753         gen-uni-tables.
34754         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
34755         gen-uni-tables.
34756         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
34757         gen-uni-tables.
34758         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
34759         gen-uni-tables.
34760
34761         New module 'unicase/base'.
34762         * modules/unicase/base: New file.
34763         * lib/unicase.h: New file.
34764
34765 2009-02-08  Bruno Haible  <bruno@clisp.org>
34766
34767         New module 'uniwbrk/ulc-wordbreaks'.
34768         * modules/uniwbrk/ulc-wordbreaks: New file.
34769         * lib/uniwbrk/ulc-wordbreaks.c: New file.
34770
34771         New module 'uniwbrk/u32-wordbreaks'.
34772         * modules/uniwbrk/u32-wordbreaks: New file.
34773         * lib/uniwbrk/u32-wordbreaks.c: New file.
34774
34775         New module 'uniwbrk/u16-wordbreaks'.
34776         * modules/uniwbrk/u16-wordbreaks: New file.
34777         * lib/uniwbrk/u16-wordbreaks.c: New file.
34778
34779         New module 'uniwbrk/u8-wordbreaks'.
34780         * modules/uniwbrk/u8-wordbreaks: New file.
34781         * lib/uniwbrk/u8-wordbreaks.c: New file.
34782         * lib/uniwbrk/u-wordbreaks.h: New file.
34783
34784         New module 'uniwbrk/table'.
34785         * modules/uniwbrk/table: New file.
34786         * lib/uniwbrk/wbrktable.h: New file.
34787         * lib/uniwbrk/wbrktable.c: New file.
34788
34789         New module 'uniwbrk/wordbreak-property'.
34790         * modules/uniwbrk/wordbreak-property: New file.
34791         * lib/uniwbrk/wordbreak-property.c: New file.
34792
34793         * lib/gen-uni-tables.c (WBP_*): New enum items.
34794         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
34795         (unicode_org_wbp): New variable.
34796         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
34797         New functions.
34798         (wbp_table): New structure.
34799         (output_wbp, output_wbrk_tables): New functions.
34800         (main): Accept additional argument. Invoke fill_org_wbp,
34801         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
34802         output_wbrk_tables.
34803         * modules/gen-uni-tables (Description): Update.
34804         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
34805         gen-uni-tables.
34806
34807         New module 'uniwbrk/base'.
34808         * modules/uniwbrk/base: New file.
34809         * lib/uniwbrk.h: New file.
34810
34811 2009-02-08  Bruno Haible  <bruno@clisp.org>
34812
34813         Update to Unicode 5.1.0.
34814         * lib/gen-uni-tables.c (is_property_alphabetic): Include
34815         U+2185..U+2188.
34816         (is_property_default_ignorable_code_point): Don't include characters
34817         of category Cc or Cs and not-a-characters.
34818         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
34819         U+0D79, U+109E, U+109F, U+A60C.
34820         * lib/unictype/bidi_of.h: Regenerated.
34821         * lib/unictype/blocks.h: Regenerated.
34822         * lib/unictype/categ_C.h: Regenerated.
34823         * lib/unictype/categ_Cf.h: Regenerated.
34824         * lib/unictype/categ_Cn.h: Regenerated.
34825         * lib/unictype/categ_L.h: Regenerated.
34826         * lib/unictype/categ_Ll.h: Regenerated.
34827         * lib/unictype/categ_Lm.h: Regenerated.
34828         * lib/unictype/categ_Lo.h: Regenerated.
34829         * lib/unictype/categ_Lu.h: Regenerated.
34830         * lib/unictype/categ_M.h: Regenerated.
34831         * lib/unictype/categ_Mc.h: Regenerated.
34832         * lib/unictype/categ_Me.h: Regenerated.
34833         * lib/unictype/categ_Mn.h: Regenerated.
34834         * lib/unictype/categ_N.h: Regenerated.
34835         * lib/unictype/categ_Nd.h: Regenerated.
34836         * lib/unictype/categ_Nl.h: Regenerated.
34837         * lib/unictype/categ_No.h: Regenerated.
34838         * lib/unictype/categ_P.h: Regenerated.
34839         * lib/unictype/categ_Pd.h: Regenerated.
34840         * lib/unictype/categ_Pe.h: Regenerated.
34841         * lib/unictype/categ_Pf.h: Regenerated.
34842         * lib/unictype/categ_Pi.h: Regenerated.
34843         * lib/unictype/categ_Po.h: Regenerated.
34844         * lib/unictype/categ_Ps.h: Regenerated.
34845         * lib/unictype/categ_S.h: Regenerated.
34846         * lib/unictype/categ_Sk.h: Regenerated.
34847         * lib/unictype/categ_Sm.h: Regenerated.
34848         * lib/unictype/categ_So.h: Regenerated.
34849         * lib/unictype/categ_of.h: Regenerated.
34850         * lib/unictype/combining.h: Regenerated.
34851         * lib/unictype/ctype_alnum.h: Regenerated.
34852         * lib/unictype/ctype_alpha.h: Regenerated.
34853         * lib/unictype/ctype_graph.h: Regenerated.
34854         * lib/unictype/ctype_lower.h: Regenerated.
34855         * lib/unictype/ctype_print.h: Regenerated.
34856         * lib/unictype/ctype_punct.h: Regenerated.
34857         * lib/unictype/ctype_upper.h: Regenerated.
34858         * lib/unictype/decdigit.h: Regenerated.
34859         * lib/unictype/digit.h: Regenerated.
34860         * lib/unictype/mirror.h: Regenerated.
34861         * lib/unictype/numeric.h: Regenerated.
34862         * lib/unictype/pr_alphabetic.h: Regenerated.
34863         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
34864         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
34865         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
34866         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
34867         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
34868         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
34869         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
34870         * lib/unictype/pr_combining.h: Regenerated.
34871         * lib/unictype/pr_dash.h: Regenerated.
34872         * lib/unictype/pr_decimal_digit.h: Regenerated.
34873         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
34874         * lib/unictype/pr_deprecated.h: Regenerated.
34875         * lib/unictype/pr_diacritic.h: Regenerated.
34876         * lib/unictype/pr_extender.h: Regenerated.
34877         * lib/unictype/pr_format_control.h: Regenerated.
34878         * lib/unictype/pr_grapheme_base.h: Regenerated.
34879         * lib/unictype/pr_grapheme_extend.h: Regenerated.
34880         * lib/unictype/pr_grapheme_link.h: Regenerated.
34881         * lib/unictype/pr_id_continue.h: Regenerated.
34882         * lib/unictype/pr_id_start.h: Regenerated.
34883         * lib/unictype/pr_ideographic.h: Regenerated.
34884         * lib/unictype/pr_ignorable_control.h: Regenerated.
34885         * lib/unictype/pr_lowercase.h: Regenerated.
34886         * lib/unictype/pr_math.h: Regenerated.
34887         * lib/unictype/pr_numeric.h: Regenerated.
34888         * lib/unictype/pr_other_alphabetic.h: Regenerated.
34889         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
34890         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
34891         * lib/unictype/pr_other_id_continue.h: Regenerated.
34892         * lib/unictype/pr_other_lowercase.h: Regenerated.
34893         * lib/unictype/pr_other_math.h: Regenerated.
34894         * lib/unictype/pr_punctuation.h: Regenerated.
34895         * lib/unictype/pr_sentence_terminal.h: Regenerated.
34896         * lib/unictype/pr_soft_dotted.h: Regenerated.
34897         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
34898         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
34899         * lib/unictype/pr_unified_ideograph.h: Regenerated.
34900         * lib/unictype/pr_uppercase.h: Regenerated.
34901         * lib/unictype/pr_xid_continue.h: Regenerated.
34902         * lib/unictype/pr_xid_start.h: Regenerated.
34903         * lib/unictype/pr_zero_width.h: Regenerated.
34904         * lib/unictype/scripts.h: Regenerated.
34905         * lib/unictype/scripts_byname.gperf: Regenerated.
34906         * lib/unictype/sy_java_ident.h: Regenerated.
34907         * lib/unilbrk/lbrkprop1.h: Regenerated.
34908         * lib/unilbrk/lbrkprop2.h: Regenerated.
34909         * tests/unictype/test-categ_C.c: Regenerated.
34910         * tests/unictype/test-categ_Cf.c: Regenerated.
34911         * tests/unictype/test-categ_Cn.c: Regenerated.
34912         * tests/unictype/test-categ_L.c: Regenerated.
34913         * tests/unictype/test-categ_Ll.c: Regenerated.
34914         * tests/unictype/test-categ_Lm.c: Regenerated.
34915         * tests/unictype/test-categ_Lo.c: Regenerated.
34916         * tests/unictype/test-categ_Lu.c: Regenerated.
34917         * tests/unictype/test-categ_M.c: Regenerated.
34918         * tests/unictype/test-categ_Mc.c: Regenerated.
34919         * tests/unictype/test-categ_Me.c: Regenerated.
34920         * tests/unictype/test-categ_Mn.c: Regenerated.
34921         * tests/unictype/test-categ_N.c: Regenerated.
34922         * tests/unictype/test-categ_Nd.c: Regenerated.
34923         * tests/unictype/test-categ_Nl.c: Regenerated.
34924         * tests/unictype/test-categ_No.c: Regenerated.
34925         * tests/unictype/test-categ_P.c: Regenerated.
34926         * tests/unictype/test-categ_Pd.c: Regenerated.
34927         * tests/unictype/test-categ_Pe.c: Regenerated.
34928         * tests/unictype/test-categ_Pf.c: Regenerated.
34929         * tests/unictype/test-categ_Pi.c: Regenerated.
34930         * tests/unictype/test-categ_Po.c: Regenerated.
34931         * tests/unictype/test-categ_Ps.c: Regenerated.
34932         * tests/unictype/test-categ_S.c: Regenerated.
34933         * tests/unictype/test-categ_Sk.c: Regenerated.
34934         * tests/unictype/test-categ_Sm.c: Regenerated.
34935         * tests/unictype/test-categ_So.c: Regenerated.
34936         * tests/unictype/test-ctype_alnum.c: Regenerated.
34937         * tests/unictype/test-ctype_alpha.c: Regenerated.
34938         * tests/unictype/test-ctype_graph.c: Regenerated.
34939         * tests/unictype/test-ctype_lower.c: Regenerated.
34940         * tests/unictype/test-ctype_print.c: Regenerated.
34941         * tests/unictype/test-ctype_punct.c: Regenerated.
34942         * tests/unictype/test-ctype_upper.c: Regenerated.
34943         * tests/unictype/test-decdigit.h: Regenerated.
34944         * tests/unictype/test-digit.h: Regenerated.
34945         * tests/unictype/test-numeric.h: Regenerated.
34946         * tests/unictype/test-pr_alphabetic.c: Regenerated.
34947         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
34948         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
34949         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
34950         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
34951         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
34952         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
34953         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
34954         * tests/unictype/test-pr_combining.c: Regenerated.
34955         * tests/unictype/test-pr_dash.c: Regenerated.
34956         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
34957         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
34958         * tests/unictype/test-pr_deprecated.c: Regenerated.
34959         * tests/unictype/test-pr_diacritic.c: Regenerated.
34960         * tests/unictype/test-pr_extender.c: Regenerated.
34961         * tests/unictype/test-pr_format_control.c: Regenerated.
34962         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
34963         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
34964         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
34965         * tests/unictype/test-pr_id_continue.c: Regenerated.
34966         * tests/unictype/test-pr_id_start.c: Regenerated.
34967         * tests/unictype/test-pr_ideographic.c: Regenerated.
34968         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
34969         * tests/unictype/test-pr_lowercase.c: Regenerated.
34970         * tests/unictype/test-pr_math.c: Regenerated.
34971         * tests/unictype/test-pr_numeric.c: Regenerated.
34972         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
34973         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
34974         Regenerated.
34975         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
34976         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
34977         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
34978         * tests/unictype/test-pr_other_math.c: Regenerated.
34979         * tests/unictype/test-pr_punctuation.c: Regenerated.
34980         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
34981         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
34982         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
34983         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
34984         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
34985         * tests/unictype/test-pr_uppercase.c: Regenerated.
34986         * tests/unictype/test-pr_xid_continue.c: Regenerated.
34987         * tests/unictype/test-pr_xid_start.c: Regenerated.
34988         * tests/unictype/test-pr_zero_width.c: Regenerated.
34989
34990         Update to Unicode 5.1.0.
34991         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
34992         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
34993         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
34994         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
34995         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
34996         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
34997         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
34998         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
34999         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
35000         (nonspacing_table_ind): Update.
35001         * tests/uniwidth/test-uc_width2.sh: Update expected result.
35002
35003         Update to Unicode 5.1.0.
35004         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
35005         code transform.
35006         * lib/uniname/uniname.c (unicode_character_name,
35007         unicode_name_character): Add the range 0x1Fxxx to the code transform.
35008         * lib/uniname/uninames.h: Regenerated.
35009         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
35010
35011 2009-02-07  Bruno Haible  <bruno@clisp.org>
35012
35013         Merge gen-ctype and gen-lbrk into a single program.
35014         * lib/gen-uni-tables.c: New file, incorporating
35015         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
35016         Add directory prefixes to the names of the generated files.
35017         * lib/unictype/gen-ctype.c: Remove file.
35018         * lib/unilbrk/gen-lbrk.c: Remove file.
35019         * modules/gen-uni-tables: New file.
35020         * modules/unictype/gen-ctype: Remove file.
35021         * modules/unilbrk/gen-lbrk: Remove file.
35022
35023 2009-02-07  Bruno Haible  <bruno@clisp.org>
35024
35025         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
35026
35027         New module 'unistr/u32-strcoll'.
35028         * modules/unistr/u32-strcoll: New file.
35029         * lib/unistr/u32-strcoll.c: New file.
35030
35031         New module 'unistr/u16-strcoll'.
35032         * modules/unistr/u16-strcoll: New file.
35033         * lib/unistr/u16-strcoll.c: New file.
35034
35035         New module 'unistr/u8-strcoll'.
35036         * modules/unistr/u8-strcoll: New file.
35037         * lib/unistr/u8-strcoll.c: New file.
35038         * lib/unistr/u-strcoll.h: New file.
35039
35040 2009-02-07  Bruno Haible  <bruno@clisp.org>
35041
35042         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
35043         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35044         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
35045         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
35046         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
35047         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
35048
35049 2009-02-07  Bruno Haible  <bruno@clisp.org>
35050
35051         Make 64-bit clean.
35052         * lib/unictype/gen-ctype.c (output_predicate, output_category,
35053         output_combclass, output_bidi_category, output_decimal_digit,
35054         output_digit, output_numeric, output_mirror, output_scripts,
35055         output_ident_category): Use proper width specifier in format strings.
35056
35057 2009-02-07  Bruno Haible  <bruno@clisp.org>
35058
35059         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
35060         failure behaviour.
35061
35062 2009-02-07  Jim Meyering  <meyering@redhat.com>
35063
35064         regex: avoid compilation failure with upcoming gcc-4.4
35065         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
35066         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
35067         "... error: integer overflow in preprocessor expression".
35068
35069 2009-02-05  Ben Pfaff  <blp@gnu.org>
35070
35071         Fix link errors on Windows when close module is used.
35072         * modules/close: Add $(LIB_CLOSE) to Link section.
35073         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
35074         $(LIB_CLOSE) on Windows.
35075
35076 2009-02-05  Jim Meyering  <meyering@redhat.com>
35077
35078         still avoid unused-parameter warnings, but do it cleanly
35079         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
35080         (get_fs_usage): Cast to void instead.
35081         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
35082         (dev_from_mount_options, read_file_system_list): Cast to void.
35083         Prompted by Bruno Haible.
35084
35085 2009-02-04  Jim Meyering  <meyering@redhat.com>
35086
35087         fsusage.c: correct copyright year
35088         * lib/fsusage.c: Reflect year in which the change is pushed into
35089
35090         avoid misc. warnings
35091         * lib/fsusage.c (UNUSED_PARAM): Define.
35092         (get_fs_usage): Mark parameter "disk" as unused.
35093         * lib/getugroups.c (getgrent): Use "void" in prototype.
35094         * lib/mountlist.c: Mark unused parameters.
35095         (read_file_system_list): Declare a local with "const".
35096         * lib/nanosleep.c (getnow): Declare static.
35097         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
35098
35099         dirfd: set errno upon failure
35100         * lib/dirfd.c: Include <errno.h>.
35101         Set errno to ENOTSUP when returning -1.
35102         * modules/dirfd (Depends-on): Add errno.
35103         Suggested by John Kodis <kodis@comcast.net>.
35104
35105 2009-02-01  Bruno Haible  <bruno@clisp.org>
35106
35107         Don't assume sizeof (long) >= sizeof (void *).
35108         * lib/memcmp.c: Include stdint.h.
35109         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
35110         srcp2 to 'const byte *'.
35111         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
35112         types to uintptr_t.
35113         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
35114         * modules/memcmp (Depends-on): Add stdint.
35115         Reported by Ozkan Sezer <sezeroz@gmail.com>.
35116
35117 2009-01-30  Eric Blake  <ebb9@byu.net>
35118
35119         fix more require-before-expand issues
35120         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
35121         expand, AC_PROG_AWK.
35122         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
35123
35124 2009-01-28  Eric Blake  <ebb9@byu.net>
35125
35126         version-etc: use consistent URL formatting
35127         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
35128         Improve formatting.  Use fputs for string without %.
35129
35130 2009-01-28  Jim Meyering  <meyering@redhat.com>
35131
35132         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
35133         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
35134         "underquoted definition of NAME" from autoconf-2.59.
35135
35136 2009-01-28  Bruno Haible  <bruno@clisp.org>
35137
35138         * doc/gnulib.texi: Add "Obsolete modules" to index.
35139
35140 2009-01-28  Jim Meyering  <meyering@redhat.com>
35141
35142         useless-if-before-free: recognize more variants
35143         * build-aux/useless-if-before-free: Also recognize e.g.,
35144         if (NULL != p) free (p);
35145
35146 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
35147
35148         test-getaddrinfo: skip (don't fail) this test when there's no network
35149         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
35150         on the presumption that it means you lack network access.
35151
35152 2009-01-26  Jim Meyering  <meyering@redhat.com>
35153
35154         fflush: avoid warnings on modern systems
35155         * lib/fflush.c (rpl_fflush): Move declarations of locals,
35156         pos and result, into scopes where they're used.
35157
35158 2009-01-26  Eric Blake  <ebb9@byu.net>
35159
35160         Silence warning reintroduced by recent extensions patch.
35161         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
35162         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
35163         autoconf.
35164
35165         Backport improved autoconf semantics of AC_DEFUN_ONCE.
35166         * m4/00gnulib.m4: New file.
35167         * gnulib-tool (func_get_filelist): Always use it.
35168         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
35169         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
35170
35171 2009-01-25  Bruno Haible  <bruno@clisp.org>
35172
35173         Make test-quotearg work on MacOS X and AIX.
35174         * tests/test-quotearg.sh: New file.
35175         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
35176         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
35177         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
35178         include <libintl.h>.
35179         (fake_locale): Remove variable.
35180         (gettext, dgettext, dcgettext): Remove functions.
35181         (main): Instead of setting a fake locale, set a real locale. Call
35182         textdomain and bindtextdomain.
35183         * modules/quotearg-tests (Files): Add the new files.
35184         (Depends-on): Add gettext, setenv, unsetenv.
35185         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
35186         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
35187         Augment TESTS_ENVIRONMENT.
35188
35189 2009-01-25  Bruno Haible  <bruno@clisp.org>
35190
35191         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
35192         fr_FR.ISO8859-1 locale on MacOS X.
35193         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
35194         ja_JP.eucJP locale on MacOS X.
35195         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
35196         zh_CN.GB18030 locale on MacOS X.
35197
35198 2009-01-25  Bruno Haible  <bruno@clisp.org>
35199
35200         Avoid link errors on MacOS X 10.3.
35201         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
35202         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35203
35204 2009-01-25  Bruno Haible  <bruno@clisp.org>
35205
35206         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
35207         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
35208         * modules/pipe (Files): Remove m4/posix_spawn.m4.
35209         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
35210         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
35211         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
35212         posix_spawnattr_init, posix_spawnattr_setsigmask,
35213         posix_spawnattr_setflags, posix_spawnattr_destroy.
35214
35215         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
35216         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
35217         * modules/execute (Files): Remove m4/posix_spawn.m4.
35218         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
35219         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
35220         posix_spawnattr_init, posix_spawnattr_setsigmask,
35221         posix_spawnattr_setflags, posix_spawnattr_destroy.
35222
35223 2009-01-25  Bruno Haible  <bruno@clisp.org>
35224
35225         * lib/glthread/threadlib.c: Include <stdlib.h>.
35226
35227 2009-01-25  Bruno Haible  <bruno@clisp.org>
35228
35229         * lib/glthread/threadlib.c (dummy): New declaration.
35230
35231 2009-01-25  Bruno Haible  <bruno@clisp.org>
35232
35233         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
35234         multibyte characters also for the GB18030 encoding. Don't crash when
35235         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
35236
35237 2009-01-25  Bruno Haible  <bruno@clisp.org>
35238
35239         Avoid redefining 'struct random_data' on OSF/1 5.1.
35240         * lib/stdlib.in.h: Include <random.h> if it exists.
35241         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
35242         HAVE_RANDOM_H. Include <random.h> when testing whether
35243         'struct random_data' exists.
35244         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
35245
35246 2009-01-25  Bruno Haible  <bruno@clisp.org>
35247
35248         Don't install charset.alias on MacOS X >= 10.3.
35249         * lib/localcharset.c (DARWIN7): New macro.
35250         (get_charset_aliases): Hardcode the result for Darwin7.
35251         * modules/localcharset (install-exec-local): Don't install
35252         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
35253
35254 2009-01-25  Bruno Haible  <bruno@clisp.org>
35255
35256         Don't install charset.alias on mingw and Cygwin.
35257         * modules/localcharset (install-exec-local): Don't install
35258         charset.alias on mingw and Cygwin, if the file does not yet exist.
35259         The result for these platforms is hardcoded in localcharset.c.
35260
35261 2009-01-25  Bruno Haible  <bruno@clisp.org>
35262
35263         Make it possible again to use AC_GNU_SOURCE together with gnulib.
35264         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
35265         before requiring AC_USE_SYSTEM_EXTENSIONS.
35266
35267 2009-01-25  Jim Meyering  <meyering@redhat.com>
35268
35269         c-strtod: avoid warnings
35270         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
35271         "assignment discards qualifiers from pointer target type" warnings.
35272
35273 2009-01-24  Bruno Haible  <bruno@clisp.org>
35274
35275         Add support for non-UTF-8 locales on MacOS X.
35276         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
35277         canonical encodings. For Darwin 7 and newer, don't map traditional
35278         encodings to UTF-8.
35279         Reported by Vincent Lefevre <vincent@vinc17.org>
35280         at <http://savannah.gnu.org/bugs/?25235>.
35281
35282 2009-01-24  Bruno Haible  <bruno@clisp.org>
35283
35284         * doc/gnulib.texi (Obsolete modules): New section.
35285         Reported by Mike Frysinger <vapier@gentoo.org>.
35286
35287 2009-01-24  Bruno Haible  <bruno@clisp.org>
35288
35289         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
35290         (%.dvi): New rule.
35291
35292 2009-01-24  Bruno Haible  <bruno@clisp.org>
35293
35294         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
35295         Reported by Eric Blake.
35296
35297 2009-01-24  Bruno Haible  <bruno@clisp.org>
35298
35299         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
35300         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
35301         Reported by Gary V. Vaughan <gary@gnu.org>.
35302
35303 2009-01-24  Bruno Haible  <bruno@clisp.org>
35304
35305         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
35306
35307 2009-01-23  Bruno Haible  <bruno@clisp.org>
35308
35309         Make c-strtod, c-strtold usable in libraries.
35310         * lib/c-strtod.c: Include string.h instead of xalloc.h.
35311         (C_STRTOD): Call strdup instead of xstrdup.
35312         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
35313         * modules/c-strtold (Depends-on): Likewise.
35314         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
35315         * NEWS: Mention the change.
35316         Reported by Michael Gold <mgold@ncf.ca>.
35317
35318 2009-01-23  Jim Meyering  <meyering@redhat.com>
35319
35320         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
35321         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
35322         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
35323
35324 2009-01-23  Simon Josefsson  <simon@josefsson.org>
35325
35326         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
35327         GNU CoreUtils.
35328         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
35329         * modules/version-etc (Description): Update.
35330
35331 2009-01-22  Bruno Haible  <bruno@clisp.org>
35332
35333         Cache the C locale object.
35334         * lib/c-strtod.c (c_locale_cache): New variable.
35335         (c_locale): New function.
35336         (C_STRTOD): Use it, and don't call freelocale.
35337         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
35338         Suggested by Paolo Bonzini.
35339
35340 2009-01-21  Bruno Haible  <bruno@clisp.org>
35341
35342         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
35343         conditions other than overflow.
35344
35345 2009-01-21  Bruno Haible  <bruno@clisp.org>
35346
35347         * lib/c-strtod.c: Include errno.h.
35348         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
35349         value from STRTOD_L and STRTOD.
35350
35351 2009-01-21  Bruno Haible  <bruno@clisp.org>
35352         and Jim Meyering  <meyering@redhat.com>
35353
35354         nanosleep: skip configure test (fail it) for apple universal builds
35355         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
35356         universal builds, assume that nanosleep does not work.
35357         * modules/nanosleep (Depends-on): Add multiarch.
35358
35359         mktime: skip configure test (fail it) for apple universal builds
35360         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
35361         universal builds, assume that mktime does not work.
35362         * modules/mktime (Depends-on): Add multiarch.
35363
35364 2009-01-21  Eric Blake  <ebb9@byu.net>
35365
35366         multiarch: avoid expand-before-require warning
35367         * modules/multiarch (configure.ac): Require, rather than expand,
35368         gl_MULTIARCH.
35369         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
35370         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
35371         enforce that all clients require it.  Partial reversion of
35372         2008-12-29 patch.
35373
35374         error: avoid expand-before-require warning
35375         * modules/errno (configure.ac): Require, rather than expand,
35376         gl_HEADER_ERRNO_H.
35377         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
35378         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
35379         enforce that all clients require it.
35380
35381         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
35382         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
35383         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
35384         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
35385
35386 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
35387
35388         Revert:
35389         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
35390
35391         regex: do not depend on obsolete modules.
35392         * modules/regex: Remove memcmp and memmove.
35393
35394 2009-01-20  Bruno Haible  <bruno@clisp.org>
35395
35396         Make the 'link' module link on Windows NT 4.
35397         * lib/link.c (_WIN32_WINNT): Don't define.
35398         (CreateHardLinkFuncType): New type.
35399         (CreateHardLinkFunc, initialized): New variables.
35400         (initialize): New function.
35401         (link): Invoke CreateHardLink indirectly through the function pointer.
35402
35403 2009-01-20  Bruno Haible  <bruno@clisp.org>
35404
35405         Fix compilation failure on mingw.
35406         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
35407
35408 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
35409
35410         * doc/c-strtod.texi: Mention a couple of restrictions.
35411
35412 2009-01-20  Jim Meyering  <meyering@redhat.com>
35413
35414         gettimeofday: move more declarations out of functions
35415         * lib/gettimeofday.c: Move extern declarations of tzset and
35416         gmtime out of containing functions.  Prompted by Bruno Haible.
35417
35418 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
35419
35420         regex: do not depend on obsolete modules.
35421         * modules/regex: Remove memcmp and memmove.
35422
35423 2009-01-19  Bruno Haible  <bruno@clisp.org>
35424
35425         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
35426         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
35427         gl_BIGENDIAN, not AC_C_BIGENDIAN.
35428         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
35429         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
35430
35431 2009-01-19  Bruno Haible  <bruno@clisp.org>
35432
35433         * tests/test-link.c: Include <errno.h>.
35434         (main): Exit with code 77 when a hard link cannot be created due to
35435         the file system.
35436         * tests/test-link.sh: Skip test when a hard link cannot be created due
35437         to the file system.
35438         Suggested by Eric Blake.
35439
35440 2009-01-19  Martin Lambers  <marlam@marlam.de>
35441
35442         * modules/link-tests: New file.
35443         * tests/test-link.sh: New file.
35444         * tests/test-link.c: New file.
35445
35446 2009-01-19  Eric Blake  <ebb9@byu.net>
35447
35448         doc: mention another function added in cygwin 1.7.0
35449         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
35450         Another new function in cygwin 1.7.
35451
35452 2009-01-19  Bruno Haible  <bruno@clisp.org>
35453
35454         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
35455         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
35456         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
35457         gl_BIGENDIAN, not AC_C_BIGENDIAN.
35458         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35459         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
35460         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
35461         * m4/md4.m4 (gl_MD4): Likewise.
35462         * m4/md5.m4 (gl_MD5): Likewise.
35463         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
35464         * m4/sha1.m4 (gl_SHA1): Likewise.
35465         * m4/sha256.m4 (gl_SHA256): Likewise.
35466         * m4/sha512.m4 (gl_SHA512): Likewise.
35467
35468 2009-01-19  Bruno Haible  <bruno@clisp.org>
35469
35470         * modules/uniname/uniname-tests (Depends-on): Add progname.
35471         * tests/uniname/test-uninames.c: Include progname.h.
35472         (main): Call set_program_name.
35473
35474         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
35475         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
35476         (main): Call set_program_name.
35477
35478         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
35479         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
35480         (main): Call set_program_name.
35481
35482         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
35483         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
35484         (main): Call set_program_name.
35485
35486         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
35487         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
35488         (main): Call set_program_name.
35489
35490         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
35491         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
35492         (main): Call set_program_name.
35493
35494         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
35495         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
35496         (main): Call set_program_name.
35497
35498         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
35499         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
35500         (main): Call set_program_name.
35501
35502         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
35503         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
35504         (main): Call set_program_name.
35505
35506 2009-01-19  Eric Blake  <ebb9@byu.net>
35507
35508         test-unistd: test previous patch
35509         * tests/test-unistd.c: Test *_FILENO macros.
35510
35511         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
35512         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35513         Guarantee a definition.
35514         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
35515         * modules/unistd-safer (Depends-on): Add dependency on unistd.
35516         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
35517         * lib/dup-safer.c (STDERR_FILENO): Likewise.
35518         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35519         Likewise.
35520         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
35521         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
35522         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
35523         Likewise.
35524         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
35525         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
35526         (STDERR_FILENO): Likewise.
35527         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
35528         (STDERR_FILENO): Likewise.
35529         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
35530         (STDERR_FILENO): Likewise.
35531         Reported by Elbert Pol.
35532
35533 2009-01-19  Eric Blake  <ebb9@byu.net>
35534
35535         doc: mention more functions added in cygwin 1.7.0
35536         * doc/posix-functions/abort.texi (abort): Update wording related
35537         to cygwin.
35538         * doc/posix-functions/daylight.texi (daylight): Likewise.
35539         * doc/posix-functions/optarg.texi (optarg): Likewise.
35540         * doc/posix-functions/optarg.texi (opterr): Likewise.
35541         * doc/posix-functions/optarg.texi (optind): Likewise.
35542         * doc/posix-functions/optarg.texi (optopt): Likewise.
35543         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
35544         worked in 1.5.x, and was withdrawn in 1.7.
35545         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
35546         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
35547         cygwin versions.
35548         * doc/posix-functions/perror.texi (perror): Likewise.
35549         * doc/posix-functions/printf.texi (printf): Likewise.
35550         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
35551         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
35552         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
35553         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
35554         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
35555         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
35556         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
35557         Likewise.
35558         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
35559         Likewise.
35560         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
35561         this function.
35562         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
35563         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
35564         Likewise.
35565         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
35566         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
35567         * doc/posix-functions/confstr.texi (confstr): Likewise.
35568         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
35569         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
35570         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
35571         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
35572         * doc/posix-functions/fputws.texi (fputws): Likewise.
35573         * doc/posix-functions/fwide.texi (fwide): Likewise.
35574         * doc/posix-functions/getwc.texi (getwc): Likewise.
35575         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
35576         * doc/posix-functions/putwc.texi (putwc): Likewise.
35577         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
35578         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
35579         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
35580         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
35581         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
35582         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
35583         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
35584         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
35585         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
35586         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
35587         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
35588
35589 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
35590
35591         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
35592         * lib/ioctl.c: Include <sys/ioctl.h>.
35593
35594 2009-01-19  Simon Josefsson  <simon@josefsson.org>
35595
35596         * modules/getdate-tests (Depends-on): Add progname.
35597         * tests/test-getdate.c: Use progname module, to avoid link errors
35598         on non-glibc systems.
35599
35600 2009-01-18  Simon Josefsson  <simon@josefsson.org>
35601
35602         * modules/filenamecat-tests (Depends-on): Add progname.
35603         * modules/fstrcmp-tests (Depends-on): Likewise.
35604
35605         * tests/test-filenamecat.c: Use progname module, to avoid link
35606         errors on non-glibc systems.
35607         * tests/test-fstrcmp.c: Likewise.
35608
35609 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
35610
35611         gettimeofday: avoid warning: nested extern declaration of 'localtime'
35612         * lib/gettimeofday.c: Move extern declaration out of function.
35613
35614 2009-01-18  Bruno Haible  <bruno@clisp.org>
35615
35616         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
35617         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
35618         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
35619
35620 2009-01-18  Bruno Haible  <bruno@clisp.org>
35621
35622         * lib/strftime.c (MEMPCPY): Remove unused macro.
35623         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
35624
35625 2009-01-18  Martin Lambers  <marlam@marlam.de>
35626
35627         New module 'link'.
35628         * lib/unistd.in.h (link): New declaration.
35629         * lib/link.c: New file.
35630         * m4/link.m4: New file.
35631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
35632         HAVE_LINK.
35633         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
35634         * modules/link: New file.
35635         * doc/posix-functions/link.texi: Mention the new module.
35636
35637 2009-01-18  Bruno Haible  <bruno@clisp.org>
35638
35639         * tests/test-avltree_list.c (main): Call set_program_name.
35640         * tests/test-avltree_oset.c (main): Likewise.
35641         * tests/test-obstack-printf.c: Include progname.h.
35642         (main): Call set_program_name.
35643         * tests/test-quotearg.c: Include progname.h.
35644         (main): Call set_program_name.
35645         * tests/test-xmemdup0.c: Include progname.h.
35646         (main): Call set_program_name.
35647
35648 2009-01-18  Bruno Haible  <bruno@clisp.org>
35649
35650         New module 'alphasort'.
35651         * lib/dirent.in.h (alphasort): New declaration.
35652         * lib/alphasort.c: New file, from glibc with modifications.
35653         * m4/alphasort.m4: New file.
35654         * modules/alphasort: New file.
35655         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
35656         HAVE_ALPHASORT.
35657         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
35658         HAVE_ALPHASORT.
35659         * doc/posix-functions/alphasort.texi: Mention the new module and the
35660         portability problems.
35661
35662 2009-01-18  Bruno Haible  <bruno@clisp.org>
35663
35664         New module 'scandir'.
35665         * lib/dirent.in.h (scandir): New declaration.
35666         * lib/scandir.c: New file, from glibc with modifications.
35667         * m4/scandir.m4: New file.
35668         * modules/scandir: New file.
35669         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
35670         HAVE_SCANDIR.
35671         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
35672         HAVE_SCANDIR.
35673         * doc/posix-functions/scandir.texi: Mention the new module and the
35674         portability problems.
35675
35676 2009-01-17  Bruno Haible  <bruno@clisp.org>
35677
35678         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
35679         Update documentation.
35680         (func_remove_suffix): Escape all dots in the suffix. Update
35681         documentation.
35682         (func_filter_filelist): Update documentation.
35683         Reported by Ralf Wildenhues.
35684
35685 2009-01-17  Bruno Haible  <bruno@clisp.org>
35686
35687         * modules/dprintf-posix-tests: New file.
35688         * tests/test-dprintf-posix.sh: New file.
35689         * tests/test-dprintf-posix.c: New file.
35690
35691         New modules 'dprintf', 'dprintf-posix'.
35692         * lib/stdio.in.h (dprintf): New declaration.
35693         * lib/dprintf.c: New file.
35694         * m4/dprintf.m4: New file.
35695         * m4/dprintf-posix.m4: New file.
35696         * modules/dprintf: New file.
35697         * modules/dprintf-posix: New file.
35698         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
35699         HAVE_DPRINTF, REPLACE_DPRINTF.
35700         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
35701         HAVE_DPRINTF, REPLACE_DPRINTF.
35702         * doc/posix-functions/dprintf.texi: Mention the new modules.
35703
35704 2009-01-17  Bruno Haible  <bruno@clisp.org>
35705
35706         * modules/vdprintf-posix-tests: New file.
35707         * tests/test-vdprintf-posix.sh: New file.
35708         * tests/test-vdprintf-posix.c: New file.
35709
35710         New modules 'vdprintf', 'vdprintf-posix'.
35711         * lib/stdio.in.h (vdprintf): New declaration.
35712         * lib/vdprintf.c: New file.
35713         * m4/vdprintf.m4: New file.
35714         * m4/vdprintf-posix.m4: New file.
35715         * modules/vdprintf: New file.
35716         * modules/vdprintf-posix: New file.
35717         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
35718         HAVE_VDPRINTF, REPLACE_VDPRINTF.
35719         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
35720         HAVE_VDPRINTF, REPLACE_VDPRINTF.
35721         * doc/posix-functions/vdprintf.texi: Mention the new modules.
35722
35723 2009-01-17  Bruno Haible  <bruno@clisp.org>
35724
35725         Fix replacement of fopen on mingw.
35726         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
35727         mingw.
35728
35729 2009-01-17  Bruno Haible  <bruno@clisp.org>
35730
35731         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
35732         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
35733
35734 2009-01-17  Bruno Haible  <bruno@clisp.org>
35735
35736         Avoid test-fflush2.sh failure on mingw.
35737         * tests/test-fflush2.c: Include binary-io.h.
35738         (main): Put standard input into binary mode.
35739         * modules/fflush-tests (Depends-on): Add binary-io.
35740
35741 2009-01-17  Bruno Haible  <bruno@clisp.org>
35742
35743         * lib/wchar.in.h: In another particular situation, include only the
35744         system's <wchar.h> file.
35745         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
35746         Reported by Albert Chin-A-Young <china@thewrittenword.com>
35747         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
35748
35749 2009-01-17  Bruno Haible  <bruno@clisp.org>
35750
35751         Support for stripping executables in --enable-relocatable.
35752         * build-aux/install-reloc: Expect one more argument, or an environment
35753         variable RELOC_STRIP_PROG. If set, strip the destination program and
35754         its wrapper.
35755         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
35756         RELOC_STRIP_PROG.
35757         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
35758         to set RELOCATABLE_STRIP.
35759         * NEWS: Mention the new Makefile requirement.
35760
35761 2009-01-17  Bruno Haible  <bruno@clisp.org>
35762
35763         * build-aux/install-reloc: Remove debugging information left over by
35764         C compiler on MacOS X.
35765
35766 2009-01-17  Bruno Haible  <bruno@clisp.org>
35767
35768         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
35769         * lib/progreloc.c (find_executable): Fix type of pointer passed to
35770         _NSGetExecutablePath.
35771
35772 2009-01-16  Jim Meyering  <meyering@redhat.com>
35773
35774         strerror: avoid warnings about discarding "const"
35775         * lib/strerror.c (rpl_strerror): Instead of returning a const
35776         string from each and every "case", use a variable, and add a single
35777         cast after the switch.
35778
35779 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
35780
35781         * lib/arpa_inet.in.h: Add extern "C" block for C++.
35782
35783 2009-01-16  Bruno Haible  <bruno@clisp.org>
35784
35785         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
35786         array initializer syntax that also works in C++ mode.
35787         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35788
35789 2009-01-16  Jim Meyering  <meyering@redhat.com>
35790
35791         poll: suppress a warning
35792         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
35793         to ignore "...unsigned expression < 0 is always false" warnings.
35794
35795 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
35796
35797         poll: remove declarations of unused variables
35798         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
35799         sockbuf and optlen.
35800
35801 2009-01-15  Bruno Haible  <bruno@clisp.org>
35802
35803         Make fflush-after-ungetc POSIX compliant on BSD systems.
35804         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
35805         (clear_ungetc_buffer): Implement also for other systems.
35806         (rpl_fflush): On glibc systems, invoke
35807         clear_ungetc_buffer_preserving_position. Otherwise, invoke
35808         clear_ungetc_buffer after fetching the stream's position, not before.
35809
35810 2009-01-15  Bruno Haible  <bruno@clisp.org>
35811
35812         Make fflush-after-ungetc POSIX compliant on glibc systems.
35813         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
35814         after ungetc.
35815         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
35816         (rpl_fflush): On glibc systems, simply call the system's fflush
35817         function after clearing the ungetc buffer.
35818         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
35819         Instead, lseek only to the end of file, then use the system's fseeko
35820         for the rest. On glibc systems, reset the EOF indicator bit.
35821
35822 2009-01-15  Jim Meyering  <meyering@redhat.com>
35823
35824         openmp.m4: revert quote-adding change, for portability to older autoconf
35825         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
35826         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
35827         Simon Josefsson noticed the problem when using autoconf-2.61.
35828
35829 2009-01-15  Bruno Haible  <bruno@clisp.org>
35830
35831         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
35832         * tests/test-fflush2.c (ASSERT): Always fail.
35833         (main): Add two tests for fflush() after ungetc(), taking into account
35834         the Austin Group's clarification.
35835         Suggested by Eric Blake.
35836
35837 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
35838
35839         mktime.m4: remove K&R-style function prototypes
35840         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
35841         for the Sun C++ compiler.
35842
35843 2009-01-14  Bruno Haible  <bruno@clisp.org>
35844
35845         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
35846         while including <wchar.h>.
35847         * lib/wchar.in.h: In two particular situations on HP-UX, include only
35848         the system's <wchar.h> file.
35849         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35850
35851 2009-01-14  Bruno Haible  <bruno@clisp.org>
35852
35853         * m4/csharp.m4: Don't mention gettext on the serial number line.
35854         * m4/csharpexec.m4: Likewise.
35855         * m4/eaccess.m4: Likewise.
35856         * m4/javaexec.m4: Likewise.
35857         * m4/sig_atomic_t.m4: Likewise.
35858         * m4/tmpdir.m4: Likewise.
35859         * m4/intldir.m4: Bump gettext version.
35860         * m4/lib-ld.m4: Likewise.
35861
35862 2009-01-14  Bruno Haible  <bruno@clisp.org>
35863
35864         * lib/progname.c (set_program_name): Add more comments.
35865         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35866
35867 2009-01-14  Simon Josefsson  <simon@josefsson.org>
35868
35869         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
35870         were sys/stat.h does not define it.
35871
35872 2009-01-14  Jim Meyering  <meyering@redhat.com>
35873
35874         many *.m4 files: improve m4 quoting
35875         99% of this change was performed by running the following commands:
35876         git ls-files | grep '\.m4$' | xargs perl -pi \
35877           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
35878           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
35879           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
35880           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
35881         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
35882         The remainder were to add Copyright dates, increment serial numbers,
35883         undo some changes in comments, exclude m4/intl.m4, and add quotes
35884         around the "1" in ",1" where the unusual spacing prohibited the
35885         above regexps from doing the job.  For more details, see
35886         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
35887         * m4/acl.m4: Modified.
35888         * m4/afs.m4: Likewise.
35889         * m4/alloca.m4: Likewise.
35890         * m4/argp.m4: Likewise.
35891         * m4/argz.m4: Likewise.
35892         * m4/atexit.m4: Likewise.
35893         * m4/bison-i18n.m4: Likewise.
35894         * m4/bison.m4: Likewise.
35895         * m4/byteswap.m4: Likewise.
35896         * m4/c-stack.m4: Likewise.
35897         * m4/c-strtod.m4: Likewise.
35898         * m4/calloc.m4: Likewise.
35899         * m4/canonicalize-lgpl.m4: Likewise.
35900         * m4/chown.m4: Likewise.
35901         * m4/clock_time.m4: Likewise.
35902         * m4/codeset.m4: Likewise.
35903         * m4/copy-file.m4: Likewise.
35904         * m4/csharp.m4: Likewise.
35905         * m4/csharpcomp.m4: Likewise.
35906         * m4/csharpexec.m4: Likewise.
35907         * m4/d-ino.m4: Likewise.
35908         * m4/d-type.m4: Likewise.
35909         * m4/dirfd.m4: Likewise.
35910         * m4/double-slash-root.m4: Likewise.
35911         * m4/eaccess.m4: Likewise.
35912         * m4/eealloc.m4: Likewise.
35913         * m4/environ.m4: Likewise.
35914         * m4/errno_h.m4: Likewise.
35915         * m4/euidaccess.m4: Likewise.
35916         * m4/execute.m4: Likewise.
35917         * m4/fatal-signal.m4: Likewise.
35918         * m4/fchdir.m4: Likewise.
35919         * m4/fcntl_h.m4: Likewise.
35920         * m4/fileblocks.m4: Likewise.
35921         * m4/filenamecat.m4: Likewise.
35922         * m4/findprog.m4: Likewise.
35923         * m4/flexmember.m4: Likewise.
35924         * m4/fnmatch.m4: Likewise.
35925         * m4/fopen.m4: Likewise.
35926         * m4/fpending.m4: Likewise.
35927         * m4/fprintf-posix.m4: Likewise.
35928         * m4/free.m4: Likewise.
35929         * m4/frexp.m4: Likewise.
35930         * m4/frexpl.m4: Likewise.
35931         * m4/fsusage.m4: Likewise.
35932         * m4/ftruncate.m4: Likewise.
35933         * m4/gc-camellia.m4: Likewise.
35934         * m4/gc-random.m4: Likewise.
35935         * m4/gc.m4: Likewise.
35936         * m4/getaddrinfo.m4: Likewise.
35937         * m4/getcwd-abort-bug.m4: Likewise.
35938         * m4/getcwd-path-max.m4: Likewise.
35939         * m4/getdate.m4: Likewise.
35940         * m4/getdomainname.m4: Likewise.
35941         * m4/getgroups.m4: Likewise.
35942         * m4/gethostname.m4: Likewise.
35943         * m4/gethrxtime.m4: Likewise.
35944         * m4/getline.m4: Likewise.
35945         * m4/getloadavg.m4: Likewise.
35946         * m4/getndelim2.m4: Likewise.
35947         * m4/getpass.m4: Likewise.
35948         * m4/gettext.m4: Likewise.
35949         * m4/gettime.m4: Likewise.
35950         * m4/gettimeofday.m4: Likewise.
35951         * m4/gnulib-common.m4: Likewise.
35952         * m4/group-member.m4: Likewise.
35953         * m4/host-os.m4: Likewise.
35954         * m4/iconv.m4: Likewise.
35955         * m4/iconv_open.m4: Likewise.
35956         * m4/inet_ntop.m4: Likewise.
35957         * m4/inet_pton.m4: Likewise.
35958         * m4/inline.m4: Likewise.
35959         * m4/intldir.m4: Likewise.
35960         * m4/intlmacosx.m4: Likewise.
35961         * m4/intmax.m4: Likewise.
35962         * m4/intmax_t.m4: Likewise.
35963         * m4/inttypes.m4: Likewise.
35964         * m4/inttypes_h.m4: Likewise.
35965         * m4/inttypes-pri.m4: Likewise.
35966         * m4/isapipe.m4: Likewise.
35967         * m4/isnand.m4: Likewise.
35968         * m4/isnanf.m4: Likewise.
35969         * m4/isnanl.m4: Likewise.
35970         * m4/javacomp.m4: Likewise.
35971         * m4/javaexec.m4: Likewise.
35972         * m4/jm-winsz1.m4: Likewise.
35973         * m4/jm-winsz2.m4: Likewise.
35974         * m4/lchown.m4: Likewise.
35975         * m4/lcmessage.m4: Likewise.
35976         * m4/ldexpl.m4: Likewise.
35977         * m4/lib-ld.m4: Likewise.
35978         * m4/lib-link.m4: Likewise.
35979         * m4/libsigsegv.m4: Likewise.
35980         * m4/link-follow.m4: Likewise.
35981         * m4/localcharset.m4: Likewise.
35982         * m4/locale-fr.m4: Likewise.
35983         * m4/locale-ja.m4: Likewise.
35984         * m4/locale-tr.m4: Likewise.
35985         * m4/locale-zh.m4: Likewise.
35986         * m4/lock.m4: Likewise.
35987         * m4/longlong.m4: Likewise.
35988         * m4/ls-mntd-fs.m4: Likewise.
35989         * m4/lstat.m4: Likewise.
35990         * m4/malloc.m4: Likewise.
35991         * m4/mathl.m4: Likewise.
35992         * m4/mbrtowc.m4: Likewise.
35993         * m4/mbstate_t.m4: Likewise.
35994         * m4/mbswidth.m4: Likewise.
35995         * m4/memchr.m4: Likewise.
35996         * m4/memcmp.m4: Likewise.
35997         * m4/memcpy.m4: Likewise.
35998         * m4/memmem.m4: Likewise.
35999         * m4/memmove.m4: Likewise.
36000         * m4/mempcpy.m4: Likewise.
36001         * m4/memrchr.m4: Likewise.
36002         * m4/memset.m4: Likewise.
36003         * m4/minmax.m4: Likewise.
36004         * m4/mkdir-slash.m4: Likewise.
36005         * m4/mkdtemp.m4: Likewise.
36006         * m4/mktime.m4: Likewise.
36007         * m4/mmap-anon.m4: Likewise.
36008         * m4/mountlist.m4: Likewise.
36009         * m4/nanosleep.m4: Likewise.
36010         * m4/nls.m4: Likewise.
36011         * m4/nocrash.m4: Likewise.
36012         * m4/open.m4: Likewise.
36013         * m4/openat.m4: Likewise.
36014         * m4/openmp.m4: Likewise.
36015         * m4/pathmax.m4: Likewise.
36016         * m4/perl.m4: Likewise.
36017         * m4/physmem.m4: Likewise.
36018         * m4/pipe.m4: Likewise.
36019         * m4/po.m4: Likewise.
36020         * m4/poll.m4: Likewise.
36021         * m4/posixtm.m4: Likewise.
36022         * m4/posixver.m4: Likewise.
36023         * m4/printf-frexp.m4: Likewise.
36024         * m4/printf-frexpl.m4: Likewise.
36025         * m4/printf-posix.m4: Likewise.
36026         * m4/printf-posix-rpl.m4: Likewise.
36027         * m4/printf.m4: Likewise.
36028         * m4/progtest.m4: Likewise.
36029         * m4/putenv.m4: Likewise.
36030         * m4/readline.m4: Likewise.
36031         * m4/readlink.m4: Likewise.
36032         * m4/readutmp.m4: Likewise.
36033         * m4/realloc.m4: Likewise.
36034         * m4/regex.m4: Likewise.
36035         * m4/relocatable.m4: Likewise.
36036         * m4/relocatable-lib.m4: Likewise.
36037         * m4/rename-dest-slash.m4: Likewise.
36038         * m4/rename.m4: Likewise.
36039         * m4/rmdir-errno.m4: Likewise.
36040         * m4/rmdir.m4: Likewise.
36041         * m4/roundf.m4: Likewise.
36042         * m4/roundl.m4: Likewise.
36043         * m4/rpmatch.m4: Likewise.
36044         * m4/save-cwd.m4: Likewise.
36045         * m4/selinux-selinux-h.m4: Likewise.
36046         * m4/setenv.m4: Likewise.
36047         * m4/settime.m4: Likewise.
36048         * m4/sig2str.m4: Likewise.
36049         * m4/sig_atomic_t.m4: Likewise.
36050         * m4/signalblocking.m4: Likewise.
36051         * m4/signbit.m4: Likewise.
36052         * m4/sigpipe.m4: Likewise.
36053         * m4/sockets.m4: Likewise.
36054         * m4/sockpfaf.m4: Likewise.
36055         * m4/st_dm_mode.m4: Likewise.
36056         * m4/stat-time.m4: Likewise.
36057         * m4/stdbool.m4: Likewise.
36058         * m4/stdint.m4: Likewise.
36059         * m4/stdint_h.m4: Likewise.
36060         * m4/stpcpy.m4: Likewise.
36061         * m4/stpncpy.m4: Likewise.
36062         * m4/strcase.m4: Likewise.
36063         * m4/strchrnul.m4: Likewise.
36064         * m4/strcspn.m4: Likewise.
36065         * m4/strdup.m4: Likewise.
36066         * m4/strftime.m4: Likewise.
36067         * m4/strndup.m4: Likewise.
36068         * m4/strnlen.m4: Likewise.
36069         * m4/strpbrk.m4: Likewise.
36070         * m4/strptime.m4: Likewise.
36071         * m4/strsep.m4: Likewise.
36072         * m4/strtod.m4: Likewise.
36073         * m4/strtoimax.m4: Likewise.
36074         * m4/strtok_r.m4: Likewise.
36075         * m4/strtol.m4: Likewise.
36076         * m4/strtoll.m4: Likewise.
36077         * m4/strtoul.m4: Likewise.
36078         * m4/strtoull.m4: Likewise.
36079         * m4/strtoumax.m4: Likewise.
36080         * m4/strverscmp.m4: Likewise.
36081         * m4/threadlib.m4: Likewise.
36082         * m4/timegm.m4: Likewise.
36083         * m4/tm_gmtoff.m4: Likewise.
36084         * m4/tmpdir.m4: Likewise.
36085         * m4/tmpfile.m4: Likewise.
36086         * m4/tzset.m4: Likewise.
36087         * m4/uintmax_t.m4: Likewise.
36088         * m4/unlinkdir.m4: Likewise.
36089         * m4/unlocked-io.m4: Likewise.
36090         * m4/uptime.m4: Likewise.
36091         * m4/userspec.m4: Likewise.
36092         * m4/utimbuf.m4: Likewise.
36093         * m4/utime.m4: Likewise.
36094         * m4/utimes-null.m4: Likewise.
36095         * m4/utimes.m4: Likewise.
36096         * m4/vararrays.m4: Likewise.
36097         * m4/vasnprintf.m4: Likewise.
36098         * m4/vfprintf-posix.m4: Likewise.
36099         * m4/vprintf-posix.m4: Likewise.
36100         * m4/wait-process.m4: Likewise.
36101         * m4/wchar_t.m4: Likewise.
36102         * m4/wint_t.m4: Likewise.
36103         * m4/write-any-file.m4: Likewise.
36104         * m4/yield.m4: Likewise.
36105
36106 2009-01-13  Bruno Haible  <bruno@clisp.org>
36107
36108         Avoid test-copy-file.sh failures when ACL support insufficient.
36109         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
36110         TESTS_ENVIRONMENT.
36111         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
36112         Reported by Jim Meyering.
36113
36114 2009-01-13  Bruno Haible  <bruno@clisp.org>
36115
36116         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
36117         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
36118         * modules/unistdio/u8-printf-parse (Files): Likewise.
36119         * modules/unistdio/u32-printf-parse (Files): Likewise.
36120         * modules/unistdio/ulc-printf-parse (Files): Likewise.
36121
36122 2009-01-13  Simon Josefsson  <simon@josefsson.org>
36123
36124         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
36125         and m4/inttypes_h.m4 too.
36126
36127 2009-01-12  Eric Blake  <ebb9@byu.net>
36128
36129         tests: IRIX 6.2 cc can't compile -0.0 into .data
36130         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
36131         rather than at compile-time.
36132         * tests/test-floorl.c (minus_zero): Likewise.
36133         * tests/test-frexpl.c (minus_zero): Likewise.
36134         * tests/test-isnan.c (minus_zerol): Likewise.
36135         * tests/test-isnanl.h (minus_zero): Likewise.
36136         * tests/test-ldexpl.c (minus_zero): Likewise.
36137         * tests/test-roundl.c (minus_zero): Likewise.
36138         * tests/test-signbit.c (minus_zerol): Likewise.
36139         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36140         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36141         * tests/test-truncl.c (minus_zero): Likewise.
36142         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36143         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36144         Reported by Tom G. Christensen and Nelson H. F. Beebe.
36145
36146 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36147
36148         regex: fix glibc bug 9697
36149         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
36150         handling.
36151
36152 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36153
36154         regex: fix glibc bug 697
36155         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
36156         being NULL also if there are no backreferences.
36157
36158 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
36159
36160         regex: merge glibc changes
36161         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
36162         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
36163         re_string_skip_chars, re_string_reconstruct): Likewise.
36164         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
36165
36166 2009-01-07  Jim Meyering  <meyering@redhat.com>
36167
36168         poll: filter through cppi
36169         * lib/poll.c: Indent cpp directives to reflect nesting.
36170
36171 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
36172
36173         poll: don't return uninitialized
36174         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
36175
36176 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
36177
36178         avoid compile failure on AIX 6.1
36179         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
36180         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
36181
36182 2009-01-04  Jim Meyering  <meyering@redhat.com>
36183
36184         remove duplicate inclusion of <stdio.h>
36185         * tests/test-fprintf-posix.c: Likewise.
36186         * tests/test-printf-posix.c: Likewise.
36187         * tests/test-snprintf-posix.c: Likewise.
36188         * tests/test-sprintf-posix.c: Likewise.
36189         * tests/test-vasprintf-posix.c: Likewise.
36190         * tests/test-vfprintf-posix.c: Likewise.
36191         * tests/test-vprintf-posix.c: Likewise.
36192         * tests/test-vsnprintf-posix.c: Likewise.
36193         * tests/test-vsprintf-posix.c: Likewise.
36194
36195 2009-01-03  Jim Meyering  <meyering@redhat.com>
36196
36197         gnulib-tool: fix sed-based filtering
36198         * gnulib-tool (func_filter_filelist): Remove extra backslash
36199         in sed_fff_filter definition.
36200
36201 2009-01-02  Jim Meyering  <meyering@redhat.com>
36202
36203         strftime: avoid compilation failure on Solaris 2.6
36204         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
36205         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
36206         Don't #define mbrlen or mbsinit, since now they're guaranteed to
36207         be available.  Reported by Tom G. Christensen.  Details in
36208         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
36209
36210 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36211             Bruno Haible  <bruno@clisp.org>
36212
36213         Speed up gnulib-tool by doing more string processing through shell
36214         built-ins.
36215         * gnulib-tool (fast_func_append): New variable.
36216         (func_remove_prefix, func_remove_suffix): New functions.
36217         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
36218         (func_filter_filelist): New function.
36219         (func_get_dependencies): Use func_remove_suffix instead of sed.
36220         (func_get_automake_snippet): Use func_filter_filelist instead of a
36221         subshell and sed invocation.
36222
36223 2009-01-01  Bruno Haible  <bruno@clisp.org>
36224
36225         Fix a security bug.
36226         * gnulib-tool (func_import, import, update): Don't allow the characters
36227         '"', '$', '`', '\' in macro arguments that become part of commands that
36228         are evaluated.
36229
36230 2009-01-01  Bruno Haible  <bruno@clisp.org>
36231
36232         * gnulib-tool (func_reset_sigpipe): Add more comments.
36233
36234 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36235
36236         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
36237         func_emit_tests_Makefile_am, func_import): Abort loops early if we
36238         already know the answer.
36239
36240 2009-01-01  Jim Meyering  <meyering@redhat.com>
36241
36242         * lib/version-etc.c (version_etc_va): Update copyright year.
36243
36244 2008-12-30  Bruno Haible  <bruno@clisp.org>
36245
36246         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
36247         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
36248         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
36249
36250 2008-12-29  Eric Blake  <ebb9@byu.net>
36251
36252         multiarch: avoid autoconf AC_REQUIRE bug
36253         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
36254         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
36255         2.63 and older.
36256         Reported by Bruno Haible, and analyzed in
36257         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
36258
36259 2008-12-29  Bruno Haible  <bruno@clisp.org>
36260
36261         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
36262         files in subdirectories correctly.
36263         Reported by Ralf Wildenhues.
36264
36265 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36266
36267         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
36268         rather than 'join FILE -', for Solaris join.
36269
36270 2008-12-29  Bruno Haible  <bruno@clisp.org>
36271
36272         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
36273         quoting.
36274         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
36275         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
36276         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
36277         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
36278         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
36279         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
36280         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
36281         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
36282         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
36283         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
36284         * m4/nls.m4 (AM_NLS): Likewise.
36285         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
36286         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
36287         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
36288         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
36289         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
36290         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
36291         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
36292         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
36293         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
36294         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
36295         * m4/xsize.m4 (gl_XSIZE): Likewise.
36296         Suggested by Jim Meyering.
36297
36298 2008-11-17  Bruce Korb  <bkorb@gnu.org>
36299
36300         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
36301         * lib/parse-duration.c: use a switch instead of cascading if's.
36302
36303 2008-12-29  Eric Blake  <ebb9@byu.net>
36304
36305         wchar.h: supply WEOF on Irix 5.3
36306         * lib/wchar.in.h (wint_t): Also supply WEOF.
36307         * lib/wctype.in.h (wint_t): Likewise.
36308         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
36309         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
36310         Reported by Tom G. Christensen.
36311
36312 2008-12-26  Bruno Haible  <bruno@clisp.org>
36313
36314         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
36315         i486, i586, i686.
36316
36317 2008-12-26  Bruno Haible  <bruno@clisp.org>
36318
36319         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
36320
36321 2008-12-26  Bruno Haible  <bruno@clisp.org>
36322
36323         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
36324         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
36325         not __STDC_CONSTANT_MACROS.
36326         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36327
36328 2008-12-25  Bruno Haible  <bruno@clisp.org>
36329
36330         Add support for universal builds to vasnprintf.
36331         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
36332         universal builds, guess no.
36333         * modules/vasnprintf-posix (Depends-on): Add multiarch.
36334         * modules/vasprintf-posix (Depends-on): Likewise.
36335         * modules/fprintf-posix (Depends-on): Likewise.
36336         * modules/vfprintf-posix (Depends-on): Likewise.
36337         * modules/snprintf-posix (Depends-on): Likewise.
36338         * modules/vsnprintf-posix (Depends-on): Likewise.
36339         * modules/sprintf-posix (Depends-on): Likewise.
36340         * modules/vsprintf-posix (Depends-on): Likewise.
36341         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36342         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36343         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36344         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36345         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36346         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36347         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36348
36349         Add support for universal builds to <inttypes.h>.
36350         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
36351         _SCNu64_PREFIX): In Apple
36352         universal builds, define directly, using _LP64.
36353         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
36354         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
36355         * modules/inttypes (Depends-on): Add multiarch.
36356         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
36357
36358         Add support for universal builds to <stdint.h>.
36359         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
36360         universal builds, define directly, using _LP64.
36361         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
36362         Apple universal builds, don't test for the size and suffix of ptrdiff_t
36363         and size_t.
36364         * modules/stdint (Depends-on): Add multiarch.
36365         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
36366
36367         New module 'multiarch'.
36368         * modules/multiarch: New file.
36369         * m4/multiarch.m4: New file.
36370
36371 2008-12-25  Bruno Haible  <bruno@clisp.org>
36372
36373         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
36374
36375 2008-12-25  Bruno Haible  <bruno@clisp.org>
36376
36377         * modules/btowc (License): Relicense under LGPLv2+.
36378         * modules/mbsinit (License): Likewise.
36379         * modules/mbrtowc (License): Likewise.
36380         * modules/wcrtomb (License): Likewise.
36381         * modules/streq (License): Likewise.
36382         Reported by David Lutterkort <lutter@redhat.com>.
36383
36384 2008-12-23  Bruno Haible  <bruno@clisp.org>
36385
36386         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
36387
36388 2008-12-23  Bruno Haible  <bruno@clisp.org>
36389
36390         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
36391         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
36392         GETADDRINFO_LIB, not in LIBS.
36393         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
36394         * modules/canon-host (Link): Likewise.
36395         * NEWS: Mention the change.
36396         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
36397         GETADDRINFO_LIB.
36398
36399 2008-12-22  Bruno Haible  <bruno@clisp.org>
36400
36401         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
36402         * doc/posix-functions/iswalpha_l.texi: Likewise.
36403         * doc/posix-functions/iswblank_l.texi: Likewise.
36404         * doc/posix-functions/iswcntrl_l.texi: Likewise.
36405         * doc/posix-functions/iswctype_l.texi: Likewise.
36406         * doc/posix-functions/iswdigit_l.texi: Likewise.
36407         * doc/posix-functions/iswgraph_l.texi: Likewise.
36408         * doc/posix-functions/iswlower_l.texi: Likewise.
36409         * doc/posix-functions/iswprint_l.texi: Likewise.
36410         * doc/posix-functions/iswpunct_l.texi: Likewise.
36411         * doc/posix-functions/iswspace_l.texi: Likewise.
36412         * doc/posix-functions/iswupper_l.texi: Likewise.
36413         * doc/posix-functions/iswxdigit_l.texi: Likewise.
36414         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
36415         * doc/posix-functions/open_wmemstream.texi: Likewise.
36416         * doc/posix-functions/swscanf.texi: Likewise.
36417         * doc/posix-functions/towctrans_l.texi: Likewise.
36418         * doc/posix-functions/towlower.texi: Likewise.
36419         * doc/posix-functions/towlower_l.texi: Likewise.
36420         * doc/posix-functions/towupper.texi: Likewise.
36421         * doc/posix-functions/towupper_l.texi: Likewise.
36422         * doc/posix-functions/vfwprintf.texi: Likewise.
36423         * doc/posix-functions/vfwscanf.texi: Likewise.
36424         * doc/posix-functions/vswscanf.texi: Likewise.
36425         * doc/posix-functions/vwprintf.texi: Likewise.
36426         * doc/posix-functions/vwscanf.texi: Likewise.
36427         * doc/posix-functions/wcpcpy.texi: Likewise.
36428         * doc/posix-functions/wcpncpy.texi: Likewise.
36429         * doc/posix-functions/wcscasecmp.texi: Likewise.
36430         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
36431         * doc/posix-functions/wcscoll_l.texi: Likewise.
36432         * doc/posix-functions/wcsdup.texi: Likewise.
36433         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36434         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
36435         * doc/posix-functions/wcsnlen.texi: Likewise.
36436         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36437         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
36438         * doc/posix-functions/wctrans_l.texi: Likewise.
36439         * doc/posix-functions/wctype_l.texi: Likewise.
36440         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
36441         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
36442         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
36443         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
36444         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
36445         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
36446         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
36447         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
36448         * doc/glibc-functions/wcschrnul.texi: Likewise.
36449         * doc/glibc-functions/wcsftime_l.texi: Likewise.
36450         * doc/glibc-functions/wcstod_l.texi: Likewise.
36451         * doc/glibc-functions/wcstof_l.texi: Likewise.
36452         * doc/glibc-functions/wcstol_l.texi: Likewise.
36453         * doc/glibc-functions/wcstold_l.texi: Likewise.
36454         * doc/glibc-functions/wcstoll_l.texi: Likewise.
36455         * doc/glibc-functions/wcstoq.texi: Likewise.
36456         * doc/glibc-functions/wcstoul_l.texi: Likewise.
36457         * doc/glibc-functions/wcstoull_l.texi: Likewise.
36458         * doc/glibc-functions/wcstouq.texi: Likewise.
36459         * doc/glibc-functions/wmempcpy.texi: Likewise.
36460
36461 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
36462             Eric Blake  <ebb9@byu.net>
36463             Paolo Bonzini  <bonzini@gnu.org>
36464             Bruno Haible  <bruno@clisp.org>
36465
36466         Make c-stack work on Haiku.
36467         * lib/c-stack.c (SA_ONSTACK): Define fallback.
36468         (c_stack_action): Use SA_ONSTACK flag.
36469
36470 2008-12-22  Bruno Haible  <bruno@clisp.org>
36471
36472         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
36473
36474 2008-12-22  Bruno Haible  <bruno@clisp.org>
36475
36476         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
36477         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
36478         being overridden.
36479         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
36480         New macros.
36481         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
36482         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
36483         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
36484         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
36485
36486 2008-12-22  Bruno Haible  <bruno@clisp.org>
36487
36488         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
36489         from test code.
36490
36491 2008-12-22  Eric Blake  <ebb9@byu.net>
36492
36493         Avoid gcc warnings on cygwin.
36494         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
36495         Avoid unused variable.
36496         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
36497         Likewise.
36498
36499 2008-12-22  Bruno Haible  <bruno@clisp.org>
36500
36501         Remove HAVE_MBRTOWC conditionals.
36502         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
36503         (mbscasecmp): Assume mbrtowc function.
36504         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
36505         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
36506         * lib/mbschr.c: Include mbuiter.h unconditionally.
36507         (mbschr): Assume mbrtowc function.
36508         * lib/mbscspn.c: Include mbuiter.h unconditionally.
36509         (mbscspn): Assume mbrtowc function.
36510         * lib/mbslen.c: Include mbuiter.h unconditionally.
36511         (mbslen): Assume mbrtowc function.
36512         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
36513         (mbsncasecmp): Assume mbrtowc function.
36514         * lib/mbsnlen.c: Include mbiter.h unconditionally.
36515         (mbsnlen): Assume mbrtowc function.
36516         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
36517         (mbspbrk): Assume mbrtowc function.
36518         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
36519         (mbspcasecmp): Assume mbrtowc function.
36520         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
36521         (mbsrchr): Assume mbrtowc function.
36522         * lib/mbssep.c: Include mbuiter.h unconditionally.
36523         (mbssep): Assume mbrtowc function.
36524         * lib/mbsspn.c: Include mbuiter.h unconditionally.
36525         (mbsspn): Assume mbrtowc function.
36526         * lib/mbsstr.c: Include mbuiter.h unconditionally.
36527         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
36528         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
36529         (mbstok_r): Assume mbrtowc function.
36530         * lib/propername.c: Include mbuiter.h unconditionally.
36531         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
36532         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
36533         (trim2): Assume mbrtowc function.
36534         * lib/mbswidth.c (mbsinit): Remove fallback definition.
36535         (mbsnwidth): Assume mbrtowc function.
36536         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
36537         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
36538         fallback definitions.
36539         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
36540
36541 2008-12-22  Bruno Haible  <bruno@clisp.org>
36542
36543         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
36544
36545 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
36546
36547         * modules/regex: Request emulations for the mb*/wc* functions we need.
36548         * m4/regex.m4: Don't look for those functions here.
36549         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
36550
36551 2008-12-22  Bruno Haible  <bruno@clisp.org>
36552
36553         * modules/fnmatch (Depends-on): Remove duplicated dependency.
36554
36555 2008-12-21  Bruno Haible  <bruno@clisp.org>
36556
36557         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
36558         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
36559         (Include): Remove conditionalization.
36560         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
36561         (Include): Remove conditionalization.
36562         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
36563         (Include): Remove conditionalization.
36564         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
36565         * m4/mbfile.m4 (gl_MBFILE): Likewise.
36566         * NEWS: Mention the change.
36567         Reported by Alan Hourihane <alanh@fairlite.co.uk>
36568         via Sergey Poznyakoff <gray@gnu.org.ua>.
36569
36570 2008-12-21  Bruno Haible  <bruno@clisp.org>
36571
36572         * MODULES.html.sh (Extended multibyte and wide character utilities
36573         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
36574         wcrtomb, wcsrtombs.
36575         (Support for systems lacking POSIX:2008): Add accept, bind, close,
36576         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
36577         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
36578         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
36579
36580 2008-12-21  Bruno Haible  <bruno@clisp.org>
36581
36582         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
36583
36584 2008-12-21  Bruno Haible  <bruno@clisp.org>
36585
36586         * modules/wcsnrtombs-tests: New file.
36587         * tests/test-wcsnrtombs1.sh: New file.
36588         * tests/test-wcsnrtombs2.sh: New file.
36589         * tests/test-wcsnrtombs3.sh: New file.
36590         * tests/test-wcsnrtombs4.sh: New file.
36591         * tests/test-wcsnrtombs.c: New file.
36592
36593         New module 'wcsnrtombs'.
36594         * lib/wchar.in.h (wcsnrtombs): New declaration.
36595         * lib/wcsnrtombs.c: New file.
36596         * lib/wcsrtombs-state.c: New file.
36597         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
36598         (internal_state): Remove variable.
36599         * m4/wcsnrtombs.m4: New file.
36600         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
36601         compilation units.
36602         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
36603         HAVE_WCSNRTOMBS.
36604         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
36605         HAVE_WCSNRTOMBS.
36606         * modules/wcsnrtombs: New file.
36607         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
36608         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
36609
36610 2008-12-21  Bruno Haible  <bruno@clisp.org>
36611
36612         * modules/wcsrtombs-tests: New file.
36613         * tests/test-wcsrtombs1.sh: New file.
36614         * tests/test-wcsrtombs2.sh: New file.
36615         * tests/test-wcsrtombs3.sh: New file.
36616         * tests/test-wcsrtombs4.sh: New file.
36617         * tests/test-wcsrtombs.c: New file.
36618
36619         New module 'wcsrtombs'.
36620         * lib/wchar.in.h (wcsrtombs): New declaration.
36621         * lib/wcsrtombs.c: New file.
36622         * m4/wcsrtombs.m4: New file.
36623         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
36624         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
36625         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
36626         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
36627         * modules/wcsrtombs: New file.
36628         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
36629         bugs.
36630
36631 2008-12-21  Bruno Haible  <bruno@clisp.org>
36632
36633         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
36634         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
36635         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
36636         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
36637         if not correct.
36638         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
36639         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
36640         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36641         m4/locale-zh.m4, m4/codeset.m4.
36642         * doc/posix-functions/wcrtomb.texi: Document the bug.
36643
36644 2008-12-21  Bruno Haible  <bruno@clisp.org>
36645
36646         Work around a btowc() bug on IRIX 6.5.
36647         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
36648         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
36649         REPLACE_WTOBC if not.
36650         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
36651         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
36652         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
36653
36654 2008-12-21  Bruno Haible  <bruno@clisp.org>
36655
36656         * modules/wcrtomb-tests: New file.
36657         * tests/test-wcrtomb.sh: New file.
36658         * tests/test-wcrtomb.c: New file.
36659
36660         New module 'wcrtomb'.
36661         * lib/wchar.in.h (wcrtomb): New declaration.
36662         * lib/wcrtomb.c: New file.
36663         * m4/wcrtomb.m4: New file.
36664         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
36665         HAVE_WCRTOMB.
36666         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
36667         HAVE_WCRTOMB.
36668         * modules/wcrtomb: New file.
36669         * doc/posix-functions/wcrtomb.texi: Mention the new module.
36670
36671 2008-12-21  Bruno Haible  <bruno@clisp.org>
36672
36673         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
36674         * modules/mbsrtowcs (Files): Likewise.
36675         * modules/wctob (Files): Likewise.
36676         * modules/c-strcase-tests (Files): Likewise.
36677         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36678         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36679         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36680         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36681         * modules/vasnprintf-posix-tests (Files): Likewise.
36682
36683 2008-12-21  William Pursell  <bill.pursell@gmail.com>
36684
36685         gitlog-to-changelog: pass all command-line arguments to git-log
36686         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
36687         it is sometimes convenient to filter the commits in various ways.
36688         gitlog-to-changelog only allows --since to specify a start date,
36689         but git-log itself supports many other filtering mechanisms.
36690         At the moment, I want to filter by branch name.  Rather than
36691         adding a --branch option to gitlog-to-changelog, it seems more
36692         flexible to simply pass all options directly to git-log and let
36693         git do the work.  Notice that this effectively makes --since a
36694         redundant option for gitlog-to-changelog, but removing it would
36695         require current usage to change since calls would then require
36696         an additional '--'.
36697
36698 2008-12-21  Bruno Haible  <bruno@clisp.org>
36699
36700         * modules/mbsnrtowcs-tests: New file.
36701         * tests/test-mbsnrtowcs1.sh: New file.
36702         * tests/test-mbsnrtowcs2.sh: New file.
36703         * tests/test-mbsnrtowcs3.sh: New file.
36704         * tests/test-mbsnrtowcs4.sh: New file.
36705         * tests/test-mbsnrtowcs.c: New file.
36706
36707         New module 'mbsnrtowcs'.
36708         * lib/wchar.in.h (mbsnrtowcs): New declaration.
36709         * lib/mbsnrtowcs.c: New file.
36710         * lib/mbsrtowcs-state.c: New file.
36711         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
36712         (internal_state): Remove variable.
36713         * m4/mbsnrtowcs.m4: New file.
36714         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
36715         compilation units.
36716         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
36717         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
36718         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
36719         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
36720         * modules/mbsnrtowcs: New file.
36721         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
36722         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
36723         portability problem.
36724
36725 2008-12-21  Bruno Haible  <bruno@clisp.org>
36726
36727         Work around mbsrtowcs bug.
36728         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
36729         (gl_FUNC_MBSRTOWCS): Invoke it.
36730         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36731         m4/locale-zh.m4.
36732         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
36733
36734 2008-12-21  Bruno Haible  <bruno@clisp.org>
36735
36736         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
36737
36738 2008-12-21  Bruno Haible  <bruno@clisp.org>
36739
36740         Update doc for AIX.
36741         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
36742         16-bit wchar_t type.
36743         * doc/posix-functions/btowc.texi: Likewise.
36744         * doc/posix-functions/fgetwc.texi: Likewise.
36745         * doc/posix-functions/fgetws.texi: Likewise.
36746         * doc/posix-functions/fputwc.texi: Likewise.
36747         * doc/posix-functions/fputws.texi: Likewise.
36748         * doc/posix-functions/fwide.texi: Likewise.
36749         * doc/posix-functions/fwprintf.texi: Likewise.
36750         * doc/posix-functions/fwscanf.texi: Likewise.
36751         * doc/posix-functions/getwchar.texi: Likewise.
36752         * doc/posix-functions/getwc.texi: Likewise.
36753         * doc/posix-functions/iswalnum.texi: Likewise.
36754         * doc/posix-functions/iswalpha.texi: Likewise.
36755         * doc/posix-functions/iswblank.texi: Likewise.
36756         * doc/posix-functions/iswcntrl.texi: Likewise.
36757         * doc/posix-functions/iswctype.texi: Likewise.
36758         * doc/posix-functions/iswdigit.texi: Likewise.
36759         * doc/posix-functions/iswgraph.texi: Likewise.
36760         * doc/posix-functions/iswlower.texi: Likewise.
36761         * doc/posix-functions/iswprint.texi: Likewise.
36762         * doc/posix-functions/iswpunct.texi: Likewise.
36763         * doc/posix-functions/iswspace.texi: Likewise.
36764         * doc/posix-functions/iswupper.texi: Likewise.
36765         * doc/posix-functions/iswxdigit.texi: Likewise.
36766         * doc/posix-functions/mbrtowc.texi: Likewise.
36767         * doc/posix-functions/mbsrtowcs.texi: Likewise.
36768         * doc/posix-functions/mbstowcs.texi: Likewise.
36769         * doc/posix-functions/mbtowc.texi: Likewise.
36770         * doc/posix-functions/putwchar.texi: Likewise.
36771         * doc/posix-functions/putwc.texi: Likewise.
36772         * doc/posix-functions/swprintf.texi: Likewise.
36773         * doc/posix-functions/tolower.texi: Likewise.
36774         * doc/posix-functions/toupper.texi: Likewise.
36775         * doc/posix-functions/towctrans.texi: Likewise.
36776         * doc/posix-functions/ungetwc.texi: Likewise.
36777         * doc/posix-functions/vswprintf.texi: Likewise.
36778         * doc/posix-functions/wcrtomb.texi: Likewise.
36779         * doc/posix-functions/wcscat.texi: Likewise.
36780         * doc/posix-functions/wcschr.texi: Likewise.
36781         * doc/posix-functions/wcscmp.texi: Likewise.
36782         * doc/posix-functions/wcscoll.texi: Likewise.
36783         * doc/posix-functions/wcscpy.texi: Likewise.
36784         * doc/posix-functions/wcscspn.texi: Likewise.
36785         * doc/posix-functions/wcsftime.texi: Likewise.
36786         * doc/posix-functions/wcslen.texi: Likewise.
36787         * doc/posix-functions/wcsncat.texi: Likewise.
36788         * doc/posix-functions/wcsncmp.texi: Likewise.
36789         * doc/posix-functions/wcsncpy.texi: Likewise.
36790         * doc/posix-functions/wcspbrk.texi: Likewise.
36791         * doc/posix-functions/wcsrchr.texi: Likewise.
36792         * doc/posix-functions/wcsrtombs.texi: Likewise.
36793         * doc/posix-functions/wcsspn.texi: Likewise.
36794         * doc/posix-functions/wcsstr.texi: Likewise.
36795         * doc/posix-functions/wcstod.texi: Likewise.
36796         * doc/posix-functions/wcstof.texi: Likewise.
36797         * doc/posix-functions/wcstoimax.texi: Likewise.
36798         * doc/posix-functions/wcstok.texi: Likewise.
36799         * doc/posix-functions/wcstold.texi: Likewise.
36800         * doc/posix-functions/wcstoll.texi: Likewise.
36801         * doc/posix-functions/wcstol.texi: Likewise.
36802         * doc/posix-functions/wcstombs.texi: Likewise.
36803         * doc/posix-functions/wcstoull.texi: Likewise.
36804         * doc/posix-functions/wcstoul.texi: Likewise.
36805         * doc/posix-functions/wcstoumax.texi: Likewise.
36806         * doc/posix-functions/wcswidth.texi: Likewise.
36807         * doc/posix-functions/wcsxfrm.texi: Likewise.
36808         * doc/posix-functions/wctob.texi: Likewise.
36809         * doc/posix-functions/wctomb.texi: Likewise.
36810         * doc/posix-functions/wctrans.texi: Likewise.
36811         * doc/posix-functions/wctype.texi: Likewise.
36812         * doc/posix-functions/wcwidth.texi: Likewise.
36813         * doc/posix-functions/wmemchr.texi: Likewise.
36814         * doc/posix-functions/wmemcmp.texi: Likewise.
36815         * doc/posix-functions/wmemcpy.texi: Likewise.
36816         * doc/posix-functions/wmemmove.texi: Likewise.
36817         * doc/posix-functions/wmemset.texi: Likewise.
36818         * doc/posix-functions/wprintf.texi: Likewise.
36819         * doc/posix-functions/wscanf.texi: Likewise.
36820
36821 2008-12-21  Bruno Haible  <bruno@clisp.org>
36822
36823         Update doc for HP-UX 11.11.
36824         * doc/posix-functions/btowc.texi: Clarify that the function is missing
36825         in HP-UX version 11.00, not in all versions of HP-UX 11.
36826         * doc/posix-functions/fwide.texi: Likewise.
36827         * doc/posix-functions/fwprintf.texi: Likewise.
36828         * doc/posix-functions/fwscanf.texi: Likewise.
36829         * doc/posix-functions/inet_ntop.texi: Likewise.
36830         * doc/posix-functions/inet_pton.texi: Likewise.
36831         * doc/posix-functions/mbrlen.texi: Likewise.
36832         * doc/posix-functions/mbrtowc.texi: Likewise.
36833         * doc/posix-functions/mbsinit.texi: Likewise.
36834         * doc/posix-functions/mbsrtowcs.texi: Likewise.
36835         * doc/posix-functions/swprintf.texi: Likewise.
36836         * doc/posix-functions/swscanf.texi: Likewise.
36837         * doc/posix-functions/towctrans.texi: Likewise.
36838         * doc/posix-functions/vfwprintf.texi: Likewise.
36839         * doc/posix-functions/vswprintf.texi: Likewise.
36840         * doc/posix-functions/vwprintf.texi: Likewise.
36841         * doc/posix-functions/wcrtomb.texi: Likewise.
36842         * doc/posix-functions/wcsrtombs.texi: Likewise.
36843         * doc/posix-functions/wcsstr.texi: Likewise.
36844         * doc/posix-functions/wctob.texi: Likewise.
36845         * doc/posix-functions/wctrans.texi: Likewise.
36846         * doc/posix-functions/wmemchr.texi: Likewise.
36847         * doc/posix-functions/wmemcmp.texi: Likewise.
36848         * doc/posix-functions/wmemcpy.texi: Likewise.
36849         * doc/posix-functions/wmemmove.texi: Likewise.
36850         * doc/posix-functions/wmemset.texi: Likewise.
36851         * doc/posix-functions/wprintf.texi: Likewise.
36852         * doc/posix-functions/wscanf.texi: Likewise.
36853
36854 2008-12-21  Bruno Haible  <bruno@clisp.org>
36855
36856         Work around a portability problem.
36857         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
36858         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
36859
36860 2008-12-20  Bruno Haible  <bruno@clisp.org>
36861
36862         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
36863         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
36864         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
36865         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
36866         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
36867
36868         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
36869         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
36870         set.
36871         (GNULIB_defined_mbstate_t): New macro.
36872         (mbsinit): Redefine if REPLACE_MBSINIT is set.
36873         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
36874         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
36875         reuses the system's mbrtowc function but works around the bugs.
36876         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
36877         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
36878         macros.
36879         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
36880         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
36881         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
36882         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
36883         REPLACE_MBSINIT if mbsinit needs to be overridden.
36884         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
36885         REPLACE_MBSINIT, REPLACE_MBRTOWC.
36886         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
36887         REPLACE_MBSINIT, REPLACE_MBRTOWC.
36888         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
36889         m4/locale-zh.m4.
36890         (Depends): Add mbsinit.
36891         * modules/mbsinit (Depends): Add mbrtowc.
36892         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
36893
36894 2008-12-20  Bruno Haible  <bruno@clisp.org>
36895
36896         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
36897         so that there are no conversion errors on AIX.
36898         * tests/test-mbsrtowcs.c (main): LIkewise.
36899
36900 2008-12-20  Bruno Haible  <bruno@clisp.org>
36901
36902         Work around wctob bug on Solaris <= 9.
36903         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
36904         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
36905         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
36906         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
36907         * modules/wctob (Files): Add m4/locale-fr.m4.
36908         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
36909
36910 2008-12-20  Bruno Haible  <bruno@clisp.org>
36911
36912         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
36913         /dev/null.
36914         * tests/test-select-in.sh: Likewise.
36915         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36916
36917 2008-12-20  Bruno Haible  <bruno@clisp.org>
36918
36919         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
36920         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
36921         Cygwin 1.5.x.
36922
36923 2008-12-20  Bruno Haible  <bruno@clisp.org>
36924
36925         Ensure mbstate_t is defined on HP-UX 11.11.
36926         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
36927         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
36928         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
36929         AC_USE_SYSTEM_EXTENSIONS.
36930         * modules/fnmatch (Depends-on): Add extensions.
36931         * modules/mbrlen (Depends-on): Likewise.
36932         * modules/mbrtowc (Depends-on): Likewise.
36933         * modules/mbsinit (Depends-on): Likewise.
36934         * modules/mbsrtowcs (Depends-on): Likewise.
36935         * modules/mbswidth (Depends-on): Likewise.
36936         * modules/quotearg (Depends-on): Likewise.
36937         * modules/strftime (Depends-on): Likewise.
36938
36939 2008-12-20  Bruno Haible  <bruno@clisp.org>
36940
36941         Ensure wctob is declared on IRIX 6.5.
36942         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
36943         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
36944         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
36945         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
36946         of HAVE_WCTOB.
36947         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
36948         HAVE_WCTOB.
36949         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
36950
36951 2008-12-19  Bruno Haible  <bruno@clisp.org>
36952
36953         * modules/mbsrtowcs-tests: New file.
36954         * tests/test-mbsrtowcs1.sh: New file.
36955         * tests/test-mbsrtowcs2.sh: New file.
36956         * tests/test-mbsrtowcs3.sh: New file.
36957         * tests/test-mbsrtowcs4.sh: New file.
36958         * tests/test-mbsrtowcs.c: New file.
36959
36960         New module 'mbsrtowcs'.
36961         * lib/wchar.in.h (mbsrtowcs): New declaration.
36962         * lib/mbsrtowcs.c: New file.
36963         * m4/mbsrtowcs.m4: New file.
36964         * modules/mbsrtowcs: New file.
36965         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
36966         HAVE_MBSRTOWCS.
36967         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
36968         HAVE_MBSRTOWCS.
36969         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
36970
36971 2008-12-19  Bruno Haible  <bruno@clisp.org>
36972
36973         New module 'mbrlen'.
36974         * lib/wchar.in.h (mbrlen): New declaration.
36975         * lib/mbrlen.c: New file.
36976         * m4/mbrlen.m4: New file.
36977         * modules/mbrlen: New file.
36978         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
36979         HAVE_MBRLEN.
36980         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
36981         HAVE_MBRLEN.
36982         * doc/posix-functions/mbrlen.texi: Document the new module.
36983
36984 2008-12-19  Bruno Haible  <bruno@clisp.org>
36985
36986         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
36987         * modules/mbrtowc (Depends-on): Add verify.
36988         Suggested by Paul Eggert.
36989
36990 2008-12-18  Bruno Haible  <bruno@clisp.org>
36991
36992         * modules/mbsinit-tests: New file.
36993         * tests/test-mbsinit.sh: New file.
36994         * tests/test-mbsinit.c: New file.
36995
36996 2008-12-18  Bruno Haible  <bruno@clisp.org>
36997
36998         * modules/mbrtowc-tests: New file.
36999         * tests/test-mbrtowc1.sh: New file.
37000         * tests/test-mbrtowc2.sh: New file.
37001         * tests/test-mbrtowc3.sh: New file.
37002         * tests/test-mbrtowc4.sh: New file.
37003         * tests/test-mbrtowc.c: New file.
37004
37005         New module 'mbrtowc'.
37006         * lib/wchar.in.h (mbstate_t): Override when the system does not have
37007         mbsinit and mbrtowc.
37008         (mbrtowc): New declaration.
37009         * lib/mbrtowc.c: New file.
37010         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
37011         * modules/mbrtowc: New file.
37012         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
37013         HAVE_MBRTOWC.
37014         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
37015         HAVE_MBRTOWC.
37016         * doc/posix-functions/mbrtowc.texi: Document the new module.
37017
37018 2008-12-18  Bruno Haible  <bruno@clisp.org>
37019
37020         New module 'wctob'.
37021         * lib/wchar.in.h (wctob): New declaration.
37022         * lib/wctob.c: New file.
37023         * m4/wctob.m4: New file.
37024         * modules/wctob: New file.
37025         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
37026         HAVE_WCTOB.
37027         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
37028         * doc/posix-functions/wctob.texi: Document the new module.
37029
37030 2008-12-18  Bruno Haible  <bruno@clisp.org>
37031
37032         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
37033         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
37034
37035 2008-12-18  Simon Josefsson  <simon@josefsson.org>
37036
37037         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
37038         G. Christensen" <tgc@jupiterrise.com>.
37039
37040         * lib/flock.c: Need to include errno.h.  Reported by "Tom
37041         G. Christensen" <tgc@jupiterrise.com>.
37042
37043         * lib/flock.c: Need to include string.h.  Reported by "Tom
37044         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
37045         <ebb9@byu.net>.
37046
37047 2008-12-18  Bruno Haible  <bruno@clisp.org>
37048
37049         * m4/locale-ja.m4: New file, from GNU gettext.
37050
37051 2008-12-17  Bruno Haible  <bruno@clisp.org>
37052
37053         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
37054         Suggested by Eric Blake.
37055
37056 2008-12-17  Bruno Haible  <bruno@clisp.org>
37057
37058         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
37059
37060 2008-12-17  Bruno Haible  <bruno@clisp.org>
37061
37062         * lib/mbsinit.c: Include verify.h. Verify an assumption.
37063         * modules/mbsinit (Depends-on): Add verify.
37064         Suggested by Paul Eggert.
37065
37066 2008-12-17  Bruno Haible  <bruno@clisp.org>
37067
37068         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
37069         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
37070         gl_FUNC_MBRTOWC.
37071         * m4/mbiter.m4 (gl_MBITER): LIkewise.
37072         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
37073         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
37074         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
37075         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
37076         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
37077         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
37078         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
37079         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
37080         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
37081         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
37082         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
37083         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
37084         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
37085         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
37086         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
37087         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
37088         * modules/trim (configure.ac): Likewise.
37089
37090 2008-12-17  Bruno Haible  <bruno@clisp.org>
37091
37092         * modules/btowc-tests: New file.
37093         * tests/test-btowc1.sh: New file.
37094         * tests/test-btowc2.sh: New file.
37095         * tests/test-btowc.c: New file.
37096
37097         New module 'btowc'.
37098         * lib/wchar.in.h (btowc): New declaration.
37099         * lib/btowc.c: New file.
37100         * m4/btowc.m4: New file.
37101         * modules/btowc: New file.
37102         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
37103         HAVE_BTOWC.
37104         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
37105         * doc/posix-functions/btowc.texi: Document the new module.
37106
37107 2008-12-17  Bruno Haible  <bruno@clisp.org>
37108
37109         New module 'mbsinit'.
37110         * lib/wchar.in.h (mbsinit): New declaration.
37111         * lib/mbsinit.c: New file.
37112         * m4/mbsinit.m4: New file.
37113         * modules/mbsinit: New file.
37114         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
37115         HAVE_MBSINIT.
37116         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
37117         HAVE_MBSINIT.
37118         * doc/posix-functions/mbsinit.texi: Document the new module.
37119
37120 2008-12-16  Bruno Haible  <bruno@clisp.org>
37121
37122         * lib/unistd.in.h: Add comment.
37123         * tests/test-environ.c: Don't include <stdlib.h>.
37124
37125 2008-12-16  Bruno Haible  <bruno@clisp.org>
37126
37127         * lib/parse-duration.h (parse_duration): Document return value
37128         convention.
37129         * lib/parse-duration.c: Include specification header first. Add
37130         comments.
37131         (_): Remove macro.
37132         (parse_year_month_day, parse_hour_minute_second): Move side effects
37133         outside of strchr call.
37134         (parse_non_iso8601): Move side effects outside of isspace call.
37135         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
37136         call.
37137
37138 2008-12-16  Bruno Haible  <bruno@clisp.org>
37139
37140         * tests/test-parse-duration.sh: Produce no output when the test
37141         succeeds.
37142
37143 2008-12-16  Bruno Haible  <bruno@clisp.org>
37144
37145         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
37146         expressions.
37147
37148 2008-12-15  Bruno Haible  <bruno@clisp.org>
37149
37150         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
37151         * doc/glibc-functions/flistxattr.texi: Likewise.
37152         * doc/glibc-functions/fopencookie.texi: Likewise.
37153         * doc/glibc-functions/fremovexattr.texi: Likewise.
37154         * doc/glibc-functions/fsetxattr.texi: Likewise.
37155         * doc/glibc-functions/getxattr.texi: Likewise.
37156         * doc/glibc-functions/lgetxattr.texi: Likewise.
37157         * doc/glibc-functions/listxattr.texi: Likewise.
37158         * doc/glibc-functions/llistxattr.texi: Likewise.
37159         * doc/glibc-functions/lremovexattr.texi: Likewise.
37160         * doc/glibc-functions/lsetxattr.texi: Likewise.
37161         * doc/glibc-functions/removexattr.texi: Likewise.
37162         * doc/glibc-functions/setxattr.texi: Likewise.
37163         * doc/posix-functions/open_memstream.texi: Likewise.
37164
37165 2008-12-15  Eric Blake  <ebb9@byu.net>
37166
37167         Update doc for cygwin 1.7.
37168         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
37169         functions.
37170         * doc/posix-functions/fchmodat.texi: Likewise.
37171         * doc/posix-functions/fchownat.texi: Likewise.
37172         * doc/posix-functions/fdopendir.texi: Likewise.
37173         * doc/posix-functions/fmemopen.texi: Likewise.
37174         * doc/posix-functions/freeaddrinfo.texi: Likewise.
37175         * doc/posix-functions/fstatat.texi: Likewise.
37176         * doc/posix-functions/futimens.texi: Likewise.
37177         * doc/posix-functions/gai_strerror.texi: Likewise.
37178         * doc/posix-functions/getaddrinfo.texi: Likewise.
37179         * doc/posix-functions/getnameinfo.texi: Likewise.
37180         * doc/posix-functions/if_freenameindex.texi: Likewise.
37181         * doc/posix-functions/if_indextoname.texi: Likewise.
37182         * doc/posix-functions/if_nameindex.texi: Likewise.
37183         * doc/posix-functions/if_nametoindex.texi: Likewise.
37184         * doc/posix-functions/insque.texi: Likewise.
37185         * doc/posix-functions/linkat.texi: Likewise.
37186         * doc/posix-functions/llrint.texi: Likewise.
37187         * doc/posix-functions/llrintf.texi: Likewise.
37188         * doc/posix-functions/llrintl.texi: Likewise.
37189         * doc/posix-functions/lockf.texi: Likewise.
37190         * doc/posix-functions/lrintl.texi: Likewise.
37191         * doc/posix-functions/mkdirat.texi: Likewise.
37192         * doc/posix-functions/mkfifoat.texi: Likewise.
37193         * doc/posix-functions/mknodat.texi: Likewise.
37194         * doc/posix-functions/mq_close.texi: Likewise.
37195         * doc/posix-functions/mq_getattr.texi: Likewise.
37196         * doc/posix-functions/mq_notify.texi: Likewise.
37197         * doc/posix-functions/mq_open.texi: Likewise.
37198         * doc/posix-functions/mq_receive.texi: Likewise.
37199         * doc/posix-functions/mq_send.texi: Likewise.
37200         * doc/posix-functions/mq_setattr.texi: Likewise.
37201         * doc/posix-functions/mq_timedreceive.texi: Likewise.
37202         * doc/posix-functions/mq_timedsend.texi: Likewise.
37203         * doc/posix-functions/mq_unlink.texi: Likewise.
37204         * doc/posix-functions/open_memstream.texi: Likewise.
37205         * doc/posix-functions/openat.texi: Likewise.
37206         * doc/posix-functions/posix_fadvise.texi: Likewise.
37207         * doc/posix-functions/posix_fallocate.texi: Likewise.
37208         * doc/posix-functions/posix_madvise.texi: Likewise.
37209         * doc/posix-functions/posix_memalign.texi: Likewise.
37210         * doc/posix-functions/posix_openpt.texi: Likewise.
37211         * doc/posix-functions/readlinkat.texi: Likewise.
37212         * doc/posix-functions/remque.texi: Likewise.
37213         * doc/posix-functions/renameat.texi: Likewise.
37214         * doc/posix-functions/rintl.texi: Likewise.
37215         * doc/posix-functions/sem_unlink.texi: Likewise.
37216         * doc/posix-functions/shm_open.texi: Likewise.
37217         * doc/posix-functions/shm_unlink.texi: Likewise.
37218         * doc/posix-functions/signgam.texi: Likewise.
37219         * doc/posix-functions/sigset.texi: Likewise.
37220         * doc/posix-functions/stpcpy.texi: Likewise.
37221         * doc/posix-functions/stpncpy.texi: Likewise.
37222         * doc/posix-functions/strerror.texi: Likewise.
37223         * doc/posix-functions/strtod.texi: Likewise.
37224         * doc/posix-functions/symlinkat.texi: Likewise.
37225         * doc/posix-functions/unlinkat.texi: Likewise.
37226         * doc/posix-functions/utimensat.texi: Likewise.
37227         * doc/glibc-functions/bindresvport.texi: Likewise.
37228         * doc/glibc-functions/dn_expand.texi: Likewise.
37229         * doc/glibc-functions/exp10.texi: Likewise.
37230         * doc/glibc-functions/exp10f.texi: Likewise.
37231         * doc/glibc-functions/fgetxattr.texi: Likewise.
37232         * doc/glibc-functions/flistxattr.texi: Likewise.
37233         * doc/glibc-functions/fopencookie.texi: Likewise.
37234         * doc/glibc-functions/freeifaddrs.texi: Likewise.
37235         * doc/glibc-functions/fremovexattr.texi: Likewise.
37236         * doc/glibc-functions/fsetxattr.texi: Likewise.
37237         * doc/glibc-functions/getifaddrs.texi: Likewise.
37238         * doc/glibc-functions/getxattr.texi: Likewise.
37239         * doc/glibc-functions/lgetxattr.texi: Likewise.
37240         * doc/glibc-functions/listxattr.texi: Likewise.
37241         * doc/glibc-functions/llistxattr.texi: Likewise.
37242         * doc/glibc-functions/lremovexattr.texi: Likewise.
37243         * doc/glibc-functions/lsetxattr.texi: Likewise.
37244         * doc/glibc-functions/pow10.texi: Likewise.
37245         * doc/glibc-functions/pow10f.texi: Likewise.
37246         * doc/glibc-functions/rcmd_af.texi: Likewise.
37247         * doc/glibc-functions/removexattr.texi: Likewise.
37248         * doc/glibc-functions/res_init.texi: Likewise.
37249         * doc/glibc-functions/res_mkquery.texi: Likewise.
37250         * doc/glibc-functions/res_query.texi: Likewise.
37251         * doc/glibc-functions/res_querydomain.texi: Likewise.
37252         * doc/glibc-functions/res_send.texi: Likewise.
37253         * doc/glibc-functions/rresvport_af.texi: Likewise.
37254         * doc/glibc-functions/setxattr.texi: Likewise.
37255         * doc/glibc-functions/strcasestr.texi: Likewise.
37256
37257 2008-12-15  Bruno Haible  <bruno@clisp.org>
37258
37259         Fix compilation error on OSF/1 4.0.
37260         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
37261         <sys/time.h>, simply delegate to the system header.
37262         Reported by Daniel Richard G. <oss@teragram.com>.
37263
37264 2008-12-15  Bruno Haible  <bruno@clisp.org>
37265
37266         * doc/posix-functions/openat.texi: Mention the 'openat' module.
37267         * doc/posix-functions/fchmodat.texi: Likewise.
37268         * doc/posix-functions/fchownat.texi: Likewise.
37269         * doc/posix-functions/fdopendir.texi: Likewise.
37270         * doc/posix-functions/fstatat.texi: Likewise.
37271         * doc/posix-functions/mkdirat.texi: Likewise.
37272         * doc/posix-functions/unlinkat.texi: Likewise.
37273
37274 2008-12-14  Bruno Haible  <bruno@clisp.org>
37275
37276         Update doc for POSIX:2008.
37277         * doc/posix-functions/faccessat.texi: New file.
37278         * doc/posix-functions/fchmodat.texi: New file.
37279         * doc/posix-functions/fchownat.texi: New file.
37280         * doc/posix-functions/fdopendir.texi: New file.
37281         * doc/posix-functions/fstatat.texi: New file.
37282         * doc/posix-functions/futimens.texi: New file.
37283         * doc/posix-functions/linkat.texi: New file.
37284         * doc/posix-functions/mkdirat.texi: New file.
37285         * doc/posix-functions/mkfifoat.texi: New file.
37286         * doc/posix-functions/mknodat.texi: New file.
37287         * doc/posix-functions/open_wmemstream.texi: New file.
37288         * doc/posix-functions/openat.texi: New file.
37289         * doc/posix-functions/psiginfo.texi: New file.
37290         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
37291         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
37292         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
37293         * doc/posix-functions/readlinkat.texi: New file.
37294         * doc/posix-functions/renameat.texi: New file.
37295         * doc/posix-functions/strerror_l.texi: New file.
37296         * doc/posix-functions/symlinkat.texi: New file.
37297         * doc/posix-functions/unlinkat.texi: New file.
37298         * doc/posix-functions/utimensat.texi: New file.
37299         * doc/gnulib.texi (Function Substitutes): Add these subsections.
37300
37301 2008-12-14  Bruno Haible  <bruno@clisp.org>
37302
37303         Update doc for POSIX:2008.
37304         * doc/posix-functions/alphasort.texi: Renamed from
37305         doc/glibc-functions/alphasort.texi.
37306         * doc/posix-functions/dirfd.texi: Renamed from
37307         doc/glibc-functions/dirfd.texi.
37308         * doc/posix-functions/dprintf.texi: Renamed from
37309         doc/glibc-functions/dprintf.texi.
37310         * doc/posix-functions/duplocale.texi: Renamed from
37311         doc/glibc-functions/duplocale.texi.
37312         * doc/posix-functions/fexecve.texi: Renamed from
37313         doc/glibc-functions/fexecve.texi.
37314         * doc/posix-functions/fmemopen.texi: Renamed from
37315         doc/glibc-functions/fmemopen.texi.
37316         * doc/posix-functions/freelocale.texi: Renamed from
37317         doc/glibc-functions/freelocale.texi.
37318         * doc/posix-functions/getdate_err.texi: Renamed from
37319         doc/glibc-functions/getdate_err.texi.
37320         * doc/posix-functions/isalnum_l.texi: Renamed from
37321         doc/glibc-functions/isalnum_l.texi.
37322         * doc/posix-functions/isalpha_l.texi: Renamed from
37323         doc/glibc-functions/isalpha_l.texi.
37324         * doc/posix-functions/isblank_l.texi: Renamed from
37325         doc/glibc-functions/isblank_l.texi.
37326         * doc/posix-functions/iscntrl_l.texi: Renamed from
37327         doc/glibc-functions/iscntrl_l.texi.
37328         * doc/posix-functions/isdigit_l.texi: Renamed from
37329         doc/glibc-functions/isdigit_l.texi.
37330         * doc/posix-functions/isgraph_l.texi: Renamed from
37331         doc/glibc-functions/isgraph_l.texi.
37332         * doc/posix-functions/islower_l.texi: Renamed from
37333         doc/glibc-functions/islower_l.texi.
37334         * doc/posix-functions/isprint_l.texi: Renamed from
37335         doc/glibc-functions/isprint_l.texi.
37336         * doc/posix-functions/ispunct_l.texi: Renamed from
37337         doc/glibc-functions/ispunct_l.texi.
37338         * doc/posix-functions/isspace_l.texi: Renamed from
37339         doc/glibc-functions/isspace_l.texi.
37340         * doc/posix-functions/isupper_l.texi: Renamed from
37341         doc/glibc-functions/isupper_l.texi.
37342         * doc/posix-functions/iswalnum_l.texi: Renamed from
37343         doc/glibc-functions/iswalnum_l.texi.
37344         * doc/posix-functions/iswalpha_l.texi: Renamed from
37345         doc/glibc-functions/iswalpha_l.texi.
37346         * doc/posix-functions/iswblank_l.texi: Renamed from
37347         doc/glibc-functions/iswblank_l.texi.
37348         * doc/posix-functions/iswcntrl_l.texi: Renamed from
37349         doc/glibc-functions/iswcntrl_l.texi.
37350         * doc/posix-functions/iswctype_l.texi: Renamed from
37351         doc/glibc-functions/iswctype_l.texi.
37352         * doc/posix-functions/iswdigit_l.texi: Renamed from
37353         doc/glibc-functions/iswdigit_l.texi.
37354         * doc/posix-functions/iswgraph_l.texi: Renamed from
37355         doc/glibc-functions/iswgraph_l.texi.
37356         * doc/posix-functions/iswlower_l.texi: Renamed from
37357         doc/glibc-functions/iswlower_l.texi.
37358         * doc/posix-functions/iswprint_l.texi: Renamed from
37359         doc/glibc-functions/iswprint_l.texi.
37360         * doc/posix-functions/iswpunct_l.texi: Renamed from
37361         doc/glibc-functions/iswpunct_l.texi.
37362         * doc/posix-functions/iswspace_l.texi: Renamed from
37363         doc/glibc-functions/iswspace_l.texi.
37364         * doc/posix-functions/iswupper_l.texi: Renamed from
37365         doc/glibc-functions/iswupper_l.texi.
37366         * doc/posix-functions/iswxdigit_l.texi: Renamed from
37367         doc/glibc-functions/iswxdigit_l.texi.
37368         * doc/posix-functions/isxdigit_l.texi: Renamed from
37369         doc/glibc-functions/isxdigit_l.texi.
37370         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
37371         doc/glibc-functions/mbsnrtowcs.texi.
37372         * doc/posix-functions/mkdtemp.texi: Renamed from
37373         doc/glibc-functions/mkdtemp.texi.
37374         * doc/posix-functions/newlocale.texi: Renamed from
37375         doc/glibc-functions/newlocale.texi.
37376         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
37377         doc/glibc-functions/nl_langinfo_l.texi.
37378         * doc/posix-functions/open_memstream.texi: Renamed from
37379         doc/glibc-functions/open_memstream.texi.
37380         * doc/posix-functions/opterr.texi: Renamed from
37381         doc/glibc-functions/opterr.texi.
37382         * doc/posix-functions/optind.texi: Renamed from
37383         doc/glibc-functions/optind.texi.
37384         * doc/posix-functions/optopt.texi: Renamed from
37385         doc/glibc-functions/optopt.texi.
37386         * doc/posix-functions/psignal.texi: Renamed from
37387         doc/glibc-functions/psignal.texi.
37388         * doc/posix-functions/scandir.texi: Renamed from
37389         doc/glibc-functions/scandir.texi.
37390         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
37391         doc/glibc-functions/sched_get_priority_min.texi.
37392         * doc/posix-functions/signgam.texi: Renamed from
37393         doc/glibc-functions/signgam.texi.
37394         * doc/posix-functions/stpcpy.texi: Renamed from
37395         doc/glibc-functions/stpcpy.texi.
37396         * doc/posix-functions/stpncpy.texi: Renamed from
37397         doc/glibc-functions/stpncpy.texi.
37398         * doc/posix-functions/strcasecmp_l.texi: Renamed from
37399         doc/glibc-functions/strcasecmp_l.texi.
37400         * doc/posix-functions/strcoll_l.texi: Renamed from
37401         doc/glibc-functions/strcoll_l.texi.
37402         * doc/posix-functions/strfmon_l.texi: Renamed from
37403         doc/glibc-functions/strfmon_l.texi.
37404         * doc/posix-functions/strftime_l.texi: Renamed from
37405         doc/glibc-functions/strftime_l.texi.
37406         * doc/posix-functions/strncasecmp_l.texi: Renamed from
37407         doc/glibc-functions/strncasecmp_l.texi.
37408         * doc/posix-functions/strndup.texi: Renamed from
37409         doc/glibc-functions/strndup.texi.
37410         * doc/posix-functions/strnlen.texi: Renamed from
37411         doc/glibc-functions/strnlen.texi.
37412         * doc/posix-functions/strsignal.texi: Renamed from
37413         doc/glibc-functions/strsignal.texi.
37414         * doc/posix-functions/strxfrm_l.texi: Renamed from
37415         doc/glibc-functions/strxfrm_l.texi.
37416         * doc/posix-functions/timer_gettime.texi: Renamed from
37417         doc/glibc-functions/timer_gettime.texi.
37418         * doc/posix-functions/tolower_l.texi: Renamed from
37419         doc/glibc-functions/tolower_l.texi.
37420         * doc/posix-functions/toupper_l.texi: Renamed from
37421         doc/glibc-functions/toupper_l.texi.
37422         * doc/posix-functions/towctrans_l.texi: Renamed from
37423         doc/glibc-functions/towctrans_l.texi.
37424         * doc/posix-functions/towlower_l.texi: Renamed from
37425         doc/glibc-functions/towlower_l.texi.
37426         * doc/posix-functions/towupper_l.texi: Renamed from
37427         doc/glibc-functions/towupper_l.texi.
37428         * doc/posix-functions/uselocale.texi: Renamed from
37429         doc/glibc-functions/uselocale.texi.
37430         * doc/posix-functions/vdprintf.texi: Renamed from
37431         doc/glibc-functions/vdprintf.texi.
37432         * doc/posix-functions/wcpcpy.texi:
37433         Renamed from doc/glibc-functions/wcpcpy.texi.
37434         * doc/posix-functions/wcpncpy.texi: Renamed from
37435         doc/glibc-functions/wcpncpy.texi.
37436         * doc/posix-functions/wcscasecmp.texi: Renamed from
37437         doc/glibc-functions/wcscasecmp.texi.
37438         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
37439         doc/glibc-functions/wcscasecmp_l.texi.
37440         * doc/posix-functions/wcscoll_l.texi: Renamed from
37441         doc/glibc-functions/wcscoll_l.texi.
37442         * doc/posix-functions/wcsdup.texi: Renamed from
37443         doc/glibc-functions/wcsdup.texi.
37444         * doc/posix-functions/wcsncasecmp.texi: Renamed from
37445         doc/glibc-functions/wcsncasecmp.texi.
37446         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
37447         doc/glibc-functions/wcsncasecmp_l.texi.
37448         * doc/posix-functions/wcsnlen.texi: Renamed from
37449         doc/glibc-functions/wcsnlen.texi.
37450         * doc/posix-functions/wcsnrtombs.texi: Renamed from
37451         doc/glibc-functions/wcsnrtombs.texi.
37452         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
37453         doc/glibc-functions/wcsxfrm_l.texi.
37454         * doc/posix-functions/wctrans_l.texi: Renamed from
37455         doc/glibc-functions/wctrans_l.texi.
37456         * doc/posix-functions/wctype_l.texi: Renamed from
37457         doc/glibc-functions/wctype_l.texi.
37458         * doc/gnulib.texi (Function Substitutes): Add these subsections.
37459         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
37460         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
37461         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
37462         these subsections.
37463         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
37464         Remove sections.
37465
37466 2008-12-14  Bruno Haible  <bruno@clisp.org>
37467
37468         Update doc for POSIX:2008.
37469         * doc/posix-functions/*.texi: Update URL of POSIX specification.
37470
37471 2008-12-14  Bruno Haible  <bruno@clisp.org>
37472
37473         Update doc for POSIX:2008.
37474         * doc/pastposix-functions/bcmp.texi: Renamed from
37475         doc/posix-functions/bcmp.texi.
37476         * doc/pastposix-functions/bcopy.texi: Renamed from
37477         doc/posix-functions/bcopy.texi.
37478         * doc/pastposix-functions/bsd_signal.texi: Renamed from
37479         doc/posix-functions/bsd_signal.texi.
37480         * doc/pastposix-functions/bzero.texi: Renamed from
37481         doc/posix-functions/bzero.texi.
37482         * doc/pastposix-functions/ecvt.texi: Renamed from
37483         doc/posix-functions/ecvt.texi.
37484         * doc/pastposix-functions/fcvt.texi: Renamed from
37485         doc/posix-functions/fcvt.texi.
37486         * doc/pastposix-functions/ftime.texi: Renamed from
37487         doc/posix-functions/ftime.texi.
37488         * doc/pastposix-functions/gcvt.texi: Renamed from
37489         doc/posix-functions/gcvt.texi.
37490         * doc/pastposix-functions/getcontext.texi: Renamed from
37491         doc/posix-functions/getcontext.texi.
37492         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
37493         doc/posix-functions/gethostbyaddr.texi.
37494         * doc/pastposix-functions/gethostbyname.texi: Renamed from
37495         doc/posix-functions/gethostbyname.texi.
37496         * doc/pastposix-functions/getwd.texi: Renamed from
37497         doc/posix-functions/getwd.texi.
37498         * doc/pastposix-functions/h_errno.texi: Renamed from
37499         doc/posix-functions/h_errno.texi.
37500         * doc/pastposix-functions/index.texi: Renamed from
37501         doc/posix-functions/index.texi.
37502         * doc/pastposix-functions/makecontext.texi: Renamed from
37503         doc/posix-functions/makecontext.texi.
37504         * doc/pastposix-functions/mktemp.texi: Renamed from
37505         doc/posix-functions/mktemp.texi.
37506         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
37507         doc/posix-functions/pthread_attr_getstackaddr.texi.
37508         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
37509         doc/posix-functions/pthread_attr_setstackaddr.texi.
37510         * doc/pastposix-functions/rindex.texi: Renamed from
37511         doc/posix-functions/rindex.texi.
37512         * doc/pastposix-functions/scalb.texi: Renamed from
37513         doc/posix-functions/scalb.texi.
37514         * doc/pastposix-functions/setcontext.texi: Renamed from
37515         doc/posix-functions/setcontext.texi.
37516         * doc/pastposix-functions/swapcontext.texi: Renamed from
37517         doc/posix-functions/swapcontext.texi.
37518         * doc/pastposix-functions/ualarm.texi: Renamed from
37519         doc/posix-functions/ualarm.texi.
37520         * doc/pastposix-functions/usleep.texi: Renamed from
37521         doc/posix-functions/usleep.texi.
37522         * doc/pastposix-functions/vfork.texi: Renamed from
37523         doc/posix-functions/vfork.texi.
37524         * doc/pastposix-functions/wcswcs.texi: Renamed from
37525         doc/posix-functions/wcswcs.texi.
37526         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
37527         (Function Substitutes): Update.
37528
37529 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37530
37531         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
37532         m4/strerror.m4.
37533
37534 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37535             Bruno Haible  <bruno@clisp.org>
37536
37537         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
37538
37539 2008-12-13  Bruno Haible  <bruno@clisp.org>
37540
37541         * modules/strtoull (Depends-on): Remove unistd.
37542
37543 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37544
37545         * modules/strtoull (Depends-on): Add stdlib.
37546
37547 2008-12-11  Simon Josefsson  <simon@josefsson.org>
37548
37549         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
37550
37551 2008-12-10  Jim Meyering  <meyering@redhat.com>
37552
37553         gl_ASSERT: don't say assertions are disabled when they're not
37554         * m4/assert.m4 (gl_ASSERT): Do not make configure report
37555         "checking whether to enable assertions... no", when they are in
37556         fact enabled.  This is solely a bug in the output of configure.
37557         In spite of saying "no", NDEBUG was not defined in that case.
37558         Also, as noted by Eric Blake, leave assertions enabled upon
37559         --enable-assert=INVALID.
37560
37561 2008-12-10  Bruno Haible  <bruno@clisp.org>
37562
37563         Change MODULES.html to refer to POSIX:2008 where possible.
37564         * MODULES.html.sh (POSIX2008_URL): New variable.
37565         (posix_headers): Remove sys/timeb, ucontext.
37566         (posix2001_headers): New variable.
37567         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
37568         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
37569         index, makecontext, mktemp, pthread_attr_getstackaddr,
37570         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
37571         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
37572         (posix2001_functions): New variable.
37573         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
37574         otherwise.
37575
37576 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37577
37578         add missing include to parse-duration.c
37579         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
37580         * modules/parse-duration (Depends-on): Add xalloc.
37581
37582         fix sed script reading maint.mk
37583         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
37584         (syntax-check-rules): Use it.
37585
37586 2008-12-09  Bruno Haible  <bruno@clisp.org>
37587
37588         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
37589         MacOS X 10.4/PowerPC.
37590         Reported by Simon Josefsson.
37591
37592 2008-12-08  Jim Meyering  <meyering@redhat.com>
37593
37594         work around mingw's lack of some S_IF definitions
37595         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
37596         Reported by Simon Josefsson.
37597
37598 2008-12-08  Bruno Haible  <bruno@clisp.org>
37599
37600         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
37601         applied to variables. Needed on MacOS X 10.4/PowerPC.
37602         Reported by Simon Josefsson.
37603
37604 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
37605         and Eric Blake  <ebb9@byu.net>
37606
37607         assert: honor --enable-assert
37608         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
37609         order to honor --enable-assert, rather than treating it as a
37610         synonym for --disable-assert.
37611
37612 2008-12-08  Jim Meyering  <meyering@redhat.com>
37613
37614         * lib/posixtm.c: Remove now-useless declaration of mktime.
37615
37616         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
37617
37618 2008-12-07  Bruno Haible  <bruno@clisp.org>
37619
37620         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
37621         test_once): Mark functions as static.
37622         * tests/test-tls.c (test_tls): Likewise.
37623
37624 2008-12-07  Bruno Haible  <bruno@clisp.org>
37625
37626         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
37627         iconv_register_autodetect.
37628
37629 2008-12-07  Jim Meyering  <meyering@redhat.com>
37630
37631         posixtm.c: avoid a warning
37632         * lib/posixtm.c (posixtime): Don't initialize tm0.
37633         It's no longer needed to placate gcc4's -Wuninitialized,
37634         and the attempt to placate would elicit a new warning.
37635
37636         unicodeio.c: mark unused parameters
37637         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
37638         (fallback_failure_callback): Likewise.
37639
37640 2008-12-07  Bruno Haible  <bruno@clisp.org>
37641
37642         * gnulib-tool (func_create_testdir): When building the tests
37643         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
37644         Reported by Simon Josefsson.
37645
37646 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37647
37648         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
37649
37650 2008-12-06  Bruno Haible  <bruno@clisp.org>
37651
37652         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
37653         Suggested by Eric Blake.
37654
37655 2008-12-06  Bruno Haible  <bruno@clisp.org>
37656
37657         Fix a c-stack test failure on MacOS X.
37658         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
37659         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
37660         handler for SIGBUS as well.
37661         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
37662         install a signal handler for SIGBUS as well.
37663         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
37664
37665 2008-12-06  Bruno Haible  <bruno@clisp.org>
37666
37667         Advocacy documentation.
37668         * doc/gnulib-intro.texi (Benefits): New section.
37669         * doc/gnulib.texi: Update.
37670
37671 2008-12-06  Bruno Haible  <bruno@clisp.org>
37672
37673         Document the 'manywarnings' module.
37674         * doc/manywarnings.texi: New file.
37675         * doc/gnulib.texi: Include it.
37676
37677 2008-12-05  Eric Blake  <ebb9@byu.net>
37678
37679         tests: silence some gcc warnings
37680         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
37681         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
37682         type mismatches.
37683
37684 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37685             Bruno Haible  <bruno@clisp.org>
37686
37687         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
37688
37689 2008-11-29  Jim Meyering  <meyering@redhat.com>
37690
37691         unicodeio.c: mark unused parameters
37692         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
37693         (fallback_failure_callback): Likewise.
37694
37695         fts: fix a thinko
37696         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
37697         (set_stat_type): Return S_IF*-valued "type" directly.
37698         Prompted by James Youngman's spotting a related bug.
37699         Confirmed by further testing through find.
37700
37701         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
37702         * lib/fts.c (D_TYPE): Define.
37703         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
37704         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
37705         (s_ifmt_shift_bits): New function.
37706         (set_stat_type): New function.
37707         (fts_build): When not calling fts_stat, call set_stat_type
37708         to propagate dirent.d_type info to fts_read caller.
37709         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
37710         fts_statp->st_mode type information may be valid.
37711
37712 2008-11-28  Simon Josefsson  <simon@josefsson.org>
37713
37714         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
37715         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
37716         <sds@gnu.org>.
37717
37718 2008-11-20  Bruno Haible  <bruno@clisp.org>
37719
37720         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
37721         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
37722         INCLUDE_NEXT.
37723         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
37724         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
37725         * modules/math (Makefile.am): Substitute
37726         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
37727         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37728
37729 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
37730             Bruno Haible  <bruno@clisp.org>
37731
37732         * lib/stdint.in.h: Define all type macros so that their expansion is
37733         a single typedef'ed token. Fixes a compilation failure in Boost which
37734         does "using ::int8_t;".
37735
37736 2008-11-18  Simon Josefsson  <simon@josefsson.org>
37737
37738         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
37739         gl_MANYWARN_ALL_GCC.
37740         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
37741         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
37742         * modules/manywarnings: New file.
37743         * MODULES.html.sh: Mention manywarnings module.
37744
37745 2008-11-18  Bruno Haible  <bruno@clisp.org>
37746
37747         * doc/gnulib-tool.texi (Unit tests): New section.
37748
37749 2008-11-18  Simon Josefsson  <simon@josefsson.org>
37750
37751         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
37752         paths like 'lib/po/foo.po'.
37753
37754 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37755
37756         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
37757         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
37758
37759 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37760
37761         * m4/warnings.m4: Use CPPFLAGS to really check whether the
37762         parameter works.
37763
37764 2008-11-17  Simon Josefsson  <simon@josefsson.org>
37765
37766         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
37767
37768 2008-11-17  Bruce Korb  <bkorb@gnu.org>
37769
37770         * modules/parse-duration-tests: New file.
37771         * tests/test-parse-duration.sh: New file.
37772         * tests/test-parse-duration.c: New file.
37773
37774         New module 'parse-duration'.
37775         * lib/parse-duration.h: New file.
37776         * lib/parse-duration.c: New file.
37777         * modules/parse-duration: New file.
37778
37779 2008-11-17  Bruno Haible  <bruno@clisp.org>
37780
37781         * tests/test-select-out.sh: Comment out the first pipe test.
37782         Reported by Simon Josefsson.
37783
37784 2008-11-17  Bruno Haible  <bruno@clisp.org>
37785
37786         * modules/getaddrinfo (Depends-on): Add servent, hostent.
37787         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
37788         gl_HOSTENT.
37789
37790 2008-11-17  Bruno Haible  <bruno@clisp.org>
37791
37792         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
37793         -lnetwork and -lnet. Needed for Haiku and BeOS.
37794
37795 2008-11-16  Bruno Haible  <bruno@clisp.org>
37796
37797         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
37798
37799 2008-11-16  Bruno Haible  <bruno@clisp.org>
37800
37801         Avoid test failure on Haiku.
37802         * tests/test-fsync.c: Include <errno.h>.
37803         (main): Don't require that fsync (0) fails.
37804
37805 2008-11-15  Bruno Haible  <bruno@clisp.org>
37806
37807         New module 'hostent'.
37808         * modules/hostent: New file.
37809         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
37810
37811 2008-11-15  Bruno Haible  <bruno@clisp.org>
37812
37813         New module 'servent'.
37814         * modules/servent: New file.
37815         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
37816
37817 2008-11-15  Bruno Haible  <bruno@clisp.org>
37818
37819         Avoid generating same test program with two different rules.
37820         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
37821         test-frexp to test-frexp-nolibm.
37822         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
37823         test-frexpl to test-frexpl-nolibm.
37824
37825 2008-11-15  Bruno Haible  <bruno@clisp.org>
37826
37827         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
37828         $(FREXPL_LIBM).
37829
37830 2008-11-15  Bruno Haible  <bruno@clisp.org>
37831
37832         * lib/netdb.in.h: Activate the definitions also when the system's
37833         <netdb.h> has 'struct addrinfo'.
37834         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
37835         EAI_OVERFLOW or AI_NUMERICSERV.
37836         * doc/posix-headers/netdb.texi: Document the problem.
37837
37838 2008-11-15  Bruno Haible  <bruno@clisp.org>
37839
37840         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
37841
37842         Make the 'sched' module work on platforms where <sched.h> exists but
37843         is incomplete (such as Haiku).
37844         * lib/sched.in.h; Include the system's <sched.h> if it exists.
37845         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
37846         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
37847         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
37848         HAVE_STRUCT_SCHED_PARAM.
37849         * modules/sched (Depends-on): Add include_next.
37850         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
37851         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
37852         * doc/posix-headers/sched.texi: Document the issue.
37853
37854 2008-11-13  Jim Meyering  <meyering@redhat.com>
37855
37856         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
37857         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
37858         test would fail due to the difference in the Report bugs to ...
37859         line.  The expected address is empty, "<>", while the actual
37860         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
37861
37862 2008-11-12  Bruno Haible  <bruno@clisp.org>
37863
37864         lstat: don't compile lstat.c on systems lacking lstat
37865         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
37866         which don't have lstat; this is handled by lib/sys_stat.in.h already.
37867         Reported by Daniel P. Berrange via Jim Meyering.
37868
37869 2008-11-12  Jim Meyering  <meyering@redhat.com>
37870
37871         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
37872
37873 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37874
37875         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
37876         instead.
37877
37878 2008-11-12  Bruno Haible  <bruno@clisp.org>
37879
37880         * lib/unicodeio.c: Include unistr.h.
37881         (utf8_wctomb): Remove function.
37882         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
37883
37884 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37885
37886         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
37887         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
37888         <bruno@clisp.org>.
37889         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
37890
37891 2008-11-12  Simon Josefsson  <simon@josefsson.org>
37892
37893         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
37894         * doc/gnulib.texi: Add section for warnings.
37895
37896 2008-11-11  Bruno Haible  <bruno@clisp.org>
37897
37898         * lib/sockets.h: Add a comment.
37899
37900 2008-11-11  Karl Berry  <karl@gnu.org>
37901
37902         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
37903
37904 2008-11-11  Eric Blake  <ebb9@byu.net>
37905
37906         fdl.texi: avoid git symlinks
37907         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
37908
37909 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37910
37911         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
37912
37913 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37914
37915         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
37916         (gl_WARN_ADD): Substitute $2 if literal.
37917
37918 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37919
37920         * m4/warning.m4: Remove.
37921
37922 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
37923
37924         * m4/warnings.m4: Almost complete rewrite. :-)
37925
37926 2008-11-10  Simon Josefsson  <simon@josefsson.org>
37927
37928         * modules/warnings: New module.
37929         * m4/warnings.m4: New file.
37930         * MODULES.html.sh: Mention warnings module.
37931         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
37932         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37933
37934 2008-11-10  Eric Blake  <ebb9@byu.net>
37935
37936         fdl.texi: make a symlink to the latest version
37937         * doc/standards.texi: Revert today's earlier change.
37938         * doc/fdl-1.2.texi: Rename from old fdl.texi...
37939         * doc/fdl.texi: ...and replace this with a symlink to the newer
37940         fdl-1.3.texi.
37941
37942 2008-11-10  Bruno Haible  <bruno@clisp.org>
37943
37944         * tests/test-select-fd.c (main): Accept the result file name as fourth
37945         argument.
37946         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
37947         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
37948
37949 2008-11-10  Bruno Haible  <bruno@clisp.org>
37950
37951         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
37952         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
37953         as autoconf-substituted macros.
37954         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
37955         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
37956         gl_NETDB_H_DEFAULTS. Set these variables.
37957         * modules/netdb (Makefile.am): Substitute these variables.
37958
37959 2008-11-10  Eric Blake  <ebb9@byu.net>
37960
37961         standards.texi: include correct file for FDL 1.3
37962         * doc/standards.texi (GNU Free Documentation License): Change
37963         include file to pull in FDL 1.3, not 1.2.
37964
37965         fdl.texi: revert accidental change to license
37966         * doc/fdl.texi: This is FDL 1.2, not 1.3.
37967
37968 2008-11-10  Bruno Haible  <bruno@clisp.org>
37969
37970         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
37971         cross-compiling guesses also when the native compile gives no result.
37972
37973 2008-11-10  Bruno Haible  <bruno@clisp.org>
37974
37975         * lib/spawni.c (__spawni): Force variable into the stack.
37976
37977 2008-11-10  Bruno Haible  <bruno@clisp.org>
37978
37979         Add support for Haiku.
37980         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
37981         glibc and BeOS, but also on Haiku.
37982         * lib/fpurge.c (fpurge): Likewise.
37983         * lib/freadable.c (freadable): Likewise.
37984         * lib/freadahead.c (freadahead): Likewise.
37985         * lib/freading.c (freading): Likewise.
37986         * lib/freadptr.c (freadptr): Likewise.
37987         * lib/freadseek.c (freadptrinc): Likewise.
37988         * lib/fseeko.c (rpl_fseeko): Likewise.
37989         * lib/fseterr.c (fseterr): Likewise.
37990         * lib/fwritable.c (fwritable): Likewise.
37991         * lib/fwriting.c (fwriting): Likewise.
37992         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
37993
37994 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37995
37996         * lib/config.charset: Treat Haiku like BeOS.
37997
37998 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37999
38000         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
38001         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
38002
38003 2008-11-08  Bruno Haible  <bruno@clisp.org>
38004
38005         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
38006         AC_CACHE_CHECK.
38007
38008 2008-11-08  Bruno Haible  <bruno@clisp.org>
38009
38010         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
38011
38012 2008-11-08  Bruno Haible  <bruno@clisp.org>
38013
38014         * tests/test-select-fd.c: New file.
38015         * tests/test-select-in.sh: New file.
38016         * tests/test-select-out.sh: New file.
38017         * tests/test-select-stdin.c: New file.
38018         * modules/select-tests (Files): Add the new files.
38019         (Depends-on): Add gettimeofday.
38020         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
38021         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
38022         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
38023
38024 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
38025             Bruno Haible  <bruno@clisp.org>
38026
38027         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
38028
38029 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
38030
38031         * build-aux/pmccabe2html: Added support for C++ source files.
38032
38033 2008-11-05  Ben Pfaff  <blp@gnu.org>
38034
38035         Fix lib/close.c build on Windows.
38036         * modules/close (Files): Add lib/w32sock.h.
38037
38038 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
38039
38040         Accept Bison's NEWS format.
38041         * build-aux/announce-gen (print_news_deltas): Tweak
38042         $re_prefix.
38043
38044 2008-11-04  Bruno Haible  <bruno@clisp.org>
38045
38046         * modules/random_r (Maintainer): Add glibc.
38047
38048 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38049
38050         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
38051         by karl@freefriends.org (Karl Berry).
38052         * doc/alloca.texi: Likewise.
38053         * doc/c-ctype.texi: Likewise.
38054         * doc/c-strcase.texi: Likewise.
38055         * doc/c-strcaseeq.texi: Likewise.
38056         * doc/c-strcasestr.texi: Likewise.
38057         * doc/c-strstr.texi: Likewise.
38058         * doc/c-strtod.texi: Likewise.
38059         * doc/c-strtold.texi: Likewise.
38060         * doc/ctime.texi: Likewise.
38061         * doc/error.texi: Likewise.
38062         * doc/fdl.texi: Likewise.
38063         * doc/gcd.texi: Likewise.
38064         * doc/getdate.texi: Likewise.
38065         * doc/gnulib-intro.texi: Likewise.
38066         * doc/gnulib-tool.texi: Likewise.
38067         * doc/gnulib.texi: Likewise.
38068         * doc/inet_ntoa.texi: Likewise.
38069         * doc/maintain.texi: Likewise.
38070         * doc/make-stds.texi: Likewise.
38071         * doc/quote.texi: Likewise.
38072         * doc/regexprops-generic.texi: Likewise.
38073         * doc/standards.texi: Likewise.
38074         * doc/verify.texi: Likewise.
38075         * doc/visibility.texi: Likewise.
38076         * doc/gnulib.texi (GNU Free Documentation License): Include
38077         fdl-1.3.texi instead of fdl.texi.
38078
38079 2008-11-04  Simon Josefsson  <simon@josefsson.org>
38080
38081         * doc/fdl-1.3.texi: New file, from
38082         <http://www.gnu.org/licenses/fdl-1.3.texi>.
38083         * modules/fdl-1.3: Add.
38084         * MODULES.html.sh: Add fdl-1.3.
38085
38086 2008-11-03  Bruno Haible  <bruno@clisp.org>
38087
38088         Make determination of absolute name of header file work with AIX xlc.
38089         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
38090         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
38091         preprocessing.
38092         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38093         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
38094
38095 2008-11-03  Simon Josefsson  <simon@josefsson.org>
38096
38097         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
38098         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
38099         <ludo@gnu.org>.
38100
38101 2008-11-02  Bruno Haible  <bruno@clisp.org>
38102
38103         Mark 'strpbrk' obsolete.
38104         * modules/strpbrk (Status, Notice): New sections.
38105         * modules/strtok_r (Depends-on): Add strpbrk.
38106
38107 2008-11-02  Bruno Haible  <bruno@clisp.org>
38108
38109         Mark 'strdup' obsolete.
38110         * modules/strdup (Status, Notice): New sections.
38111         * modules/findprog (Depends-on): Add strdup.
38112         * modules/getaddrinfo (Depends-on): Likewise.
38113         * modules/localename (Depends-on): Likewise.
38114         * modules/relocatable-lib (Depends-on): Likewise.
38115         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
38116         * modules/relocatable-prog (Depends-on): Likewise.
38117         * modules/trim (Depends-on): Likewise.
38118         * modules/unictype/gen-ctype (Depends-on): Likewise.
38119         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
38120
38121 2008-11-02  Bruno Haible  <bruno@clisp.org>
38122
38123         Mark 'strcspn' obsolete.
38124         * modules/strcspn (Status, Notice): New sections.
38125
38126 2008-11-02  Bruno Haible  <bruno@clisp.org>
38127
38128         Mark 'rmdir' obsolete.
38129         * modules/rmdir (Status, Notice): New sections.
38130         * modules/clean-temp (Depends-on): Add rmdir.
38131         * modules/openat (Depends-on): Likewise.
38132
38133 2008-11-02  Bruno Haible  <bruno@clisp.org>
38134
38135         Mark 'raise' obsolete.
38136         * modules/raise (Status, Notice): New sections.
38137         (Include): Specify <signal.h>.
38138         * modules/stdio (Depends-on): Add raise.
38139         * modules/write (Depends-on): Likewise.
38140
38141 2008-11-02  Bruno Haible  <bruno@clisp.org>
38142
38143         Mark 'memset' obsolete.
38144         * modules/memset (Status, Notice): New sections.
38145
38146 2008-11-02  Bruno Haible  <bruno@clisp.org>
38147
38148         Mark 'memmove' obsolete.
38149         * modules/memmove (Status, Notice): New sections.
38150         * modules/argp (Depends-on): Add memmove.
38151         * modules/argz (Depends-on): Likewise.
38152         * modules/canonicalize (Depends-on): Likewise.
38153         * modules/canonicalize-lgpl (Depends-on): Likewise.
38154         * modules/fts (Depends-on): Likewise.
38155         * modules/getcwd (Depends-on): Likewise.
38156         * modules/human (Depends-on): Likewise.
38157         * modules/regex (Depends-on): Likewise.
38158         * modules/striconveh (Depends-on): Likewise.
38159         * modules/trim (Depends-on): Likewise.
38160         * modules/unistr/u8-move (Depends-on): Likewise.
38161         * modules/unistr/u16-move (Depends-on): Likewise.
38162         * modules/unistr/u32-move (Depends-on): Likewise.
38163
38164 2008-11-02  Bruno Haible  <bruno@clisp.org>
38165
38166         Mark 'memcpy' obsolete.
38167         * modules/memcpy (Status, Notice): New sections.
38168
38169 2008-11-02  Bruno Haible  <bruno@clisp.org>
38170
38171         Mark 'memcmp' obsolete.
38172         * modules/memcmp (Status, Notice): New sections.
38173         * modules/argmatch (Depends-on): Add memchr.
38174         * modules/backupfile (Depends-on): Likewise.
38175         * modules/c-strcasestr (Depends-on): Likewise.
38176         * modules/crypto/des (Depends-on): Likewise.
38177         * modules/csharpcomp (Depends-on): Likewise.
38178         * modules/fnmatch (Depends-on): Likewise.
38179         * modules/git-merge-changelog (Depends-on): Likewise.
38180         * modules/isnand (Depends-on): Likewise.
38181         * modules/isnand-nolibm (Depends-on): Likewise.
38182         * modules/isnanf (Depends-on): Likewise.
38183         * modules/isnanf-nolibm (Depends-on): Likewise.
38184         * modules/isnanl (Depends-on): Likewise.
38185         * modules/isnanl-nolibm (Depends-on): Likewise.
38186         * modules/mbchar (Depends-on): Likewise.
38187         * modules/memcoll (Depends-on): Likewise.
38188         * modules/quotearg (Depends-on): Likewise.
38189         * modules/regex (Depends-on): Likewise.
38190         * modules/relocatable-prog (Depends-on): Likewise.
38191         * modules/same (Depends-on): Likewise.
38192         * modules/signbit (Depends-on): Likewise.
38193         * modules/strcasestr-simple (Depends-on): Likewise.
38194         * modules/unictype/gen-ctype (Depends-on): Likewise.
38195         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
38196         * modules/uniname/uniname (Depends-on): Likewise.
38197         * modules/unistr/u8-cmp (Depends-on): Likewise.
38198
38199 2008-11-02  Bruno Haible  <bruno@clisp.org>
38200
38201         Mark 'memchr' obsolete.
38202         * modules/memchr (Status, Notice): New sections.
38203         * modules/argp (Depends-on): Add memchr.
38204         * modules/base64 (Depends-on): Likewise.
38205         * modules/c-strcasestr (Depends-on): Likewise.
38206         * modules/chdir-long (Depends-on): Likewise.
38207         * modules/fnmatch (Depends-on): Likewise.
38208         * modules/getsubopt (Depends-on): Likewise.
38209         * modules/git-merge-changelog (Depends-on): Likewise.
38210         * modules/glob (Depends-on): Likewise.
38211         * modules/strcasestr-simple (Depends-on): Likewise.
38212         * modules/strnlen (Depends-on): Likewise.
38213
38214 2008-11-02  Bruno Haible  <bruno@clisp.org>
38215
38216         Mark 'atexit' obsolete.
38217         * modules/atexit (Status, Notice): New sections.
38218         * modules/chdir-long (Depends-on): Add atexit.
38219         * modules/wait-process (Depends-on): Likewise.
38220
38221 2008-11-02  Bruno Haible  <bruno@clisp.org>
38222
38223         * gnulib-tool: New option --with-obsolete.
38224         (func_usage): Document it.
38225         (func_modules_transitive_closure): Drop obsolete dependencies if
38226         incobsolete is not true.
38227         (func_import): Read and save the incobsolete variable to the cache.
38228
38229 2008-11-02  Bruno Haible  <bruno@clisp.org>
38230
38231         * modules/TEMPLATE-EXTENDED: New field 'Status'.
38232         * gnulib-tool: New option --extract-status.
38233         (func_usage): Document it.
38234         (sed_extract_prog): Recognize it.
38235         (func_get_status): New function.
38236
38237 2008-10-30  Simon Josefsson  <simon@josefsson.org>
38238
38239         * modules/sockets (License): Change from LGPL to LGPLv2+.
38240
38241 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38242
38243         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
38244
38245 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38246
38247         * MODULES.html.sh (Support for systems lacking POSIX:2001):
38248         Mention times and sys_times.
38249         * modules/sys_times, modules/sys_times-tests: New modules.
38250         * modules/times, modules/times-tests: Likewise
38251         * m4/sys_times_h.m4: New file.
38252         * lib/sys_times.in.h: Likewise
38253         * lib/times.c: Likewise.
38254         * tests/test-sys_times.c: Likewise.
38255         * tests/test-times.c: Likewise.
38256         * doc/posix-headers/sys_times.texi: Update.
38257         * doc/posix-functions/times.texi: Update.
38258
38259 2008-10-28  Jim Meyering  <meyering@redhat.com>
38260
38261         * modules/tempname (Depends-on): Add lstat.
38262
38263         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
38264
38265 2008-10-28  Simon Josefsson  <simon@josefsson.org>
38266
38267         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
38268         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
38269         using idiom used elsewhere in gnulib.
38270
38271 2008-10-27  Jim Meyering  <meyering@redhat.com>
38272
38273         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
38274
38275 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38276
38277         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
38278         TESTS_ENVIRONMENT, for shell scripts that needs to call built
38279         programs.
38280         * tests/test-argp-2.sh: Use $EXEEXT when needed.
38281
38282 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38283
38284         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
38285
38286 2008-10-27  Bruno Haible  <bruno@clisp.org>
38287
38288         * tests/test-lstat.c: Include <stdio.h>.
38289
38290 2008-10-27  Simon Josefsson  <simon@josefsson.org>
38291
38292         * modules/lstat-tests: New module.
38293         * tests/test-lstat.c: New file.
38294
38295 2008-10-26  Jim Meyering  <meyering@redhat.com>
38296
38297         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
38298
38299 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38300             Bruno Haible  <bruno@clisp.org>
38301
38302         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
38303         * modules/configmake (Include): Add a note that the include must come
38304         after all system headers.
38305         * lib/javaversion.c: Include configmake.h after all other includes.
38306
38307 2008-10-26  Bruno Haible  <bruno@clisp.org>
38308
38309         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
38310         HAVE_STRUCT_RANDOM_DATA to 1.
38311         (gl_STDLIB_H): Simplify.
38312
38313 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38314
38315         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
38316         substitute HAVE_STRUCT_RANDOM_DATA.
38317         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
38318         random_data.
38319         * modules/stdlib (Makefile.am): Substitute
38320         HAVE_STRUCT_RANDOM_DATA.
38321
38322 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38323
38324         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
38325         * doc/gnulib-intro.texi (Copyright): Likewise.
38326
38327 2008-10-26  Simon Josefsson  <simon@josefsson.org>
38328
38329         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
38330         findings.
38331
38332 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
38333             Bruno Haible  <bruno@clisp.org>
38334
38335         * lib/unistd.in.h: Include <winsock2.h>.
38336         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
38337         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
38338         Provide dummy declarations.
38339         (gethostname): Override.
38340         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
38341         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
38342         gl_PREREQ_SYS_H_WINSOCK2.
38343         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
38344         * doc/posix-functions/gethostname.texi: More details.
38345
38346 2008-10-25  Bruno Haible  <bruno@clisp.org>
38347
38348         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
38349         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
38350         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
38351
38352         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
38353         here ...
38354         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
38355         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
38356         gl_UNISTD_H_DEFAULTS.
38357
38358 2008-10-25  Eric Blake  <ebb9@byu.net>
38359
38360         signbit: avoid spurious compiler failure
38361         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
38362         declarations inside function.
38363
38364 2008-10-24  Simon Josefsson  <simon@josefsson.org>
38365             Bruno Haible  <bruno@clisp.org>
38366
38367         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
38368         * modules/random_r (Depends-on): Add stdint.
38369
38370 2008-10-24  Bruno Haible  <bruno@clisp.org>
38371
38372         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
38373         Eggert.
38374         * modules/strerror (License): Likewise.
38375
38376 2008-10-24  Jim Meyering  <meyering@redhat.com>
38377
38378         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
38379         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
38380
38381 2008-10-24  Eric Blake  <ebb9@byu.net>
38382
38383         getgroups: fix compilation when getgroups is available
38384         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
38385         but with <config.h> override of getgroups disabled.
38386
38387 2008-10-24  Simon Josefsson  <simon@josefsson.org>
38388
38389         * doc/gnulib.texi (Header files): Add note about C++ problems.
38390         Explained by Bruno Haible <bruno@clisp.org>.
38391
38392 2008-10-23  Bruno Haible  <bruno@clisp.org>
38393
38394         Define a dummy SA_NODEFER macro on Interix.
38395         * lib/signal.in.h (SA_NODEFER): Define fallback.
38396         Reported by Aleksey Cheusov <cheusov@tut.by> via
38397         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
38398
38399 2008-10-23  Bruno Haible  <bruno@clisp.org>
38400
38401         * modules/freadahead (License): Change to LGPLv2+.
38402         Suggested by Simon Josefsson.
38403
38404 2008-10-23  Jim Meyering  <meyering@redhat.com>
38405
38406         random_r: new module
38407         * modules/random_r: New file.
38408         * m4/random_r.m4: New file.
38409         * lib/random_r.c: New file, from glibc.
38410         * modules/random_r-tests: New file.
38411         * tests/test-random_r.c: New file.
38412         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
38413          Declare.
38414         (RAND_MAX): Define.
38415         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
38416         * modules/stdlib: Substitute them, too.
38417         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
38418         * doc/glibc-functions/initstate_r.texi: Mention the new module.
38419         * doc/glibc-functions/random_r.texi: Likewise.
38420         * doc/glibc-functions/setstate_r.texi: Likewise.
38421         * doc/glibc-functions/srandom_r.texi: Likewise.
38422         * config/srclist.txt: Mention it.
38423
38424 2008-10-23  David Lutterkort  <lutter@redhat.com>
38425
38426         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
38427         link requirement
38428
38429 2008-10-23  Jim Meyering  <meyering@redhat.com>
38430
38431         selinux-h: mark parameters of stub functions as intentionally unused
38432         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
38433         * lib/se-context.in.h: Likewise.
38434
38435 2008-10-22  Simon Josefsson  <simon@josefsson.org>
38436
38437         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
38438
38439 2008-10-22  Simon Josefsson  <simon@josefsson.org>
38440
38441         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
38442
38443 2008-10-22  Eric Blake  <ebb9@byu.net>
38444
38445         glthread/thread: avoid compiler warning
38446         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
38447         Add unreachable abort to silence compiler.
38448
38449 2008-10-22  Eric Blake  <ebb9@byu.net>
38450
38451         netdb: also supply struct addrinfo for cygwin 1.5.x
38452         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
38453         older cygwin.
38454         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
38455         cygwin.
38456         * doc/posix-headers/netdb.texi (netdb.h): Document this.
38457
38458 2008-10-22  Bruno Haible  <bruno@clisp.org>
38459
38460         * users.txt: Update entry about pspp.
38461
38462 2008-10-21  Bruno Haible  <bruno@clisp.org>
38463
38464         Simplification.
38465         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
38466         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
38467
38468         Simplification.
38469         * lib/ioctl.c (ioctl): Don't undefine.
38470         * lib/socket.c (socket): Don't undefine.
38471
38472         Remove unused module indicator macros.
38473         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
38474         GNULIB_$1 as a C macro.
38475
38476         * doc/posix-functions/close.texi: Undo last change.
38477         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
38478         Windows platforms.
38479
38480 2008-10-21  Bruno Haible  <bruno@clisp.org>
38481
38482         Add gethostname() declaration to <unistd.h>.
38483         * lib/unistd.in.h (gethostname): New declaration.
38484         * lib/gethostname.c: Include <unistd.h>.
38485         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
38486         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
38487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
38488         and HAVE_GETHOSTNAME.
38489         * modules/gethostname (Depends-on): Add unistd.
38490         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38491         (Include): Specify <unistd.h>.
38492         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
38493         HAVE_GETHOSTNAME.
38494         * tests/test-gethostname.c: Include <unistd.h> first.
38495
38496 2008-10-21  Bruno Haible  <bruno@clisp.org>
38497
38498         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
38499         * modules/select-tests (Depends-on): Likewise.
38500         Reported by Simon Josefsson.
38501
38502 2008-10-21  Simon Josefsson  <simon@josefsson.org>
38503
38504         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
38505         * lib/accept.c: New file, based on winsock.c.
38506         * lib/bind.c: New file, based on winsock.c.
38507         * lib/connect.c: New file, based on winsock.c.
38508         * lib/getpeername.c: New file, based on winsock.c.
38509         * lib/getsockname.c: New file, based on winsock.c.
38510         * lib/getsockopt.c: New file, based on winsock.c.
38511         * lib/ioctl.c: New file, based on winsock.c.
38512         * lib/listen.c: New file, based on winsock.c.
38513         * lib/recv.c: New file, based on winsock.c.
38514         * lib/recvfrom.c: New file, based on winsock.c.
38515         * lib/send.c: New file, based on winsock.c.
38516         * lib/sendto.c: New file, based on winsock.c.
38517         * lib/setsockopt.c: New file, based on winsock.c.
38518         * lib/shutdown.c: New file, based on winsock.c.
38519         * lib/socket.c: New file, based on winsock.c.
38520         * lib/w32sock.h: New file, based on winsock.c.
38521         * lib/winsock.c: Remove file.
38522         * modules/accept: Likewise.
38523         * modules/bind: Likewise.
38524         * modules/connect: Likewise.
38525         * modules/getpeername: Likewise.
38526         * modules/getsockname: Likewise.
38527         * modules/getsockopt: Likewise.
38528         * modules/ioctl: Likewise.
38529         * modules/listen: Likewise.
38530         * modules/recv: Likewise.
38531         * modules/recvfrom: Likewise.
38532         * modules/send: Likewise.
38533         * modules/sendto: Likewise.
38534         * modules/setsockopt: Likewise.
38535         * modules/shutdown: Likewise.
38536         * modules/socket: Use socket.c instead of winsock.c.
38537         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
38538         * doc/posix-functions/accept.texi: Doc fix.
38539         * doc/posix-functions/bind.texi: Doc fix.
38540         * doc/posix-functions/close.texi: Doc fix.
38541         * doc/posix-functions/connect.texi: Doc fix.
38542         * doc/posix-functions/getpeername.texi: Doc fix.
38543         * doc/posix-functions/getsockname.texi: Doc fix.
38544         * doc/posix-functions/getsockopt.texi: Doc fix.
38545         * doc/posix-functions/ioctl.texi: Doc fix.
38546         * doc/posix-functions/listen.texi: Doc fix.
38547         * doc/posix-functions/recv.texi: Doc fix.
38548         * doc/posix-functions/recvfrom.texi: Doc fix.
38549         * doc/posix-functions/send.texi: Doc fix.
38550         * doc/posix-functions/sendto.texi: Doc fix.
38551         * doc/posix-functions/setsockopt.texi: Doc fix.
38552         * doc/posix-functions/shutdown.texi: Doc fix.
38553         * doc/posix-functions/socket.texi: Doc fix.
38554
38555 2008-10-20  Bruno Haible  <bruno@clisp.org>
38556
38557         Take into account the role of SIGABRT_COMPAT on Windows 2008.
38558         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
38559         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
38560         as an alias for SIGABRT.
38561         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
38562         (sigaction): Map it to SIGABRT.
38563         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
38564
38565 2008-10-20  Bruno Haible  <bruno@clisp.org>
38566
38567         * lib/fts.c: Don't include lstat.h.
38568         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
38569
38570         Move the lstat() declaration to <sys/stat.h>.
38571         * lib/lstat.h: Remove file.
38572         * lib/sys_stat.in.h: Add special invocation convention.
38573         (lstat): New declaration.
38574         * lib/lstat.c (orig_lstat): New function.
38575         (rpl_lstat): Use orig_lstat instead of lstat.
38576         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
38577         AC_C_INLINE. Set REPLACE_LSTAT.
38578         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
38579         and REPLACE_LSTAT.
38580         * modules/lstat (Files): Remove lib/lstat.h.
38581         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
38582         (Include): Specify <sys/stat.h> instead of lstat.h.
38583         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
38584         REPLACE_LSTAT.
38585         * NEWS: Mention the change.
38586
38587 2008-10-20  Bruno Haible  <bruno@clisp.org>
38588
38589         * modules/posix_spawn-tests: New file.
38590         * tests/test-posix_spawn3.c: New file.
38591
38592 2008-10-20  Bruno Haible  <bruno@clisp.org>
38593
38594         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
38595         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
38596         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
38597         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
38598         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
38599
38600 2008-10-20  Bruno Haible  <bruno@clisp.org>
38601
38602         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
38603         of posix_spawn on AIX 5.3.
38604
38605 2008-10-20  Bruno Haible  <bruno@clisp.org>
38606
38607         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
38608
38609 2008-10-20  Bruno Haible  <bruno@clisp.org>
38610
38611         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
38612         of AC_LANG_PROGRAM.
38613
38614 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38615
38616         * lib/netdb.in.h: Don't define GNU specific constants until they
38617         are supported or needed.  Reported by Bruno Haible
38618         <bruno@clisp.org>.
38619
38620 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38621
38622         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
38623
38624 2008-10-20  Simon Josefsson  <simon@josefsson.org>
38625
38626         * lib/getaddrinfo.h: Remove file.
38627         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
38628         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
38629         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
38630         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
38631         * modules/netdb: Substitute GNULIB_GETADDRINFO.
38632         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
38633         * tests/test-getaddrinfo.c: Likewise.
38634         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
38635         * NEWS: Mention change.
38636
38637 2008-10-19  Bruno Haible  <bruno@clisp.org>
38638
38639         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
38640
38641 2008-10-19  Bruno Haible  <bruno@clisp.org>
38642
38643         * lib/wait-process.c: Include simply <sys/wait.h>.
38644         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
38645         WIFSTOPPED): Remove fallback definitions.
38646         * modules/wait-process (Depends-on): Add sys_wait.
38647
38648         New module 'sys_wait'.
38649         * modules/sys_wait: New file.
38650         * lib/sys_wait.in.h: New file, partially copied from
38651         lib/wait-process.c.
38652         * m4/sys_wait_h.m4: New file.
38653         * doc/posix-headers/sys_wait.texi: Mention the new module.
38654
38655 2008-10-19  Bruno Haible  <bruno@clisp.org>
38656
38657         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
38658
38659 2008-10-19  Bruno Haible  <bruno@clisp.org>
38660
38661         Assume that waitpid() fills an 'int' status, not a 'union wait'.
38662         * lib/wait-process.c (WAIT_T): Remove type.
38663         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
38664         (wait_subprocess): Update.
38665
38666 2008-10-19  Bruno Haible  <bruno@clisp.org>
38667
38668         New module 'atoll'.
38669         * modules/atoll: New file.
38670         * lib/stdlib.in.h (atoll): New declaration.
38671         * lib/atoll.c: New file, from glibc with modifications.
38672         * m4/atoll.m4: New file.
38673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
38674         HAVE_ATOLL.
38675         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
38676         * doc/posix-functions/atoll.texi: Mention the new module.
38677
38678 2008-10-19  Bruno Haible  <bruno@clisp.org>
38679
38680         Add strtoull() declaration to <stdlib.h>.
38681         * lib/stdlib.in.h (strtoull): New declaration.
38682         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
38683         Set HAVE_STRTOULL.
38684         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
38685         HAVE_STRTOULL.
38686         * modules/strtoull (Depends-on): Add stdlib.
38687         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38688         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
38689         HAVE_STRTOULL.
38690
38691 2008-10-19  Bruno Haible  <bruno@clisp.org>
38692
38693         Add strtoll() declaration to <stdlib.h>.
38694         * lib/stdlib.in.h (strtoll): New declaration.
38695         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
38696         Set HAVE_STRTOLL.
38697         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
38698         HAVE_STRTOLL.
38699         * modules/strtoll (Depends-on): Add stdlib.
38700         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38701         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
38702
38703 2008-10-19  Bruno Haible  <bruno@clisp.org>
38704
38705         * modules/bcopy (Depends-on): Add strings.
38706         (Include): Specify <strings.h>.
38707
38708 2008-10-19  Bruno Haible  <bruno@clisp.org>
38709
38710         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
38711
38712 2008-10-19  Bruno Haible  <bruno@clisp.org>
38713
38714         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
38715         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
38716         mingw.
38717
38718 2008-10-19  Bruno Haible  <bruno@clisp.org>
38719
38720         * lib/atanl.c: Don't include isnanl.h.
38721         * lib/cosl.c: Likewise.
38722         * lib/ldexpl.c: Likewise.
38723         * lib/logl.c: Likewise.
38724         * lib/sinl.c: Likewise.
38725         * lib/sqrtl.c: Likewise.
38726         * lib/tanl.c: Likewise.
38727
38728         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
38729         * lib/isnanf.h: Remove file.
38730         * lib/isnand.h: Remove file.
38731         * lib/isnanl.h: Remove file.
38732         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
38733         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
38734         macros.
38735         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
38736         HAVE_ISNANF, don't define it as a C macro.
38737         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
38738         HAVE_ISNAND, don't define it as a C macro.
38739         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
38740         HAVE_ISNANL, don't define it as a C macro.
38741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
38742         HAVE_ISNAN[FDL].
38743         * modules/isnanf (Files): Remove lib/isnanf.h.
38744         (Depends-on): Add math.
38745         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38746         (Include): Specify <math.h> instead of isnanf.h.
38747         * modules/isnand (Files): Remove lib/isnand.h.
38748         (Depends-on): Add math.
38749         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38750         (Include): Specify <math.h> instead of isnand.h.
38751         * modules/isnanl (Files): Remove lib/isnanl.h.
38752         (Depends-on): Add math.
38753         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
38754         (Include): Specify <math.h> instead of isnanl.h.
38755         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
38756         HAVE_ISNAN[FDL].
38757         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
38758         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
38759         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
38760         * NEWS: Mention the change.
38761
38762 2008-10-18  Bruno Haible  <bruno@clisp.org>
38763
38764         Add getusershell(), setusershell(), endusershell() declarations to
38765         <unistd.h>.
38766         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
38767         declarations.
38768         * lib/getusershell.c: Include unistd.h.
38769         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
38770         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
38771         HAVE_GETUSERSHELL.
38772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
38773         and HAVE_GETUSERSHELL.
38774         * modules/getusershell (Depends-on): Add unistd, extensions.
38775         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38776         (Include): Specify <unistd.h>.
38777         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
38778         HAVE_GETUSERSHELL.
38779
38780 2008-10-18  Bruno Haible  <bruno@clisp.org>
38781
38782         Add a getloadavg() declaration to <stdlib.h>.
38783         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
38784         getloadavg declaration.
38785         (getloadavg): New declaration.
38786         * lib/getloadavg.c: Include <stdlib.h> first.
38787         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
38788         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
38789         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
38790         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
38791         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
38792         * modules/getloadavg (Depends-on): Add stdlib, extensions.
38793         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38794         (Include): Specify <stdlib.h>.
38795         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
38796         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
38797
38798 2008-10-18  Bruno Haible  <bruno@clisp.org>
38799
38800         * lib/dirchownmod.c: Don't include lchmod.h.
38801
38802         Move the lchmod() declaration to <sys/stat.h>.
38803         * lib/lchmod.h: Remove file.
38804         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
38805         (lchmod): New declaration, moved here from lib/lchown.h.
38806         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
38807         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
38808         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
38809         and HAVE_LCHMOD.
38810         * modules/lchmod (Files): Remove lib/lchmod.h.
38811         (Depends-on): Add sys_stat, extensions.
38812         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
38813         (Include): Specify <sys/stat.h> instead of lchmod.h.
38814         * modules/sys_stat (Depends-on): Add link-warning.
38815         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
38816         definition of GL_LINK_WARNING.
38817         * NEWS: Mention the change.
38818
38819 2008-10-18  Bruno Haible  <bruno@clisp.org>
38820
38821         * lib/fchdir.c: Don't include dirfd.h.
38822         * lib/fts.c: Likewise.
38823         * lib/getcwd.c: Likewise.
38824         * lib/glob.c: Likewise.
38825
38826         Move the dirfd() declaration to <dirent.h>.
38827         * lib/dirfd.h: Remove file.
38828         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
38829         (dirfd): New declaration.
38830         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
38831         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
38832         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
38833         HAVE_DECL_DIRFD.
38834         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
38835         HAVE_DECL_DIRFD.
38836         * modules/dirfd (Files): Remove lib/dirfd.h.
38837         (Depends-on): Add dirent, extensions.
38838         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
38839         (Include): Specify <dirent.h> instead of dirfd.h.
38840         * modules/dirent (Depends-on): Add link-warning.
38841         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
38842         definition of GL_LINK_WARNING.
38843         * NEWS: Mention the change.
38844
38845 2008-10-18  Bruno Haible  <bruno@clisp.org>
38846
38847         Move the euidaccess() declaration to <unistd.h>.
38848         * lib/euidaccess.h: Remove file.
38849         * lib/unistd.in.h (euidaccess): New declaration.
38850         * lib/euidaccess.c: Don't include euidaccess.h.
38851         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
38852         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
38853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
38854         and HAVE_EUIDACCESS.
38855         * modules/euidaccess (Files): Remove lib/euidaccess.h.
38856         (Depends-on): Add unistd.
38857         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38858         (Include): Specify <unistd.h> instead of euidaccess.h.
38859         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
38860         HAVE_EUIDACCESS.
38861         * NEWS: Mention the change.
38862
38863 2008-10-18  Bruno Haible  <bruno@clisp.org>
38864
38865         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
38866
38867         Move the getdomainname() declaration to <unistd.h>.
38868         * lib/getdomainname.h: Remove file.
38869         * lib/unistd.in.h (getdomainname): New declaration.
38870         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
38871         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
38872         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
38873         HAVE_GETDOMAINNAME.
38874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38875         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
38876         * modules/getdomainname (Files): Remove lib/getdomainname.h.
38877         (Depends-on): Add unistd, extensions.
38878         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38879         (Includes): Specify <unistd.h> instead of getdomainname.h.
38880         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
38881         HAVE_GETDOMAINNAME.
38882         * NEWS: Mention the change.
38883
38884 2008-10-18  Bruno Haible  <bruno@clisp.org>
38885
38886         * modules/dirent: New file.
38887         * m4/dirent_h.m4: New file.
38888         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
38889         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
38890         * modules/fchdir (Files): Remove lib/dirent.in.h.
38891         (Depends-on): Add dirent.
38892         (Makefile.am): Move rules to modules/dirent.
38893         * doc/posix-headers/dirent.texi: Mention the new module.
38894
38895 2008-10-18  Bruno Haible  <bruno@clisp.org>
38896
38897         Avoid -Wunused-parameter warnings in public gnulib header files.
38898         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
38899         macro.
38900         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
38901
38902 2008-10-18  Bruno Haible  <bruno@clisp.org>
38903
38904         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
38905         * doc/glibc-functions/error.texi: Mention the module 'error'.
38906         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
38907         * doc/glibc-functions/getdomainname.texi: Mention the module
38908         'getdomainname'.
38909         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
38910         * doc/glibc-functions/getpagesize.texi: Mention the module
38911         'getpagesize'.
38912         * doc/glibc-functions/getusershell.texi: Mention the module
38913         'getusershell'.
38914         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
38915         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
38916         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
38917         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
38918         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
38919         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
38920         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
38921         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
38922         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
38923         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
38924         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
38925         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
38926         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
38927         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
38928
38929 2008-10-17  Bruno Haible  <bruno@clisp.org>
38930
38931         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
38932         HP-UX and IRIX, use -0.0L.
38933         * tests/test-ceill.c (minus_zero): Likewise.
38934         * tests/test-floorl.c (minus_zero): Likewise.
38935         * tests/test-frexpl.c (minus_zero): Likewise.
38936         * tests/test-isnan.c (minus_zerol): Likewise.
38937         * tests/test-isnanl.h (minus_zero): Likewise.
38938         * tests/test-ldexpl.c (minus_zero): Likewise.
38939         * tests/test-roundl.c (minus_zero): Likewise.
38940         * tests/test-signbit.c (minus_zerol): Likewise.
38941         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38942         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38943         * tests/test-truncl.c (minus_zero): Likewise.
38944         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38945         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38946         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
38947         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38948
38949 2008-10-17  Bruno Haible  <bruno@clisp.org>
38950
38951         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
38952         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
38953         that it gets activated only for gcc >= 3.0.
38954         * lib/dirent.in.h: Likewise.
38955         * lib/errno.in.h: Likewise.
38956         * lib/fcntl.in.h: Likewise.
38957         * lib/float.in.h: Likewise.
38958         * lib/iconv.in.h: Likewise.
38959         * lib/inttypes.in.h: Likewise.
38960         * lib/locale.in.h: Likewise.
38961         * lib/math.in.h: Likewise.
38962         * lib/netdb.in.h: Likewise.
38963         * lib/netinet_in.in.h: Likewise.
38964         * lib/search.in.h: Likewise.
38965         * lib/signal.in.h: Likewise.
38966         * lib/spawn.in.h: Likewise.
38967         * lib/stdarg.in.h: Likewise.
38968         * lib/stdint.in.h: Likewise.
38969         * lib/stdio.in.h: Likewise.
38970         * lib/stdlib.in.h: Likewise.
38971         * lib/string.in.h: Likewise.
38972         * lib/strings.in.h: Likewise.
38973         * lib/sys_file.in.h: Likewise.
38974         * lib/sys_ioctl.in.h: Likewise.
38975         * lib/sys_select.in.h: Likewise.
38976         * lib/sys_socket.in.h: Likewise.
38977         * lib/sys_stat.in.h: Likewise.
38978         * lib/sys_time.in.h: Likewise.
38979         * lib/sysexits.in.h: Likewise.
38980         * lib/time.in.h: Likewise.
38981         * lib/unistd.in.h: Likewise.
38982         * lib/wchar.in.h: Likewise.
38983         * lib/wctype.in.h: Likewise.
38984         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38985
38986 2008-10-17  Jim Meyering  <meyering@redhat.com>
38987
38988         ignore-value: don't depend on inline module
38989         * modules/ignore-value (Depends-on): Remove 'inline'.
38990         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
38991         Suggestion from Bruno Haible.
38992
38993 2008-10-17  Bruno Haible  <bruno@clisp.org>
38994
38995         New implementation of condition variables for Win32.
38996         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
38997         (gl_linked_waitqueue_t): New type.
38998         (gl_cond_t): Use it.
38999         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
39000         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
39001         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
39002         (glthread_cond_init_func, glthread_cond_wait_func,
39003         glthread_cond_timedwait_func, glthread_cond_signal_func,
39004         glthread_cond_broadcast_func, glthread_cond_destroy_func):
39005         Reimplemented on the basis of gl_linked_waitqueue_t.
39006         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
39007         gl_waitqueue_t.
39008         (gl_rwlock_t): Update.
39009         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
39010
39011 2008-10-17  Simon Josefsson  <simon@josefsson.org>
39012
39013         * modules/recvfrom (Depends-on): Add dependency on getpeername.
39014         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39015
39016 2008-10-17  Jim Meyering  <meyering@redhat.com>
39017
39018         ignore-value: new module
39019         * modules/ignore-value: New file.
39020         * lib/ignore-value.h: New file.
39021         * MODULES.html.sh (Compiler warning management): New section,
39022         just for this module.  More to come.
39023
39024 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
39025
39026         open-safer.c: avoid 'signed and unsigned in conditional...' warning
39027         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
39028         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
39029
39030 2008-10-16  Jim Meyering  <meyering@redhat.com>
39031
39032         openat-die.c: avoid 'no previous prototype' warning
39033         * lib/openat-die.c: Include "openat.h".
39034         Reported by Reuben Thomas <rrt@sc3d.org>.
39035
39036 2008-10-16  Simon Josefsson  <simon@josefsson.org>
39037
39038         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
39039         * lib/netdb.in.h: Fix typo.
39040         Reported by Bruno Haible  <bruno@clisp.org>
39041
39042         * lib/netdb.in.h: Include sys/socket.h for platforms without
39043         netdb.h, to get structures like hostent on MinGW.
39044         * modules/netdb (Depends-on): Add sys_socket.
39045
39046 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39047
39048         * modules/netdb, modules/netdb-tests: New file.
39049         * m4/netdb_h.m4: New file.
39050         * lib/netdb.in.h: Add, currently just an empty file pending
39051         definitions.
39052         * tests/test-netdb.c: New file.
39053         * doc/posix-headers/netdb.texi: Mention that we replace it if
39054         needed.
39055         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39056         netdb.
39057
39058 2008-10-15  Simon Josefsson  <simon@josefsson.org>
39059
39060         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
39061         with code.
39062
39063 2008-10-13  Bruno Haible  <bruno@clisp.org>
39064
39065         * lib/glthread/cond.c (glthread_cond_wait_func,
39066         glthread_cond_timedwait_func): Add a comment.
39067
39068 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39069
39070         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
39071         * tests/test-select.c: Likewise,
39072
39073 2008-10-13  Bruno Haible  <bruno@clisp.org>
39074
39075         * lib/glthread/cond.c (glthread_cond_wait_func,
39076         glthread_cond_timedwait_func): Fix variable name.
39077         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39078
39079 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
39080
39081         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
39082         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
39083         struct sockaddr.sa_len.
39084         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
39085
39086 2008-10-13  Simon Josefsson  <simon@josefsson.org>
39087
39088         * build-aux/pmccabe2html: Add css and css_url parameters.
39089
39090 2008-10-12  Bruno Haible  <bruno@clisp.org>
39091
39092         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
39093         calling aclx_get.
39094         Reported by Rainer Tammer <tammer@tammer.net>.
39095
39096 2008-10-12  Bruno Haible  <bruno@clisp.org>
39097
39098         Use msvcrt aware primitives for creation/termination of Win32 threads.
39099         * lib/glthread/thread.c: Include <process.h>.
39100         (glthread_create_func): Use _beginthreadex instead of CreateThread.
39101         (wrapper_func): Update signature.
39102         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
39103
39104 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39105             Bruno Haible  <bruno@clisp.org>
39106
39107         Provide a Win32 implementation of the 'cond' module.
39108         * lib/glthread/cond.h [USE_WIN32]: New implementation.
39109         * lib/glthread/cond.c (glthread_cond_init_func,
39110         glthread_cond_wait_func, glthread_cond_timedwait_func,
39111         glthread_cond_signal_func, glthread_cond_broadcast_func,
39112         glthread_cond_destroy_func) [USE_WIN32]: New functions.
39113         * modules/cond (Dependencies): Add gettimeofday.
39114
39115 2008-10-11  Bruno Haible  <bruno@clisp.org>
39116
39117         Make sleep work on older versions of mingw.
39118         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
39119         only whether it exists.
39120         * doc/posix-functions/sleep.texi: Mention the problem with older
39121         versions of mingw.
39122
39123 2008-10-11  Bruno Haible  <bruno@clisp.org>
39124
39125         New module 'shutdown'.
39126         * modules/shutdown: New file.
39127         * lib/sys_socket.in.h (shutdown): New declaration.
39128         * lib/winsock.c (shutdown): New function.
39129         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
39130         GNULIB_SHUTDOWN.
39131         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
39132         * doc/posix-functions/shutdown.texi: Document the new module.
39133
39134 2008-10-11  Jim Meyering  <meyering@redhat.com>
39135
39136         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
39137
39138 2008-10-11  Bruno Haible  <bruno@clisp.org>
39139
39140         New module 'fclose'.
39141         * modules/fclose: New file.
39142         * lib/stdio.in.h (fclose): New declaration.
39143         * lib/fclose.c: New file.
39144         * m4/fclose.m4: New file.
39145         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
39146         REPLACE_FCLOSE.
39147         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
39148         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
39149         REPLACE_FCLOSE.
39150         * modules/close (Depends-on): fclose.
39151         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
39152
39153 2008-10-11  Bruno Haible  <bruno@clisp.org>
39154
39155         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
39156         set errno and don't call _close.
39157
39158 2008-10-10  Bruno Haible  <bruno@clisp.org>
39159
39160         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
39161         ACL, not afterwards. Fixes test failure on Cygwin.
39162
39163 2008-10-09  Ben Pfaff  <blp@gnu.org>
39164
39165         * build-aux/announce-gen: Fix gnulib version related part of usage
39166         message.  Die with a useful error message if no tarballs are
39167         found.
39168
39169 2008-10-10  Jim Meyering  <meyering@redhat.com>
39170
39171         bootstrap: use git's --depth=N option only if it's supported
39172         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
39173         recognize the --depth option.  Reported by Pádraig Brady.
39174
39175 2008-10-09  Bruno Haible  <bruno@clisp.org>
39176
39177         New module 'ioctl'.
39178         * modules/ioctl: New file.
39179         * lib/sys_socket.in.h (ioctl): Remove declaration.
39180         * lib/winsock.c: Include <sys/ioctl.h>.
39181         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
39182         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
39183         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
39184         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
39185         * doc/posix-functions/ioctl.texi: Mention the new module.
39186
39187 2008-10-09  Bruno Haible  <bruno@clisp.org>
39188
39189         New module 'sys_ioctl'.
39190         * lib/sys_ioctl.in.h: New file.
39191         * m4/sys_ioctl_h.m4: New file.
39192         * modules/sys_ioctl: New file.
39193         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
39194
39195 2008-10-09  Bruno Haible  <bruno@clisp.org>
39196
39197         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
39198         * lib/winsock.c: Include <stdarg.h>.
39199         (rpl_ioctl): Change to second argument 'int' and then varargs.
39200
39201 2008-10-09  Bruno Haible  <bruno@clisp.org>
39202
39203         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
39204         when the sys_socket module is present and the system has <winsock2.h>.
39205
39206 2008-10-09  Bruno Haible  <bruno@clisp.org>
39207
39208         * doc/posix-functions/close.texi: Mention module 'close' instead of
39209         module 'sys_socket'.
39210
39211 2008-10-09  Bruno Haible  <bruno@clisp.org>
39212
39213         * doc/glibc-headers/sys_ioctl.texi: New file.
39214         * doc/gnulib.texi: Include it.
39215
39216 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39217             Bruno Haible  <bruno@clisp.org>
39218
39219         Combine the two replacements of 'close'.
39220         * lib/sys_socket.in.h (close): Define to a reminder to include
39221         <unistd.h>.
39222         (_gl_close_fd_maybe_socket): New declaration.
39223         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
39224         * lib/winsock.c (close): Remove undefinition.
39225         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
39226         needed for the gnulib module 'close'.
39227         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
39228         define to an error symbol or to a warning, if suitable.
39229         * lib/close.c: Include <sys/socket.h>.
39230         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
39231         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
39232         UNISTD_H_HAVE_WINSOCK2_H.
39233         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
39234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39235         UNISTD_H_HAVE_WINSOCK2_H.
39236         * modules/sys_socket (Files): Add m4/unistd_h.m4.
39237         (configure.ac): Set a module indicator.
39238         (Makefile.am): Substitute GNULIB_CLOSE.
39239         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
39240         * modules/poll-tests (Depends-on): Add close.
39241         * modules/select-tests (Depends-on): Likewise.
39242
39243 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39244             Bruno Haible  <bruno@clisp.org>
39245
39246         New module 'close'.
39247         * modules/close: New file.
39248         * lib/unistd.in.h (close): Move declaration out of the
39249         FCHDIR_REPLACEMENT scope.
39250         (_gl_unregister_fd): New declaration.
39251         * lib/close.c: New file.
39252         * lib/fchdir.c (rpl_close): Remove function.
39253         * m4/close.m4: New file.
39254         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
39255         close.
39256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
39257         REPLACE_CLOSE.
39258         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
39259         REPLACE_CLOSE.
39260         * modules/fchdir (Depends-on): Add close.
39261
39262 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39263             Bruno Haible  <bruno@clisp.org>
39264
39265         * lib/fcntl.in.h (open): Simplify conditionals.
39266         (_gl_register_fd): New declaration.
39267         * lib/fchdir.c (rpl_open): Remove function.
39268         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
39269         also.
39270         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
39271         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
39272         open.
39273
39274 2008-10-09  Jim Meyering  <meyering@redhat.com>
39275
39276         GNUmakefile: use the more name-space-friendly "_version"
39277         * top/GNUmakefile (_dummy): Update.
39278         (_version): Rename from "version".
39279
39280 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39281             Bruno Haible  <bruno@clisp.org>
39282
39283         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
39284         rpl_close.
39285         (_gl_register_fd): New function, extracted from rpl_open.
39286         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
39287         (rpl_open, rpl_opendir): Use _gl_register_fd.
39288
39289 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
39290
39291         Fix organization of 'open' replacement.
39292         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
39293         (gl_FUNC_OPEN): Use it.
39294         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
39295
39296 2008-10-08  Bruno Haible  <bruno@clisp.org>
39297
39298         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
39299
39300 2008-10-08  Simon Josefsson  <simon@josefsson.org>
39301
39302         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
39303         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
39304         listen).
39305
39306 2008-10-08  Eric Blake  <ebb9@byu.net>
39307
39308         GNUmakefile: add 'make version' target
39309         * top/GNUmakefile (_curr-ver): Split version update rules...
39310         (version): ...into a target.
39311
39312 2008-10-07  Bruno Haible  <bruno@clisp.org>
39313
39314         Use a more portable replacement expression for -0.0L.
39315         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
39316         instead of -0.0L. Fix m4 quotation.
39317
39318         * tests/test-signbit.c: Include <float.h>.
39319         (minus_zero): New variable.
39320         (test_signbitl): Use minus_zero instead of -zero.
39321         * modules/signbit-tests (Depends-on): Add float.
39322
39323         * tests/test-ceill.c: Include <float.h>.
39324         (zero): Remove variable.
39325         (minus_zero): New variable.
39326         (main): Use minus_zero instead of -zero.
39327         * modules/ceill-tests (Depends-on): Add float.
39328
39329         * tests/test-floorl.c: Include <float.h>.
39330         (zero): Remove variable.
39331         (minus_zero): New variable.
39332         (main): Use minus_zero instead of -zero.
39333         * modules/floorl-tests (Depends-on): Add float.
39334
39335         * tests/test-roundl.c: Include <float.h>.
39336         (zero): Remove variable.
39337         (minus_zero): New variable.
39338         (main): Use minus_zero instead of -zero.
39339         * modules/roundl-tests (Depends-on): Add float.
39340
39341         * tests/test-truncl.c: Include <float.h>.
39342         (zero): Remove variable.
39343         (minus_zero): New variable.
39344         (main): Use minus_zero instead of -zero.
39345         * modules/truncl-tests (Depends-on): Add float.
39346
39347         * tests/test-frexpl.c (zero): Remove variable.
39348         (minus_zero): New variable.
39349         (main): Use minus_zero instead of -zero.
39350         * modules/frexpl-tests (Depends-on): Add float.
39351
39352         * tests/test-isnan.c (zerol): Remove variable.
39353         (minus_zerol): New variable.
39354         (test_long_double): Use minus_zerol instead of -zerol.
39355         * modules/isnan-tests (Depends-on): Add float.
39356
39357         * tests/test-isnanl.h (zero): Remove variable.
39358         (minus_zero): New variable.
39359         (main): Use minus_zero instead of -zero.
39360         * modules/isnanl-nolibm-tests (Depends-on): Add float.
39361         * modules/isnanl-tests (Depends-on): Add float.
39362
39363         * tests/test-ldexpl.c (zero): Remove variable.
39364         (minus_zero): New variable.
39365         (main): Use minus_zero instead of -zero.
39366         * modules/ldexpl-tests (Depends-on): Add float.
39367
39368         * tests/test-snprintf-posix.h (zerol): Remove variable.
39369         (minus_zerol): New variable.
39370         (test_function): Use minus_zerol instead of -zerol.
39371         * modules/snprintf-posix-tests (Depends-on): Add float.
39372         * modules/vsnprintf-posix-tests (Depends-on): Add float.
39373
39374         * tests/test-sprintf-posix.h (zerol): Remove variable.
39375         (minus_zerol): New variable.
39376         (test_function): Use minus_zerol instead of -zerol.
39377         * modules/sprintf-posix-tests (Depends-on): Add float.
39378         * modules/vsprintf-posix-tests (Depends-on): Add float.
39379
39380         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
39381         (minus_zerol): New variable.
39382         (test_function): Use minus_zerol instead of -zerol.
39383         * modules/vasnprintf-posix-tests (Depends-on): Add float.
39384
39385         * tests/test-vasprintf-posix.c (zerol): Remove variable.
39386         (minus_zerol): New variable.
39387         (test_function): Use minus_zerol instead of -zerol.
39388         * modules/vasprintf-posix-tests (Depends-on): Add float.
39389
39390 2008-10-07  Simon Josefsson  <simon@josefsson.org>
39391
39392         * MODULES.html.sh (Support for building documentation): Mention
39393         pmccabe2html.  Sort entries.
39394
39395         Add pmccabe2html module, from gnupdf.
39396         * build-aux/pmccabe.css: New file.
39397         * build-aux/pmccabe2html: New file.
39398         * m4/pmccabe2html.m4: New file.
39399         * modules/pmccabe2html: New file.
39400
39401 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
39402
39403         flock: new module
39404         * MODULES.html.sh: Add to list of modules.
39405         * lib/flock.c: flock implementation for Windows and Unix systems
39406         which have fcntl.
39407         * doc/glibc-functions/flock.texi: Update documentation.
39408         * lib/sys_file.in.h: <sys/file.h> header file.
39409         * m4/flock.m4: M4 macros.
39410         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
39411         * modules/flock: flock module.
39412         * modules/flock-tests: flock tests module.
39413         * modules/sys_file: sys/file.h module.
39414         * tests/test-flock.c: test suite for flock.
39415
39416 2008-10-06  Jim Meyering  <meyering@redhat.com>
39417
39418         bootstrap: check for LT_INIT more portably still ;-)
39419         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
39420         Spotted by Bruno Haible.
39421
39422 2008-10-06  Eric Blake  <ebb9@byu.net>
39423
39424         test-signbit: avoid tripping Irix cc bug on -0.0L
39425         * tests/test-signbit.c (minus_zerol): Delete, and replace with
39426         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
39427         entire testsuite consistent and avoids an Irix 6.2 bug.
39428
39429 2008-10-05  Bruno Haible  <bruno@clisp.org>
39430             Jim Meyering  <jim@meyering.net>
39431
39432         Add an option for ignoring EPIPE during close_stdout.
39433         * lib/closeout.h: Include <stdbool.h>.
39434         (close_stdout_set_ignore_EPIPE): New declaration.
39435         * lib/closeout.c: Include <stdbool.h>.
39436         (ignore_EPIPE): New variable.
39437         (close_stdout_set_ignore_EPIPE): New function.
39438         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
39439         * lib/close-stream.c (close_stream): Mention the possible EPIPE
39440         failure.
39441         * modules/closeout (Depends-on): Add stdbool.
39442
39443 2008-10-05  Bruno Haible  <bruno@clisp.org>
39444
39445         * modules/accept: New file.
39446         * modules/bind: New file.
39447         * modules/connect: New file.
39448         * modules/getpeername: New file.
39449         * modules/getsockname: New file.
39450         * modules/getsockopt: New file.
39451         * modules/listen: New file.
39452         * modules/recv: New file.
39453         * modules/recvfrom: New file.
39454         * modules/send: New file.
39455         * modules/sendto: New file.
39456         * modules/setsockopt: New file.
39457         * modules/socket: New file.
39458         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
39459         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
39460         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
39461         the particular module is requested. Add a link warning when the
39462         particular module is not requested.
39463         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
39464         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
39465         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
39466         the particular module is requested.
39467         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
39468         gl_SYS_SOCKET_H_DEFAULTS): New macros.
39469         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
39470         * modules/sys_socket (Depends-on): Add link-warning.
39471         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
39472         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
39473         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
39474         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
39475         GL_LINK_WARNING.
39476         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
39477         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
39478         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
39479         * doc/posix-functions/getpeername.texi: Mention the new module
39480         'getpeername'.
39481         * doc/posix-functions/getsockname.texi: Mention the new module
39482         'getsockname'.
39483         * doc/posix-functions/getsockopt.texi: Mention the new module
39484         'getsockopt'.
39485         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
39486         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
39487         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
39488         * doc/posix-functions/send.texi: Mention the new module 'send'.
39489         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
39490         * doc/posix-functions/setsockopt.texi: Mention the new module
39491         'setsockopt'.
39492         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
39493         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
39494         listen, connect, accept.
39495         * modules/select-tests (Depends-on): Likewise.
39496
39497 2008-10-05  Bruno Haible  <bruno@clisp.org>
39498
39499         * lib/winsock.c (strerror): Remove unused #undef.
39500         (rpl_close): Remove unused local variable.
39501
39502         * modules/sys_socket (Depends-on); Add errno.
39503
39504 2008-10-05  Bruno Haible  <bruno@clisp.org>
39505
39506         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
39507         (select): Add a link warning when the 'select' module is not used.
39508         * modules/sys_select (Depends-on): Add link-warning.
39509         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
39510         Suggested by Paolo Bonzini.
39511
39512 2008-10-05  Jim Meyering  <meyering@redhat.com>
39513
39514         bootstrap: check for LT_INIT more portably
39515         * build-aux/bootstrap: Avoid using grep -E, since it's not
39516         portable enough.  Suggestion from Bruno Haible.
39517
39518 2008-10-05  Bruno Haible  <bruno@clisp.org>
39519
39520         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
39521         as being fixed by gnulib.
39522
39523 2008-10-05  Bruno Haible  <bruno@clisp.org>
39524
39525         * modules/select-tests: New file, mostly copied from
39526         modules/sys_select-tests.
39527         * tests/test-select.c: New file, mostly copied from
39528         tests/test-sys_select.c.
39529         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
39530         * modules/sys_select-tests (Depends-on): Remove all dependencies.
39531         (Makefile.am): Remove test_sys_select_LDADD.
39532
39533         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
39534         to an undefined symbol, for an error message.
39535         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
39536         (gl_SYS_SELECT_H_DEFAULTS): New macro.
39537         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
39538         winsock-select.c here.
39539         * modules/sys_select (Files): Remove lib/winsock-select.c.
39540         (Depends-on): Remove alloca.
39541         (Makefile.am): Substitute GNULIB_SELECT.
39542         * modules/select: New file.
39543         * doc/posix-functions/select.texi: Update.
39544
39545 2008-10-05  Bruno Haible  <bruno@clisp.org>
39546
39547         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
39548         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
39549         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
39550         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
39551         getdtablesize.
39552         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
39553         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
39554
39555 2008-10-05  Bruno Haible  <bruno@clisp.org>
39556
39557         * modules/getdtablesize-tests: New file.
39558         * tests/test-getdtablesize.c: New file.
39559
39560         New module 'getdtablesize'.
39561         * lib/unistd.in.h (getdtablesize): New declaration.
39562         * lib/getdtablesize.c: New file.
39563         * m4/getdtablesize.m4: New file.
39564         * modules/getdtablesize: New file.
39565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39566         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
39567         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
39568         HAVE_GETDTABLESIZE.
39569         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
39570
39571 2008-10-05  Bruno Haible  <bruno@clisp.org>
39572
39573         * modules/sched (Makefile.am): Fix typo.
39574         Reported by Simon Josefsson.
39575
39576 2008-10-05  Jim Meyering  <meyering@redhat.com>
39577
39578         bootstrap: check for LT_INIT, too
39579         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
39580         are deprecated.  Suggestion from Ralf Wildenhues.
39581
39582 2008-10-05  Bruno Haible  <bruno@clisp.org>
39583
39584         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
39585         overriding them by ours.
39586         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
39587
39588 2008-10-05  Jim Meyering  <meyering@redhat.com>
39589
39590         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
39591         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
39592         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
39593
39594 2008-10-04  Bruno Haible  <bruno@clisp.org>
39595
39596         * modules/dup2 (License): Change to LGPLv2+.
39597         * modules/sleep (License): Likewise.
39598         * modules/perror (License): Likewise.
39599         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
39600         Blake.
39601         * modules/signal (License): Likewise.
39602         * modules/sigprocmask (License): Likewise.
39603         * modules/raise (License): Change to LGPLv2+, with approval by Jim
39604         Meyering.
39605
39606 2008-10-04  Bruno Haible  <bruno@clisp.org>
39607
39608         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
39609         Reported by Rainer Tammer <tammer@tammer.net>.
39610
39611 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
39612             Bruno Haible  <bruno@clisp.org>
39613
39614         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
39615         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
39616         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
39617
39618 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
39619
39620         filevercmp: new module
39621         * lib/filevercmp.h: New function filevercmp comparing version strings.
39622         * lib/filevercmp.c: Implementation of filevercmp function.
39623         * modules/filevercmp: Module metadata.
39624         * tests/test-filevercmp.c: Unit test for new module.
39625         * modules/filevercmp-tests: Unit test metadata.
39626         * MODULES.html.sh: Add filevercmp module.
39627
39628 2008-10-03  Bruno Haible  <bruno@clisp.org>
39629
39630         * lib/c-ctype.h: Add comment.
39631         Reported by Jim Meyering.
39632
39633 2008-10-02  Bruno Haible  <bruno@clisp.org>
39634
39635         * modules/posix_spawn-internal (Depends-on): Add 'open'.
39636
39637 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39638
39639         * build-aux/bootstrap: Allow renaming bootstrap, and change the
39640         name of bootstrap.conf accordingly.
39641
39642 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39643
39644         * build-aux/bootstrap: Install git-merge-changelog configuration
39645         items into .gitconfig if needed.
39646
39647 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
39648
39649         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
39650         git repository, and initialize/update it accordingly.
39651
39652 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
39653
39654         * modules/fsync-tests: New file.
39655         * tests/test-fsync.c: New file.
39656
39657         New module 'fsync'.
39658         * lib/fsync.c: New file.
39659         * m4/fsync.m4: New file.
39660         * modules/fsync: New file.
39661         * lib/unistd.in.h (fsync): New declaration.
39662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
39663         GNULIB_FSYNC and HAVE_FSYNC.
39664         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
39665         * MODULES.html.sh (posix_functions): Add fsync.
39666         * doc/posix-functions/fsync.texi: Mention the new module.
39667
39668 2008-10-02  Jim Meyering  <meyering@redhat.com>
39669
39670         fts.c: sync with similar code from coreutils' remove.c
39671         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
39672         Guard also with "#if defined __linux__", since for now at least,
39673         this code is Linux-kernel-specific.
39674
39675 2008-10-02  Jim Meyering  <meyering@redhat.com>
39676
39677         fts: bug fixes
39678         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
39679         Include <sys/vfs.h>, not <sys/statfs.h>.
39680
39681         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
39682         Include <sys/vfs.h>, not <sys/statfs.h>.
39683
39684 2008-10-01  Bruno Haible  <bruno@clisp.org>
39685
39686         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
39687         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
39688         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
39689         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
39690         * doc/posix-functions/posix_spawnp.texi: Likewise.
39691         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
39692         whether posix_spawn actually works.
39693         * m4/pipe.m4 (gl_PIPE): Likewise.
39694         * modules/execute (Files): Add m4/posix_spawn.m4.
39695         * modules/pipe (Files): Add m4/posix_spawn.m4.
39696         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
39697
39698 2008-10-01  Jim Meyering  <meyering@redhat.com>
39699
39700         remove trailing spaces
39701         * NEWS: Likewise.
39702         * lib/poll.c (poll): Likewise.
39703         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
39704         * lib/winsock.c (rpl_close): Likewise.
39705         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
39706         * modules/yield: Likewise.
39707         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
39708         * tests/test-sys_select.c (connect_to_socket): Likewise.
39709
39710         fts.c: adjust a new interface to be more generally useful
39711         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
39712         (fts_build): Adjust caller.
39713
39714 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39715
39716         * modules/cond-tests: New file.
39717         * tests/test-cond.c: New file.
39718
39719 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39720             Bruno Haible  <bruno@clisp.org>
39721
39722         * modules/cond (Dependencies): Add errno, time.
39723         * lib/glthread/cond.h: Include <time.h>.
39724         (gl_cond_define, gl_cond_define_initialized): Use the same definition
39725         across platforms.
39726
39727 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39728             Bruno Haible  <bruno@clisp.org>
39729
39730         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
39731
39732 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39733             Bruno Haible  <bruno@clisp.org>
39734
39735         * modules/tls-tests (Depends-on): Add thread, yield.
39736         (configure.ac): Remove all checks.
39737         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
39738         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
39739         gl_thread_self): Remove definitions. Include glthread/thread.h and
39740         glthread/yield.h instead.
39741         (test_tls): Pass an additional NULL argument to gl_thread_join.
39742
39743 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39744             Bruno Haible  <bruno@clisp.org>
39745
39746         * modules/lock-tests (Depends-on): Add thread, yield.
39747         (configure.ac): Remove all checks.
39748         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
39749         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
39750         gl_thread_self): Remove definitions. Include glthread/thread.h and
39751         glthread/yield.h instead.
39752         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
39753         additional NULL argument to gl_thread_join.
39754
39755 2008-09-30  Bruno Haible  <bruno@clisp.org>
39756
39757         Fix the Win32 implementation of the 'thread' module.
39758         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
39759         pointer type.
39760         (gl_thread_self): Invoke gl_thread_self_func.
39761         (gl_thread_self_func): New declaration.
39762         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
39763         (do_init_self_key, init_self_key): New functions.
39764         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
39765         Remove some fields.
39766         (running_threads, running_lock): Remove variables.
39767         (get_current_thread_handle): New function.
39768         (gl_thread_self_func, wrapper_func, glthread_create_func,
39769         glthread_join_func, gl_thread_exit_func): Largely rewritten and
39770         simplified.
39771
39772 2008-09-30  Bruno Haible  <bruno@clisp.org>
39773
39774         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
39775         files.
39776
39777 2008-09-30  Jim Meyering  <meyering@redhat.com>
39778
39779         fts.m4: correct the test for statfs.f_type
39780         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
39781         when checking for statfs.f_type.
39782
39783 2008-09-15  Simon Josefsson  <simon@josefsson.org>
39784
39785         tests: avoid some compiler warnings
39786         * tests/test-memchr.c (main): Pass NULL indirectly.
39787         * tests/test-getdate.c (main): Remove unused variable 'ret'.
39788
39789 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
39790
39791         getdate.y: disallow countable dayshifts like "4 yesterday ago"
39792         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
39793         exactly specified dayshifts.
39794         (dayshift): New rule.
39795         (rel): Add dayshift.
39796         (relative_time_table) [tomorrow, yesterday, today, now]:
39797         Use tDAY_SHIFT in place of tDAY_UNIT.
39798         * tests/test-getdate.c: Add tests for now-disallowed countable
39799         dayshifts, e.g., "4 yesterday ago".
39800
39801 2008-09-29  Bruno Haible  <bruno@clisp.org>
39802
39803         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
39804         * tests/test-posix_spawn1.in.sh: Renamed from
39805         tests/test-posix_spawn.in.sh.
39806         * tests/test-posix_spawn2.c: New file.
39807         * tests/test-posix_spawn2.in.sh: New file.
39808         * modules/posix_spawnp-tests (Files): Update.
39809         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
39810
39811 2008-09-29  Bruno Haible  <bruno@clisp.org>
39812
39813         Propagate effects of putenv/setenv/unsetenv to child processes.
39814         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
39815         * lib/pipe.c (create_pipe): Likewise.
39816
39817 2008-09-29  Bruno Haible  <bruno@clisp.org>
39818
39819         Enable use of shell scripts as executables in mingw.
39820         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
39821         run the program as a shell script.
39822         * lib/pipe.c (create_pipe): Likewise.
39823         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
39824         resulting array.
39825
39826 2008-09-29  Eric Blake  <ebb9@byu.net>
39827
39828         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
39829
39830 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
39831
39832         * doc/posix-functions/accept.texi: Update mingw problems.
39833         * doc/posix-functions/bind.texi: Update mingw problems.
39834         * doc/posix-functions/close.texi: Update mingw problems.
39835         * doc/posix-functions/connect.texi: Update mingw problems.
39836         * doc/posix-functions/getpeername.texi: Update mingw problems.
39837         * doc/posix-functions/getsockname.texi: Update mingw problems.
39838         * doc/posix-functions/getsockopt.texi: Update mingw problems.
39839         * doc/posix-functions/ioctl.texi: Update mingw problems.
39840         * doc/posix-functions/listen.texi: Update mingw problems.
39841         * doc/posix-functions/recv.texi: Update mingw problems.
39842         * doc/posix-functions/recvfrom.texi: Update mingw problems.
39843         * doc/posix-functions/select.texi: Update mingw problems.
39844         * doc/posix-functions/send.texi: Update mingw problems.
39845         * doc/posix-functions/sendto.texi: Update mingw problems.
39846         * doc/posix-functions/setsockopt.texi: Update mingw problems.
39847         * doc/posix-functions/socket.texi: Update mingw problems.
39848
39849 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
39850             Bruno Haible  <bruno@clisp.org>
39851
39852         * lib/sys_select.in.h: Include sys/time.h.
39853         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
39854         * modules/sys_select: Depend on sys_time.
39855         * tests/test-sys_select.c: Test that sys/select.h defines struct
39856         timeval fully.
39857
39858 2008-09-29  Bruno Haible  <bruno@clisp.org>
39859
39860         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
39861         * lib/sys_select.in.h: Likewise.
39862
39863 2008-09-29  Bruno Haible  <bruno@clisp.org>
39864
39865         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
39866
39867 2008-09-29  Bruno Haible  <bruno@clisp.org>
39868
39869         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
39870         Set LIBSOCKET instead of augmenting LIBS.
39871         * modules/sockets (Link): New section.
39872         * modules/sockets-tests (test_sockets_LDADD): New variable.
39873         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
39874         * modules/poll-tests (test_poll_LDADD): New variable.
39875         * NEWS: Document the change.
39876
39877 2008-09-29  Bruno Haible  <bruno@clisp.org>
39878
39879         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
39880         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
39881         ARPA_INET_H directly.
39882         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39883
39884 2008-09-28  Bruno Haible  <bruno@clisp.org>
39885
39886         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
39887         from gl_HEADER_SYS_SOCKET.
39888         (gl_HEADER_SYS_SOCKET): Invoke it.
39889         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39890
39891 2008-09-28  Bruno Haible  <bruno@clisp.org>
39892
39893         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
39894         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
39895         Needed on OSF/1 4.0.
39896
39897 2008-09-28  Bruno Haible  <bruno@clisp.org>
39898
39899         Override open more carefully.
39900         * lib/open.c (orig_open): New function.
39901         (rpl_open): Use orig_open instead of open.
39902         * lib/fcntl.in.h: Add special invocation convention.
39903         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
39904         (gl_FUNC_OPEN): Invoke it.
39905
39906         Override freopen more carefully.
39907         * lib/freopen.c (orig_freopen): New function.
39908         (rpl_freopen): Use orig_freopen instead of freopen.
39909         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
39910         (gl_FUNC_FREOPEN): Invoke it.
39911
39912         Override fopen more carefully.
39913         * lib/fopen.c (orig_fopen): New function.
39914         (rpl_fopen): Use orig_fopen instead of fopen.
39915         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
39916         (gl_FUNC_FOPEN): Invoke it.
39917         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
39918
39919 2008-09-28  Bruno Haible  <bruno@clisp.org>
39920
39921         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
39922         SIGPIPE.
39923
39924 2008-09-28  Bruno Haible  <bruno@clisp.org>
39925
39926         * tests/test-sigaction.c (handler, main): Disable the check whether
39927         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
39928         glibc systems with LinuxThreads.
39929
39930 2008-09-28  Bruno Haible  <bruno@clisp.org>
39931
39932         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
39933
39934         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
39935         with AIX xlc.
39936         * lib/fcntl.in.h (open): Likewise.
39937         Reported by Rainer Tammer <tammer@tammer.net>.
39938
39939 2008-09-28  Bruno Haible  <bruno@clisp.org>
39940
39941         * modules/posix_spawnp-tests: New file.
39942         * tests/test-posix_spawn.c: New file.
39943         * tests/test-posix_spawn.in.sh: New file.
39944
39945         New module 'posix_spawnp'.
39946         * modules/posix_spawnp: New file.
39947         * lib/spawnp.c: New file, from GNU libc with modifications.
39948         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
39949
39950         New module 'posix_spawn'.
39951         * modules/posix_spawn: New file.
39952         * lib/spawn.c: New file, from GNU libc with modifications.
39953         * doc/posix-functions/posix_spawn.texi: Mention the new module.
39954
39955         New module 'posix_spawnattr_destroy'.
39956         * modules/posix_spawnattr_destroy: New file.
39957         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
39958         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
39959         module.
39960
39961         New module 'posix_spawnattr_setsigmask'.
39962         * modules/posix_spawnattr_setsigmask: New file.
39963         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
39964         modifications.
39965         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
39966         new module.
39967
39968         New module 'posix_spawnattr_getsigmask'.
39969         * modules/posix_spawnattr_getsigmask: New file.
39970         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
39971         modifications.
39972         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
39973         new module.
39974
39975         New module 'posix_spawnattr_setsigdefault'.
39976         * modules/posix_spawnattr_setsigdefault: New file.
39977         * lib/spawnattr_setdefault.c: New file, from GNU libc with
39978         modifications.
39979         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
39980         new module.
39981
39982         New module 'posix_spawnattr_getsigdefault'.
39983         * modules/posix_spawnattr_getsigdefault: New file.
39984         * lib/spawnattr_getdefault.c: New file, from GNU libc with
39985         modifications.
39986         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
39987         new module.
39988
39989         New module 'posix_spawnattr_setschedpolicy'.
39990         * modules/posix_spawnattr_setschedpolicy: New file.
39991         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
39992         modifications.
39993         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
39994         new module.
39995
39996         New module 'posix_spawnattr_getschedpolicy'.
39997         * modules/posix_spawnattr_getschedpolicy: New file.
39998         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
39999         modifications.
40000         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
40001         new module.
40002
40003         New module 'posix_spawnattr_setschedparam'.
40004         * modules/posix_spawnattr_setschedparam: New file.
40005         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
40006         modifications.
40007         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
40008         new module.
40009
40010         New module 'posix_spawnattr_getschedparam'.
40011         * modules/posix_spawnattr_getschedparam: New file.
40012         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
40013         modifications.
40014         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
40015         new module.
40016
40017         New module 'posix_spawnattr_setpgroup'.
40018         * modules/posix_spawnattr_setpgroup: New file.
40019         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
40020         modifications.
40021         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
40022         module.
40023
40024         New module 'posix_spawnattr_getpgroup'.
40025         * modules/posix_spawnattr_getpgroup: New file.
40026         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
40027         modifications.
40028         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
40029         module.
40030
40031         New module 'posix_spawnattr_setflags'.
40032         * modules/posix_spawnattr_setflags: New file.
40033         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
40034         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
40035         module.
40036
40037         New module 'posix_spawnattr_getflags'.
40038         * modules/posix_spawnattr_getflags: New file.
40039         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
40040         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
40041         module.
40042
40043         New module 'posix_spawnattr_init'.
40044         * modules/posix_spawnattr_init: New file.
40045         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
40046         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
40047         module.
40048
40049         New module 'posix_spawn_file_actions_destroy'.
40050         * modules/posix_spawn_file_actions_destroy: New file.
40051         * lib/spawn_faction_destroy.c: New file, from GNU libc with
40052         modifications.
40053         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
40054         the new module.
40055
40056         New module 'posix_spawn_file_actions_addopen'.
40057         * modules/posix_spawn_file_actions_addopen: New file.
40058         * lib/spawn_faction_addopen.c: New file, from GNU libc with
40059         modifications.
40060         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
40061         the new module.
40062
40063         New module 'posix_spawn_file_actions_adddup2'.
40064         * modules/posix_spawn_file_actions_adddup2: New file.
40065         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
40066         modifications.
40067         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
40068         the new module.
40069
40070         New module 'posix_spawn_file_actions_addclose'.
40071         * modules/posix_spawn_file_actions_addclose: New file.
40072         * lib/spawn_faction_addclose.c: New file, from GNU libc with
40073         modifications.
40074         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
40075         the new module.
40076
40077         New module 'posix_spawn_file_actions_init'.
40078         * modules/posix_spawn_file_actions_init: New file.
40079         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
40080         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
40081         new module.
40082
40083         New module 'posix_spawn-internal'.
40084         * modules/posix_spawn-internal: New file.
40085         * lib/spawn_int.h: New file, from GNU libc with modifications.
40086         * lib/spawni.c: New file, from GNU libc with modifications.
40087         * m4/posix_spawn.m4: New file.
40088
40089         New module 'spawn'.
40090         * modules/spawn: New file.
40091         * lib/spawn.in.h: New file, from GNU libc with modifications.
40092         * m4/spawn_h.m4: New file.
40093         * doc/posix-headers/spawn.texi: Mention the new module.
40094
40095 2008-09-28  Bruno Haible  <bruno@clisp.org>
40096
40097         * modules/sched-tests: New file.
40098         * tests/test-sched.c: New file.
40099
40100         New module 'sched'.
40101         * modules/sched: New file.
40102         * lib/sched.in.h: New file.
40103         * m4/sched_h.m4: New file.
40104         * doc/posix-headers/sched.texi: Mention the new module.
40105
40106 2008-09-27  Eric Blake  <ebb9@byu.net>
40107
40108         Fix previous patch, and tweak references to $0.
40109         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
40110         (func_version, func_gnulib_dir): Don't call this program
40111         gnulib-tool.
40112         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
40113         with using $0 in function.
40114         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
40115         (func_fatal_error): Reuse the name the user invoked us with.
40116
40117 2008-09-27  Bruno Haible  <bruno@clisp.org>
40118
40119         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
40120         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
40121         (gl_ICONV_H): Not here.
40122         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
40123         instead of assigning ICONV_H directly.
40124
40125         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
40126         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
40127         WCHAR_H directly.
40128
40129 2008-09-27  Bruno Haible  <bruno@clisp.org>
40130
40131         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
40132         * modules/arpa_inet (Depends-on): Add link-warning.
40133         (Makefile.am): Insert the definition of GL_LINK-WARNING.
40134         * modules/unistd (Makefile.am): Likewise.
40135
40136 2008-09-26  Bruno Haible  <bruno@clisp.org>
40137
40138         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
40139         variables.
40140         (func_version): Essentially copied from gnulib-tool.
40141         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
40142         func_readlink): Copied from gnulib-tool.
40143
40144 2008-09-26  Bruno Haible  <bruno@clisp.org>
40145
40146         * gnulib-tool (func_version): Change directory to $gnulib_dir before
40147         invoking git-version-gen.
40148
40149 2008-09-26  Bruno Haible  <bruno@clisp.org>
40150
40151         * posix-modules: Update to directory names changed on 2008-01-19.
40152         Remove commas in output before splitting into words. No more need to
40153         avoid 'ftruncate' since 2007-02-19.
40154
40155 2008-09-26  Bruno Haible  <bruno@clisp.org>
40156
40157         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
40158
40159 2008-09-26  Bruno Haible  <bruno@clisp.org>
40160
40161         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
40162         * modules/fwriteerror (Depends-on): Add errno.
40163
40164 2008-09-26  Bruno Haible  <bruno@clisp.org>
40165
40166         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
40167         * tests/test-vc-list-files-cvs.sh: Likewise.
40168
40169 2008-09-26  Bruno Haible  <bruno@clisp.org>
40170
40171         * doc/posix-headers/sys_resource.texi: Reorder items.
40172
40173 2008-09-26  Jim Meyering  <meyering@redhat.com>
40174
40175         fts: tweak inode comparison function
40176         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
40177         inode numbers, as documented.
40178
40179         fts: sort dirent entries on inode number before traversing
40180         This avoids a quadratic, seek-related performance penalty when
40181         operating on a directory containing many entries (measurable at 10k;
40182         3.5 hours at 2 million entries with a cold cache) on certain types
40183         of file systems, including ext3 and ext4, but not tmpfs.
40184         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
40185         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
40186         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
40187         (fs_handles_readdir_ordered_dirents_efficiently): New function.
40188         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
40189         (fts_build): Set the stat.st_ino member from D_INO.
40190         If it is likely to be useful, sort dirent entries on inode number.
40191
40192         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
40193         and the struct statfs.f_type member.
40194         * modules/fts (Depends-on): Add d-ino.
40195
40196 2008-09-26  Bruno Haible  <bruno@clisp.org>
40197
40198         * modules/sigpipe-die (Depends-on): Add sigpipe.
40199
40200         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
40201         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
40202         and GNULIB_STDIO_H_SIGPIPE are set.
40203         * lib/stdio-write.c: New file.
40204         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
40205         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
40206         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
40207         REPLACE_STDIO_WRITE_FUNCS.
40208         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
40209         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
40210         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
40211         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
40212         * modules/stdio (Files): Add lib/stdio-write.c.
40213         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
40214         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
40215         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
40216         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
40217         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
40218         REPLACE_FPRINTF_POSIX.
40219         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
40220         REPLACE_PRINTF_POSIX.
40221         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
40222         REPLACE_VFPRINTF_POSIX.
40223         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
40224         REPLACE_VPRINTF_POSIX.
40225         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
40226         SIGPIPE issue.
40227         * doc/posix-functions/fputc.texi: Likewise.
40228         * doc/posix-functions/fputs.texi: Likewise.
40229         * doc/posix-functions/fwrite.texi: Likewise.
40230         * doc/posix-functions/printf.texi: Likewise.
40231         * doc/posix-functions/putc.texi: Likewise.
40232         * doc/posix-functions/putchar.texi: Likewise.
40233         * doc/posix-functions/puts.texi: Likewise.
40234         * doc/posix-functions/vfprintf.texi: Likewise.
40235         * doc/posix-functions/vprintf.texi: Likewise.
40236
40237         * modules/safe-write (Depends-on): Add write.
40238
40239         * modules/sigpipe-tests: New file.
40240         * tests/test-sigpipe.c: New file.
40241         * tests/test-sigpipe.sh: New file.
40242
40243         * modules/write: New file.
40244         * lib/unistd.in.h: Include <sys/types.h>.
40245         (write): New declaration.
40246         * lib/write.c: New file.
40247         * m4/write.m4: New file.
40248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40249         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
40250         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
40251         GNULIB_WRITE, REPLACE_WRITE.
40252         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
40253         and the SIGPIPE issue.
40254
40255         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
40256         (raise): New declaration.
40257         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
40258         (ext_signal): New function.
40259         (rpl_raise): New function.
40260         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
40261         GNULIB_SIGNAL_H_SIGPIPE.
40262         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
40263         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
40264
40265         * modules/sigpipe: New file.
40266         * m4/sigpipe.m4: New file.
40267
40268 2008-09-25  Derek Price  <derek@ximbiot.com>
40269             Bruno Haible  <bruno@clisp.org>
40270
40271         * gnulib-tool (func_import): Report all license incompatibilities, not
40272         just the first one.
40273
40274 2008-09-25  Bruno Haible  <bruno@clisp.org>
40275
40276         * gnulib-tool (func_import): When computing the edits, consider not
40277         only the Makefile.ams that exist but also those that will be generated.
40278
40279 2008-09-25  Simon Josefsson  <simon@josefsson.org>
40280
40281         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
40282         fixes gnulib-tool --test warning about duplicate dependency.
40283
40284 2008-09-25  Bruno Haible  <bruno@clisp.org>
40285
40286         * gnulib-tool: Don't ask the user to perform edits in the generated
40287         Makefile.ams.
40288         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
40289         apply to the Makefile.am being generated.
40290         (func_emit_tests_Makefile_am): Execute edits that apply to the
40291         Makefile.am being generated.
40292         (func_import): Setup list of Makefile.am edits before emitting the
40293         Makefile.ams, not at the end.
40294         (func_create_testdir): Update.
40295         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40296
40297 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40298
40299         * gnulib-tool (func_import): Store the --tests-base option in the
40300         comment in gnulib-cache.m4.
40301
40302 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
40303
40304         * NEWS: Document increased portability that sys_select now provides.
40305
40306         * lib/sys_select.in.h: Install select wrapper.
40307         * lib/sys_socket.in.h: Use more descriptive name when there is no
40308         select wrapper.
40309         * lib/winsock-select.c: New.
40310         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
40311         Require gl_HEADER_SYS_SOCKET.
40312         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
40313         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
40314         * tests/test-sys_select.c: Add functional tests.
40315
40316 2008-09-24  Eric Blake  <ebb9@byu.net>
40317
40318         open, fopen: close fd leak in last patch
40319         * lib/open.c (rpl_open): Close fd before returning error.
40320         * lib/fopen.c (rpl_fopen): Close fd before returning error.
40321         * doc/posix-functions/open.texi (open): Document that Irix also
40322         has the bug.
40323         * doc/posix-functions/fopen.texi (fopen): Likewise.
40324         Reported by Paolo Bonzini.
40325
40326 2008-09-24  Bruno Haible  <bruno@clisp.org>
40327
40328         Ensure that a filename ending in a slash cannot be used to access a
40329         non-directory.
40330         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
40331         to check whether it's really a directory.
40332         * lib/fopen.c: Include fcntl.h, unistd.h.
40333         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
40334         and fdopen().
40335         * modules/fopen (Depends-on): Add unistd.
40336         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
40337         * tests/test-fopen.c (main): Likewise.
40338         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
40339         * doc/posix-functions/fopen.texi: Likewise.
40340         Reported by Eric Blake.
40341
40342 2008-09-23  Eric Blake  <ebb9@byu.net>
40343
40344         c-stack: avoid compiler optimizations when provoking overflow
40345         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
40346         recursion harder to optimize, to ensure a stack overflow occurs.
40347         * tests/test-c-stack.c (recurse): Likewise.
40348         Borrowed from libsigsegv.
40349
40350         c-stack: work around Irix sigaltstack bug
40351         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
40352         whether sigaltstack uses wrong end of stack_t (copied in part from
40353         libsigsegv).
40354         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
40355         Irix bug, without requiring an over-allocation.
40356         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
40357         bug.
40358
40359         fopen: document mingw bug on directories
40360         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
40361         not allowing a stream visiting a directory, even though reading
40362         from such a stream is not portable.
40363
40364 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40365
40366         * lib/poll.c: Rewrite.
40367         * modules/poll: Depend on alloca.
40368
40369 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40370
40371         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
40372         instead define prototypes for a full set of wrappers.  Ensure
40373         that Cygwin does not use the compatibility code, which is only
40374         for MinGW.
40375         * lib/winsock.c: New.
40376         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
40377         * modules/sys_socket: Add lib/winsock.c.
40378
40379         * modules/poll-tests: Add errno and perror.
40380         * tests/test-poll.c: Use ioctl, not ioctlsocket.
40381
40382 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
40383
40384         * tests/test-poll.c: Downgrade minimum needed Winsock version.
40385
40386 2008-09-23  Bruno Haible  <bruno@clisp.org>
40387
40388         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
40389         * doc/glibc-functions/*: Likewise.
40390
40391 2008-09-23  Simon Josefsson  <simon@josefsson.org>
40392
40393         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
40394         success.
40395
40396 2008-09-22  Eric Blake  <ebb9@byu.net>
40397             Bruno Haible  <bruno@clisp.org>
40398
40399         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
40400         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
40401         supply %A but mishandle pseudo-NaN.
40402         Reported by Simon Josefsson.
40403
40404 2008-09-21  Bruno Haible  <bruno@clisp.org>
40405
40406         * tests/test-lock.c (main): Tweak skip message.
40407         * tests/test-tls.c (main): Likewise.
40408
40409 2008-09-21  Bruno Haible  <bruno@clisp.org>
40410
40411         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
40412         whether 'struct sigaction' has sa_sigaction here...
40413         (gl_PREREQ_SIG_HANDLER_H): ... not here.
40414         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
40415
40416 2008-09-21  Bruno Haible  <bruno@clisp.org>
40417
40418         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
40419         section.
40420         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
40421         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
40422         the new section.
40423         (Support for obsolete systems lacking POSIX:2001): New section.
40424         (String handling <string.h>): Move strdup to the new section.
40425         Suggested by Simon Josefsson and Paolo Bonzini.
40426
40427 2008-09-21  Bruno Haible  <bruno@clisp.org>
40428
40429         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
40430         exponents in %e and %g results on 'long double'. Needed for mingw's
40431         improved *printf functions.
40432         * tests/test-vasprintf-posix.c (test_function): Likewise.
40433         * tests/test-snprintf-posix.h (test_function): Likewise.
40434         * tests/test-sprintf-posix.h (test_function): Likewise.
40435         Reported by Eric Blake.
40436
40437 2008-09-21  Bruno Haible  <bruno@clisp.org>
40438
40439         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
40440         * tests/test-sprintf-posix.h (test_function): Likewise.
40441
40442 2008-09-21  Bruno Haible  <bruno@clisp.org>
40443
40444         * modules/getpass (Depends-on): Add strdup-posix.
40445
40446         New module 'strdup-posix'.
40447         * modules/strdup-posix: New file.
40448         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
40449         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
40450         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40451         REPLACE_STRDUP.
40452         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
40453         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
40454         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40455         strdup-posix.
40456
40457         * modules/strdup (Depends-on): Remove malloc-posix.
40458
40459 2008-09-20  Bruno Haible  <bruno@clisp.org>
40460
40461         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
40462         Wildenhues.
40463
40464 2008-09-20  Bruno Haible  <bruno@clisp.org>
40465
40466         Ensure that wint_t gets defined on IRIX 5.3.
40467         * lib/wchar.in.h (wint_t): Define if not defined by the system.
40468         * lib/wctype.in.h (wint_t): Likewise.
40469         (__wctype_wint_t): Remove type.
40470         (isw*): Use wint_t instead of __wctype_wint_t.
40471         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
40472         * modules/wchar (Files): Add m4/wint_t.m4.
40473         (Makefile.am): Substitute HAVE_WINT_T.
40474         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
40475         * tests/test-wctype.c: Check that wint_t is defined.
40476         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
40477         * doc/posix-headers/wctype.texi: Likewise.
40478         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40479
40480 2008-09-18  Bruno Haible  <bruno@clisp.org>
40481
40482         * gnulib-tool (func_exit): Update comment.
40483
40484 2008-09-18  Simon Josefsson  <simon@josefsson.org>
40485
40486         * modules/getaddrinfo (Depends-on): Remove strdup, this module
40487         assumes strdup exists and does not depend on strdup to return
40488         ENOMEM on out of memory conditions.
40489
40490 2008-09-18  Bruno Haible  <bruno@clisp.org>
40491
40492         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
40493         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
40494         digits for the exponent.
40495
40496 2008-09-18  Jim Meyering  <meyering@redhat.com>
40497             Bruno Haible  <bruno@clisp.org>
40498
40499         * lib/vasnprintf.c (decimal_point_char): Define also if
40500         NEED_PRINTF_INFINITE_LONG_DOUBLE.
40501
40502 2008-09-16  Bruno Haible  <bruno@clisp.org>
40503         and Eric Blake  <ebb9@byu.net>
40504
40505         vasnprintf: support Irix 5.3
40506         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
40507         that mishandle long double infinity.
40508         Reported by Tom G. Christensen.
40509
40510 2008-09-16  Bruno Haible  <bruno@clisp.org>
40511
40512         * doc/glibc-functions/scandir.texi: Mention the function is missing on
40513         Solaris 9.
40514         * doc/glibc-functions/alphasort.texi: Likewise.
40515         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
40516
40517 2008-09-16  Jim Meyering  <meyering@redhat.com>
40518
40519         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
40520         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
40521         a umask modification leak out of a subshell.  Otherwise, the
40522         opensolaris /bin/sh would be accepted and thus cause unwarranted
40523         failures in the coreutils test suite.
40524
40525 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
40526
40527         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
40528         to succeed.
40529
40530 2008-09-16  Jim Meyering  <meyering@redhat.com>
40531
40532         avoid spurious test failure when library is built without ACL support
40533         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
40534         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
40535         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
40536         * tests/test-copy-acl.sh: Likewise.
40537
40538 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40539
40540         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
40541         based on character occurrence counts.
40542
40543 2008-09-15  Eric Blake  <ebb9@byu.net>
40544
40545         tests: avoid some compiler warnings
40546         * tests/test-memchr.c (main): Pass NULL indirectly.
40547         * tests/test-closein.c (main): Avoid unused variable.
40548
40549 2008-09-15  Bruno Haible  <bruno@clisp.org>
40550
40551         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
40552         are missing on OpenBSD 4.0 individually.
40553         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40554
40555 2008-09-15  Bruno Haible  <bruno@clisp.org>
40556
40557         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
40558         * doc/posix-functions/strerror.texi: Mention also Cygwin.
40559         * doc/posix-functions/perror.texi: Likewise.
40560         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
40561         is missing.
40562         Reported by Eric Blake.
40563
40564         * lib/errno.in.h: Use replacement values >= 2000.
40565         Reported by Eric Blake.
40566
40567 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40568
40569         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
40570         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
40571         limit.
40572         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
40573         compareseq was aborted.
40574
40575 2008-09-14  Bruno Haible  <bruno@clisp.org>
40576
40577         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
40578         yvec_edit_count.
40579         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
40580         (fstrcmp_bounded): Simplify result computation accordingly.
40581
40582 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40583
40584         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
40585         (fstrcmp): Define in terms of fstrcmp_bounded.
40586         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
40587         lower_bound argument.
40588         Return quickly if the result is certainly < lower_bound.
40589         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
40590
40591 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40592
40593         * lib/diffseq.h (EARLY_ABORT): New macro.
40594         (compareseq): Change return type to bool. Return true when EARLY_ABORT
40595         evaluates to true.
40596
40597 2008-09-14  Bruno Haible  <bruno@clisp.org>
40598
40599         * modules/perror-tests: New file.
40600         * tests/test-perror.sh: New file.
40601         * tests/test-perror.c: New file.
40602
40603         New module 'perror'.
40604         * lib/stdio.in.h (perror): New declaration.
40605         * lib/perror.c: New file.
40606         * m4/perror.m4: New file.
40607         * modules/perror: New file.
40608         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
40609         * doc/posix-functions/perror.texi: Mention the perror module.
40610         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
40611         REPLACE_PERROR.
40612         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
40613         REPLACE_PERROR.
40614
40615 2008-09-14  Bruno Haible  <bruno@clisp.org>
40616
40617         * modules/stdio (Makefile.am): Reorder to match the order in
40618         lib/stdio.in.h.
40619         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40620
40621 2008-09-13  Bruno Haible  <bruno@clisp.org>
40622
40623         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
40624
40625 2008-09-13  Bruno Haible  <bruno@clisp.org>
40626
40627         Extend strerror to cover the added errno values.
40628         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
40629         (rpl_strerror): Provide error messages for the added errno values and
40630         for the WSA* values.
40631         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
40632         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
40633         strerror.
40634         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
40635         * modules/strerror (Depends-on): Add errno.
40636         * doc/posix-functions/strerror.texi: Document the change.
40637         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
40638         and EOVERFLOW.
40639
40640 2008-09-13  Bruno Haible  <bruno@clisp.org>
40641
40642         * modules/EOVERFLOW: Remove file.
40643         * m4/eoverflow.m4: Remove file.
40644         * modules/EOVERFLOW-tests: Remove file.
40645         * tests/test-EOVERFLOW.c: Remove file.
40646         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
40647         * modules/ftell (Depends-on): Likewise.
40648         * modules/getdelim (Depends-on): Likewise.
40649         * modules/getugroups (Depends-on): Likewise.
40650         * modules/poll (Depends-on): Likewise.
40651         * modules/snprintf (Depends-on): Likewise.
40652         * modules/sprintf-posix (Depends-on): Likewise.
40653         * modules/vasnprintf (Depends-on): Likewise.
40654         * modules/vasprintf (Depends-on): Likewise.
40655         * modules/vfprintf-posix (Depends-on): Likewise.
40656         * modules/vsnprintf (Depends-on): Likewise.
40657         * modules/vsprintf-posix (Depends-on): Likewise.
40658         * modules/xvasprintf (Depends-on): Likewise.
40659         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40660         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
40661         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
40662         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
40663         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40664         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
40665         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
40666         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
40667         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40668         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
40669         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
40670         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
40671         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40672         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
40673         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
40674         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
40675         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40676         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
40677         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
40678         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
40679         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40680         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
40681         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
40682         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
40683         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
40684         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40685         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
40686         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
40687         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
40688         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
40689         * MODULES.html.sh: Remove EOVERFLOW.
40690         * NEWS: Mention the change.
40691
40692 2008-09-13  Bruno Haible  <bruno@clisp.org>
40693
40694         * modules/errno-tests: New file.
40695         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
40696
40697         * lib/errno.in.h: New file.
40698         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
40699         * modules/errno: New file.
40700         * doc/posix-headers/errno.texi: Update documentation.
40701         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
40702
40703 2008-09-13  Bruno Haible  <bruno@clisp.org>
40704
40705         * tests/test-poll.c: Use #if for native Windows, rather than testing
40706         __MSVCRT__.
40707
40708 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40709             Bruno Haible  <bruno@clisp.org>
40710
40711         * lib/glob.c: Don't include <pwd.h> on native Windows.
40712         (WINDOWS32): New macro.
40713         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
40714
40715 2008-09-13  Bruno Haible  <bruno@clisp.org>
40716
40717         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
40718         (ETIMEDOUT): Remove macro.
40719         (glthread_cond_timedwait_multithreaded): New declaration.
40720         (glthread_cond_timedwait): Use it.
40721         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
40722         (glthread_cond_timedwait_multithreaded): New function.
40723
40724 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40725
40726         * modules/poll-tests: Do not check for io.h.
40727         * tests/test-poll.c: Check for __MSVCRT__ instead.
40728
40729 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40730
40731         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
40732         * modules/poll-tests: Add inet_pton, stdbool, sockets.
40733         * tests/test-poll.c: Use them.  Use _pipe on Windows.
40734
40735 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
40736
40737         * modules/poll-tests: New.
40738         * tests/test-poll.c: New.
40739
40740 2008-09-12  Eric Blake  <ebb9@byu.net>
40741
40742         frexp: test for NetBSD failure on -0.0
40743         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
40744         not all, bugs from NetBSD 3.0 have been fixed.
40745         * doc/posix-functions/frexp.texi (frexp): Document bug.
40746         Reported by Thomas Klausner.
40747
40748         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
40749         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
40750         literal -0.0.
40751         Reported by Jonathan C. Patschke <jp@centtech.com>.
40752
40753 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40754
40755         * lib/glthread/cond.h: Use dummy implementation also if
40756         USE_WIN32_THREADS.
40757
40758 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40759
40760         * modules/fnmatch-posix (License): Change to LGPLv2+.
40761         * modules/fnmatch-gnu (License): Likewise.
40762
40763 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40764
40765         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
40766
40767 2008-09-11  Jim Meyering  <meyering@redhat.com>
40768
40769         * users.txt: Add gtk-vnc.
40770
40771 2008-09-08  Simon Josefsson  <simon@josefsson.org>
40772
40773         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
40774         rotate amounts.
40775
40776         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
40777         required for 16-bit and 8-bit rotates.
40778         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
40779         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
40780         UINT8_MAX instead of hard-coded constants.
40781         Suggested by Paul Eggert.
40782
40783 2008-09-07  Bruno Haible  <bruno@clisp.org>
40784
40785         * tests/test-striconveh.c (main): Check behaviour when converting from
40786         UTF-7.
40787
40788         Make striconveh work better with stateful encodings.
40789         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
40790         that iconv does not increment the inptr when returning -1/EINVAL.
40791
40792 2008-09-07  Bruno Haible  <bruno@clisp.org>
40793
40794         * build-aux/config.rpath: Update according to libtool-2.2.6.
40795         * build-aux/config.libpath: Likewise.
40796
40797 2008-09-06  Bruno Haible  <bruno@clisp.org>
40798
40799         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
40800         * lib/freadptr.c (freadptr): Likewise.
40801         * lib/freadseek.c (freadptrinc): Likewise.
40802         Reported by Simon Josefsson.
40803
40804 2008-09-06  Bruno Haible  <bruno@clisp.org>
40805
40806         * modules/freadptr (License): Change to LGPLv2+.
40807         * modules/freadseek (License): Likewise.
40808         Suggested by Eric Blake.
40809
40810         * modules/memchr2 (License): Change to LGPLv2+.
40811         Approved by Eric Blake.
40812
40813 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40814             Bruno Haible  <bruno@clisp.org>
40815
40816         Make gnulib-tool work with native 'sed' on AIX.
40817         * gnulib-tool (sed_noop): New variable.
40818         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
40819         func_add_or_update, func_create_testdir): Use it to initialize sed
40820         script variables.
40821         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40822
40823 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
40824             Bruno Haible  <bruno@clisp.org>
40825
40826         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
40827         also works after #include directives.
40828
40829 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
40830
40831         getdate.y: reject an out-of-range timezone value
40832         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
40833         the range [-24...+24].  When specified with only one or two digits,
40834         * tests/test-getdate.c: Tests for the fix.
40835         * doc/getdate.texi: Document this change.
40836
40837 2008-09-03  Bruno Haible  <bruno@clisp.org>
40838
40839         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
40840
40841 2008-09-02  Simon Josefsson  <simon@josefsson.org>
40842
40843         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
40844         <bruce.korb@gmail.com> with ideas from Ben Pfaff
40845         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
40846         Blake <ebb9@byu.net>.
40847
40848         * tests/test-bitrotate.c: Add more test vectors.
40849
40850 2008-09-02  Eric Blake  <ebb9@byu.net>
40851
40852         vasnprintf-posix: handle large precision via %.*d
40853         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
40854         when handling it ourselves.
40855         * tests/test-vasnprintf-posix.c (test_function): Add test.
40856         * tests/test-snprintf-posix.h (test_function): Likewise.
40857         * tests/test-sprintf-posix.h (test_function): Likewise.
40858         * tests/test-vasprintf-posix.c (test_function): Likewise.
40859         Reported by Alain Guibert.
40860
40861 2008-09-01  Eric Blake  <ebb9@byu.net>
40862
40863         c-stack: make configure-time check more robust
40864         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
40865         successful sigaction call.
40866         Reported by Tom G. Christensen.
40867
40868 2008-09-01  Bruno Haible  <bruno@clisp.org>
40869
40870         New module 'findprog-lgpl'.
40871         * modules/findprog-lgpl: New file.
40872         * lib/findprog-lgpl.c: New file.
40873         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
40874         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
40875         to decide whether to use strdup or xstrdup, concatenated_filename or
40876         xconcatenated_filename.
40877
40878 2008-09-01  Bruno Haible  <bruno@clisp.org>
40879
40880         Split module 'concat-filename' into 'concat-filename' (LGPL) and
40881         'xconcat-filename' (GPL).
40882         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
40883         (License): Change to LGPLv2+.
40884         * modules/xconcat-filename: New file.
40885         * lib/concat-filename.h (concatenated_filename): Change specification.
40886         (xconcatenated_filename): New declaration.
40887         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
40888         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
40889         memory situations.
40890         * lib/xconcat-filename.c: New file.
40891         * NEWS: Mention the change.
40892         * lib/findprog.c: Include concat-filename.h, not filename.h.
40893         (find_in_path): Use xconcatenated_filename instead of
40894         concatenated_filename.
40895         * lib/javacomp.c: Include concat-filename.h, not filename.h.
40896         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
40897         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
40898         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
40899         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
40900         instead of concatenated_filename.
40901         * lib/javaexec.c: Include concat-filename.h, not filename.h.
40902         (execute_java_class): Use xconcatenated_filename instead of
40903         concatenated_filename.
40904         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
40905         * modules/javacomp (Depends-on): Likewise.
40906         * modules/javaexec (Depends-on): Likewise.
40907
40908 2008-09-01  Bruno Haible  <bruno@clisp.org>
40909
40910         Split module 'filename' into 'filename' and 'concat-filename'.
40911         * modules/filename: Keep only lib/filename.h.
40912         (License): Change to LGPLv2+.
40913         * modules/concat-filename: New file, extracted from modules/filename.
40914         * lib/filename.h (concatenated_filename): Remove declaration.
40915         * lib/concat-filename.h: New file, extracted from lib/filename.h.
40916         * lib/concat-filename.c: Include concat-filename.h.
40917         * NEWS: Mention the change.
40918
40919 2008-09-01  Simon Josefsson  <simon@josefsson.org>
40920
40921         * lib/bitrotate.h (rotl8, rotr8): Add.
40922
40923         * modules/bitrotate (configure.ac): Need
40924         AC_REQUIRE([AC_C_INLINE]).
40925         (Description): Mention stdint.h.  Reported by Bruno Haible
40926         <bruno@clisp.org>.
40927
40928         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
40929         Paolo Bonzini <bonzini@gnu.org>.
40930
40931 2008-08-31  Bruno Haible  <bruno@clisp.org>
40932
40933         Assume Solaris specific bi-arch conventions on Solaris systems.
40934         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
40935         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
40936         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
40937         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
40938         like acl_libdirstem.
40939         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
40940         acl_libdirstem.
40941         * NEWS: Mention the change.
40942         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
40943
40944 2008-08-31  Jim Meyering  <meyering@redhat.com>
40945
40946         * lib/strftime.h: Add comments describing the two added arguments.
40947
40948         remove duplicate #include directives
40949         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
40950         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
40951
40952 2008-08-31  Bruno Haible  <bruno@clisp.org>
40953
40954         New module 'sigpipe-die'.
40955         * modules/sigpipe-die: New file.
40956         * lib/sigpipe-die.h: New file.
40957         * lib/sigpipe-die.c: New file.
40958         * MODULES.html.sh (Signal handling): Add sigpipe-die.
40959
40960 2008-08-31  Bruno Haible  <bruno@clisp.org>
40961
40962         Don't override previously installed signal handlers.
40963         * lib/fatal-signal.c (saved_sigactions): New variable.
40964         (uninstall_handlers): Reset the signal to the saved handler, not
40965         to SIG_DFL (except when ignored).
40966         (install_handlers): Save the previous handlers.
40967
40968 2008-08-30  Bruno Haible  <bruno@clisp.org>
40969
40970         * gnulib-tool (func_reset_sigpipe): New function.
40971         (func_get_automake_snippet, func_modules_transitive_closure,
40972         func_import): Invoke it before a join command that reads from stdin,
40973         to avoid "echo: write error: Broken pipe" error messages on stderr.
40974         Reported by Sam Steingold <sds@gnu.org>.
40975
40976 2008-08-30  Bruno Haible  <bruno@clisp.org>
40977
40978         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
40979         Code copied from m4/open.m4.
40980         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
40981         access and the filename ends in a slash. Code copied from lib/open.c.
40982         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
40983         * tests/test-fopen.c (main): Check against bug with trailing slash.
40984
40985 2008-08-29  Bruno Haible  <bruno@clisp.org>
40986
40987         Avoid some "gcc -pedantic" warnings.
40988         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
40989         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
40990         * lib/dirent.in.h: Likewise.
40991         * lib/fcntl.in.h: Likewise.
40992         * lib/float.in.h: Likewise.
40993         * lib/iconv.in.h: Likewise.
40994         * lib/inttypes.in.h: Likewise.
40995         * lib/locale.in.h: Likewise.
40996         * lib/math.in.h: Likewise.
40997         * lib/netinet_in.in.h: Likewise.
40998         * lib/search.in.h: Likewise.
40999         * lib/signal.in.h: Likewise.
41000         * lib/stdarg.in.h: Likewise.
41001         * lib/stdint.in.h: Likewise.
41002         * lib/stdio.in.h: Likewise.
41003         * lib/stdlib.in.h: Likewise.
41004         * lib/string.in.h: Likewise.
41005         * lib/strings.in.h: Likewise.
41006         * lib/sys_select.in.h: Likewise.
41007         * lib/sys_socket.in.h: Likewise.
41008         * lib/sys_stat.in.h: Likewise.
41009         * lib/sys_time.in.h: Likewise.
41010         * lib/sysexits.in.h: Likewise.
41011         * lib/time.in.h: Likewise.
41012         * lib/unistd.in.h: Likewise.
41013         * lib/wchar.in.h: Likewise.
41014         * lib/wctype.in.h: Likewise.
41015         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
41016         * modules/fchdir (Makefile.am): Likewise.
41017         * modules/fcntl (Makefile.am): Likewise.
41018         * modules/float (Makefile.am): Likewise.
41019         * modules/iconv_open (Makefile.am): Likewise.
41020         * modules/inttypes (Makefile.am): Likewise.
41021         * modules/locale (Makefile.am): Likewise.
41022         * modules/math (Makefile.am): Likewise.
41023         * modules/netinet_in (Makefile.am): Likewise.
41024         * modules/search (Makefile.am): Likewise.
41025         * modules/signal (Makefile.am): Likewise.
41026         * modules/stdarg (Makefile.am): Likewise.
41027         * modules/stdint (Makefile.am): Likewise.
41028         * modules/stdio (Makefile.am): Likewise.
41029         * modules/stdlib (Makefile.am): Likewise.
41030         * modules/string (Makefile.am): Likewise.
41031         * modules/strings (Makefile.am): Likewise.
41032         * modules/sys_select (Makefile.am): Likewise.
41033         * modules/sys_socket (Makefile.am): Likewise.
41034         * modules/sys_stat (Makefile.am): Likewise.
41035         * modules/sys_time (Makefile.am): Likewise.
41036         * modules/sysexits (Makefile.am): Likewise.
41037         * modules/time (Makefile.am): Likewise.
41038         * modules/unistd (Makefile.am): Likewise.
41039         * modules/wchar (Makefile.am): Likewise.
41040         * modules/wctype (Makefile.am): Likewise.
41041         Reported by Reuben Thomas <rrt@sc3d.org>.
41042
41043 2008-08-29  Bruno Haible  <bruno@clisp.org>
41044
41045         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
41046         any more.
41047
41048 2008-08-29  Simon Josefsson  <simon@josefsson.org>
41049
41050         * MODULES.html.sh (Misc): Add bitrotate.
41051
41052         * modules/bitrotate: New file.
41053
41054         * lib/bitrotate.h: New file.
41055
41056         * modules/bitrotate-tests: New file.
41057
41058         * tests/test-bitrotate.c: New file.
41059
41060         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
41061         on the bitrotate module.
41062
41063         * lib/arctwo.c: Use new bitrotate module.
41064
41065 2008-08-29  Jim Meyering  <meyering@redhat.com>
41066
41067         bootstrap: merge changes from coreutils
41068         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
41069         of copied files.  Remove a kludge, now that this is fixed.
41070         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
41071         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
41072         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
41073
41074 2008-08-29  Bruno Haible  <bruno@clisp.org>
41075
41076         * MODULES.html.sh: Remove --cvs-urls option.
41077
41078 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
41079
41080         maint.mk: adjust to file name change
41081         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
41082
41083 2008-08-28  Jim Meyering  <meyering@redhat.com>
41084
41085         * modules/getndelim2 (License): Relicense to LGPLv2+.
41086         Approved by Richard Stallman for the version of 1995, and by
41087         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
41088
41089 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
41090
41091         * lib/getdelim.c (flockfile, funlockfile): Make all of them
41092         dummy if one is not available.  Do not touch them if
41093         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
41094         (getc_maybe_unlocked): New.
41095         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
41096
41097 2008-08-26  Eric Blake  <ebb9@byu.net>
41098
41099         doc/INSTALL: resync from autoconf
41100         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
41101         (INSTALL_PRELUDE): Delete; this is done more efficiently by
41102         moving...
41103         * install.texi [!autoconf]: ...here.  Resync from autoconf.
41104         * INSTALL: Regenerate.
41105         * INSTALL.ISO: New file.
41106         * INSTALL.UTF-8: Likewise.
41107
41108 2008-08-26  Jim Meyering  <meyering@redhat.com>
41109
41110         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
41111         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
41112         these definitions conditional, so that they may be overridden, too.
41113
41114 2008-08-26  Bruno Haible  <bruno@clisp.org>
41115
41116         Generate INSTALL file variants with prettier quotes.
41117         * doc/Makefile (INSTALL_PRELUDE): New macro.
41118         (INSTALL): Use it.
41119         (INSTALL.ISO, INSTALL.UTF-8): New rules.
41120
41121 2008-08-26  Bruno Haible  <bruno@clisp.org>
41122
41123         Run makeinfo in an English locale.
41124         * doc/Makefile (MAKEINFO): New variable.
41125
41126 2008-08-26  Bruno Haible  <bruno@clisp.org>
41127
41128         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
41129         Suggested by Eric Blake.
41130
41131 2008-08-25  Bruno Haible  <bruno@clisp.org>
41132
41133         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
41134
41135 2008-08-25  Eric Blake  <ebb9@byu.net>
41136
41137         c-stack: test that stack overflow can be caught
41138         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
41139         that platform allows handling stack overflow; at least OS/2 EMX
41140         has sigaltstack, but crashes before transferring control to
41141         handler on stack overflow.
41142         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
41143         check for HAVE_STACK_OVERFLOW_HANDLING.
41144         Reported by Elbert Pol.
41145
41146 2008-08-25  Bruno Haible  <bruno@clisp.org>
41147
41148         * doc/posix-functions/strftime.texi: Fix description of strftime
41149         module.
41150
41151 2008-08-24  Bruno Haible  <bruno@clisp.org>
41152
41153         * tests/uniwidth/test-uc_width2.c: New file.
41154         * tests/uniwidth/test-uc_width2.sh: New file.
41155         * modules/uniwidth/width-tests (Files): Add the new files.
41156         (TESTS): Add uniwidth/test-uc_width2.sh.
41157         (TESTS_ENVIRONMENT): New variable.
41158         (check_PROGRAMS): Add test-uc_width2.
41159         (test_uc_width2_SOURCES): New variable.
41160
41161         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
41162         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
41163         not 0x00AB.
41164         Reported by Alexander V. Lukyanov <lav@netis.ru>.
41165
41166 2008-08-22  Eric Blake  <ebb9@byu.net>
41167
41168         test-lock, test-tls: mention why a test is skipped
41169         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
41170         skipped.
41171         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
41172
41173         count-one-bits: relax license
41174         * modules/count-one-bits (License): Relicense to LGPLv2+.
41175         Suggested by Ludovic Courtès, approved by Ben Pfaff.
41176
41177 2008-08-22  Andreas Schwab  <schwab@suse.de>
41178
41179         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
41180         Remove spurious space in assignment.
41181
41182 2008-08-21  Simon Josefsson  <simon@josefsson.org>
41183
41184         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
41185         Paul Eggert <eggert@CS.UCLA.EDU>.
41186
41187 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
41188
41189         * modules/gettext: Add m4/threadlib.m4.
41190
41191 2008-08-19  Eric Blake  <ebb9@byu.net>
41192
41193         test-c-stack: fix compilation failure on FreeBSD 5.0
41194         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
41195         headers before <sys/resource.h>.
41196         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
41197         the bug.
41198         Reported by Nelson H. F. Beebe.
41199
41200         strverscmp: migrate from "strverscmp.h" to <string.h>
41201         * modules/string (Makefile.am): Add new hooks.
41202         * modules/strverscmp (Files): Remove strverscmp.h.
41203         (Depends-on): Add string.
41204         (configure.ac): Add indicator.
41205         (Include): Mention new header.
41206         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
41207         defaults.
41208         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
41209         results.
41210         * lib/strverscmp.h: Delete.
41211         * lib/string.in.h (strverscmp): Provide declaration, when needed.
41212         * tests/test-strverscmp.c (includes): Adjust client.
41213         * lib/check-version.c (includes): Likewise.
41214         * NEWS: Document the change.
41215
41216         strverscmp: add unit test
41217         * modules/strverscmp-tests: New file.
41218         * tests/test-strverscmp.c: Likewise.
41219
41220 2008-08-19  Simon Josefsson  <simon@josefsson.org>
41221
41222         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
41223         regarding Windows crypto stuff, from Mono.
41224
41225 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
41226
41227         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
41228         if present, for intel RND.  Return error on failures.
41229
41230 2008-08-18  Ben Pfaff  <blp@gnu.org>
41231
41232         gitlog-to-changelog: give better diagnostic for failed pipe-open
41233         * build-aux/gitlog-to-changelog: Improve error message: suggest
41234         that the version of Git may be too old.
41235
41236 2008-08-18  Simon Josefsson  <simon@josefsson.org>
41237
41238         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
41239         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
41240
41241 2008-08-18  Bruno Haible  <bruno@clisp.org>
41242
41243         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
41244         pthread_in_use().
41245
41246 2008-08-18  Bruno Haible  <bruno@clisp.org>
41247
41248         * lib/glthread/threadlib.c: Include <pthread.h>.
41249
41250 2008-08-18  Bruno Haible  <bruno@clisp.org>
41251
41252         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
41253         glthread_recursive_lock_* macros.
41254         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
41255         Fix syntax error.
41256
41257 2008-08-18  Bruno Haible  <bruno@clisp.org>
41258
41259         * lib/glthread/thread.c: Avoid forcing a context switch right after
41260         thread creation.
41261
41262 2008-08-17  Bruno Haible  <bruno@clisp.org>
41263
41264         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
41265         * lib/glthread/thread.h: Provide Win32 specific implementation.
41266         * modules/thread (Files): Add lib/glthread/thread.c.
41267         (Depends-on): Add lock.
41268         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
41269
41270 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41271
41272         New module 'yield'.
41273         * modules/yield: New file.
41274         * lib/glthread/yield.h: New file.
41275         * m4/yield.m4: New file.
41276         * MODULES.html.sh (Multithreading): Add yield.
41277
41278 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41279
41280         New module 'thread'.
41281         * modules/thread: New file.
41282         * lib/glthread/thread.h: New file.
41283         * m4/thread.m4: New file.
41284         * MODULES.html.sh (Multithreading): Add thread.
41285
41286 2008-08-17  Bruno Haible  <bruno@clisp.org>
41287
41288         * lib/glthread/lock.h: Include <stdlib.h> always.
41289         * lib/glthread/tls.h: Likewise.
41290         * lib/glthread/cond.h: Likewise.
41291
41292 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41293
41294         New module 'cond'.
41295         * modules/cond: New file.
41296         * lib/glthread/cond.h: New file.
41297         * lib/glthread/cond.c: New file.
41298         * m4/cond.m4: New file.
41299         * MODULES.html.sh (Multithreading): Add cond.
41300
41301 2008-08-16  Eric Blake  <ebb9@byu.net>
41302
41303         c-stack: fix regression on Irix 5.3 from 2008-06-21
41304         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
41305         sa_sigaction...
41306         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
41307         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
41308         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
41309         * modules/signal (Makefile.am): Use the value.
41310         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
41311         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
41312         * doc/posix-headers/signal.texi (signal.h): Document this
41313         portability issue.
41314         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
41315         Reported by Tom G. Christensen.
41316
41317 2008-08-17  Bruno Haible  <bruno@clisp.org>
41318
41319         New module 'threadlib'.
41320         * modules/threadlib: New file.
41321         * lib/glthread/threadlib.c: New file, extracted from
41322         lib/glthread/lock.c.
41323         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
41324         functions.
41325         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
41326         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
41327         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
41328         macros.
41329         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
41330         (gl_DISABLE_THREADS): Remove macro.
41331         * modules/lock (Files): Remove build-aux/config.rpath.
41332         (Depends-on): Remove havelib. Add threadlib.
41333         (configure.ac-early): Remove section.
41334         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
41335         * modules/tls (Depends-on): Remove lock. Add threadlib.
41336         (Link): New section, copied from threadlib.
41337         * MODULES.html.sh (Multithreading): Add threadlib.
41338
41339 2008-08-14  Bruno Haible  <bruno@clisp.org>
41340
41341         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
41342         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
41343         glthread_rwlock_unlock, glthread_rwlock_destroy,
41344         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
41345         glthread_recursive_lock_destroy): Define as macros always.
41346         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
41347         glthread_lock_lock.
41348         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
41349         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
41350         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
41351         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
41352         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
41353         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
41354         (glthread_recursive_lock_lock_func): Renamed from
41355         glthread_recursive_lock_lock.
41356         (glthread_recursive_lock_unlock_func): Renamed from
41357         glthread_recursive_lock_unlock.
41358         (glthread_recursive_lock_destroy_func): Renamed from
41359         glthread_recursive_lock_destroy.
41360
41361 2008-08-14  Bruno Haible  <bruno@clisp.org>
41362
41363         * lib/glthread/lock.h: Renamed from lib/lock.h.
41364         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
41365         * lib/glthread/tls.h: Renamed from lib/tls.h.
41366         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
41367         * lib/fstrcmp.c: Update includes.
41368         * lib/strsignal.c: Update includes.
41369         * modules/lock (Files, Makefile.am): Update.
41370         (Include): Change to "glthread/lock.h".
41371         * modules/tls (Files, Makefile.am): Update.
41372         (Include): Change to "glthread/tls.h".
41373         * tests/test-lock.c: Update includes.
41374         * tests/test-tls.c: Update includes.
41375         * NEWS: Mention the renamed header files.
41376
41377 2008-08-11  Jim Meyering  <meyering@redhat.com>
41378
41379         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
41380
41381 2008-08-11  Eric Blake  <ebb9@byu.net>
41382
41383         test-c-stack: avoid C99-ism
41384         * tests/test-c-stack.c (main): Fix whitespace, move declaration
41385         before statement.
41386         Reported by Alain Guibert.
41387
41388 2008-08-10  Jim Meyering  <meyering@redhat.com>
41389
41390         ensure that return value of uinttostr et al are not ignored
41391         * lib/inttostr.h (__GNUC_PREREQ): Define.
41392         (__attribute_warn_unused_result__): Define.
41393         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
41394
41395 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
41396
41397         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
41398         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
41399
41400 2008-08-07  Jim Meyering  <meyering@redhat.com>
41401
41402         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
41403
41404         * modules/mkstemp (License): Relicense under LGPLv2+.
41405         * modules/tempname (License): Likewise.
41406
41407 2008-08-06  Bruno Haible  <bruno@clisp.org>
41408
41409         * lib/poll.c (poll): Further micro-optimization.
41410
41411 2008-08-06  Jim Meyering  <meyering@redhat.com>
41412
41413         inet_pton.c: use locale-independent tolower
41414         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
41415         (inet_pton6): Use c_tolower rather than tolower.
41416         * modules/inet_pton (Depends-on): Add c-ctype.
41417
41418 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
41419
41420         * lib/poll.c (poll): Avoid division when timeout is 0, cache
41421         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
41422
41423 2008-08-06  Jim Meyering  <meyering@redhat.com>
41424
41425         * modules/inet_pton (License): Relicense under LGPLv2+.
41426
41427 2008-08-03  Bruno Haible  <bruno@clisp.org>
41428
41429         Additional non-aborting API for lock and tls.
41430         * lib/lock.h: Include <errno.h>.
41431         (glthread_lock_init): New macro/function.
41432         (gl_lock_init): Define as wrapper around glthread_lock_init.
41433         (glthread_lock_lock): New macro/function.
41434         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
41435         (glthread_lock_unlock): New macro/function.
41436         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
41437         (glthread_lock_destroy): New macro/function.
41438         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
41439         (glthread_rwlock_init): New macro/function.
41440         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
41441         (glthread_rwlock_rdlock): New macro/function.
41442         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
41443         (glthread_rwlock_wrlock): New macro/function.
41444         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
41445         (glthread_rwlock_unlock): New macro/function.
41446         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
41447         (glthread_rwlock_destroy): New macro/function.
41448         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
41449         (glthread_recursive_lock_init): New macro/function.
41450         (gl_recursive_lock_init): Define as wrapper around
41451         glthread_recursive_lock_init.
41452         (glthread_recursive_lock_lock): New macro/function.
41453         (gl_recursive_lock_lock): Define as wrapper around
41454         glthread_recursive_lock_lock.
41455         (glthread_recursive_lock_unlock): New macro/function.
41456         (gl_recursive_lock_unlock): Define as wrapper around
41457         glthread_recursive_lock_unlock.
41458         (glthread_recursive_lock_destroy): New macro/function.
41459         (gl_recursive_lock_destroy): Define as wrapper around
41460         glthread_recursive_lock_destroy.
41461         (glthread_once): New macro/function.
41462         (gl_once): Define as wrapper around glthread_once.
41463         Update function declarations.
41464         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
41465         glthread_rwlock_init. Return error code.
41466         (glthread_rwlock_rdlock_multithreaded): Renamed from
41467         glthread_rwlock_rdlock. Return error code.
41468         (glthread_rwlock_wrlock_multithreaded): Renamed from
41469         glthread_rwlock_wrlock. Return error code.
41470         (glthread_rwlock_unlock_multithreaded): Renamed from
41471         glthread_rwlock_unlock. Return error code.
41472         (glthread_rwlock_destroy_multithreaded): Renamed from
41473         glthread_rwlock_destroy. Return error code.
41474         (glthread_recursive_lock_init_multithreaded): Renamed from
41475         glthread_recursive_lock_init. Return error code.
41476         (glthread_recursive_lock_lock_multithreaded): Renamed from
41477         glthread_recursive_lock_lock. Return error code.
41478         (glthread_recursive_lock_unlock_multithreaded): Renamed from
41479         glthread_recursive_lock_unlock. Return error code.
41480         (glthread_recursive_lock_destroy_multithreaded): Renamed from
41481         glthread_recursive_lock_destroy. Return error code.
41482         (glthread_once_call): Make static.
41483         (glthread_once_multithreaded): Renamed from glthread_once.
41484         * lib/tls.h: Include <errno.h>.
41485         (glthread_tls_key_init): New macro/function.
41486         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
41487         (glthread_tls_set): New macro/function.
41488         (gl_tls_set): Define as wrapper around glthread_tls_set.
41489         (glthread_tls_key_destroy): New macro/function.
41490         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
41491         Update function declarations.
41492         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
41493         glthread_tls_get.
41494         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41495
41496 2008-08-04  Eric Blake  <ebb9@byu.net>
41497
41498         gnumakefile: use space, not TAB, outside of targets
41499         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
41500
41501 2008-08-02  Jim Meyering  <meyering@redhat.com>
41502
41503         getdate.y: avoid locale-dependent date parsing failure
41504         In Turkish locales, getdate would fail to recognize keywords
41505         containing a lowercase "i".  The solution is not to rely on
41506         locale-sensitive case-conversion.
41507         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
41508         (lookup_word): Use c_toupper in place of toupper.
41509         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
41510         Reported by Vefa Bicakci <bicave@superonline.com> in
41511         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
41512         * modules/getdate (Depends-on): Add c-ctype.
41513
41514 2008-08-02  Bruno Haible  <bruno@clisp.org>
41515
41516         * gnulib-tool (func_import): When updating or creating a .gitignore
41517         file, prepend each added line with a slash, and ignore leading slashes
41518         from the existing lines.
41519         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
41520
41521 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41522
41523         Portability fix for GNU make 3.79.1.
41524         * top/GNUmakefile: Avoid 'else COND', which older GNU make
41525         versions do not understand.
41526
41527 2008-08-01  Bruno Haible  <bruno@clisp.org>
41528
41529         Work around bug of HP-UX 10.20 cc with -0.0 literal.
41530         * tests/test-isnanf.h (zero): New variable.
41531         (main): Avoid literal -0.0f.
41532         * tests/test-isnand.h (zero): New variable.
41533         (main): Avoid literal -0.0.
41534         * tests/test-isnanl.h (zero): New variable.
41535         (main): Avoid literal -0.0L.
41536         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
41537         (test_float, test_double, test_long_double): Avoid literals -0.0f,
41538         -0.0, -0.0L.
41539         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
41540         (test_signbitd): Avoid literal -0.0.
41541         (test_signbitl): Avoid literal -0.0L.
41542         * tests/test-ceilf1.c (zero): New variable.
41543         (main): Avoid literal -0.0f.
41544         * tests/test-ceill.c (zero): New variable.
41545         (main): Avoid literal -0.0L.
41546         * tests/test-floorf1.c (zero): New variable.
41547         (main): Avoid literal -0.0f.
41548         * tests/test-floorl.c (zero): New variable.
41549         (main): Avoid literal -0.0L.
41550         * tests/test-roundf1.c (zero): New variable.
41551         (main): Avoid literal -0.0f.
41552         * tests/test-round1.c (zero): New variable.
41553         (main): Avoid literal -0.0.
41554         * tests/test-roundl.c (zero): New variable.
41555         (main): Avoid literal -0.0L.
41556         * tests/test-truncf1.c (zero): New variable.
41557         (main): Avoid literal -0.0f.
41558         * tests/test-trunc1.c (zero): New variable.
41559         (main): Avoid literal -0.0.
41560         * tests/test-truncl.c (zero): New variable.
41561         (main): Avoid literal -0.0L.
41562         * tests/test-frexp.c (zero): New variable.
41563         (main): Avoid literal -0.0.
41564         * tests/test-frexpl.c (zero): New variable.
41565         (main): Avoid literal -0.0L.
41566         * tests/test-ldexpl.c (zero): New variable.
41567         (main): Avoid literal -0.0L.
41568         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
41569         (zerod, zerol): New variables.
41570         (test_function): Avoid literals -0.0, -0.0L.
41571         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
41572         (zerod, zerol): New variables.
41573         (test_function): Avoid literals -0.0, -0.0L.
41574         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
41575         (zerod, zerol): New variables.
41576         (test_function): Avoid literals -0.0, -0.0L.
41577         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
41578         (zerod, zerol): New variables.
41579         (test_function): Avoid literals -0.0, -0.0L.
41580         * tests/test-strtod.c (zero): New variable.
41581         (main): Avoid literal -0.0.
41582         Reported by Jonathan C. Patschke <jp@centtech.com>.
41583
41584 2008-07-31  Jim Meyering  <meyering@redhat.com>
41585
41586         sha256.h: correct definition of SHA224_DIGEST_SIZE
41587         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
41588         Reported by Paulie Pena IV <paulie4@gmail.com>.
41589         Define as 224 / 8, rather than as a literal.
41590         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
41591         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
41592         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
41593
41594 2008-07-31  Bruno Haible  <bruno@clisp.org>
41595
41596         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
41597         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
41598         Reported by Jonathan Patschke <jp@centtech.com>.
41599
41600 2008-07-31  Bruno Haible  <bruno@clisp.org>
41601
41602         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
41603         Reported by Paolo Bonzini <bonzini@gnu.org>.
41604
41605 2008-07-30  Eric Blake  <ebb9@byu.net>
41606
41607         test-strtod: allow compilation without -lm
41608         * tests/test-strtod.c (main): Avoid link dependence on fabs.
41609         Reported by Dennis Clarke <blastwave@gmail.com>.
41610
41611 2008-07-28  Jim Meyering  <meyering@redhat.com>
41612
41613         bootstrap: work also when there are no .po files in po/
41614         * build-aux/bootstrap (update_po_files): Complete the change
41615         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
41616
41617 2008-07-27  Jim Meyering  <meyering@redhat.com>
41618
41619         * users.txt: Add zile.
41620
41621 2008-07-26  Ben Pfaff  <blp@gnu.org>
41622
41623         Add missing dependencies on new m4/exponent[fdl].m4 files.
41624         * modules/isnanf-nolibm: Add m4/exponentf.m4.
41625         * modules/isnand-nolibm: Add m4/exponentd.m4.
41626         * modules/isnanl-nolibm: Add m4/exponentl.m4.
41627         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
41628         m4/isnan[fdl].m4, because the macros actually used moved.
41629         Reported by Jim Meyering.
41630
41631 2008-07-14  Ben Pfaff  <blp@gnu.org>
41632
41633         Add isinf module.
41634         * lib/isinf.c: New file.
41635         * lib/math.in.h: Define isinf macro if we have decided to replace
41636         it.
41637         * m4/isinf.m4: New file.
41638         * m4/math_h.m4: Initialize and substitute variables for isinf
41639         module.
41640         * modules/isinf: New file.
41641         * modules/isinf-tests: New file.
41642         * modules/math: Add substitutions for new module.
41643         * tests/test-isinf.c: New file.
41644         * doc/posix-functions/isinf.texi: Mention new module.
41645         * MODULES.html.sh: Mention new module.
41646
41647 2008-07-14  Ben Pfaff  <blp@gnu.org>
41648
41649         Factor out some macros for use by additional modules.
41650         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
41651         exponentf.m4.
41652         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
41653         exponentd.m4.
41654         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
41655         file exponentl.m4.
41656         * m4/exponentf.m4: New file.
41657         * m4/exponentd.m4: New file.
41658         * m4/exponentl.m4: New file.
41659         * modules/isnanf: Use new file m4/exponentf.m4.
41660         * modules/isnand: Use new file m4/exponentd.m4.
41661         * modules/isnanl: Use new file m4/exponentl.m4.
41662
41663 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
41664
41665         mktime.c: normalize tp->tm_isdst value to -1/0/1.
41666         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
41667         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
41668         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
41669
41670         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
41671         readlink on platforms without PATH_MAX.
41672
41673 2008-07-21  Eric Blake  <ebb9@byu.net>
41674
41675         Warn, not fail, on stale version.
41676         * top/GNUmakefile (_curr-ver): Tone down previous patch.
41677
41678         Don't allow installation with stale devel version number.
41679         * top/GNUmakefile (_is-install-target): New macro.
41680         (_curr-ver): Forbid installation with stale version number.
41681
41682 2008-07-20  Bruno Haible  <bruno@clisp.org>
41683
41684         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
41685         TESTS_ENVIRONMENT.
41686         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
41687
41688 2008-07-20  Bruno Haible  <bruno@clisp.org>
41689
41690         * lib/c-stack.h (c_stack_action): Add documentation.
41691         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
41692
41693 2008-07-20  Bruno Haible  <bruno@clisp.org>
41694
41695         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
41696         * modules/readlink (License): Likewise.
41697
41698 2008-07-17  Eric Blake  <ebb9@byu.net>
41699
41700         * modules/c-stack (Link): Fix typo.
41701
41702         Make c-stack use libsigsegv, when available.
41703         * modules/c-stack (Depends-on): Add libsigsegv.
41704         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
41705         needed.
41706         * lib/c-stack.c (SIGSTKSZ): Define fallback.
41707         (segv_handler, overflow_handler, c_stack_action)
41708         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
41709         implementation when libsigsegv is available, but only when using
41710         the library is necessary.
41711         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
41712         comment, explaining why XSI check fails on Linux.
41713         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
41714         * tests/test-c-stack2.sh: Tweak skip message.
41715         * NEWS: Document new link-time requirements.
41716
41717 2008-07-16  Eric Blake  <ebb9@byu.net>
41718
41719         c-stack: Expose false positives when not using libsigsegv.
41720         * modules/c-stack-tests (Files): Expand test.
41721         * tests/test-c-stack.c (main): Add means to conditionally trigger
41722         non-overflow SIGSEGV.
41723         * tests/test-c-stack2.sh: New file.
41724
41725 2008-07-14  Bruno Haible  <bruno@clisp.org>
41726
41727         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
41728         Reported by Eric Blake.
41729
41730 2008-07-14  Sam Steingold  <sds@gnu.org>
41731             Bruno Haible  <bruno@clisp.org>
41732
41733         New module libsigsegv.
41734         * modules/libsigsegv: New file.
41735         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
41736         modifications.
41737         * MODULES.html.sh (Signal handling): New section.
41738
41739 2008-07-14  Bruno Haible  <bruno@clisp.org>
41740
41741         * modules/unictype/ctype-* (Description): Add the word "function".
41742         Improves the resulting doc in MODULES.html.
41743
41744 2008-07-12  Ben Pfaff  <blp@gnu.org>
41745
41746         Add longlong module.
41747         * modules/longlong: New file.
41748
41749 2008-07-12  Bruno Haible  <bruno@clisp.org>
41750
41751         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
41752         to empty.
41753
41754 2008-07-10  Ben Pfaff  <blp@gnu.org>
41755
41756         Add isnan module.
41757         * doc/posix-functions/isnan.texi: Mention new module.
41758         * lib/math.in.h: Define isnan macro if we have decided to replace
41759         it.
41760         * m4/isnan.m4: New file.
41761         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
41762         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
41763         also.
41764         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
41765         redundancy.
41766         * m4/math_h.m4: Initialize and substitute variables for isnan
41767         module.
41768         * modules/isnan: New file.
41769         * modules/isnan-tests: New file.
41770         * modules/math: Add substitutions for new module.
41771         * tests/test-isnan.c: New file.
41772         * MODULES.html.sh: Mention new module.
41773
41774 2008-07-10  Ben Pfaff  <blp@gnu.org>
41775
41776         Add isnanf module.
41777         * lib/isnanf.m4: New file.
41778         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
41779         (gl_HAVE_ISNANF_IN_LIBM): New macro.
41780         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
41781         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
41782         * modules/isnanf: New file.
41783         * modules/isnanf-tests: New file.
41784         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
41785         files.
41786         * tests/test-isnanf-nolibm.c: factored most of its contents into
41787         new file tests/test-isnanf.h.
41788         * tests/test-isnanf.h: New file.
41789         * tests/test-isnanf.c: New file.
41790         * MODULES.html.sh: Mention new module.
41791         * doc/glibc-functions/isnanf.texi: Mention new module.
41792
41793 2008-07-10  Ben Pfaff  <blp@gnu.org>
41794
41795         Add isnand module.
41796         * lib/isnand.h: New file.
41797         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
41798         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
41799         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
41800         functionality also.
41801         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
41802         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
41803         (gl_HAVE_ISNAND_IN_LIBM): New macro.
41804         * modules/isnand: New file.
41805         * modules/isnand-tests: New file.
41806         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
41807         files.
41808         * tests/test-isnand-nolibm.c: factored most of its contents into
41809         new file tests/test-isnand.h.
41810         * tests/test-isnand.h: New file.
41811         * tests/test-isnand.c: New file.
41812         * MODULES.html.sh: Mention new module.
41813
41814 2008-07-10  Ben Pfaff  <blp@gnu.org>
41815
41816         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
41817         * lib/isnand.h: Rename lib/isnand-nolibm.h.
41818         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
41819         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
41820         * modules/isnanf-nolibm: Update references to renamed files.
41821         * modules/isnand-nolibm: Likewise.
41822         * modules/isnanf-nolibm-tests: Likewise.
41823         * modules/isnand-nolibm-tests: Likewise.
41824         * lib/frexp.c: Likewise.
41825         * lib/isfinite.c: Likewise.
41826         * lib/signbitd.c: Likewise.
41827         * lib/signbitf.c: Likewise.
41828         * lib/vasnprintf.c: Likewise.
41829         * tests/test-ceilf1.c: Likewise.
41830         * tests/test-ceilf2.c: Likewise.
41831         * tests/test-floorf1.c: Likewise.
41832         * tests/test-floorf2.c: Likewise.
41833         * tests/test-frexp.c: Likewise.
41834         * tests/test-round1.c: Likewise.
41835         * tests/test-round2.c: Likewise.
41836         * tests/test-roundf1.c: Likewise.
41837         * tests/test-strtod.c: Likewise.
41838         * tests/test-trunc1.c: Likewise.
41839         * tests/test-trunc2.c: Likewise.
41840         * tests/test-truncf1.c: Likewise.
41841         * tests/test-truncf2.c: Likewise.
41842         * NEWS: Mention the renamed header files.
41843
41844 2008-07-11  Jim Meyering  <meyering@redhat.com>
41845
41846         vc-list-files: make the last-resort awk code more portable
41847         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
41848         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
41849         does not support it.
41850
41851 2008-07-10  Eric Blake  <ebb9@byu.net>
41852
41853         Work with tar's bootstrap.
41854         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
41855         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
41856         an m4 comment.
41857
41858 2008-07-09  Jim Meyering  <meyering@redhat.com>
41859
41860         posix-shell.m4: fix typo that made this test malfunction
41861         * m4/posix-shell.m4: Remove capitalization in variable name.
41862
41863 2008-07-08  Bruno Haible  <bruno@clisp.org>
41864
41865         * m4/onceonly.m4: Update comments.
41866         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41867
41868 2008-07-04  Jim Meyering  <meyering@redhat.com>
41869
41870         * users.txt: Add vc-dwim.
41871         (bison, coreutils): Use the gitweb URL.
41872
41873 2008-07-03  Jim Meyering  <meyering@redhat.com>
41874
41875         * users.txt: Add libffcall.  From Sam Steingold.
41876
41877 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
41878
41879         getdate.y: do not ignore TZ with relative day, month or year offset
41880         * lib/getdate.y (get_date): Move the tz-handling block to follow the
41881         relative-date-handling, since otherwise, the latter would clobber the
41882         sole output (an updated Start value) of the tz-handling block.
41883         * tests/test-getdate.c: Tests for the fix
41884
41885 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41886
41887         Recognize 'foo_LIBRARIES += libgnu.a'.
41888         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
41889         makefile snippet has already specified an installation location,
41890         also using '+='.
41891
41892 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
41893
41894         getdate.y: factor out common actions
41895         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
41896         Use them in place of open-coded actions.
41897
41898 2008-07-01  Simon Josefsson  <simon@josefsson.org>
41899
41900         Add self-test for getdate module.
41901         * modules/getdate-tests: New file.
41902         * tests/test-getdate.c: New file.
41903
41904 2008-06-29  Bruno Haible  <bruno@clisp.org>
41905
41906         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
41907         .gitignore.
41908         Reported by Sylvain Beucler <beuc@beuc.net>.
41909
41910 2008-06-29  Bruno Haible  <bruno@clisp.org>
41911
41912         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
41913         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
41914
41915 2008-06-29  Bruno Haible  <bruno@clisp.org>
41916
41917         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
41918         EXTRA_DIST.
41919         Reported by Sylvain Beucler <beuc@beuc.net>.
41920
41921 2008-06-26  Jim Meyering  <meyering@redhat.com>
41922
41923         make several modules depend on the "open" module
41924         This provides slightly increased consistency when opening-for-write
41925         the name of a non-directory spelled with a trailing slash.
41926         * modules/chdir-safer: Likewise.
41927         * modules/chown: Likewise.
41928         * modules/clean-temp: Likewise.
41929         * modules/copy-file: Likewise.
41930         * modules/fchdir: Likewise.
41931         * modules/fcntl-safer: Likewise.
41932         * modules/pipe: Likewise.
41933         * modules/utime: Likewise.
41934         Prompted by Eric Blake and Bruno Haible.
41935
41936 2008-06-24  Andreas Schwab  <schwab@suse.de>
41937
41938         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
41939         literals can be used as initializers for global variables.
41940
41941 2008-06-23  Eric Blake  <ebb9@byu.net>
41942
41943         Make gnulib-cache.m4 easier to diff.
41944         * gnulib-tool (func_import): Allow newlines when reading cached
41945         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
41946
41947 2008-06-23  Bruno Haible  <bruno@clisp.org>
41948
41949         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
41950         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
41951         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
41952         m4/signalblocking.m4.
41953         (gl_PREREQ_SIGACTION): Don't invoke it.
41954         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
41955         gl_PREREQ_SIG_HANDLER_H.
41956         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41957         Don't check for sigaction here.
41958
41959 2008-06-23  Bruno Haible  <bruno@clisp.org>
41960
41961         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
41962         (install_handlers): Don't set the SA_RESETHAND flag.
41963
41964 2008-06-23  Bruno Haible  <bruno@clisp.org>
41965
41966         * m4/sigaction.m4: Comment fixes.
41967         * lib/signal.in.h: Likewise.
41968
41969 2008-06-23  Eric Blake  <ebb9@byu.net>
41970
41971         Fix typo.
41972         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
41973
41974         Avoid SA_ namespace.
41975         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
41976         Reported by Ralf Wildenhues.
41977
41978         Avoid test failure due to SA_RESTORER.
41979         * tests/test-sigaction.c (SA_MASK): New macro.
41980         (main): Avoid failing due to extension flags being set.
41981         Reported by Jim Meyering.
41982
41983         Revert use of sig-handler.h in sigprocmask.c.
41984         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
41985         it requires the existence of struct sigaction.
41986         * lib/sigprocmask.c (handler_t): Restore typedef.
41987         (rpl_signal, old_handlers): Use local type.
41988
41989 2008-06-22  Bruno Haible  <bruno@clisp.org>
41990
41991         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
41992         conditionally.
41993         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41994
41995 2008-06-22  Bruno Haible  <bruno@clisp.org>
41996
41997         * doc/posix-functions/siginterrupt.texi: Move note.
41998
41999         * lib/signal.in.h (SA_RESTART): New macro.
42000         * lib/sigaction.c: Update comment.
42001
42002         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
42003
42004         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
42005         (gl_PREREQ_SIGPROCMASK): Invoke it.
42006         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
42007
42008         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
42009
42010         * lib/sigprocmask.c: Update a comment.
42011
42012 2008-06-21  Eric Blake  <ebb9@byu.net>
42013
42014         Use sigaction module rather than signal().
42015         * modules/c-stack (Depends-on): Add sigaction.
42016         * modules/fatal-signal (Depends-on): Likewise.
42017         * modules/nanosleep (Depends-on): Likewise.
42018         * modules/sigprocmask (Files): Add sig-handler.h.
42019         * modules/sigaction (Files): Likewise.
42020         * lib/sig-handler.h (get_handler): New file, suggested by Paul
42021         Eggert.
42022         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
42023         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
42024         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
42025         (init_fatal_signals): Likewise.
42026         * lib/nanosleep.c (rpl_nanosleep): Likewise.
42027         (siginterrupt): Delete fallback.
42028         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
42029         instead.
42030         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
42031         siginterrupt.
42032
42033         New module sigaction, for mingw.
42034         * modules/sigaction: New module...
42035         * modules/sigaction-tests: ...and its test.
42036         * m4/sigaction.m4: New file.
42037         * lib/sigaction.c: Likewise.
42038         * tests/test-sigaction.c: Likewise.
42039         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
42040         * modules/signal (Makefile.am): Likewise.
42041         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
42042         needed.
42043         * doc/posix-headers/signal.texi (signal.h): Mention provided
42044         types.
42045         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
42046         that sigaction is preferable.
42047         * doc/posix-functions/sigaction.texi (sigaction): Mention new
42048         module.
42049         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42050         sigaction.
42051
42052         Improve robustness of sigprocmask by overriding signal.
42053         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
42054         is in use.
42055         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
42056         (SIGKILL, SIGSTOP): Provide fallbacks.
42057         (rpl_signal): Implement.
42058         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
42059         signal can be called inside handlers.
42060
42061         Fix nanosleep module on mingw.
42062         * modules/nanosleep (Depends-on): Add sys_select.
42063         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
42064
42065         Fix licensing of sigprocmask.
42066         * modules/raise (License): Relicense as LGPL.
42067
42068 2008-06-21  Bruno Haible  <bruno@clisp.org>
42069
42070         * lib/propername.c (proper_name_utf8): Don't use the transliterated
42071         result if it contains question marks.
42072         Reported by Michael Geng <linux@michaelgeng.de>.
42073
42074 2008-06-19  Bruno Haible  <bruno@clisp.org>
42075
42076         Fix CVS-ism.
42077         * doc/gnulib.texi: Include updated-stamp.texi.
42078         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
42079         (updated-stamp.texi): New rule.
42080         (gnulib.info): Depend on it.
42081         * doc/.gitignore: Add updated-stamp.texi.
42082         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
42083
42084 2008-06-19  Bruno Haible  <bruno@clisp.org>
42085
42086         * doc/Makefile (gnulib.info): Update and simplify dependencies.
42087         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42088
42089 2008-06-19  Eric Blake  <ebb9@byu.net>
42090
42091         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
42092         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
42093         Reported by Stepan Kasal.
42094
42095 2008-06-18  Bruno Haible  <bruno@clisp.org>
42096
42097         * lib/fatal-signal.c (init_fatal_signals): Add comment.
42098         Reported by Eric Blake.
42099
42100 2008-06-18  Eric Blake  <ebb9@byu.net>
42101
42102         Work around cygwin 1.5.25 strsignal bug.
42103         * tests/test-strsignal.c: Allow for const char *.
42104         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
42105
42106 2008-06-18  Simon Josefsson  <simon@josefsson.org>
42107
42108         * users.txt: Update URL to article and add author/date
42109         information.
42110
42111 2008-06-17  Bruno Haible  <bruno@clisp.org>
42112
42113         New macro gl_DISABLE_THREADS.
42114         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
42115         if the user did not pass --enable-threads or --disable-threads option.
42116         (gl_DISABLE_THREADS): New macro.
42117         Reported by Eric Blake <ebb9@byu.net>.
42118
42119 2008-06-17  Bruno Haible  <bruno@clisp.org>
42120
42121         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
42122         when the macro ignores it.
42123         Based on a patch by Eric Blake <ebb9@byu.net>.
42124
42125 2008-06-17  Bruno Haible  <bruno@clisp.org>
42126
42127         * modules/tls (License): Change to LGPLv2+.
42128         Reported by Eric Blake.
42129
42130 2008-06-17  Eric Blake  <ebb9@byu.net>
42131
42132         Simplify c-stack prerequisites.
42133         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
42134         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
42135         no longer requires <ucontext.h> to exist.  Optimize setrlimit
42136         check.
42137         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
42138         <sys/resource.h>.
42139
42140         Move c-stack test into testsuite.
42141         * modules/c-stack-tests: New file.
42142         * lib/c-stack.c [DEBUG]: Move test program...
42143         * tests/test-c-stack.c: ...into this new file.  Skip rather than
42144         fail test if sigaltstack is lacking.
42145         * tests/test-c-stack.sh: New driver file.
42146
42147 2008-06-16  Eric Blake  <ebb9@byu.net>
42148
42149         Use raise module consistently.
42150         * modules/fatal-signal (Depends-on): Add raise.
42151         * modules/sigprocmask (Depends-on): Likewise.
42152         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
42153         * lib/sigprocmask.c (sigprocmask): Likewise.
42154         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
42155         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
42156
42157         Fix compliance bug in sigpending.
42158         * lib/sigprocmask.c (sigpending): Return pending array via
42159         parameter, not return value.
42160
42161 2008-06-14  Eric Blake  <ebb9@byu.net>
42162
42163         Improve obstack-printf test code.
42164         * tests/test-obstack-printf.c (test_function): Fix comment, and
42165         simplify usage of obstack_* in macros.  Add a test for coverage.
42166         Reported by Bruno Haible.
42167
42168 2008-06-14  Bruno Haible  <bruno@clisp.org>
42169
42170         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
42171         array size as a constant, not as a const variable.
42172         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
42173         AC_USE_SYSTEM_EXTENSIONS.
42174         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42175         Test whether the obstack_printf function actually exists.
42176         * modules/obstack-printf (Depends-on): Add extensions.
42177         (Include): Remove obstack.h.
42178         * modules/obstack-printf-posix (Depends-on): Add extensions.
42179         (Include): Remove obstack.h.
42180
42181 2008-06-13  Eric Blake  <ebb9@byu.net>
42182
42183         Add obstack-printf and obstack-printf-posix modules.
42184         * modules/obstack-printf: New file.
42185         * modules/obstack-printf-posix: Likewise.
42186         * MODULES.html.sh (Misc): Mention them.
42187         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42188         Likewise.
42189         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42190         Likewise.
42191         * modules/stdio (Makefile.am): Accomodate new modules.
42192         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42193         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
42194         Declare.
42195         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
42196         functions.
42197         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
42198         (gl_REPLACE_OBSTACK_PRINTF): New macros
42199         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
42200         * tests/test-obstack-printf.c: New file.
42201         * modules/obstack-printf-tests: Likewise.
42202         * modules/obstack-printf-posix-tests: Likewise.
42203
42204 2008-06-11  Bruno Haible  <bruno@clisp.org>
42205
42206         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
42207         * lib/open.c: Include errno.h.
42208         (open): Fail when attempting to write to a file that has a trailing
42209         slash.
42210         * tests/test-open.c (main): Test against trailing slash bug.
42211         * doc/posix-functions/open.texi: Mention the trailing slash bug.
42212
42213 2008-06-10  Bruno Haible  <bruno@clisp.org>
42214
42215         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
42216         for $? to work inside the trap command, with various /bin/sh-s.
42217         * tests/test-vc-list-files-cvs.sh: Likewise.
42218
42219 2008-06-10  Bruno Haible  <bruno@clisp.org>
42220
42221         * lib/acl-internal.h: Don't include gettext.h here.
42222         * lib/set-mode-acl.c: Include gettext.h here.
42223         * lib/copy-acl.c: Likewise.
42224
42225 2008-06-10  Bruno Haible  <bruno@clisp.org>
42226
42227         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
42228         * lib/wait-process.c (wait_subprocess): Likewise.
42229         * lib/execute.h (execute): Add termsigp argument.
42230         * lib/execute.c (execute): Likewise.
42231         * lib/csharpcomp.c (compile_csharp_using_pnet,
42232         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
42233         * lib/csharpexec.c (execute_csharp_using_pnet,
42234         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
42235         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
42236         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
42237         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
42238         is_jikes_present): Update.
42239         * lib/javaexec.c (execute_java_class): Update.
42240         * lib/javaversion.c (execute_and_read_line): Update.
42241         * NEWS: Document the changes.
42242         Reported by Eric Blake.
42243
42244 2008-06-10  Eric Blake  <ebb9@byu.net>
42245
42246         Add missing include.
42247         * tests/test-strstr.c (includes): Add <signal.h>.
42248         * tests/test-strcasestr.c (includes): Likewise.
42249         * tests/test-memmem.c (includes): Likewise.
42250
42251 2008-06-10  Bruno Haible  <bruno@clisp.org>
42252
42253         * lib/wait-process.c (wait_subprocess): Add an assertion.
42254
42255 2008-06-10  Bruno Haible  <bruno@clisp.org>
42256
42257         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
42258
42259 2008-06-10  Bruno Haible  <bruno@clisp.org>
42260
42261         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
42262         using alarm().
42263         * tests/test-strcasestr.c (main): Likewise.
42264         * tests/test-strstr.c (main): Likewise.
42265
42266 2008-06-09  Bruno Haible  <bruno@clisp.org>
42267
42268         Work around the Solaris 10 ACE ACLs ABI change.
42269         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
42270         declare if ACL_NO_TRIVIAL is present.
42271         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
42272         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
42273         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
42274         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
42275         define if ACL_NO_TRIVIAL is present.
42276         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
42277         and use the current ABI.
42278         (file_has_acl): Use same #if condition as elsewhere.
42279         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
42280         in use, and use the current ABI.
42281         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
42282         Reported by Jim Meyering.
42283
42284 2008-06-09  Eric Blake  <ebb9@byu.net>
42285
42286         Work around environments that (stupidly) ignore SIGALRM.
42287         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
42288         before using alarm().
42289         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42290         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42291         Reported by Ian Beckwith <ianb@erislabs.net>.
42292
42293         Produce autobuild blurb earlier in log.
42294         * modules/autobuild (configure.ac-early): Move AB_INIT here.
42295
42296 2008-06-09  Jim Meyering  <meyering@redhat.com>
42297         and OndÅ™ej Vašík  <ovasik@redhat.com>
42298
42299         utimens.c: correct kernel bug work-around
42300         OndÅ™ej Vašík found that the invalid return value of 280 indicates
42301         failure, not success, and the kernel bug we're trying to work
42302         around affects not just the utimensat call, but also the fallback
42303         futimens call.
42304         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
42305         not success.
42306         [HAVE_FUTIMENS]: Use the same work-around, here.
42307
42308 2008-06-09  Jim Meyering  <meyering@redhat.com>
42309
42310         add more guards around definition of ACE_-related code
42311         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
42312         ALLOW and ACE_OWNER are also defined.
42313
42314 2008-06-08  Bruno Haible  <bruno@clisp.org>
42315
42316         * lib/acl-internal.h: Add me as co-author.
42317         * lib/file-has-acl.c: Likewise.
42318         * lib/set-mode-acl.c: Likewise.
42319         * lib/copy-acl.c: Likewise.
42320
42321 2008-06-08  Bruno Haible  <bruno@clisp.org>
42322
42323         Add support for AIX ACLs.
42324         * lib/acl-internal.h (acl_nontrivial): New declaration.
42325         * lib/file-has-acl.c (acl_nontrivial): New function.
42326         (file_has_acl): Add implementation using AIX 4 ACL API.
42327         * lib/set-mode-acl.c (qset_acl): Likewise.
42328         * lib/copy-acl.c (qcopy_acl): Likewise.
42329
42330 2008-06-08  Bruno Haible  <bruno@clisp.org>
42331
42332         Add support for HP-UX ACLs.
42333         * lib/acl-internal.h (acl_nontrivial): New declaration.
42334         * lib/file-has-acl.c (acl_nontrivial): New function.
42335         (file_has_acl): Add implementation using HP-UX 11 ACL API.
42336         * lib/set-mode-acl.c (qset_acl): Likewise.
42337         * lib/copy-acl.c (qcopy_acl): Likewise.
42338
42339 2008-06-08  Bruno Haible  <bruno@clisp.org>
42340
42341         Add support for Cygwin ACLs.
42342         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
42343         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
42344         the chmod_or_fchmod call.
42345         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
42346
42347 2008-06-08  Bruno Haible  <bruno@clisp.org>
42348
42349         Fix bug with setuid modes in Solaris 10+ code.
42350         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
42351         succeeded, when the mode contains some special bits.
42352
42353 2008-06-08  Bruno Haible  <bruno@clisp.org>
42354
42355         Add support for Solaris 7..10 ACLs.
42356         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
42357         declarations.
42358         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
42359         functions.
42360         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
42361         * lib/set-mode-acl.c (qset_acl): Likewise.
42362         * lib/copy-acl.c (qcopy_acl): Likewise.
42363
42364 2008-06-08  Bruno Haible  <bruno@clisp.org>
42365
42366         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
42367         declaration.
42368         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
42369         (acl_access_nontrivial): Remove MacOS X case.
42370         (file_has_acl): Use acl_extended_nontrivial.
42371         * lib/copy-acl.c (qcopy_acl): Likewise.
42372
42373 2008-06-08  Bruno Haible  <bruno@clisp.org>
42374
42375         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
42376
42377 2008-06-08  Jim Meyering  <meyering@redhat.com>
42378
42379         * modules/acl (Maintainer): Add Bruno Haible.
42380
42381 2008-06-07  Bruno Haible  <bruno@clisp.org>
42382
42383         Improve support for Tru64 ACLs.
42384         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
42385         ACL on OSF/1.
42386
42387 2008-06-07  Bruno Haible  <bruno@clisp.org>
42388
42389         Add support for MacOS X ACLs.
42390         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
42391         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
42392         * lib/set-mode-acl.c (qset_acl): Likewise.
42393         * lib/copy-acl.c (qcopy_acl): Likewise.
42394
42395 2008-06-07  Bruno Haible  <bruno@clisp.org>
42396
42397         Fix memory leak introduced on 2008-05-22.
42398         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
42399         use.
42400
42401 2008-06-07  Bruno Haible  <bruno@clisp.org>
42402
42403         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
42404         to construct an empty ACL.
42405
42406 2008-06-07  Bruno Haible  <bruno@clisp.org>
42407
42408         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
42409         precisely.
42410         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
42411
42412 2008-06-07  Bruno Haible  <bruno@clisp.org>
42413
42414         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
42415         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
42416
42417 2008-06-07  Bruno Haible  <bruno@clisp.org>
42418
42419         * doc/posix-functions/_setjmp.texi: Explain the use of this function
42420         regardless of POSIX.
42421         * doc/posix-functions/_longjmp.texi: Likewise.
42422         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
42423         SystemV platform in this case.
42424
42425 2008-06-06  Eric Blake  <ebb9@byu.net>
42426
42427         Document abort() bugs.
42428         * doc/posix-functions/abort.texi (abort): Mention anomalies.
42429
42430         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
42431         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
42432         sigsetjmp.
42433         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
42434         siglongjmp, but only as a macro.
42435         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
42436         is obsolete.
42437         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
42438
42439         Tweak documentation to cover cygwin argz bugs.
42440         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
42441         argz bug fix; no code change needed since no cygwin releases
42442         occurred between the last fix and the bug being tested.
42443         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
42444         module and recently fixed cygwin bugs.
42445         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
42446         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
42447         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
42448         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
42449         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
42450         Likewise.
42451         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
42452         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
42453         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
42454         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
42455         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
42456         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
42457         Likewise.
42458
42459         Avoid gcc warning on cygwin.
42460         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
42461         !ACL_NO_TRIVIAL]: Avoid unused variable.
42462
42463 2008-06-05  Eric Blake  <ebb9@byu.net>
42464
42465         Be tolerant of UNKNOWN version in gnulib-tool test dir.
42466         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
42467         git-version-gen fails to come up with a version.
42468         Reported by Simon Josefsson.
42469
42470 2008-06-05  Jim Meyering  <meyering@redhat.com>
42471             Paul Eggert  <eggert@cs.ucla.edu>
42472
42473         utimens.c: work around a probable Linux kernel bug
42474         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
42475         appears to be a kernel bug that causes utimensat to return 280
42476         instead of 0, indicating success.
42477
42478 2008-06-04  Bruno Haible  <bruno@clisp.org>
42479
42480         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
42481         2008-06-01 commit.
42482
42483 2008-06-04  Bruno Haible  <bruno@clisp.org>
42484
42485         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
42486         * lib/file-has-acl.c (acl_access_nontrivial): New function.
42487         (file_has_acl): Use it. Save errno afterwards.
42488         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
42489
42490 2008-06-03  Bruno Haible  <bruno@clisp.org>
42491
42492         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
42493         draft code. Simplify #ifs.
42494         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
42495         Put Solaris code after POSIX-draft code. Fix comments regarding
42496         Solaris 10, HP-UX. Mention Cygwin.
42497         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
42498
42499 2008-06-03  Eric Blake  <ebb9@byu.net>
42500
42501         Provide fallback for older kernels.
42502         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
42503         Provide runtime fallback if kernel lacks support.
42504         Reported by Mike Frysinger.
42505
42506 2008-06-02  Bruno Haible  <bruno@clisp.org>
42507
42508         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
42509         it exists.
42510
42511 2008-06-02  Bruno Haible  <bruno@clisp.org>
42512
42513         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
42514         * lib/copy-acl.c (qcopy_acl): Update comment.
42515
42516 2008-06-02  Bruno Haible  <bruno@clisp.org>
42517
42518         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
42519         like ACL APIs.
42520
42521 2008-06-02  Bruno Haible  <bruno@clisp.org>
42522
42523         * tests/test-file-has-acl.sh: Use different code for Cygwin.
42524         * tests/test-set-mode-acl.sh: Likewise.
42525         * tests/test-copy-acl.sh: Likewise.
42526         * tests/test-copy-file.sh: Likewise.
42527
42528 2008-06-02  Bruno Haible  <bruno@clisp.org>
42529
42530         * tests/test-file-has-acl.sh: Remove unused code.
42531
42532 2008-06-01  Bruno Haible  <bruno@clisp.org>
42533
42534         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
42535         (copy_acl): Just a wrapper around qcopy_acl that emits the error
42536         messages.
42537         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
42538
42539 2008-06-01  Bruno Haible  <bruno@clisp.org>
42540
42541         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
42542         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
42543         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
42544         APIs.
42545         * modules/acl-tests (configure.ac): Remove tests now contained in
42546         m4/acl.m4.
42547
42548 2008-06-02  Jim Meyering  <meyering@redhat.com>
42549
42550         announce-gen: use a better key-server host name
42551         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
42552         it may be more consistently reliable.  Suggested by Werner Koch
42553         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
42554
42555 2008-06-01  Bruno Haible  <bruno@clisp.org>
42556
42557         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
42558         Reported by Voroskoi Andras <voroskoi@gmail.com>.
42559
42560 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
42561
42562         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
42563
42564 2008-06-01  Bruno Haible  <bruno@clisp.org>
42565
42566         New ACL tests.
42567         * tests/test-file-has-acl.sh: New file.
42568         * tests/test-file-has-acl.c: New file.
42569         * tests/test-set-mode-acl.sh: New file.
42570         * tests/test-set-mode-acl.c: New file.
42571         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
42572         * tests/test-copy-acl.c: New file.
42573         * modules/acl-tests: New file, based on modules/copy-file-tests.
42574         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
42575         (Depends-on): Add acl-tests.
42576         (configure.ac): Remove checks.
42577         (Makefile.am): Don't create test-sameacls program here any more.
42578
42579 2008-06-01  Bruno Haible  <bruno@clisp.org>
42580
42581         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
42582         * tests/test-sameacls.c: Include progname.h.
42583         (main): Invoke set_program_name. Portability fixes for MacOS X,
42584         Solaris, HP-UX.
42585
42586 2008-06-01  Bruno Haible  <bruno@clisp.org>
42587
42588         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
42589         function.
42590         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
42591
42592 2008-06-01  Bruno Haible  <bruno@clisp.org>
42593
42594         * modules/rpmatch (Depends-on): Add strdup.
42595
42596 2008-06-01  Bruno Haible  <bruno@clisp.org>
42597
42598         * lib/pipe.c: Include unistd-safer.h.
42599         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
42600         * modules/pipe (Depends-on): Add unistd-safer.
42601
42602 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42603
42604         * modules/autobuild (configure.ac): Call AB_INIT.
42605
42606 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42607
42608         * tests/test-getaddrinfo.c: Don't print debug messages by default.
42609         Suggested by Bruno Haible <bruno@clisp.org>.
42610
42611 2008-05-30  Simon Josefsson  <simon@josefsson.org>
42612
42613         * tests/test-base64.c: Cast size_t to unsigned long when invoking
42614         printf.  Use %lu instead of %d.  Reported by Bruno Haible
42615         <bruno@clisp.org>.
42616
42617 2008-05-29  Eric Blake  <ebb9@byu.net>
42618
42619         Prefer new POSIX 200x interfaces over futimesat.
42620         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
42621         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
42622         when available.
42623         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
42624
42625 2008-05-28  Bruno Haible  <bruno@clisp.org>
42626
42627         * modules/stpcpy (License): Change to LGPLv2+.
42628         Requested by David Lutterkort <dlutter@redhat.com>.
42629
42630 2008-05-27  Bruno Haible  <bruno@clisp.org>
42631
42632         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
42633         current mingw.
42634         Reported by Jose E. Marchesi <jemarch@gnu.org>.
42635
42636 2008-05-27  Bruno Haible  <bruno@clisp.org>
42637
42638         * modules/iconv_open (Link): New section, from module 'iconv'.
42639         * modules/striconv (Link): Likewise.
42640         * modules/striconveh (Link): Likewise.
42641         * modules/xstriconv (Link): Likewise.
42642         * modules/unicodeio (Link): Likewise.
42643         * modules/propername (Link): Likewise.
42644         Reported by Jim Meyering.
42645
42646 2008-05-26  Jim Meyering  <meyering@redhat.com>
42647
42648         sha256: do not artificially restrict buffer length to be < 2^32
42649         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
42650         uint32_t to size_t.
42651         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
42652         to match.
42653
42654         avoid unaligned access errors, e.g., on sparc
42655         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
42656         direct access through a possibly-unaligned uint64* pointer.
42657         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
42658         direct access through a possibly-unaligned uint32* pointer.
42659         Prompted by this patch from Tom "spot" Callaway:
42660         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
42661
42662         sha512.c: fix typo in comment
42663         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
42664
42665 2008-05-25  Bruno Haible  <bruno@clisp.org>
42666
42667         * lib/set-mode-acl.c: Renamed from lib/acl.c.
42668         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
42669         (Makefile.am): Update lib_SOURCES.
42670
42671 2008-05-25  Bruno Haible  <bruno@clisp.org>
42672
42673         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
42674
42675 2008-05-25  Jim Meyering  <meyering@redhat.com>
42676
42677         useless-if-before-free: freed expr may have white-space differences
42678         * build-aux/useless-if-before-free: Recognize cases in which the
42679         freed expression differs from the tested one in embedded white
42680         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
42681         $1 was used, so we can't make any regexp shy.  Improved tests now
42682         detect this.
42683
42684         useless-if-before-free: accept white space in the expression.
42685         * build-aux/useless-if-before-free: For now, any white space
42686         in the expression must be identical in the free argument.
42687
42688         useless-if-before-free: efficiency tweak
42689         * build-aux/useless-if-before-free: Make the expression-matching
42690         regexp "shy".
42691         Make the *outer* regexp shy, not the expr-matching one.
42692
42693         update code-in-comment to accept cast of free arg
42694         * build-aux/useless-if-before-free: Update regexp.
42695
42696 2008-05-25  Bruno Haible  <bruno@clisp.org>
42697
42698         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
42699         * modules/copy-file-tests (Files, Makefile.am): Update.
42700         * tests/test-copy-file.c (func_test_copy): Update.
42701
42702 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
42703
42704         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
42705
42706 2008-05-23  Bruno Haible  <bruno@clisp.org>
42707
42708         Improve support for ACLs on OSF/1.
42709         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
42710         Remove fallback for unknown flavors of ACLs.
42711
42712 2008-05-22  Bruno Haible  <bruno@clisp.org>
42713
42714         Add support for ACLs on OSF/1.
42715         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
42716         replacements.
42717         (acl_free_text): New macro fallback.
42718         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
42719         acl_free.
42720         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
42721         acl_free_text function. Require AC_C_INLINE.
42722
42723 2008-05-22  Bruno Haible  <bruno@clisp.org>
42724
42725         Make copy_acl work on MacOS X 10.5.
42726         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
42727         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
42728         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
42729         If MODE_INSIDE_ACL, don't assume that every system has the same text
42730         representation for ACLs as FreeBSD.
42731         * lib/copy-acl.c (copy_acl): Add support for platforms with
42732         !MODE_INSIDE_ACL.
42733         * lib/file-has-acl.c (file_has_acl): Likewise.
42734         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
42735         FreeBSD, MacOS X, or IRIX, respectively.
42736
42737 2008-05-22  Bruno Haible  <bruno@clisp.org>
42738
42739         * lib/acl.h: Don't include <sys/acl.h>.
42740         (GETACLCNT): Move fallback to lib/acl-internal.h.
42741         * lib/acl-internal.h: Include <sys/acl.h> here.
42742         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
42743
42744 2008-05-22  Bruno Haible  <bruno@clisp.org>
42745
42746         Split off copy_acl function to separate file.
42747         * lib/copy-acl.c: New file, extracted from lib/acl.c.
42748         * lib/acl.c (copy_acl): Moved function to separate file.
42749         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
42750         * modules/acl (Files): Add lib/copy-acl.c.
42751         (Makefiles.am): Augment lib_SOURCES.
42752
42753 2008-05-22  Bruno Haible  <bruno@clisp.org>
42754
42755         * modules/copy-file-tests: New file.
42756         * tests/test-copy-file.sh: New file.
42757         * tests/test-copy-file.c: New file.
42758         * tests/test-copy-file-sameacls.c: New file.
42759
42760 2008-05-22  Eric Blake  <ebb9@byu.net>
42761
42762         Avoid gcc warning.
42763         * tests/test-memcmp.c (main): Pass NULL indirectly.
42764
42765 2008-05-21  Bruno Haible  <bruno@clisp.org>
42766
42767         Add reference doc about ACLs.
42768         * doc/acl-resources.txt: New file.
42769         * doc/acl-cygwin.txt: New file.
42770
42771 2008-05-21  Bruno Haible  <bruno@clisp.org>
42772
42773         Avoid one more warning from gcc.
42774         * lib/vasnprintf.c (IF_LINT): Update comments.
42775         (VASNPRINTF): Use it also for the 'prefix' array initializer.
42776
42777 2008-05-21  Jim Meyering  <meyering@redhat.com>
42778
42779         avoid a warning from gcc
42780         * lib/vasnprintf.c (IF_LINT): Define.
42781         (scale10_round_decimal_long_double):
42782         Use it to avoid a "may be used uninitialized" warning.
42783         (scale10_round_decimal_double): Likewise.
42784
42785 2008-05-21  Simon Josefsson  <simon@josefsson.org>
42786
42787         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
42788         declared.
42789
42790 2008-05-20  Bruno Haible  <bruno@clisp.org>
42791
42792         * tests/test-memcmp.c (main): Test also the sign of the result. Test
42793         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
42794
42795 2008-05-20  Simon Josefsson  <simon@josefsson.org>
42796
42797         * modules/memcmp-tests: New file.
42798         * tests/test-memcmp.c: New file.
42799
42800 2008-05-19  Bruno Haible  <bruno@clisp.org>
42801
42802         * modules/propername (Notice, configure.ac): Put quoted "..." into
42803         --keyword option.
42804         * lib/propername.h: Update comments accordingly.
42805         Reported by Eric Blake.
42806
42807 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
42808
42809         * modules/getpass-gnu (Depends-on): Add fseeko.
42810
42811 2008-05-19  Simon Josefsson  <simon@josefsson.org>
42812
42813         * modules/base64-tests: New file.
42814
42815 2008-05-19  Bo Borgerson <gigabo@gmail.com>
42816
42817         * lib/base64.c (base64_decode_ctx): If a decode context structure
42818         was passed in use it to ignore newlines.  If a context structure
42819         was _not_ passed in, continue to treat newlines as garbage (this
42820         is the historical behavior).  Formerly base64_decode.
42821         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
42822         takes a decode context structure.
42823         * lib/base64.h (base64_decode): Macro for four-argument calls.
42824         (base64_decode_alloc): Likewise.
42825         * lib/base64.c (base64_decode_ctx): If a decode context structure
42826         was passed in use it to ignore newlines.  If a context structure
42827         was _not_ passed in, continue to treat newlines as garbage (this
42828         is the historical behavior).  Formerly base64_decode.
42829         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
42830         takes a decode context structure.
42831         * lib/base64.h (base64_decode): Macro for four-argument calls.
42832         (base64_decode_alloc): Likewise.
42833
42834 2008-05-19  Jim Meyering  <meyering@redhat.com>
42835
42836         avoid a warning from gcc
42837         * lib/trim.c (IF_LINT): Define.
42838         (trim2): Use it to avoid a "may be used uninitialized" warning.
42839
42840         Fix doc typo.
42841         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
42842
42843 2008-05-19  Bruno Haible  <bruno@clisp.org>
42844
42845         * doc/glibc-functions/getpass.texi: Document limits of other
42846         implementations.
42847
42848 2008-05-19  Simon Josefsson  <simon@josefsson.org>
42849             Bruno Haible <bruno@clisp.org>
42850
42851         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
42852
42853 2008-05-18  Bruno Haible  <bruno@clisp.org>
42854
42855         * modules/propername: New file, from GNU gettext.
42856         * lib/propername.h: New file, from GNU gettext.
42857         * lib/propername.c: New file, from GNU gettext.
42858         * MODULES.html.sh (Internationalization functions): Add propername.
42859
42860 2008-05-16  Jim Meyering  <meyering@redhat.com>
42861             Bruno Haible  <bruno@clisp.org>
42862
42863         Avoid some warnings from "gcc -Wshadow".
42864         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
42865
42866 2008-05-15  Eric Blake  <ebb9@byu.net>
42867
42868         Extend previous patch to cygwin 1.7.0.
42869         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
42870         fast implementation in cygwin >= 1.7.0.
42871         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42873
42874 2008-05-15  Bruno Haible  <bruno@clisp.org>
42875
42876         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
42877         implementation in glibc >= 2.9.
42878         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42879         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42880
42881 2008-05-15  Bruno Haible  <bruno@clisp.org>
42882
42883         * MODULES.html.sh (Internationalization functions): Remove linebreak.
42884         (Unicode string functions): Add unilbrk/*.
42885         Reported by Karl Berry.
42886
42887 2008-05-15  Eric Blake  <ebb9@byu.net>
42888
42889         Fix violation of <stdbool.h> replacement in regex.
42890         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
42891         * lib/regexec.c (re_search_internal): Likewise.
42892         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
42893
42894 2008-05-15  Jim Meyering  <meyering@redhat.com>
42895
42896         avoid distracting test output when git or cvs is not found
42897         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
42898         * tests/test-vc-list-files-git.sh: Likewise.
42899
42900 2008-05-15  Eric Blake  <ebb9@byu.net>
42901
42902         Glibc finally accepted the memmem speedup code, bugzilla #5514.
42903         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
42904         glibc version.
42905         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
42906         * doc/posix-functions/strstr.texi (strstr): Likewise.
42907         * lib/str-two-way.h (MAX): Sychronize with glibc.
42908
42909 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
42910
42911         * lib/regcomp.c (optimize_utf8): Add a note on why we test
42912         opr.ctx_type.
42913         (calc_first): Initialize constraint field.
42914         (duplicate_node_closure): Use it instead of special casing ANCHORS.
42915         Fix grammar.
42916         (duplicate_node): Merge constraint field for all node types.
42917         (calc_eclosure_iter): Look at constraint field for all node types.
42918         * lib/regex_internal.c (create_cd_newstate): Don't look at
42919         opr.ctx_type.
42920
42921 2008-05-14  Bruno Haible  <bruno@clisp.org>
42922
42923         Help GCC to do better code generation.
42924         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
42925         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
42926         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
42927         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
42928         Declare with attribute 'malloc' if supported.
42929
42930 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
42931
42932         use "echo STR|wc -c" rather than unportable "expr length STR"
42933         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
42934         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
42935
42936 2008-05-14  Jim Meyering  <meyering@redhat.com>
42937
42938         use dd ibs=$n count=1 ... rather than less-portable head -c$n
42939         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
42940         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
42941         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
42942         via Collin Lasse.
42943
42944 2008-05-14  Eric Blake  <ebb9@byu.net>
42945
42946         Avoid quadratic growth in gl_LIBSOURCES.
42947         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
42948         Suggested by Bruno Haible.
42949
42950         Test xmemdup0.
42951         * modules/xmemdup0-tests: New file.
42952         * tests/test-xmemdup0.c: Likewise.
42953
42954 2008-05-13  Eric Blake  <ebb9@byu.net>
42955
42956         Split xmemdup0 into its own module.
42957         * modules/xmemdup0: New file.
42958         * lib/xmemdup0.h: Likewise.
42959         * lib/xmemdup0.c: Likewise.
42960         * MODULES.html.sh (Memory management functions): Add xmemdup0.
42961         * lib/xalloc.h (xmemdup0): Remove.
42962         * lib/xmalloc.c (xmemdup0): Likewise.
42963
42964 2008-05-13  Eric Blake  <ebb9@byu.net>
42965             Bruno Haible  <bruno@clisp.org>
42966
42967         Reduce number of forks required during autoconf.
42968         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
42969         and gl_LIBSOURCES_DIR.
42970         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
42971         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
42972         m4_syscmd per file.
42973         <m4_foreach_w>: Move...
42974         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
42975
42976 2008-05-13  Eric Blake  <ebb9@byu.net>
42977
42978         * gnulib-tool: Fix various comment typos.
42979
42980 2008-05-12  Bruno Haible  <bruno@clisp.org>
42981
42982         Tailor the linebreaking algorithm.
42983         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
42984
42985 2008-05-12  Bruno Haible  <bruno@clisp.org>
42986
42987         Update to Unicode 5.0.0.
42988         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42989         LBP_JV, LBP_JT. Redistribute values.
42990         (unilbrk_table): Change size.
42991         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
42992         Unicode TR#14 rev. 22.
42993         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42994         LBP_JV, LBP_JT. Redistribute values.
42995         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
42996         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
42997         Update.
42998         * lib/unilbrk/lbrkprop1.h: Regenerated.
42999         * lib/unilbrk/lbrkprop2.h: Regenerated.
43000         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
43001         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
43002         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
43003         Likewise.
43004         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
43005         Likewise.
43006         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
43007         result.
43008         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
43009         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
43010         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
43011         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
43012         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
43013         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
43014
43015 2008-05-11  Bruno Haible  <bruno@clisp.org>
43016
43017         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
43018
43019 2008-05-11  Bruno Haible  <bruno@clisp.org>
43020
43021         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
43022         * modules/unilbrk/gen-lbrk: New file.
43023
43024 2008-05-11  Bruno Haible  <bruno@clisp.org>
43025
43026         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
43027         * m4/sha512.m4 (gl_SHA512): Likewise.
43028
43029 2008-05-11  Jim Meyering  <meyering@redhat.com>
43030
43031         New modules: crypto/sha256, crypto/sha512 (from coreutils)
43032         * modules/crypto/sha256: New file.
43033         * modules/crypto/sha512: Likewise.
43034         * lib/sha256.c: Likewise.
43035         * lib/sha256.h: Likewise.
43036         * lib/sha512.c: Likewise.
43037         * lib/sha512.h: Likewise.
43038         * lib/u64.h: Likewise.
43039         * m4/sha256.m4: Likewise.
43040         * m4/sha512.m4: Likewise.
43041         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
43042
43043 2008-05-10  Bruno Haible  <bruno@clisp.org>
43044
43045         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
43046         (Input/Output <stdio.h>): Add xprintf.
43047         (Signal handling <signal.h>): Add strsignal.
43048         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
43049         (Core language properties): Add func.
43050         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
43051         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
43052         strings.
43053         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
43054         (Input/output): New section.
43055         (File system functions): Add openat-die, stat-macros.
43056         (Networking functions): Add sockets.
43057         (Unicode string functions): Add unictype/*.
43058         (Support for building libraries and executables): Add gperf.
43059         (Support for building documentation): Add agpl-3.0.
43060         (Misc): Add nocrash.
43061
43062 2008-05-10  Bruno Haible  <bruno@clisp.org>
43063
43064         * modules/unictype/gen-ctype: New file.
43065
43066 2008-05-10  Jim Meyering  <meyering@redhat.com>
43067
43068         Make chdir-safer.c more efficient on a system with no symlinks.
43069         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
43070         also if ELOOP is zero.  Suggested by Bruno Haible.
43071
43072         Make chdir-safer.c slightly safer.
43073         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
43074         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
43075
43076         Avoid compile failure on systems without ELOOP (like mingw).
43077         * lib/chdir-safer.c (ELOOP): Define if not already defined.
43078         Reported by Bruno Haible.
43079
43080 2008-05-10  Bruno Haible  <bruno@clisp.org>
43081
43082         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
43083         (is_utf8_encoding): Use a case-insensitive comparison.
43084         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
43085         streq.
43086
43087 2008-05-10  Bruno Haible  <bruno@clisp.org>
43088
43089         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
43090         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
43091         * lib/unilbrk/ulc-common.h (iconv_string_length,
43092         iconv_string_keeping_offsets): Remove declarations.
43093         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
43094         Don't include <iconv.h>, streq.h, xsize.h.
43095         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
43096         conversion.
43097         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
43098         <iconv.h>, streq.h, xsize.h.
43099         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
43100         conversion.
43101         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
43102         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
43103         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
43104         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
43105
43106 2008-05-10  Bruno Haible  <bruno@clisp.org>
43107
43108         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
43109         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
43110
43111         * modules/unilbrk/u32-width-linebreaks-tests: New file.
43112         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
43113
43114         * modules/unilbrk/u16-width-linebreaks-tests: New file.
43115         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
43116
43117         * modules/unilbrk/u8-width-linebreaks-tests: New file.
43118         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
43119
43120         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
43121         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
43122
43123         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
43124         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
43125
43126         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
43127         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
43128
43129         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
43130         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
43131
43132 2008-05-10  Bruno Haible  <bruno@clisp.org>
43133
43134         Split up 'linebreak' module.
43135         * lib/unilbrk.h: New file, based on lib/linebreak.h.
43136         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
43137         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
43138         modifications.
43139         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
43140         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
43141         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
43142         lib/linebreak.c.
43143         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
43144         lib/linebreak.c.
43145         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
43146         lib/linebreak.c.
43147         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
43148         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
43149         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
43150         lib/linebreak.c.
43151         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
43152         lib/linebreak.c.
43153         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
43154         lib/linebreak.c.
43155         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
43156         lib/linebreak.c.
43157         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
43158         lib/linebreak.c.
43159         * modules/unilbrk/base: New file.
43160         * modules/unilbrk/tables: New file.
43161         * modules/unilbrk/u8-possible-linebreaks: New file.
43162         * modules/unilbrk/u16-possible-linebreaks: New file.
43163         * modules/unilbrk/u32-possible-linebreaks: New file.
43164         * modules/unilbrk/ulc-common: New file.
43165         * modules/unilbrk/ulc-possible-linebreaks: New file.
43166         * modules/unilbrk/u8-width-linebreaks: New file.
43167         * modules/unilbrk/u16-width-linebreaks: New file.
43168         * modules/unilbrk/u32-width-linebreaks: New file.
43169         * modules/unilbrk/ulc-width-linebreaks: New file.
43170         * lib/linebreak.h: Remove file.
43171         * lib/linebreak.c: Remove file.
43172         * m4/linebreak.m4: Remove file.
43173         * modules/linebreak: Remove file.
43174         * NEWS: Mention the changes.
43175
43176 2008-05-09  Eric Blake  <ebb9@byu.net>
43177
43178         Add xmemdup0.
43179         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
43180         implementation.
43181         * lib/xmalloc.c (xmemdup0): New C implementation.
43182
43183 2008-05-08  Bruno Haible  <bruno@clisp.org>
43184
43185         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
43186
43187 2008-05-07  Eric Blake  <ebb9@byu.net>
43188
43189         Support cross-compilation of <wctype.h>.
43190         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
43191         AC_CACHE_CHECK.
43192
43193 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
43194
43195         * build-aux/vc-list-files: Add support for bzr.
43196
43197 2008-05-03  Jim Meyering  <meyering@redhat.com>
43198
43199         avoid failed assertion with tight malloc
43200         * tests/test-getndelim2.c: Correct an off-by-one assertion.
43201
43202 2008-05-03  Simon Josefsson  <simon@josefsson.org>
43203
43204         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
43205         are needed from arpa/inet.h.
43206         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
43207         Reported by Bruno Haible.
43208
43209 2008-05-02  Jim Meyering  <meyering@redhat.com>
43210
43211         avoid compilation error on FreeBSD 6
43212         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
43213
43214 2008-05-01  Jim Meyering  <meyering@redhat.com>
43215
43216         useless-if-before-free: correct --help's exit status description
43217         * build-aux/useless-if-before-free (usage): Like grep, exit 0
43218         for one or more matches, etc.  Reported by Bruno Haible.
43219
43220         vc-list-files: make the stand-alone gnulib test work
43221         * modules/vc-list-files-tests (configure.ac):
43222         Define and AC_SUBST abs_aux_dir.
43223         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
43224         $(abs_top_srcdir) to each script and having each of them
43225         duplicate the work of setting PATH, set PATH here, using
43226         the new variable, abs_aux_dir instead.
43227         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
43228         * tests/test-vc-list-files-git.sh: Likewise.
43229         Reported by Bruno Haible.
43230
43231 2008-05-01  Bruno Haible  <bruno@clisp.org>
43232
43233         * lib/getndelim2.c (getndelim2): Fix newsize computation during
43234         reallocation. Rename 'done' to 'found_delimiter'.
43235
43236 2008-05-01  Jim Meyering  <meyering@redhat.com>
43237
43238         vc-list-files: accommodate /bin/sh like the one from Solaris 10
43239         * build-aux/vc-list-files: Use `...`, not $(...).
43240
43241 2008-04-30  Jim Meyering  <meyering@redhat.com>
43242
43243         add tests for vc-list-files
43244         * modules/vc-list-files-tests: New module.
43245         * tests/test-vc-list-files-cvs.sh: New file.
43246         * tests/test-vc-list-files-git.sh: New file.
43247
43248         avoid a warning from gcc
43249         * lib/getndelim2.c (IF_LINT): Define.
43250         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
43251
43252         vc-list-files: work properly with build-aux/cvsu, too
43253         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
43254         to all cvs-based clauses.
43255
43256         vc-list-files: work properly in the CVS+awk case, too
43257         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
43258
43259         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
43260         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
43261         take more than one file argument, so .  Add quotes, just in case $dir
43262         ever contains a shell meta-character.  Prompted by Soren Hansen in
43263         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
43264
43265 2008-04-29  Eric Blake  <ebb9@byu.net>
43266
43267         Optimize getndelim2 to use block operations when possible.
43268         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
43269         freadseek, and memchr2.
43270         * lib/getndelim2.c (getndelim2): Use them for block reads.
43271
43272 2008-04-29  Bruno Haible  <bruno@clisp.org>
43273
43274         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
43275         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43276         * modules/inet_ntop (Depends-on): Add extensions.
43277         * modules/inet_pton (Depends-on): Likewise.
43278         Reported by Simon Josefsson.
43279
43280 2008-04-29  Jim Meyering  <meyering@redhat.com>
43281
43282         When the is more than one match in a block, match all of them.
43283         * build-aux/useless-if-before-free: Iterate through each block
43284         until there are no more matches.
43285
43286         Fix broken useless-if-before-free script.
43287         * build-aux/useless-if-before-free: Fix typo: missing "?" after
43288         the expression to match cast of argument to free-like function.
43289
43290 2008-04-29  Eric Blake  <ebb9@byu.net>
43291
43292         Use new header.
43293         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
43294
43295 2008-04-29  Jim Meyering  <meyering@redhat.com>
43296
43297         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
43298         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
43299         by gnulib to exist and to declare e.g., inet_ntop.
43300         Don't include "inet_ntop.h", now removed.
43301
43302         * m4/arpa_inet_h.m4: Remove trailing blanks.
43303
43304 2008-04-29  Eric Blake  <ebb9@byu.net>
43305
43306         Silence valgrind on safe reads beyond potential array bounds.
43307         * lib/rawmemchr.valgrind: New file.
43308         * lib/strchrnul.valgrind: Likewise.
43309         * modules/rawmemchr (Files): Distribute new file.
43310         * modules/strchrnul (Files): Likewise.
43311         Suggested by Bruno Haible.
43312
43313 2008-04-29  Bruno Haible  <bruno@clisp.org>
43314
43315         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
43316         (inet_ntop, inet_pton): Change portability warning's wording.
43317         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
43318         Invoke gl_CHECK_NEXT_HEADERS.
43319         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
43320         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
43321         set ARPA_INET_H.
43322         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43323         * modules/arpa_inet (Description): No longer only for systems that
43324         lack it.
43325         (Depends-on): Add include_next.
43326         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
43327         HAVE_ARPA_INET_H.
43328
43329 2008-04-29  Jim Meyering  <meyering@redhat.com>
43330
43331         * modules/mkdir (License): Re-license as LGPLv2+.
43332
43333 2008-04-29  Bruno Haible  <bruno@clisp.org>
43334
43335         * modules/rawmemchr (Maintainer): Set to Eric.
43336         * modules/strchrnul (Maintainer): Likewise.
43337
43338 2008-04-29  Simon Josefsson  <simon@josefsson.org>
43339
43340         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
43341         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
43342
43343         * modules/arpa_inet (arpa/inet.h): Use them.
43344
43345 2008-04-28  Eric Blake  <ebb9@byu.net>
43346
43347         Test getndelim2.
43348         * modules/getndelim2-tests: New file.
43349         * tests/test-getndelim2.c: Likewise.
43350         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
43351         stream.
43352         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
43353
43354         * MODULES.html.sh: Document new module.
43355
43356 2008-04-20  Bruno Haible  <bruno@clisp.org>
43357
43358         * lib/c-stack.c (die): Use raise.
43359         * modules/c-stack (Depends-on): Add raise.
43360
43361 2008-04-28  Bruno Haible  <bruno@clisp.org>
43362
43363         Expect rpmatch to be declared.
43364         * lib/yesno.c (rpmatch): Remove declaration.
43365
43366         Declare rpmatch.
43367         * lib/stdlib.in.h (rpmatch): New declaration.
43368         * lib/rpmatch.c: Include <stdlib.h> first.
43369         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
43370         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
43371         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
43372         HAVE_RPMATCH.
43373         * modules/rpmatch (Depends-on): Add stdlib, extensions.
43374         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43375         (Include): Set to <stdlib.h>.
43376         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
43377         HAVE_RPMATCH.
43378         * NEWS: Document the change.
43379
43380 2008-04-28  Bruno Haible  <bruno@clisp.org>
43381
43382         Change rpmatch to use nl_langinfo when appropriate.
43383         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
43384         (N_): New macro.
43385         (localized_pattern): New function/macro.
43386         (try): Remove match, nomatch arguments. Copy the pattern into safe
43387         memory before caching it.
43388         (rpmatch): Use localized_pattern. Add translator comments.
43389         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
43390         Suggested by Eric Blake.
43391         * modules/rpmatch (Depends-on): Add stdbool.
43392
43393 2008-04-28  Eric Blake  <ebb9@byu.net>
43394
43395         Add rawmemchr module, matching glibc.
43396         * modules/string (Makefile.am): New indicator.
43397         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
43398         * lib/string.in.h (rawmemchr): Declare when appropriate.
43399         * modules/rawmemchr: New file.
43400         * m4/rawmemchr.m4: Likewise.
43401         * lib/rawmemchr.c: Likewise.
43402         * modules/rawmemchr-tests: Likewise.
43403         * tests/test-rawmemchr.c: Likewise.
43404         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
43405         module.
43406         * modules/strchrnul (Depends-on): Add rawmemchr.
43407         * lib/strchrnul.c (strchrnul): Optimize a corner case.
43408
43409         Whitespace cleanup.
43410         * tests/test-strchrnul.c: Reindent.
43411         * lib/strchrnul.c: Likewise.
43412
43413         Optimize and test strchrnul.
43414         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
43415         * modules/strchrnul-tests: New file.
43416         * tests/test-strchrnul.c: Likewise.
43417
43418         Remove intprops dependency.
43419         * modules/memchr (Depends-on): Remove intprops.
43420         * modules/memrchr (Depends-on): Likewise.
43421         * modules/memchr2 (Depends-on): Likewise.
43422         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
43423         * lib/memrchr.c (__memrchr): Likewise.
43424         * lib/memrchr2.c (memchr2): Likewise.
43425         Reported by Simon Josefsson.
43426
43427 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43428
43429         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
43430         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43431
43432 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43433
43434         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
43435
43436         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
43437
43438         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
43439
43440         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
43441         declarations.
43442         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
43443
43444         * m4/inet_pton.m4: Don't check for header files.
43445
43446         * m4/inet_ntop.m4: Don't check for header files.
43447
43448 2008-04-28  Simon Josefsson  <simon@josefsson.org>
43449
43450         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
43451         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
43452         trigger for cygwin).
43453         Reported by Bruno Haible  <bruno@clisp.org>.
43454
43455 2008-04-28  Bruno Haible  <bruno@clisp.org>
43456
43457         * doc/posix-functions/strdup.texi: Mention mingw problem.
43458
43459 2008-04-27  Bruno Haible  <bruno@clisp.org>
43460
43461         * modules/stat-time-tests (Depends-on): Add sleep.
43462         * tests/test-stat-time.c (force_unlink): New function.
43463         (cleanup): Use it.
43464         (test_mtime): Remove the ctime related tests.
43465         (test_ctime): New function, containing the ctime related tests.
43466         (main): Call test_ctime, except on native Windows platforms.
43467
43468 2008-04-27  Bruno Haible  <bruno@clisp.org>
43469
43470         * lib/rpmatch.c (rpmatch): Add some comments.
43471         Reported by James Youngman <jay@gnu.org>.
43472
43473 2008-04-27  Bruno Haible  <bruno@clisp.org>
43474
43475         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
43476         quiet NaNs.
43477
43478 2008-04-27  Bruno Haible  <bruno@clisp.org>
43479
43480         Make test-yesno.sh work on mingw.
43481         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
43482         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
43483         (main): Set stdin to binary mode.
43484         * modules/yesno-tests (Depends-on): Add binary-io.
43485
43486 2008-04-27  Bruno Haible  <bruno@clisp.org>
43487
43488         Fix 'isfinite' on x86, x86_64, ia64 platforms.
43489         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
43490         argument that lie outside the IEEE 854 domain.
43491         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
43492         (gl_ISFINITE): Use it.
43493         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
43494
43495 2008-04-27  Bruno Haible  <bruno@clisp.org>
43496
43497         Allow local renaming in config.h.
43498         * lib/memrchr.c (memrchr): Don't undefine outside libc.
43499
43500 2008-04-27  Bruno Haible  <bruno@clisp.org>
43501
43502         * lib/memchr.c (__memchr): Change type of 'i'.
43503         * lib/memchr2.c (memchr2): Likewise.
43504
43505 2008-04-26  Eric Blake  <ebb9@byu.net>
43506         and Bruno Haible  <bruno@clisp.org>
43507
43508         Optimize and test memrchr.
43509         * modules/memrchr (Depends-on): Add intprops.
43510         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
43511         * modules/memrchr-tests: New file.
43512         * tests/test-memrchr.c: New file.
43513
43514 2008-04-26  Bruno Haible  <bruno@clisp.org>
43515
43516         Add tentative support for DragonFly BSD.
43517         * lib/stdio-impl.h: Add macros for DragonFly BSD.
43518         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
43519         fp.
43520         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
43521         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
43522         * lib/fpurge.c (fpurge): Likewise.
43523         * lib/freadable.c (freaadable): Likewise.
43524         * lib/freadahead.c (freadahead): Likewise.
43525         * lib/freading.c (freading): Likewise.
43526         * lib/freadptr.c (freadptr): Likewise.
43527         * lib/freadseek.c (freadptrinc): Likewise.
43528         * lib/fseeko.c (fseeko): Likewise.
43529         * lib/fseterr.c (fseterr): Likewise.
43530         * lib/fwritable.c (fwritable): Likewise.
43531         * lib/fwriting.c (fwriting): Likewise.
43532
43533 2008-04-26  Bruno Haible  <bruno@clisp.org>
43534
43535         * lib/stdio-impl.h: New file.
43536         * lib/fbufmode.c: Include stdio-impl.h.
43537         (fbufmode): Use fp_, remove redundant #defines.
43538         * lib/fflush.c: Include stdio-impl.h.
43539         (clear_ungetc_buffer): Remove redundant #defines.
43540         * lib/fpurge.c: Include stdio-impl.h.
43541         (fpurge): Remove redundant #defines.
43542         * lib/freadable.c: Include stdio-impl.h.
43543         (freadable): Remove redundant #defines.
43544         * lib/freadahead.c: Include stdio-impl.h.
43545         (freadahead): Remove redundant #defines.
43546         * lib/freading.c: Include stdio-impl.h.
43547         (freading): Remove redundant #defines.
43548         * lib/freadptr.c: Include stdio-impl.h.
43549         (freadptr): Remove redundant #defines.
43550         * lib/freadseek.c: Include stdio-impl.h.
43551         (freadptrinc): Remove redundant #defines.
43552         * lib/fseeko.c: Include stdio-impl.h.
43553         (rpl_fseeko): Remove redundant #defines.
43554         * lib/fseterr.c: Include stdio-impl.h.
43555         (fseterr): Remove redundant #defines.
43556         * lib/fwritable.c: Include stdio-impl.h.
43557         (fwritable: Remove redundant #defines.
43558         * lib/fwriting.c: Include stdio-impl.h.
43559         (fwriting): Remove redundant #defines.
43560         * modules/fbufmode (Files): Add lib/stdio-impl.h.
43561         * modules/fflush (Files): Likewise.
43562         * modules/fpurge (Files): Likewise.
43563         * modules/freadable (Files): Likewise.
43564         * modules/freadahead (Files): Likewise.
43565         * modules/freading (Files): Likewise.
43566         * modules/freadptr (Files): Likewise.
43567         * modules/freadseek (Files): Likewise.
43568         * modules/fseeko (Files): Likewise.
43569         * modules/fseterr (Files): Likewise.
43570         * modules/fwritable (Files): Likewise.
43571         * modules/fwriting (Files): Likewise.
43572
43573 2008-04-26  Bruno Haible  <bruno@clisp.org>
43574
43575         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
43576         restore_seek_optimization, update_fpos_cache): New functions, extracted
43577         from rpl_fflush.
43578         (rpl_fflush): Use them.
43579         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
43580         (gl_REPLACE_FFLUSH): Use it.
43581
43582 2008-04-26  Bruno Haible  <bruno@clisp.org>
43583
43584         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
43585         on Solaris.
43586         * tests/test-xstrtoimax.sh: Likewise.
43587         * tests/test-xstrtoumax.sh: Likewise.
43588         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43589
43590 2008-04-26  Bruno Haible  <bruno@clisp.org>
43591
43592         * modules/memchr-tests: New file.
43593         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
43594
43595 2008-04-26  Eric Blake  <ebb9@byu.net>
43596             Bruno Haible  <bruno@clisp.org>
43597
43598         * lib/memchr.c: Include intprops.h.
43599         (__memchr): Optimize parallel detection of matching bytes. Rename local
43600         variables. Add explanatory comments.
43601
43602 2008-04-26  Bruno Haible  <bruno@clisp.org>
43603
43604         Fix module 'memchr', broken since 2000-10-28.
43605         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
43606
43607 2008-04-26  Bruno Haible  <bruno@clisp.org>
43608
43609         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
43610         comments.
43611
43612 2008-04-25  Eric Blake  <ebb9@byu.net>
43613
43614         Use native fstatat on cygwin 1.7.0.
43615         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
43616         first.
43617
43618 2008-04-23  Eric Blake  <ebb9@byu.net>
43619
43620         Improve memchr2 performance.
43621         * lib/memchr2.c (memchr2): Further optimize parallel detection of
43622         NUL bytes.
43623         * modules/memchr2 (Depends-on): Use intprops.h.
43624
43625 2008-04-23  Simon Josefsson  <simon@josefsson.org>
43626
43627         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
43628         an inline function instead of a CPP macro.  Patch by Ben Pfaff
43629         <blp@cs.stanford.edu>.
43630
43631 2008-04-23  Simon Josefsson  <simon@josefsson.org>
43632
43633         * lib/arpa_inet.in.h: New file.
43634
43635         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
43636         (Makefile.am): Sed in substitute header file.
43637
43638         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
43639         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
43640
43641         * modules/inet_ntop (configure.ac): Use
43642         gl_ARPA_INET_MODULE_INDICATOR.
43643
43644         * modules/inet_pton (configure.ac): Use
43645         gl_ARPA_INET_MODULE_INDICATOR.
43646
43647 2008-04-22  Jim Meyering  <meyering@redhat.com>
43648
43649         * modules/verify (License): Re-license as LGPLv2+.
43650
43651 2008-04-22  Simon Josefsson  <simon@josefsson.org>
43652
43653         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
43654         parameter to void* as per POSIX standard (MinGW uses char*).
43655
43656 2008-04-21  Bruno Haible  <bruno@clisp.org>
43657
43658         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43659         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43660         Define to replacements if REPLACE_ISWCNTRL is 1.
43661         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
43662         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
43663         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
43664         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
43665         what it fixes.
43666         * doc/posix-functions/iswalpha.texi: Likewise.
43667         * doc/posix-functions/iswblank.texi: Likewise.
43668         * doc/posix-functions/iswcntrl.texi: Likewise.
43669         * doc/posix-functions/iswdigit.texi: Likewise.
43670         * doc/posix-functions/iswgraph.texi: Likewise.
43671         * doc/posix-functions/iswlower.texi: Likewise.
43672         * doc/posix-functions/iswprint.texi: Likewise.
43673         * doc/posix-functions/iswpunct.texi: Likewise.
43674         * doc/posix-functions/iswspace.texi: Likewise.
43675         * doc/posix-functions/iswupper.texi: Likewise.
43676         * doc/posix-functions/iswxdigit.texi: Likewise.
43677         Reported by Alain Guibert.
43678
43679 2008-04-21  Bruno Haible  <bruno@clisp.org>
43680
43681         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
43682         Patch by Alain Guibert.
43683
43684 2008-04-21  Bruno Haible  <bruno@clisp.org>
43685
43686         Fix test failures on mingw.
43687         * tests/test-xstrtol.c (print_no_progname): New function.
43688         (main): Install it in error_print_progname hook.
43689         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
43690         * tests/test-xstrtoimax.sh: Likewise.
43691         * tests/test-xstrtoumax.sh: Likewise.
43692
43693 2008-04-21  Bruno Haible  <bruno@clisp.org>
43694
43695         Fix test failure on mingw.
43696         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
43697
43698 2008-04-21  Bruno Haible  <bruno@clisp.org>
43699
43700         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
43701         Actually assign a value.
43702
43703 2008-04-20  Bruno Haible  <bruno@clisp.org>
43704
43705         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
43706         take 2.
43707         * lib/canonicalize.c (canonicalize_file_name): Elide if the
43708         'canonicalize-lgpl' module is also used.
43709         * lib/canonicalize-lgpl.c: Undo last change.
43710         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
43711
43712 2008-04-20  Bruno Haible  <bruno@clisp.org>
43713
43714         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
43715         config.h. Provide _mkdir based fallback for mingw.
43716         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
43717         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
43718         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
43719         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
43720         rather than defining mkdir in config.h.
43721         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
43722         (gl_SYS_STAT_H_DEFAULTS): New macro.
43723         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
43724         HAVE_IO_H any more.
43725         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
43726         HAVE_DECL_MKDIR and HAVE_IO_H.
43727
43728 2008-04-20  Bruno Haible  <bruno@clisp.org>
43729
43730         * lib/isapipe.c: Port to native Windows platforms.
43731
43732 2008-04-20  Bruno Haible  <bruno@clisp.org>
43733
43734         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
43735
43736 2008-04-21  Eric Blake  <ebb9@byu.net>
43737
43738         Work around preprocessors that don't handle UINTMAX_MAX.
43739         * lib/memchr2.c (memchr2): Avoid embedded #if.
43740         Reported by Alain Guibert, fix suggested by Bruno Haible.
43741
43742 2008-04-21  Simon Josefsson  <simon@josefsson.org>
43743
43744         * doc/posix-functions/strftime.texi (strftime): Explain better
43745         Windows incompatibility.  Suggested by Micah Cowan
43746         <micah@cowan.name>.
43747
43748 2008-04-20  Bruno Haible  <bruno@clisp.org>
43749
43750         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
43751         unistr/u8-mblen.
43752
43753 2008-04-20  Bruno Haible  <bruno@clisp.org>
43754
43755         Fix test failure on platforms with non-GNU iconv.
43756         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
43757         (U_TO_U8): Use it, rather than u16_to_u8.
43758         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
43759         units at the end of the input string.
43760         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
43761
43762 2008-04-20  Bruno Haible  <bruno@clisp.org>
43763
43764         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
43765         when the resulting length is 0.
43766         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
43767
43768 2008-04-20  Bruno Haible  <bruno@clisp.org>
43769
43770         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
43771         works.
43772         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
43773
43774 2008-04-20  Bruno Haible  <bruno@clisp.org>
43775
43776         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
43777         * modules/tsearch-tests (configure.ac): Test for initstate function.
43778
43779 2008-04-20  Bruno Haible  <bruno@clisp.org>
43780
43781         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
43782         for nlink_t if missing.
43783         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
43784
43785 2008-04-19  Bruno Haible  <bruno@clisp.org>
43786
43787         Work around snprintf bug on Linux libc5.
43788         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
43789         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43790         gl_SNPRINTF_SIZE1.
43791         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43792         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
43793         that test failed.
43794         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
43795         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
43796         * modules/snprintf (Files): Add m4/printf.m4.
43797         * modules/vsnprintf (Files): Likewise.
43798         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
43799         * doc/posix-functions/vsnprintf.texi: Likewise.
43800
43801 2008-04-19  Bruno Haible  <bruno@clisp.org>
43802
43803         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
43804         from 0.0058 to less than 10^-7.
43805
43806 2008-04-19  Bruno Haible  <bruno@clisp.org>
43807
43808         Fix rounding when a precision is given.
43809         * lib/vasnprintf.c (is_borderline): New function.
43810         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
43811         9...9x.
43812         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
43813         %e, %g.
43814         * tests/test-vasprintf-posix.c (test_function): Likewise.
43815         * tests/test-snprintf-posix.h (test_function): Likewise.
43816         * tests/test-sprintf-posix.h (test_function): Likewise.
43817         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
43818         * tests/test-printf-posix.h (test_function): Likewise.
43819         * tests/test-printf-posix.output: Update.
43820         Reported by John Darrington <john@darrington.wattle.id.au> via
43821         Ben Pfaff <blp@cs.stanford.edu>.
43822
43823 2008-04-18  Simon Josefsson  <simon@josefsson.org>
43824
43825         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
43826         Suggested by Bruno Haible <bruno@clisp.org>.
43827
43828 2008-04-17  Bruno Haible  <bruno@clisp.org>
43829
43830         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
43831         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
43832         implementation.
43833         Patch by Bruce Merry <bmerry@gmail.com>.
43834
43835 2008-04-17  Simon Josefsson  <simon@josefsson.org>
43836
43837         * doc/posix-functions/strftime.texi (strftime): Mention that %e
43838         doesn't work under Windows.
43839
43840 2008-04-16  Bruno Haible  <bruno@clisp.org>
43841
43842         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
43843         New macros.
43844         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
43845         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
43846         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
43847         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
43848         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
43849         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
43850         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
43851         macros.
43852         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
43853         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
43854         Northern Sotho, Uighur.
43855
43856 2008-04-16  Bruno Haible  <bruno@clisp.org>
43857
43858         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
43859         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
43860         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
43861         Reported by Daniel Bergström <daniel@octocode.com>.
43862
43863 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
43864             Bruno Haible  <bruno@clisp.org>
43865
43866         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
43867         function.
43868         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
43869         New functions, mostly extracted from gl_locale_name_default.
43870         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
43871
43872 2008-04-16  Eric Blake  <ebb9@byu.net>
43873
43874         Adjust strtod detection to catch glibc 2.7 bug.
43875         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
43876         Reported by John Gatewood Ham.
43877
43878 2008-04-16  Bruno Haible  <bruno@clisp.org>
43879
43880         Add tentative support for Linux libc5.
43881         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
43882         * lib/fpurge.c (fpurge): Likewise.
43883         * lib/freadable.c (freadable): Likewise.
43884         * lib/freadahead.c (freadahead): Likewise.
43885         * lib/freading.c (freading): Likewise.
43886         * lib/freadptr.c (freadptr): Likewise.
43887         * lib/freadseek.c (freadptrinc): Likewise.
43888         * lib/fseeko.c (rpl_fseeko): Likewise.
43889         * lib/fseterr.c (fseterr): Likewise.
43890         * lib/fwritable.c (fwritable): Likewise.
43891         * lib/fwriting.c (fwriting): Likewise.
43892         Reported by Alain Guibert <alguibert+bts@free.fr>.
43893
43894 2008-04-15  Bruno Haible  <bruno@clisp.org>
43895
43896         * modules/mathl (configure.ac): Define module indicator.
43897
43898 2008-04-15  Bruno Haible  <bruno@clisp.org>
43899
43900         * lib/logl.c (logl): Remove unused variables.
43901
43902 2008-04-15  Bruno Haible  <bruno@clisp.org>
43903
43904         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
43905         fails.
43906
43907 2008-04-15  Bruno Haible  <bruno@clisp.org>
43908
43909         * lib/trim.c (trim2): Fix argument of isspace() macro.
43910
43911 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
43912
43913         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
43914         to 0.
43915         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
43916
43917 2008-04-14  Bruno Haible  <bruno@clisp.org>
43918
43919         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
43920         AC_LANG_PROGRAM argument.
43921         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
43922         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
43923         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43924         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
43925         * m4/math_h.m4 (gl_MATH_H): Likewise.
43926         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
43927         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43928         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
43929         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
43930         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
43931         * m4/regex.m4 (gl_REGEX): Likewise.
43932         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
43933         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
43934         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43935         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
43936         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
43937         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43938         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43939         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
43940
43941 2008-04-14  Jim Meyering  <meyering@redhat.com>
43942
43943         test-strtod: fix typos: s/abs/fabs/
43944         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
43945
43946 2008-04-13  Bruno Haible  <bruno@clisp.org>
43947
43948         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
43949         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
43950         module is also used and while not building the reloc-wrapper.
43951
43952 2008-04-13  Bruno Haible  <bruno@clisp.org>
43953
43954         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
43955
43956 2008-04-13  Bruno Haible  <bruno@clisp.org>
43957
43958         Fix AIX compilation failure introduced on 2008-04-02.
43959         * tests/test-frexp.c (exp): Undefine before redefining.
43960         * tests/test-frexpl.c (exp): Likewise.
43961
43962 2008-04-13  Bruno Haible  <bruno@clisp.org>
43963
43964         Work around a HP-UX stdio bug.
43965         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
43966         * tests/test-ftello.c (main): Likewise.
43967         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
43968         * doc/posix-functions/ftello.texi: Likewise.
43969
43970 2008-04-13  Bruno Haible  <bruno@clisp.org>
43971
43972         Make test-signbit pass on HP-UX/hppa.
43973         * tests/test-signbit.c (minus_zerol): New variable.
43974         (test_signbitl): Use it.
43975
43976 2008-04-13  Bruno Haible  <bruno@clisp.org>
43977
43978         Make truncl work on OSF/1 4.0.
43979         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
43980         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43981         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43982         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
43983         HAVE_DECL_TRUNCL.
43984         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
43985         HAVE_DECL_TRUNCL.
43986         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
43987
43988 2008-04-13  Bruno Haible  <bruno@clisp.org>
43989
43990         * lib/unictype.h: Remove trailing comma from enumeration definitions.
43991
43992 2008-04-13  Bruno Haible  <bruno@clisp.org>
43993
43994         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
43995         expression, so as to avoid HP-UX 11 cc compiler bug.
43996
43997 2008-04-13  Bruno Haible  <bruno@clisp.org>
43998
43999         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
44000
44001 2008-04-13  Bruno Haible  <bruno@clisp.org>
44002
44003         * lib/git-merge-changelog.c: Remove empty declaration outside of
44004         functions.
44005
44006 2008-04-13  Bruno Haible  <bruno@clisp.org>
44007
44008         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
44009
44010 2008-04-13  Bruno Haible  <bruno@clisp.org>
44011
44012         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
44013         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
44014         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
44015         also if it exists but lacks definitions of the SHUT_* macros.
44016         * modules/sys_socket (Description): Update.
44017         Reported by Elbert Pol <e.pol@chello.nl>.
44018
44019 2008-04-13  Bruno Haible  <bruno@clisp.org>
44020
44021         * lib/localcharset.c (OS2): Don't redefine if already defined.
44022         Reported by Elbert Pol <e.pol@chello.nl>.
44023
44024 2008-04-13  Bruno Haible  <bruno@clisp.org>
44025
44026         * lib/binary-io.h [__EMX__]: Include <io.h>.
44027         Reported by Elbert Pol <e.pol@chello.nl>.
44028
44029 2008-04-12  Bruno Haible  <bruno@clisp.org>
44030
44031         * lib/fpucw.h: Enable the definitions also for x86_64.
44032         Needed for NetBSD/x86_64.
44033         Reported by Thomas Klausner <tk@giga.or.at>.
44034
44035 2008-04-12  Bruno Haible  <bruno@clisp.org>
44036
44037         * tests/test-strtod.c: Include isnand.h.
44038         (main): Use isnand instead of isnan.
44039         Reported by Jim Meyering.
44040
44041 2008-04-12  Bruno Haible  <bruno@clisp.org>
44042
44043         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
44044         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
44045
44046 2008-04-12  Jim Meyering  <meyering@redhat.com>
44047
44048         * m4/math_h.m4 (gl_MATH_H): Fix typos.
44049
44050 2008-04-12  Bruno Haible  <bruno@clisp.org>
44051
44052         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
44053         Reported by Elbert Pol <e.pol@chello.nl>.
44054
44055 2008-04-12  Eric Blake  <ebb9@byu.net>
44056
44057         Work around Solaris 10 math.h bug.
44058         * m4/math_h.m4 (gl_MATH_H): Check for bug.
44059         (gl_MATH_H_DEFAULTS): Set up default.
44060         * modules/math (Makefile.am): Replace new indicators.
44061         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
44062         * tests/test-math.c (main): Test this.
44063         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
44064         * doc/posix-headers/math.texi (math.h): Mention bug.
44065         Reported by Nelson H. F. Beebe and Jim Meyering.
44066
44067 2008-04-11  Bruno Haible  <bruno@clisp.org>
44068
44069         Adapt to future versions of Apple GCC.
44070         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
44071         Reported by Peter O'Gorman <peter@pogma.com>.
44072
44073 2008-04-11  Bruno Haible  <bruno@clisp.org>
44074
44075         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
44076
44077 2008-04-11  Bruno Haible  <bruno@clisp.org>
44078
44079         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
44080
44081         * modules/getaddrinfo-tests (Makefile.am): Define
44082         test_getaddrinfo_LDADD.
44083
44084 2008-04-11  Bruno Haible  <bruno@clisp.org>
44085
44086         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
44087         (init): Fix syntax error.
44088         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
44089         is declared.
44090
44091 2008-04-11  Bruno Haible  <bruno@clisp.org>
44092
44093         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
44094         * modules/glob (Depends-on): Add stdbool.
44095
44096 2008-04-11  Bruno Haible  <bruno@clisp.org>
44097
44098         * lib/trim.c: Include <string.h>.
44099
44100 2008-04-11  Eric Blake  <ebb9@byu.net>
44101
44102         Avoid compile failure on OS/2.
44103         * lib/regex_internal.h (internal_function): Disable optimization
44104         on OS/2 (__EMX__), where it caused compiler error.
44105         Reported by Elbert Pol.
44106
44107 2008-04-11  Bruno Haible  <bruno@clisp.org>
44108
44109         Flush the standard error stream before aborting. Needed on mingw.
44110         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
44111         * tests/test-array_list.c (ASSERT): Likewise.
44112         * tests/test-array_oset.c (ASSERT): Likewise.
44113         * tests/test-avltree_list.c (ASSERT): Likewise.
44114         * tests/test-avltree_oset.c (ASSERT): Likewise.
44115         * tests/test-avltreehash_list.c (ASSERT): Likewise.
44116         * tests/test-binary-io.c (ASSERT): Likewise.
44117         * tests/test-byteswap.c (ASSERT): Likewise.
44118         * tests/test-c-ctype.c (ASSERT): Likewise.
44119         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
44120         * tests/test-c-strcasestr.c (ASSERT): Likewise.
44121         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
44122         * tests/test-c-strstr.c (ASSERT): Likewise.
44123         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
44124         * tests/test-canonicalize.c (ASSERT): Likewise.
44125         * tests/test-carray_list.c (ASSERT): Likewise.
44126         * tests/test-ceilf1.c (ASSERT): Likewise.
44127         * tests/test-ceilf2.c (ASSERT): Likewise.
44128         * tests/test-ceill.c (ASSERT): Likewise.
44129         * tests/test-count-one-bits.c (ASSERT): Likewise.
44130         * tests/test-fbufmode.c (ASSERT): Likewise.
44131         * tests/test-fflush2.c (ASSERT): Likewise.
44132         * tests/test-floorf1.c (ASSERT): Likewise.
44133         * tests/test-floorf2.c (ASSERT): Likewise.
44134         * tests/test-floorl.c (ASSERT): Likewise.
44135         * tests/test-fopen.c (ASSERT): Likewise.
44136         * tests/test-fpending.c (ASSERT): Likewise.
44137         * tests/test-fprintf-posix.c (ASSERT): Likewise.
44138         * tests/test-fpurge.c (ASSERT): Likewise.
44139         * tests/test-freadable.c (ASSERT): Likewise.
44140         * tests/test-freadahead.c (ASSERT): Likewise.
44141         * tests/test-freading.c (ASSERT): Likewise.
44142         * tests/test-freadptr.c (ASSERT): Likewise.
44143         * tests/test-freadptr2.c (ASSERT): Likewise.
44144         * tests/test-freadseek.c (ASSERT): Likewise.
44145         * tests/test-freopen.c (ASSERT): Likewise.
44146         * tests/test-frexp.c (ASSERT): Likewise.
44147         * tests/test-frexpl.c (ASSERT): Likewise.
44148         * tests/test-fseek.c (ASSERT): Likewise.
44149         * tests/test-fseeko.c (ASSERT): Likewise.
44150         * tests/test-fstrcmp.c (ASSERT): Likewise.
44151         * tests/test-ftell.c (ASSERT): Likewise.
44152         * tests/test-ftello.c (ASSERT): Likewise.
44153         * tests/test-func.c (ASSERT): Likewise.
44154         * tests/test-fwritable.c (ASSERT): Likewise.
44155         * tests/test-fwriting.c (ASSERT): Likewise.
44156         * tests/test-getdelim.c (ASSERT): Likewise.
44157         * tests/test-getline.c (ASSERT): Likewise.
44158         * tests/test-i-ring.c (ASSERT): Likewise.
44159         * tests/test-iconv-utf.c (ASSERT): Likewise.
44160         * tests/test-iconv.c (ASSERT): Likewise.
44161         * tests/test-isfinite.c (ASSERT): Likewise.
44162         * tests/test-isnand.c (ASSERT): Likewise.
44163         * tests/test-isnanf.c (ASSERT): Likewise.
44164         * tests/test-isnanl.h (ASSERT): Likewise.
44165         * tests/test-ldexpl.c (ASSERT): Likewise.
44166         * tests/test-linked_list.c (ASSERT): Likewise.
44167         * tests/test-linkedhash_list.c (ASSERT): Likewise.
44168         * tests/test-localename.c (ASSERT): Likewise.
44169         * tests/test-lseek.c (ASSERT): Likewise.
44170         * tests/test-mbscasecmp.c (ASSERT): Likewise.
44171         * tests/test-mbscasestr1.c (ASSERT): Likewise.
44172         * tests/test-mbscasestr2.c (ASSERT): Likewise.
44173         * tests/test-mbscasestr3.c (ASSERT): Likewise.
44174         * tests/test-mbscasestr4.c (ASSERT): Likewise.
44175         * tests/test-mbschr.c (ASSERT): Likewise.
44176         * tests/test-mbscspn.c (ASSERT): Likewise.
44177         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
44178         * tests/test-mbspbrk.c (ASSERT): Likewise.
44179         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
44180         * tests/test-mbsrchr.c (ASSERT): Likewise.
44181         * tests/test-mbsspn.c (ASSERT): Likewise.
44182         * tests/test-mbsstr1.c (ASSERT): Likewise.
44183         * tests/test-mbsstr2.c (ASSERT): Likewise.
44184         * tests/test-mbsstr3.c (ASSERT): Likewise.
44185         * tests/test-memchr2.c (ASSERT): Likewise.
44186         * tests/test-memmem.c (ASSERT): Likewise.
44187         * tests/test-open.c (ASSERT): Likewise.
44188         * tests/test-printf-frexp.c (ASSERT): Likewise.
44189         * tests/test-printf-frexpl.c (ASSERT): Likewise.
44190         * tests/test-printf-posix.c (ASSERT): Likewise.
44191         * tests/test-quotearg.c (ASSERT): Likewise.
44192         * tests/test-rbtree_list.c (ASSERT): Likewise.
44193         * tests/test-rbtree_oset.c (ASSERT): Likewise.
44194         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
44195         * tests/test-round1.c (ASSERT): Likewise.
44196         * tests/test-roundf1.c (ASSERT): Likewise.
44197         * tests/test-roundl.c (ASSERT): Likewise.
44198         * tests/test-signbit.c (ASSERT): Likewise.
44199         * tests/test-sleep.c (ASSERT): Likewise.
44200         * tests/test-snprintf-posix.c (ASSERT): Likewise.
44201         * tests/test-snprintf.c (ASSERT): Likewise.
44202         * tests/test-sprintf-posix.c (ASSERT): Likewise.
44203         * tests/test-stat-time.c (ASSERT): Likewise.
44204         * tests/test-strcasestr.c (ASSERT): Likewise.
44205         * tests/test-strerror.c (ASSERT): Likewise.
44206         * tests/test-striconv.c (ASSERT): Likewise.
44207         * tests/test-striconveh.c (ASSERT): Likewise.
44208         * tests/test-striconveha.c (ASSERT): Likewise.
44209         * tests/test-strsignal.c (ASSERT): Likewise.
44210         * tests/test-strstr.c (ASSERT): Likewise.
44211         * tests/test-strtod.c (ASSERT): Likewise.
44212         * tests/test-trunc1.c (ASSERT): Likewise.
44213         * tests/test-trunc2.c (ASSERT): Likewise.
44214         * tests/test-truncf1.c (ASSERT): Likewise.
44215         * tests/test-truncf2.c (ASSERT): Likewise.
44216         * tests/test-truncl.c (ASSERT): Likewise.
44217         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
44218         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
44219         * tests/test-vasnprintf.c (ASSERT): Likewise.
44220         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
44221         * tests/test-vasprintf.c (ASSERT): Likewise.
44222         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
44223         * tests/test-vprintf-posix.c (ASSERT): Likewise.
44224         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
44225         * tests/test-vsnprintf.c (ASSERT): Likewise.
44226         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
44227         * tests/test-wcwidth.c (ASSERT): Likewise.
44228         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
44229         * tests/test-xprintf-posix.c (ASSERT): Likewise.
44230         * tests/test-xvasprintf.c (ASSERT): Likewise.
44231         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
44232         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
44233         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
44234         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
44235         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
44236         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
44237         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
44238         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
44239         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
44240         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
44241         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
44242         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
44243         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
44244         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
44245         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
44246         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
44247         * tests/unictype/test-block_list.c (ASSERT): Likewise.
44248         * tests/unictype/test-block_of.c (ASSERT): Likewise.
44249         * tests/unictype/test-block_test.c (ASSERT): Likewise.
44250         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
44251         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
44252         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
44253         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
44254         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
44255         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
44256         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
44257         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
44258         * tests/unictype/test-combining.c (ASSERT): Likewise.
44259         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
44260         * tests/unictype/test-digit.c (ASSERT): Likewise.
44261         * tests/unictype/test-mirror.c (ASSERT): Likewise.
44262         * tests/unictype/test-numeric.c (ASSERT): Likewise.
44263         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
44264         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
44265         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
44266         * tests/unictype/test-scripts.c (ASSERT): Likewise.
44267         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
44268         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
44269         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
44270         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
44271         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
44272         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
44273         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
44274         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
44275         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
44276         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
44277         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
44278         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
44279         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
44280         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
44281         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
44282         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
44283         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
44284         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
44285         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
44286         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
44287         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
44288         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
44289         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
44290         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
44291         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
44292         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
44293         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
44294         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
44295         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
44296         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
44297         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
44298         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
44299         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
44300         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
44301         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
44302         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
44303         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
44304         Reported by Eric Blake.
44305
44306 2008-04-11  Bruno Haible  <bruno@clisp.org>
44307
44308         * lib/wchar.in.h: Tweak comment.
44309
44310 2008-04-11  Bruno Haible  <bruno@clisp.org>
44311
44312         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
44313         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
44314         gl_COMMON.
44315         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
44316
44317 2008-04-11  Bruno Haible  <bruno@clisp.org>
44318
44319         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
44320
44321 2008-04-11  Simon Josefsson  <simon@josefsson.org>
44322
44323         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
44324         of attempting to use non-existing /dev/*random.  Based on patch
44325         from Adam Strzelecki <ono@java.pl> in
44326         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
44327
44328 2008-04-08  Bruno Haible  <bruno@clisp.org>
44329
44330         Add tentative support for emx+gcc.
44331         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
44332         * lib/fpurge.c (fpurge): Likewise.
44333         * lib/freadable.c (freadable): Likewise.
44334         * lib/freadahead.c (freadahead): Likewise.
44335         * lib/freading.c (freading): Likewise.
44336         * lib/freadptr.c (freadptr): Likewise.
44337         * lib/freadseek.c (freadptrinc): Likewise.
44338         * lib/fseeko.c (rpl_fseeko): Likewise.
44339         * lib/fseterr.c (fseterr): Likewise.
44340         * lib/fwritable.c (fwritable): Likewise.
44341         * lib/fwriting.c (fwriting): Likewise.
44342         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
44343
44344 2008-04-09  Eric Blake  <ebb9@byu.net>
44345
44346         Avoid some autoconf warnings.
44347         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
44348         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
44349         * m4/afs.m4 (gl_AFS): Likewise.
44350         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
44351         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
44352         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44353         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
44354         (gl_INTEGER_TYPE_SUFFIX): Likewise.
44355         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
44356         (AC_CHECK_DECLS_ONCE): Likewise.
44357         Rename file...
44358         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
44359         gnulib-tool requires autoconf 2.59 or better.
44360         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
44361
44362 2008-04-08  Eric Blake  <ebb9@byu.net>
44363
44364         Use 'git describe --match' if present (added in git 1.5.5).
44365         * build-aux/git-version-gen: Limit result to tags that match 'v*'
44366         if possible.
44367
44368 2008-04-08  Bruno Haible  <bruno@clisp.org>
44369
44370         Add tentative support for OpenServer.
44371         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
44372         _ptr, _cnt.
44373         * lib/fpurge.c (fpurge): Likewise.
44374         * lib/freadable.c (freadable): Likewise.
44375         * lib/freadahead.c (freadahead): Likewise.
44376         * lib/freading.c (freading): Likewise.
44377         * lib/freadptr.c (freadptr): Likewise.
44378         * lib/freadseek.c (freadptrinc): Likewise.
44379         * lib/fseeko.c (rpl_fseeko): Likewise.
44380         * lib/fseterr.c (fseterr): Likewise.
44381         * lib/fwritable.c (fwritable): Likewise.
44382         * lib/fwriting.c (fwriting): Likewise.
44383         Reported by Roger Cornelius <rac@tenzing.org> and
44384         Brian K. White <brian@aljex.com>.
44385
44386 2008-04-06  Jim Meyering  <meyering@redhat.com>
44387
44388         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
44389
44390 2008-04-06  Bruno Haible  <bruno@clisp.org>
44391
44392         Avoid possible error with non-ASCII bytes in UTF-8 locales.
44393         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
44394         * tests/test-printf-posix.sh: Likewise.
44395         * tests/test-vfprintf-posix.sh: Likewise.
44396         * tests/test-vprintf-posix.sh: Likewise.
44397         * tests/test-xprintf-posix.sh: Likewise.
44398
44399 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44400
44401         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
44402         hide error from 'ls', needed on OS/2.
44403         Report by Elbert Pol <elbert.pol@gmail.com>.
44404
44405 2008-04-04  Eric Blake  <ebb9@byu.net>
44406
44407         Make test-fseeko.c failures meaningful.
44408         * tests/test-fseeko.c: Print line number on failure.
44409         * tests/test-fseek.c: Likewise.
44410         Reported by Nelson H. F. Beebe.
44411
44412         Improve strtod bug detection check.
44413         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
44414         required for Solaris 10.
44415         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
44416
44417 2008-04-04  Bruno Haible  <bruno@clisp.org>
44418
44419         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
44420         by m4/setenv.m4.
44421
44422 2008-04-03  Eric Blake  <ebb9@byu.net>
44423
44424         Ensure sane .version contents.
44425         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
44426         version string.
44427         * build-aux/git-version-gen: Improve documentation.
44428
44429         Make GNU make output nicer.
44430         * top/GNUmakefile [!_have-Makefile]: Add dependency on
44431         MAKECMDGOALS to enforce message for all command line targets.  Set
44432         srcdir for use in maint.mk.
44433
44434         Another maintainer tweak.
44435         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
44436         a target that regenerates version.
44437
44438 2008-04-03  Jim Meyering  <meyering@redhat.com>
44439
44440         vc-list-files: don't cause coreutils "make po-check" failure
44441         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
44442
44443 2008-04-03  Eric Blake  <ebb9@byu.net>
44444
44445         Allow VPATH usage of vc-list-files.
44446         * build-aux/vc-list-files (scriptversion): Add timestamp.
44447         (options): Add --help, --version, -C.
44448         (CVS): Support installed cvsu.
44449
44450 2008-04-02  Bruno Haible  <bruno@clisp.org>
44451
44452         Avoid some "statement with no effect" warnings from gcc.
44453         * tests/test-wctype.c (main): Explicitly ignore unused values.
44454         Reported by Jim Meyering.
44455
44456 2008-04-02  Jim Meyering  <meyering@redhat.com>
44457
44458         Avoid some warnings from "gcc -Wshadow".
44459         * tests/test-frexp.c (exp): Define to a different identifier.
44460         * tests/test-frexpl.c (exp): Likewise.
44461
44462 2008-04-03  Jim Meyering  <meyering@redhat.com>
44463
44464         bootstrap: remove dangling *.[ch] symlinks from lib
44465         * build-aux/bootstrap [dangling symlink removal]: Move find's
44466         -depth option to precede all others, to avoid a warning.
44467         Remove *.[ch] files too, and from "$source_base" (usually lib/).
44468
44469 2008-04-02  Bruno Haible  <bruno@clisp.org>
44470
44471         Avoid some warnings from "gcc -Wshadow".
44472         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
44473         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
44474         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
44475         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
44476         Reported by Jim Meyering.
44477
44478 2008-04-01  Bruno Haible  <bruno@clisp.org>
44479
44480         Fix test to work on IRIX 6.5 with cc.
44481         * tests/test-math.c (numeric_equal): New function.
44482         (main): Use it.
44483
44484 2008-04-01  Bruno Haible  <bruno@clisp.org>
44485
44486         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
44487
44488 2008-04-01  Bruno Haible  <bruno@clisp.org>
44489
44490         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
44491         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44492         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
44493         (Depends-on): Remove math.
44494
44495         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
44496         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44497         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
44498         (Depends-on): Remove math.
44499
44500         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
44501         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44502         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
44503         (Depends-on): Remove math.
44504         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
44505         (Depends-on): Remove math.
44506
44507         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
44508         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
44509         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
44510         (Depends-on): Remove math.
44511         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
44512         (Depends-on): Remove math.
44513
44514         * tests/test-round1.c: Include nan.h.
44515         (main): Use NaNd instead of NAN.
44516         * modules/round-tests (Files): Add tests/nan.h.
44517
44518         * tests/test-trunc1.c: Include nan.h.
44519         (main): Use NaNd instead of NAN.
44520         * modules/trunc-tests (Files): Add tests/nan.h.
44521
44522         * tests/test-roundf1.c: Include nan.h.
44523         (main): Use NaNf instead of NAN.
44524         * modules/roundf-tests (Files): Add tests/nan.h.
44525
44526         * tests/test-truncf1.c: Include nan.h.
44527         (main): Use NaNf instead of NAN.
44528         * modules/truncf-tests (Files): Add tests/nan.h.
44529
44530         * tests/test-ceilf1.c: Include nan.h.
44531         (main): Use NaNf instead of NAN.
44532         * modules/ceilf-tests (Files): Add tests/nan.h.
44533
44534         * tests/test-floorf1.c: Include nan.h.
44535         (main): Use NaNf instead of NAN.
44536         * modules/floorf-tests (Files): Add tests/nan.h.
44537
44538         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
44539         (main): Use NaNf instead of NAN.
44540         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
44541
44542         * tests/test-isnand.c: Include nan.h instead of <math.h>.
44543         (main): Use NaNd instead of NAN.
44544         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
44545
44546         * tests/test-frexp.c: Include nan.h.
44547         (main): Use NaNd instead of NAN.
44548         * modules/frexp-tests (Files): Add tests/nan.h.
44549
44550         * lib/isnan.c: Don't include <math.h>.
44551         (FUNC): Don't use NAN macro.
44552         * modules/isnand-nolibm (Depends-on): Remove math.
44553         * modules/isnanf-nolibm (Depends-on): Remove math.
44554         * modules/isnanl (Depends-on): Remove math.
44555         * modules/isnanl-nolibm (Depends-on): Remove math.
44556
44557         * tests/nan.h: New file.
44558
44559 2008-04-01  Eric Blake  <ebb9@byu.net>
44560
44561         Fix typos.
44562         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
44563         values to be the right type.
44564
44565         For now, cater to gnulib strtod inaccuracies.
44566         * tests/test-strtod.c (main): Allow 1-ulp error on expected
44567         fractional results.  While not as nice from a QoI perspective, it
44568         is a quicker patch than correctly implementing decimal to binary
44569         rounding.
44570
44571 2008-03-31  Eric Blake  <ebb9@byu.net>
44572
44573         Guarantee a definition of NAN.
44574         * lib/math.in.h (NAN): Define if missing.
44575         * tests/test-math.c (main): Test it.
44576         * doc/posix-headers/math.texi (math.h): Document this.
44577         * lib/isnan.c (rpl_isnand): Use it.
44578         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
44579         * tests/test-floorf1.c (NaN): Likewise.
44580         * tests/test-frexp.c (NaN): Likewise.
44581         * tests/test-isnand.c (NaN): Likewise.
44582         * tests/test-isnanf.c (NaN): Likewise.
44583         * tests/test-round1.c (NaN): Likewise.
44584         * tests/test-roundf1.c (NaN): Likewise.
44585         * tests/test-snprintf-posix.h (NaN): Likewise.
44586         * tests/test-sprintf-posix.h (NaN): Likewise.
44587         * tests/test-trunc1.c (NaN): Likewise.
44588         * tests/test-truncf1.c (NaN): Likewise.
44589         * tests/test-vasnprintf-posix.c (NaN): Likewise.
44590         * tests/test-vasprintf-posix.c (NaN): Likewise.
44591         * modules/isnand-nolibm (Depends-on): Add math.
44592         * modules/isnanf-nolibm (Depends-on): Likewise.
44593         * modules/isnanl (Depends-on): Likewise.
44594         * modules/isnanl-nolibm (Depends-on): Likewise.
44595         * modules/snprintf-posix-tests (Depends-on): Likewise.
44596         * modules/sprintf-posix-tests (Depends-on): Likewise.
44597         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
44598         * modules/vsprintf-posix-tests (Depends-on): Likewise.
44599         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
44600         * modules/vasprintf-posix-tests (Depends-on): Likewise.
44601
44602 2008-03-31  Bruno Haible  <bruno@clisp.org>
44603
44604         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
44605         * doc/posix-functions/strtod.texi: Likewise.
44606
44607 2008-03-31  Bruno Haible  <bruno@clisp.org>
44608
44609         * tests/test-strtod.c (main): Don't use C99 syntax.
44610
44611 2008-03-31  Bruno Haible  <bruno@clisp.org>
44612
44613         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
44614         Reported by Eric Blake.
44615
44616 2008-03-31  Jim Meyering  <meyering@redhat.com>
44617
44618         Don't compare actual signbit return values.
44619         * tests/test-strtod.c (main): Rather, compare only their
44620         zero/non-zero nature.
44621
44622 2008-03-31  Eric Blake  <ebb9@byu.net>
44623
44624         More strtod documentation.
44625         * doc/posix-functions/strtod.texi (strtod): Interpret more test
44626         failures as distinct bugs.
44627
44628 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
44629
44630         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
44631         Problem reported by Erik Benada in
44632         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
44633
44634 2008-03-30  Bruno Haible  <bruno@clisp.org>
44635
44636         * tests/test-strtod.c: Add comments about which assertion fails on which
44637         platform.
44638         * doc/posix-functions/strtod.texi: Add info about many more platforms.
44639
44640 2008-03-30  Eric Blake  <ebb9@byu.net>
44641
44642         Test signbit behavior on zeros.
44643         * tests/test-signbit.c (test_signbitf): Add tests for zero.
44644         (test_signbitd, test_signbitl): Likewise.
44645
44646         More strtod touchups.
44647         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
44648         sign of negative underflow, for now.  Use .5, not .1.
44649         * doc/posix-functions/strtod.texi (strtod): Mention these
44650         limitations.
44651         Reported by Jim Meyering.
44652
44653 2008-03-30  Bruno Haible  <bruno@clisp.org>
44654
44655         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
44656         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
44657
44658 2008-03-30  Bruno Haible  <bruno@clisp.org>
44659
44660         Avoid failure when attempting to return empty iconv results on some
44661         platforms.
44662         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
44663         allocation, don't report ENOMEM when the resulting string is empty.
44664
44665 2008-03-30  Bruno Haible  <bruno@clisp.org>
44666
44667         Fix buffer overrun.
44668         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
44669         Don't consider the width for tmp_length. Check count against tmp_length
44670         before doing the padding. Ensure enough allocation during padding.
44671
44672 2008-03-30  Eric Blake  <ebb9@byu.net>
44673
44674         strtod touchups.
44675         * lib/strtod.c (strtod): Avoid compiler warnings.
44676         Reported by Jim Meyering.
44677
44678 2008-03-30  Bruno Haible  <bruno@clisp.org>
44679
44680         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
44681         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
44682         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
44683         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
44684         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
44685         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
44686         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
44687         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
44688
44689         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
44690         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
44691         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
44692         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
44693         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
44694         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
44695         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
44696         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
44697
44698         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
44699         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
44700         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
44701         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
44702         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
44703         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
44704         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
44705         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
44706
44707         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
44708         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
44709
44710         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
44711         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
44712
44713         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
44714         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
44715
44716         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
44717         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
44718         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
44719
44720         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
44721         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
44722         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
44723
44724         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
44725         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
44726         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
44727
44728         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
44729         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
44730         * modules/vasprintf (Depends-on): Add EOVERFLOW.
44731
44732         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
44733         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
44734         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
44735         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
44736         (Depends-on): Add EOVERFLOW.
44737         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
44738         (Depends-on): Add EOVERFLOW.
44739         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
44740         (Depends-on): Add EOVERFLOW.
44741         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
44742         (Depends-on): Add EOVERFLOW.
44743         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
44744         (Depends-on): Add EOVERFLOW.
44745         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
44746         (Depends-on): Add EOVERFLOW.
44747         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
44748         (Depends-on): Add EOVERFLOW.
44749         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
44750         (Depends-on): Add EOVERFLOW.
44751
44752         * lib/sprintf.c (EOVERFLOW): Remove fallback.
44753         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
44754         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
44755
44756         * lib/snprintf.c (EOVERFLOW): Remove fallback.
44757         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
44758         * modules/snprintf (Depends-on): Add EOVERFLOW.
44759
44760         * lib/poll.c (EOVERFLOW): Remove fallback.
44761         * modules/poll (Depends-on): Add EOVERFLOW.
44762
44763         * lib/getugroups.c (EOVERFLOW): Remove fallback.
44764         * modules/getugroups (Depends-on): Add EOVERFLOW.
44765
44766         * lib/getdelim.c (EOVERFLOW): Remove fallback.
44767         * modules/getdelim (Depends-on): Add EOVERFLOW.
44768
44769         * lib/ftell.c (EOVERFLOW): Remove fallback.
44770         * modules/ftell (Depends-on): Add EOVERFLOW.
44771
44772         * lib/fprintf.c (EOVERFLOW): Remove fallback.
44773         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
44774         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
44775
44776         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
44777
44778         * modules/EOVERFLOW-tests: New file.
44779         * tests/test-EOVERFLOW.c: New file.
44780
44781         * modules/EOVERFLOW: New file.
44782         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
44783
44784 2008-03-30  Bruno Haible  <bruno@clisp.org>
44785
44786         Fix bug introduced on 2007-06-10.
44787         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
44788         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
44789
44790 2008-03-30  Bruno Haible  <bruno@clisp.org>
44791
44792         Improve freadseek's efficiency after ungetc.
44793         * lib/freadseek.c: Include freadahead.h.
44794         (freadptrinc): New function, extracted from freadseek.
44795         (freadseek): Use it in a loop. Use freadahead to determine the number
44796         of loop iterations.
44797         * modules/freadseek (Depends-on): Add freadahead.
44798         (configure.ac): Require AC_C_INLINE.
44799
44800 2008-03-30  Bruno Haible  <bruno@clisp.org>
44801
44802         * lib/freadseek.c (freadseek): Don't ignore the return value of
44803         freadptr.
44804
44805 2008-03-29  Eric Blake  <ebb9@byu.net>
44806
44807         Add hex float support.
44808         * modules/strtod (Depends-on): Add c-ctype.
44809         (Link): Mention POW_LIB.
44810         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
44811         whitespace between 'e' and exponent.
44812         * tests/test-strtod.c (main): Enable hex float tests.
44813         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
44814         now provides.
44815
44816         Document various strtod bugs, with some fixes.
44817         * doc/posix-functions/strtod.texi (strtod): Document bugs with
44818         "-0x", "inf", "nan", and hex constants.
44819         * doc/posix-functions/atof.texi (atof): Likewise.
44820         * modules/stdlib (Makefile.am): Support strtod.
44821         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44822         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
44823         detect additional strtod bugs.
44824         * lib/stdlib.in.h (rpl_strtod): Add declarations.
44825         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
44826         bool where appropriate.  Parse 'inf' and 'nan'.
44827         * tests/test-strtod.c: New file.
44828         * modules/strtod (Depends-on): Add stdbool, stdlib.
44829         (configure.ac): Turn on module indicator.
44830         * modules/strtod-tests: New module.
44831
44832 2008-03-29  Eric Blake  <ebb9@byu.net>
44833
44834         Fix ftell on mingw.
44835         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
44836         * modules/ftell-tests (Depends-on): Add binary-io.
44837         * modules/ftello-tests (Depends-on): Likewise.
44838         * tests/test-ftell.c (main): Enhance test to cover behavior after
44839         ungetc.  Enforce binary mode.
44840         * tests/test-ftello.c (main): Likewise.
44841
44842         Pass test-freadseek on cygwin.
44843         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
44844         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
44845         ungetc buffer.
44846
44847         * tests/test-fflush2.c (main): Fix typo.
44848
44849 2008-03-29  Bruno Haible  <bruno@clisp.org>
44850
44851         * tests/test-fflush2.c (main): Temporarily disable the contents of
44852         this test.
44853         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
44854         Reported by Eric Blake.
44855
44856 2008-03-28  Simon Josefsson  <simon@josefsson.org>
44857
44858         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
44859         (GC_SHA224_DIGEST_SIZE): Add.
44860
44861         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
44862         (gc_hash_digest_length): Likewise.
44863         (gc_hash_buffer): Likewise.
44864
44865 2008-03-25  Bruno Haible  <bruno@clisp.org>
44866
44867         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
44868         detail which gettext release to use.
44869         Reported by Simon Josefsson.
44870
44871 2008-03-26  Jim Meyering  <meyering@redhat.com>
44872
44873         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
44874         * modules/gnumakefile (clean-GNUmakefile): Also, use
44875         test ... && ... || : syntax rather than if-then ... fi.
44876
44877         gnumakefile: Don't double-quote-expand $(VPATH) value.
44878         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
44879
44880 2008-03-24  Eric Blake  <ebb9@byu.net>
44881
44882         Alter GNUmakefile to install into top directory.
44883         * modules/maintainer-makefile: Split, and add dependency...
44884         * modules/gnumakefile: to this new module.
44885         * build-aux/GNUmakefile: Move...
44886         * top/GNUmakefile: ...here.
44887         * build-aux/maint.mk: Move...
44888         * top/maint.mk: ...here.
44889         * MODULES.html.sh (Support for maintaining...): Document new
44890         module.
44891
44892 2008-03-23  Bruno Haible  <bruno@clisp.org>
44893
44894         * gnulib-tool: New options --vc-files, --no-vc-files.
44895         (func_usage): Document them.
44896         (vc_files): New variable.
44897         (func_import): Consider vc_files.
44898         (func_create_testdir): Set vc_files to empty.
44899         Suggested by Jim Meyering and Karl Berry.
44900
44901 2008-03-23  Bruno Haible  <bruno@clisp.org>
44902
44903         Fix regex compilation error on HP-UX 11.
44904         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
44905         * modules/regex (Files): Add m4/mbstate_t.m4.
44906         Reported by Ton Voon <ton.voon@altinity.com>.
44907
44908 2008-03-23  Bruno Haible  <bruno@clisp.org>
44909
44910         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
44911
44912 2008-03-23  Eric Blake  <ebb9@byu.net>
44913             Bruno Haible  <bruno@clisp.org>
44914
44915         Install files from top/ in the destination directory.
44916         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
44917         augmentation also for the files from top/.
44918         (func_import, func_create_testdir): Rewrite file names:
44919         top/filename -> filename.
44920
44921 2008-03-23  Bruno Haible  <bruno@clisp.org>
44922
44923         Tweak "gnulib --version" output.
44924         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
44925
44926 2008-03-23  Bruno Haible  <bruno@clisp.org>
44927
44928         Tweak "gnulib --version" output.
44929         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
44930         rather than contents of ChangeLog, when possible.
44931
44932 2008-03-21  Eric Blake  <ebb9@byu.net>
44933
44934         More --version tweaks.
44935         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
44936         date of last ChangeLog entry.
44937
44938 2008-03-21  Jim Meyering  <meyering@redhat.com>
44939
44940         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
44941
44942 2008-03-20  Eric Blake  <ebb9@byu.net>
44943
44944         VPATH fix.
44945         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
44946
44947 2008-03-20  Simon Josefsson  <simon@josefsson.org>
44948
44949         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
44950         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
44951
44952 2008-03-20  Eric Blake  <ebb9@byu.net>
44953
44954         Sync GNUmakefile with coreutils.
44955         * build-aux/GNUmakefile (have-Makefile): Rename...
44956         (_have-Makefile): ...to this, for namespace consideration.
44957         (GNUmakefile.cfg): Include, if present.
44958         (_autoreconf): Define a default.
44959         (_is-dist-target): New rule for rebuilds to pick up intra-release
44960         version.
44961         (maint-cfg.mk): Rename...
44962         (cfg.mk): ...to this.
44963
44964 2008-03-18  Jim Meyering  <meyering@redhat.com>
44965
44966         New script and module: mktempd
44967         * MODULES.html.sh (maint+release support): Add mktempd.
44968         * build-aux/mktempd: New file.
44969         * modules/mktempd: New file.
44970
44971 2008-03-15  Jim Meyering  <meyering@redhat.com>
44972
44973         Undo last change.
44974         * lib/sha1.c, lib/md5.c: 63 != ~63.
44975         Reported by Andreas Schwab.
44976
44977         sha1.c, md5.c: Hoist a redundant expression.
44978         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
44979         "ctx->buflen" only once, before calling *_process_block.
44980         * lib/md5.c (md5_process_bytes): Likewise.
44981
44982 2008-03-14  Eric Blake  <ebb9@byu.net>
44983
44984         Bump copyright year in files generated by gnulib-tool.
44985         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
44986         gnulib-tool, rather than hard-coding it.
44987
44988         Fix 'gnulib-tool --version' output to work with git.
44989         * gnulib-tool (func_gnulib_dir): New function, extracted from...
44990         (startup): ...here.
44991         (func_version): Use it to invoke git-version-gen, rather than
44992         relying on CVS keyword expansion.  Modernize wording.
44993         (cvsdatestamp, last_checkin_date, version): Kill unused
44994         variables.
44995
44996 2008-03-12  Jim Meyering  <meyering@redhat.com>
44997
44998         Recognize optional cast of the argument to free.
44999         * build-aux/useless-if-before-free: Update regexps.
45000
45001         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
45002
45003 2008-03-11  Bruno Haible  <bruno@clisp.org>
45004
45005         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
45006         by a single package.
45007         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
45008         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
45009         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
45010         Reported by Sam Steingold <sds@gnu.org>.
45011
45012 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45013
45014         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
45015         repositories.
45016
45017 2008-03-11  Bruno Haible  <bruno@clisp.org>
45018
45019         Avoid conflicts between local macro definitions.
45020         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
45021         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
45022
45023 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
45024             Bruno Haible  <bruno@clisp.org>
45025
45026         Make va_copy work with some version of xlc on AIX 5.1.
45027         * lib/stdarg.in.h: New file.
45028         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
45029         On AIX, use a <stdarg.h> file substitute.
45030         * modules/stdarg (Files): Add lib/stdarg.in.h.
45031         (Depends-on): Add include_next.
45032         (Makefile.am): Build a stdarg.h substitute if requested.
45033         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
45034
45035 2008-03-10  Bruno Haible  <bruno@clisp.org>
45036
45037         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
45038         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45039         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
45040
45041 2008-03-10  Bruno Haible  <bruno@clisp.org>
45042
45043         * modules/stdlib (Depends-on): Add include_next, remove
45044         absolute-header.
45045
45046 2008-03-09  Bruno Haible  <bruno@clisp.org>
45047
45048         * lib/freadahead.h (freadahead): Document more precisely.
45049         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
45050         the sum of both buffer sizes.
45051         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
45052         * NEWS: Document the change.
45053
45054 2008-03-09  Bruno Haible  <bruno@clisp.org>
45055
45056         Extend freadptr to return also the buffer size.
45057         * lib/freadptr.h (freadptr): Add sizep argument.
45058         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
45059         (freadptr): Add sizep argument. Determine buffer size like freadahead
45060         does.
45061         * tests/test-freadptr.c: Don't include freadahead.h.
45062         (main): Adapt for new calling convention of freadptr.
45063         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
45064         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
45065         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
45066         tests/test-freadptr2.sh.
45067         (Depends): Remove freadahead.
45068         (TESTS): Add test-freadptr2.sh.
45069         (check_PROGRAMS): Add test-freadptr2.
45070
45071 2008-03-09  Bruno Haible  <bruno@clisp.org>
45072
45073         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
45074         Report and solution by Simon Josefsson.
45075
45076 2008-03-06  Bruno Haible  <bruno@clisp.org>
45077
45078         Make fflush after ungetc work on BSD platforms.
45079         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
45080         * tests/test-fflush2.c: New file.
45081         * tests/test-fflush2.sh: New file.
45082         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
45083         tests/test-fflush2.c.
45084         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
45085         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
45086
45087 2008-03-06  Eric Blake  <ebb9@byu.net>
45088
45089         Likewise for ftello.
45090         * modules/ftello (Dependencies): Add extensions.
45091         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
45092
45093 2008-03-06  Bruno Haible  <bruno@clisp.org>
45094
45095         * modules/fseeko (Dependencies): Add extensions.
45096         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
45097         Needed on glibc systems.
45098
45099 2008-03-06  Bruno Haible  <bruno@clisp.org>
45100
45101         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
45102         email address.
45103         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45104
45105 2008-03-06  Bruno Haible  <bruno@clisp.org>
45106
45107         * users.txt: Add libgnupdf.
45108
45109 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45110
45111         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
45112         (Header File Substitutes, Function Substitutes,
45113         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
45114         (Build robot for gnulib): Fix typo.
45115
45116 2008-03-06  Bruno Haible  <bruno@clisp.org>
45117
45118         * doc/gnulib-tool.texi (VCS Issues): Small updates.
45119         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45120
45121 2008-03-06  Bruno Haible  <bruno@clisp.org>
45122
45123         * doc/func.texi: New file, extracted from doc/gnulib.texi.
45124         * doc/gnulib.texi: Include it.
45125
45126 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45127
45128         * modules/func (License): Change license to unlimited; there was
45129         no LGPL parts in the module anyway.
45130
45131 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45132
45133         * modules/__func__: Renamed to modules/func.
45134         * modules/__func__-tests: Renamed to modules/func-tests.
45135         * tests/test-__func__.c: Renamed to tests/test-func.c.
45136         * m4/__func__.m4: Renamed to m4/func.m4.
45137         * doc/gnulib.texi (__func__): Section renamed to func.
45138         Suggested by Eric Blake <ebb9@byu.net>.
45139
45140 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45141
45142         * doc/gnulib.texi (__func__): Use C99 terminology when talking
45143         about __func__.  Make example self-contained.  Suggested by Eric
45144         Blake <ebb9@byu.net>.
45145
45146         * tests/test-__func__.c (main): Avoid extraneous () around __func.
45147         Suggested by Eric Blake <ebb9@byu.net>.
45148
45149 2008-03-06  Simon Josefsson  <simon@josefsson.org>
45150
45151         * modules/__func__: New file.
45152         * modules/__func__-tests: New file.
45153         * tests/test-__func__.c: New file.
45154         * m4/__func__.m4: New file.
45155         * doc/gnulib.texi (__func__): Document __func__ module.
45156
45157 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45158
45159         * modules/byteswap (License): Re-license as LGPLv2+.
45160
45161 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45162
45163         * doc/Makefile: Add pdf target.
45164
45165 2008-03-05  Simon Josefsson  <simon@josefsson.org>
45166
45167         * modules/inline (License): Use 'unlimited', since there are only
45168         *.m4 files in this module.
45169
45170 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
45171             Bruno Haible  <bruno@clisp.org>
45172
45173         Add support for HP C 7.1 on OpenVMS 8.3.
45174         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
45175
45176 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
45177
45178         Update VMS specifics.
45179         * lib/getopt.c [VMS]: Remove include of unixlib.h.
45180
45181 2008-03-02  Jim Meyering  <meyering@redhat.com>
45182
45183         Remove the last dependency on the "free" module.
45184         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
45185         Reported by Bob Proulx.
45186
45187         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
45188
45189         Remove useless "if" tests before free.  Deprecate "free" module.
45190         * doc/posix-functions/free.texi: Mention that this
45191         module is no longer useful.
45192         * modules/free (Notice): Say this module is obsolete.
45193         * modules/readutmp (Depends-on): Remove free.
45194         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
45195         * lib/putenv.c (putenv): Likewise.
45196         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
45197         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
45198         * tests/test-c-strcasestr.c (main): Likewise.
45199         * tests/test-c-strstr.c (main): Likewise.
45200         * tests/test-mbscasestr1.c (main): Likewise.
45201         * tests/test-mbscasestr2.c (main): Likewise.
45202         * tests/test-mbsstr1.c (main): Likewise.
45203         * tests/test-mbsstr2.c (main): Likewise.
45204         * tests/test-memmem.c (main): Likewise.
45205         * tests/test-strcasestr.c (main): Likewise.
45206         * tests/test-striconv.c (main): Likewise.
45207         * tests/test-striconveh.c (main): Likewise.
45208         * tests/test-striconveha.c (main): Likewise.
45209         * tests/test-strstr.c (main): Likewise.
45210
45211         * build-aux/git-version-gen: Adjust a comment and the Usage string.
45212
45213         bootstrap: sync from coreutils again
45214         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
45215
45216 2008-03-01  Jim Meyering  <meyering@redhat.com>
45217
45218         bootstrap: sync from coreutils
45219         * build-aux/bootstrap (update_po_files): Copy a .po file into place
45220         also when the target doesn't exist.
45221
45222 2008-03-01  Eric Blake  <ebb9@byu.net>
45223
45224         Fix bugs in last patch.
45225         * lib/memchr2.c (memchr2): Fix typo.
45226         * tests/test-memchr2.c: Test previous bug, and don't use GNU
45227         extension.
45228         Reported by Bruce Korb.
45229
45230         New module 'memchr2'.
45231         * modules/memchr2: New file.
45232         * modules/memchr2-tests: Likewise.
45233         * lib/memchr2.h: Likewise.
45234         * lib/memchr2.c: Likewise, based on memchr.c.
45235         * tests/test-memchr2.c: New test.
45236         * MODULES.html.sh (String handling): Add memchr2.
45237
45238 2008-02-29  Bruno Haible  <bruno@clisp.org>
45239
45240         * modules/freadseek-tests: New file.
45241         * tests/test-freadseek.sh: New file.
45242         * tests/test-freadseek.c: New file.
45243
45244         New module 'freadseek'.
45245         * modules/freadseek: New file.
45246         * lib/freadseek.h: New file.
45247         * lib/freadseek.c: New file.
45248         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
45249
45250 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
45251
45252         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
45253         wydawca.
45254
45255         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
45256         program_invocation_name and program_invocation_short_name are
45257         present.
45258
45259 2008-02-28  Bruno Haible  <bruno@clisp.org>
45260
45261         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
45262         * tests/test-freadptr.sh: Also test non-seekable stdin.
45263
45264 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
45265
45266         * build-aux/bootstrap (source_base, m4_base)
45267         (doc_base, tests_base): New variables.
45268         (gnulib_tool_options): Do not hardcode base directories, use
45269         the above variables instead.
45270
45271 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
45272
45273         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
45274
45275 2008-02-28  Bruno Haible  <bruno@clisp.org>
45276
45277         * modules/freadptr-tests: New file.
45278         * tests/test-freadptr.sh: New file.
45279         * tests/test-freadptr.c: New file.
45280
45281         New module 'freadptr'.
45282         * modules/freadptr: New file.
45283         * lib/freadptr.h: New file.
45284         * lib/freadptr.c: New file.
45285         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
45286
45287 2008-02-26  Karl Berry  <karl@freefriends.org>
45288
45289         Sync from Libtool:
45290         * libltdl/argz.c (argz_add, argz_count): New functions.
45291         * libltdl/argz.in.h: Declare them.
45292         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
45293
45294 2008-02-22  Bruno Haible  <bruno@clisp.org>
45295
45296         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
45297         is a pointer type.  Needed for HP-UX 10.
45298         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
45299         * doc/posix-functions/gmtime_r.texi: Likewise.
45300         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
45301
45302 2008-02-24  Bruno Haible  <bruno@clisp.org>
45303
45304         * modules/environ-tests: New file.
45305         * tests/test-environ.c: New file.
45306
45307         New module 'environ'.
45308         * modules/environ: New file.
45309         * lib/unistd.in.h (environ): New declaration.
45310         * m4/environ.m4: New file.
45311         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
45312         after use.
45313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
45314         HAVE_DECL_ENVIRON.
45315         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
45316         HAVE_DECL_ENVIRON.
45317         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
45318         wrong claim that 'environ' is missing on some systems.
45319         * modules/execute (Depends-on): Add environ.
45320         * lib/execute.c (environ): Remove fallback declaration.
45321         * modules/pipe (Depends-on): Add environ.
45322         * lib/pipe.c (environ): Remove fallback declaration.
45323         * modules/setenv (Depends-on): Add environ.
45324         * lib/setenv.c (environ): Remove fallback declaration.
45325         * modules/unsetenv (Depends-on): Add environ.
45326         * lib/unsetenv.c (environ): Remove fallback declaration.
45327         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
45328         m4/environ.m4.
45329         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
45330         (gl_PREREQ_UNSETENV): Likewise.
45331
45332 2008-02-24  Bruno Haible  <bruno@clisp.org>
45333
45334         * doc/posix-functions/environ.texi: Document the MacOS X problem.
45335
45336 2008-02-20  Bob Proulx  <bob@proulx.com>
45337
45338         Enable use of older two part flavor 'git describe'.
45339         * build-aux/git-version-gen: If using the older two part flavor of
45340         git version then recreate the third part now present in the
45341         newer three part flavor of git describe.
45342
45343 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
45344
45345         * lib/fts.c (fts_build): Typo correction to comment.
45346
45347 2008-02-17  Bruno Haible  <bruno@clisp.org>
45348
45349         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
45350         generating no-op conflicts.
45351
45352 2008-02-17  Bruno Haible  <bruno@clisp.org>
45353
45354         Speed up by 10%.
45355         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
45356         result_entries, rather than an index-based loop.
45357
45358 2008-02-17  Bruno Haible  <bruno@clisp.org>
45359
45360         Speed up by 25%.
45361         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
45362         'hashcode_cached'.
45363         (entry_create): New function.
45364         (entry_hashcode): Use the cached hashcode if possible.
45365         (read_changelog_file, try_split_merged_entry): Use entry_create.
45366
45367 2008-02-17  Bruno Haible  <bruno@clisp.org>
45368
45369         Speed up from O(n^2) to O(n) for long ChangeLog files.
45370         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
45371         (read_changelog_file): Change implementation of entries_reversed list
45372         to rbtreehash.
45373         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
45374
45375 2008-02-17  Bruno Haible  <bruno@clisp.org>
45376
45377         New option --split-merged-entry.
45378         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
45379         (find_paragraph_end, try_split_merged_entry): New functions.
45380         (long_options): Add option --split-merged-entry.
45381         (usage): Document option --split-merged-entry.
45382         (main): Implement option --split-merged-entry.
45383         Reported by Eric Blake.
45384
45385 2008-02-17  Bruno Haible  <bruno@clisp.org>
45386
45387         * lib/git-merge-changelog.c: Include c-strstr.h.
45388         (main): Support the "git pull --rebase" situation.
45389         * modules/git-merge-changelog (Depends-on): Add c-strstr.
45390         Reported by Eric Blake.
45391
45392 2008-02-16  Eric Blake  <ebb9@byu.net>
45393
45394         Avoid doubling \ in common case of "c-maybe" quoting style.
45395         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
45396         eliding outer quotes.
45397         * lib/quotearg.h: Document this.
45398         * tests/test-quotearg.c (result_strings, inputs, results_g)
45399         (flag_results, locale_results): Test it by adding a new string to
45400         each test group.
45401         (compare_strings): Test new string.
45402
45403 2008-02-13  Eric Blake  <ebb9@byu.net>
45404
45405         Avoid trigraph quoting in default output.
45406         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
45407         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
45408         unless explicitly requested.
45409         * tests/test-quotearg.c (flag_results, main): Add additional tests.
45410
45411 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
45412
45413         Don't rely on signed integer overflowing to negative value.
45414         * lib/getugroups.c (getugroups): Include <limits.h>.
45415         Instead, compare against INT_MAX, and increment only if the test passes.
45416
45417 2008-02-13  Jim Meyering  <meyering@redhat.com>
45418         and Eric Blake  <ebb9@byu.net>
45419
45420         Avoid shadowing warning and compile errors on Linux.
45421         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
45422         forwarding macros on Linux.
45423         (dcgettext): Define a stub, for Linux.
45424         (results_g, main): Avoid warnings.
45425
45426 2008-02-12  Eric Blake  <ebb9@byu.net>
45427
45428         Silence warning in last patch.
45429         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
45430
45431         Quotearg part 4: add tests, fix c-maybe colon quoting.
45432         * lib/quotearg.h: Improve documentation.
45433         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
45434         escapes when adding outer quotes.  When quoting trigraphs, use
45435         valid C notation.  When quoting NUL, omit extra characters if next
45436         character is not digit.  Alter prototype.
45437         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
45438         callers.
45439         * modules/quotearg-tests: New module.
45440         * tests/test-quotearg.c: New test.
45441
45442 2008-02-07  Eric Blake  <ebb9@byu.net>
45443
45444         Quotearg part 3: add flag to control outer quote elision.
45445         * lib/quotearg.h (c_maybe_quoting_style): New style.
45446         (enum quoting_flags): Better documentation of flags.
45447         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
45448         c-maybe style.
45449         (quotearg_buffer_restyled): Handle new flag to elide outer
45450         quotes.
45451
45452         Quotearg part 2: add flag that can control NUL elision.
45453         * lib/quotearg.h (set_quoting_flags): New prototype.
45454         * lib/quotearg.c (struct quoting_options): Add flag field.
45455         (set_quoting_flags): New function.
45456         (quotearg_buffer_restyled): Add flags parameter.
45457         (quotearg_alloc_mem): Set the flag if length cannot be returned.
45458         (quotearg_n_options): Set the flag, since length cannot be
45459         returned.
45460         (quoting_options_from_style): Default flags correctly.
45461
45462         Quotearg part 1: more wrappers, restore quotearg_char state.
45463         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
45464         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
45465         (quotearg_colon_mem): New wrappers.
45466         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
45467         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
45468         functions.
45469         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
45470         (quotearg_colon_mem): New functions.
45471
45472 2008-02-11  Bruno Haible  <bruno@clisp.org>
45473
45474         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
45475         library in the current directory: it does not work with parallel make.
45476         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45477
45478 2008-02-11  Bruno Haible  <bruno@clisp.org>
45479
45480         * .gitattributes: New file.
45481
45482 2008-02-11  Jim Meyering  <meyering@redhat.com>
45483
45484         useless-if-before-free: Fix reversed exit values.
45485         * build-aux/useless-if-before-free: Use correct values
45486         for EXIT_MATCH and EXIT_NO_MATCH.
45487
45488         * build-aux/useless-if-before-free: Close stdout carefully.
45489
45490 2008-02-10  Bruno Haible  <bruno@clisp.org>
45491
45492         New module 'git-merge-changelog'.
45493         * modules/git-merge-changelog: New file.
45494         * lib/git-merge-changelog.c: New file.
45495
45496 2008-02-10  Jim Meyering  <meyering@redhat.com>
45497
45498         useless-if-before-free: New option: --list (-l).
45499
45500         useless-if-before-free: Don't exit immediately upon open failure.
45501         * build-aux/useless-if-before-free: Exit 2 for errors.
45502         Upon failure to open a file, don't exit immediately.
45503         Rather, just warn and continue with any remaining files.
45504
45505 2008-02-10  Bruno Haible  <bruno@clisp.org>
45506
45507         New abstract list operation 'node_set_value'.
45508         * lib/gl_list.h (gl_list_node_set_value): New function.
45509         (struct gl_list_implementation): New field node_set_value.
45510         * lib/gl_list.c (gl_list_node_set_value): New function.
45511         * lib/gl_array_list.c (gl_array_node_set_value): New function.
45512         (gl_array_list_implementation): Update.
45513         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
45514         (gl_carray_list_implementation): Update.
45515         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
45516         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
45517         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
45518         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
45519         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
45520         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
45521         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
45522         Update.
45523         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
45524         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
45525         (gl_sublist_list_implementation): Update.
45526
45527 2008-02-10  Bruno Haible  <bruno@clisp.org>
45528
45529         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
45530         Needed when ELEMENT is #defined to 'some_type *'.
45531
45532 2008-02-10  Jim Meyering  <meyering@redhat.com>
45533
45534         New script and module: useless-if-before-free
45535         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
45536         * build-aux/useless-if-before-free: New file.
45537         * modules/useless-if-before-free: New file.
45538
45539         * build-aux/gitlog-to-changelog: Use committer date, not author date.
45540
45541         xstrtol_error: Fix typo.
45542         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
45543         s/exit_failure/exit_status/.
45544
45545 2008-02-09  Jim Meyering  <meyering@redhat.com>
45546
45547         New script and module: gitlog-to-changelog
45548         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
45549         * modules/gitlog-to-changelog: New file.
45550         * build-aux/gitlog-to-changelog: New file.
45551
45552 2008-02-08  Jim Meyering  <meyering@redhat.com>
45553
45554         Avoid two "parameter unused" warnings.
45555         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
45556         Mark "st" as used.
45557
45558         Use "git COMMAND", not "git-COMMAND".
45559         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
45560         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
45561         * build-aux/git-version-gen: Use "git status", not "git-status".
45562
45563 2008-02-07  Bruno Haible  <bruno@clisp.org>
45564
45565         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
45566         Avoids a crash on Windows Vista.
45567         Reported by Adam Strzelecki <ono@java.pl> via
45568         Simon Josefsson <simon@josefsson.org>.
45569
45570 2008-02-06  Bruno Haible  <bruno@clisp.org>
45571
45572         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
45573         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
45574         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
45575         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
45576         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45577         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45578         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
45579         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
45580         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45581         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45582         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45583         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45584         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45585         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45586         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45587         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
45588         left-adjust flag.
45589         * tests/test-snprintf-posix.h (test_function): Likewise.
45590         * tests/test-sprintf-posix.h (test_function): Likewise.
45591         * tests/test-vasprintf-posix.c (test_function): Likewise.
45592         * doc/posix-functions/fprintf.texi: Update.
45593         * doc/posix-functions/printf.texi: Update.
45594         * doc/posix-functions/snprintf.texi: Update.
45595         * doc/posix-functions/sprintf.texi: Update.
45596         * doc/posix-functions/vfprintf.texi: Update.
45597         * doc/posix-functions/vprintf.texi: Update.
45598         * doc/posix-functions/vsnprintf.texi: Update.
45599         * doc/posix-functions/vsprintf.texi: Update.
45600         Reported by Peter Fales <psfales@alcatel-lucent.com>.
45601
45602 2008-02-06  Bruno Haible  <bruno@clisp.org>
45603
45604         Fix bug introduced on 2008-01-26.
45605         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
45606
45607 2008-02-06  Bruno Haible  <bruno@clisp.org>
45608
45609         Fix bug introduced on 2007-06-10.
45610         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
45611         !NEED_PRINTF_FLAG_ZERO.
45612
45613 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
45614
45615         getloadavg: use libperfstat on AIX5
45616         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
45617
45618 2008-02-03  Bruno Haible  <bruno@clisp.org>
45619
45620         * lib/diffseq.h: Add comments about required #includes.
45621         Reported by Michael Biggs <gnulib@doubleplum.net>.
45622
45623 2008-02-01  Bruno Haible  <bruno@clisp.org>
45624
45625         * users.txt: Add gnuit.
45626
45627 2008-01-31  Bruno Haible  <bruno@clisp.org>
45628
45629         * lib/md4.c (set_uint32): Mark as inline.
45630         * lib/md5.c (set_uint32): Likewise.
45631         * lib/sha1.c (set_uint32): Likewise.
45632         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
45633         * m4/md5.m4 (gl_MD5): Likewise.
45634         * m4/sha1.m4 (gl_SHA1): Likewise.
45635
45636 2008-01-31  Jim Meyering  <meyering@redhat.com>
45637
45638         Use "sizeof VAR", rather than a literal "4".
45639         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
45640         * lib/md4.c (md4_read_ctx): Likewise.
45641         * lib/sha1.c (sha1_read_ctx): Likewise.
45642
45643 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45644
45645         * tests/test-sha1.c: New file, based on test-md5.c.
45646
45647         * modules/crypto/sha1-tests: New file.
45648
45649 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45650
45651         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
45652
45653 2008-01-31  Jim Meyering  <meyering@redhat.com>
45654
45655         Prefer "sizeof v" over the equivalent "4".
45656         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
45657         * lib/md5.c (set_uint32): Likewise.
45658         * lib/sha1.c (set_uint32): Likewise.
45659
45660 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45661
45662         * lib/sha1.c (set_uint32): Mark function as static.
45663
45664 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45665
45666         md2: clarify comments to say that alignment is not required.
45667         * lib/md2.h: Remove warning about alignment in comment.
45668         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
45669         never been required.
45670
45671 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45672
45673         md4: adapt alignment constraint fix from sha1.
45674         * lib/md4.c (set_uint32): New function, from sha1.c
45675         (md4_read_ctx): Use it.
45676         (md4_finish_ctx): Doc fix.
45677         * lib/md4.h: Doc fix.
45678
45679 2008-01-31  Simon Josefsson  <simon@josefsson.org>
45680
45681         md5: adapt alignment constraint fix from sha1.
45682         * lib/md5.c (set_uint32): New function, from sha1.c
45683         (md5_read_ctx): Use it.
45684         (md5_finish_ctx): Doc fix.
45685         * lib/md5.h: Doc fix.
45686
45687 2008-01-30  Peter Palfrader  <weasel@debian.org>
45688
45689         sha1: remove the result buffer alignment constraint
45690         * lib/sha1.c (set_uint32): New function.
45691         (sha1_read_ctx): Rewrite to remove the result buffer alignment
45692         constraint.
45693         (sha1_finish_ctx): Remove comment warning about alignment constraint.
45694         * lib/sha1.h: Likewise.
45695
45696 2008-01-30  Andreas Schwab  <schwab@suse.de>
45697             Bruno Haible  <bruno@clisp.org>
45698
45699         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
45700         correct definition of LDBL_MIN_EXP.
45701
45702 2008-01-30  Karl Berry  <karl@gnu.org>
45703
45704         * config/srclist-update: try to preserve x bit on updates.
45705         * config/srclistvars.sh: update for karl.
45706
45707 2008-01-29  Jim Meyering  <meyering@redhat.com>
45708
45709         vasnprintf.c: Avoid warning about unused label
45710         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
45711         "overflow" label definition and associated code with the
45712         same cpp condition that guards the sole use of that label.
45713
45714 2008-01-26  Bruno Haible  <bruno@clisp.org>
45715
45716         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
45717         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
45718         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
45719         * lib/isnanl-nolibm.h (isnanl): Likewise.
45720         Reported by Paul Eggert <eggert@cs.ucla.edu>.
45721
45722 2008-01-26  Bruno Haible  <bruno@clisp.org>
45723
45724         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
45725         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
45726
45727 2008-01-26  Bruno Haible  <bruno@clisp.org>
45728
45729         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
45730         GCC >= 4.0 built-in.
45731         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
45732
45733 2008-01-26  Bruno Haible  <bruno@clisp.org>
45734
45735         Rename isnan, applicable to 'double' only, to isnand.
45736         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
45737         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
45738         (configure.ac): Update.
45739         (Include): Replace "isnan.h" with "isnand.h".
45740         * m4/isnand.m4: Renamed from m4/isnan.m4.
45741         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
45742         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
45743         instead of isnan.c.
45744         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
45745         instead of HAVE_ISNAN_IN_LIBC.
45746         (isnand): Renamed from isnan.
45747         * lib/isnand.c: New file.
45748         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
45749         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
45750         (Makefile.am): Update.
45751         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
45752         Include isnand.h instead of isnan.h.
45753         (main): Test isnand instead of isnan.
45754         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
45755         isnan-nolibm.
45756         * modules/frexp (Depends-on): Likewise.
45757         * modules/frexp-tests (Depends-on): Likewise.
45758         * modules/frexp-nolibm (Depends-on): Likewise.
45759         * modules/frexp-nolibm-tests (Depends-on): Likewise.
45760         * modules/isfinite (Depends-on): Likewise.
45761         * modules/round-tests (Depends-on): Likewise.
45762         * modules/signbit (Depends-on): Likewise.
45763         * modules/signbit-tests (Depends-on): Likewise.
45764         * modules/snprintf-posix (Depends-on): Likewise.
45765         * modules/sprintf-posix (Depends-on): Likewise.
45766         * modules/trunc-tests (Depends-on): Likewise.
45767         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45768         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45769         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45770         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45771         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45772         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45773         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45774         * modules/vasnprintf-posix (Depends-on): Likewise.
45775         * modules/vasprintf-posix (Depends-on): Likewise.
45776         * modules/vfprintf-posix (Depends-on): Likewise.
45777         * modules/vsnprintf-posix (Depends-on): Likewise.
45778         * modules/vsprintf-posix (Depends-on): Likewise.
45779         * lib/frexp.c: Include isnand.h instead of isnan.h.
45780         (ISNAN): Set to isnand instead of isnan.
45781         * lib/isfinite.c: Include isnand.h instead of isnan.h.
45782         (gl_isfinited): Use isnand instead of isnan.
45783         * lib/signbitd.c: Include isnand.h instead of isnan.h.
45784         (gl_signbitd): Use isnand instead of isnan.
45785         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
45786         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
45787         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
45788         (main): Use isnand instead of isnan.
45789         * tests/test-round1.c: Include isnand.h.
45790         (main): Use isnand instead of isnan.
45791         * tests/test-round2.c: Include isnand.h instead of isnan.h.
45792         (ISNAN): Set to isnand instead of isnan.
45793         * tests/test-trunc1.c: Include isnand.h.
45794         (main): Use isnand instead of isnan.
45795         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
45796         (equal): Use isnand instead of isnan.
45797         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
45798         isnand-nolibm.
45799         * NEWS: Mention the change.
45800
45801 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
45802             Bruno Haible  <bruno@clisp.org>
45803
45804         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
45805         the GCC builtins for signbits are present and set
45806         REPLACE_SIGNBIT_USING_GCC if so.
45807         * lib/math.in.h (signbit): Define using GCC builtins if
45808         REPLACE_SIGNBIT_USING_GCC is set.
45809         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
45810         REPLACE_SIGNBIT_USING_GCC.
45811         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
45812
45813 2008-01-25  Jim Meyering  <meyering@redhat.com>
45814
45815         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
45816         * lib/poll.c: Include <config.h>, not "config.h".
45817         * tests/test-getaddrinfo.c: Likewise.
45818
45819 2008-01-25  Simon Josefsson  <simon@josefsson.org>
45820
45821         * modules/sockets-tests: New file.
45822
45823 2008-01-24  Simon Josefsson  <simon@josefsson.org>
45824
45825         * modules/sockets: New module, can be used to call WSA_Startup and
45826         WSA_Cleanup when needed.
45827
45828         * lib/sockets.h, lib/sockets.c: New files.
45829
45830         * m4/sockets.m4: New file.
45831
45832         * tests/test-sockets.c: New file.
45833
45834 2008-01-19  Bruno Haible  <bruno@clisp.org>
45835
45836         * doc/posix-headers: Renamed from doc/headers.
45837         * doc/posix-functions: Renamed from doc/functions.
45838         * doc/gnulib.texi: Update.
45839
45840 2008-01-19  Bruno Haible  <bruno@clisp.org>
45841
45842         * doc/glibc-functions/strcasestr.texi: Include contents of
45843         doc/functions/strcasestr.texi, fixing the list of platforms.
45844         * doc/functions/strcasestr.texi: Remove file.
45845
45846 2008-01-19  Bruno Haible  <bruno@clisp.org>
45847
45848         * doc/glibc-functions/memmem.texi: Include contents of
45849         doc/functions/memmem.texi.
45850         * doc/functions/memmem.texi: Remove file.
45851
45852 2008-01-18  Bruno Haible  <bruno@clisp.org>
45853
45854         * doc/glibc-functions/*.texi: New files.
45855         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
45856         to use the new files.
45857
45858 2008-01-17  Bruno Haible  <bruno@clisp.org>
45859
45860         * tests/test-gethostname.c (main): Fix printf statement.
45861
45862 2008-01-17  Simon Josefsson  <simon@josefsson.org>
45863
45864         * modules/gethostname-tests: New file.
45865
45866         * tests/test-gethostname.c: New file.
45867
45868 2008-01-17  Simon Josefsson  <simon@josefsson.org>
45869
45870         * lib/gethostname.c: Include string.h unconditionally, strncpy is
45871         used by the UNAME case.  Reported by Bruno Haible
45872         <bruno@clisp.org>.
45873
45874 2008-01-17  Eric Blake  <ebb9@byu.net>
45875
45876         Convert c-strcasestr to be more efficient.
45877         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
45878         (Depends-on): Add c-strcase, remove malloca, strnlen.
45879         * tests/test-c-strcasestr.c (main): Enhance test.
45880         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
45881
45882 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
45883
45884         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
45885         Use it in creating po/Makevars.
45886
45887 2008-01-15  Simon Josefsson  <simon@josefsson.org>
45888
45889         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
45890         Applications that requires it should initialize libgcrypt
45891         manually.
45892
45893 2008-01-16  Simon Josefsson  <simon@josefsson.org>
45894
45895         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
45896
45897 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
45898
45899         Fix problem with getdate on mingw32 reported by Simon Josefsson
45900         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
45901         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
45902         tzname", when deciding whether to declare tzname.
45903         * lib/strftime.c (tzname): Likewise.
45904
45905 2008-01-15  Bruno Haible  <bruno@clisp.org>
45906
45907         Work around a MacOS X 10.5 bug in frexpl().
45908         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
45909         * doc/functions/frexpl.texi: Document the bug.
45910         Reported by Elias Pipping <pipping@gentoo.org>.
45911
45912 2008-01-14  Eric Blake  <ebb9@byu.net>
45913
45914         Touch up previous patch.
45915         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
45916         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
45917
45918         Convert strcasestr module to use Two-Way algorithm.
45919         * modules/strcasestr-simple: New module, based on the old
45920         strcasestr, but with Two-Way rather than KMP.
45921         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
45922         * lib/string.in.h (rpl_strcasestr): Declare.
45923         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
45924         performance.
45925         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
45926         * modules/string (Makefile.am): Support strcasestr.
45927         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45928         * modules/strcasestr-tests (Depends-on): Check for alarm.
45929         * tests/test-strcasestr.c: Augment test.
45930         * lib/str-two-way.h: Clean up stray macro.
45931         * NEWS: Document new module.
45932         * MODULES.html.sh (string handling): Likewise.
45933         * doc/functions/strcasestr.texi: New file.
45934         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
45935         here, since it is not a POSIX function.
45936
45937 2008-01-14  Colin Watson  <cjwatson@debian.org>
45938             Bruno Haible  <bruno@clisp.org>
45939
45940         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
45941         works fine; if not, set REPLACE_STRSIGNAL.
45942         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
45943         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45944         REPLACE_STRSIGNAL.
45945         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
45946         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
45947         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
45948
45949 2008-01-14  Bruno Haible  <bruno@clisp.org>
45950
45951         * modules/strsignal (Include): Change to <string.h>.
45952
45953 2008-01-14  Colin Watson  <cjwatson@debian.org>
45954
45955         * modules/argp (Notice): Add a notice recommending to change
45956         XGETTEXT_OPTIONS.
45957         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
45958
45959 2008-01-13  Colin Watson  <cjwatson@debian.org>
45960
45961         * modules/strsignal-tests: New file.
45962         * tests/test-strsignal.c: New file.
45963
45964         * lib/strsignal.c: New file, from glibc with modifications.
45965         * lib/siglist.h: New file, from glibc with modifications.
45966         * lib/string.in.h (strsignal): New declaration.
45967         * m4/strsignal.m4: New file.
45968         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45969         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
45970         * modules/strsignal: New file.
45971         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
45972         HAVE_DECL_STRSIGNAL.
45973
45974 2008-01-13  Bruno Haible  <bruno@clisp.org>
45975
45976         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
45977         locale encoding is not ASCII. Needed for OpenBSD 4.0.
45978         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45979         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45980
45981 2008-01-13  Bruno Haible  <bruno@clisp.org>
45982
45983         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
45984         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
45985         * lib/argp.h (__attribute__): Likewise.
45986         * lib/c-stack.c (__attribute__): Likewise.
45987         * lib/error.h (__attribute__): Likewise.
45988         * lib/fts.c (__attribute__): Likewise.
45989         * lib/openat.h (__attribute__): Likewise.
45990         * lib/stdio.in.h (__attribute__): Likewise.
45991         * lib/string.in.h (__attribute__): Likewise.
45992         * lib/utimens.c (__attribute__): Likewise.
45993         * lib/vasnprintf.h (__attribute__): Likewise.
45994         * lib/xalloc.h (__attribute__): Likewise.
45995         * lib/xprintf.h (__attribute__): Likewise.
45996         * lib/xstrtol.h (__attribute__): Likewise.
45997         * lib/xvasprintf.h (__attribute__): Likewise.
45998
45999 2008-01-12  Bruno Haible  <bruno@clisp.org>
46000
46001         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
46002         * doc/glibc-headers/a.out.texi: New file.
46003         * doc/glibc-headers/aliases.texi: New file.
46004         * doc/glibc-headers/alloca.texi: New file.
46005         * doc/glibc-headers/ar.texi: New file.
46006         * doc/glibc-headers/argp.texi: New file.
46007         * doc/glibc-headers/argz.texi: New file.
46008         * doc/glibc-headers/byteswap.texi: New file.
46009         * doc/glibc-headers/crypt.texi: New file.
46010         * doc/glibc-headers/endian.texi: New file.
46011         * doc/glibc-headers/envz.texi: New file.
46012         * doc/glibc-headers/err.texi: New file.
46013         * doc/glibc-headers/error.texi: New file.
46014         * doc/glibc-headers/execinfo.texi: New file.
46015         * doc/glibc-headers/fpu_control.texi: New file.
46016         * doc/glibc-headers/fstab.texi: New file.
46017         * doc/glibc-headers/fts.texi: New file.
46018         * doc/glibc-headers/getopt.texi: New file.
46019         * doc/glibc-headers/ieee754.texi: New file.
46020         * doc/glibc-headers/ifaddrs.texi: New file.
46021         * doc/glibc-headers/libintl.texi: New file.
46022         * doc/glibc-headers/mcheck.texi: New file.
46023         * doc/glibc-headers/mntent.texi: New file.
46024         * doc/glibc-headers/obstack.texi: New file.
46025         * doc/glibc-headers/paths.texi: New file.
46026         * doc/glibc-headers/printf.texi: New file.
46027         * doc/glibc-headers/pty.texi: New file.
46028         * doc/glibc-headers/resolv.texi: New file.
46029         * doc/glibc-headers/shadow.texi: New file.
46030         * doc/glibc-headers/sysexits.texi: New file.
46031         * doc/glibc-headers/ttyent.texi: New file.
46032
46033 2008-01-12  Jim Meyering  <meyering@redhat.com>
46034
46035         announce-gen: emit Gnulib's git-based version string.
46036         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
46037         New option --gnulib-version=V, where V is expected to be
46038         the output of running git describe in the gnulib directory.
46039         (get_tool_versions): Request feedback on xdelta.  I suspect it's
46040         not useful, and plan to stop publishing an xdelta file with each
46041         coreutils release.
46042
46043         * build-aux/announce-gen: Also check for lzma-compressed files.
46044
46045 2008-01-11  Bruno Haible  <bruno@clisp.org>
46046
46047         * tests/test-memmem.c (main): Increase maximum allowed time.
46048         * tests/test-strstr.c (main): Likewise.
46049
46050 2008-01-11  Bruno Haible  <bruno@clisp.org>
46051
46052         * doc/functions/memmem.texi: Add more precisions about platforms.
46053         * doc/functions/strstr.texi: Likewise.
46054
46055 2008-01-10  Eric Blake  <ebb9@byu.net>
46056
46057         * m4/strstr.m4: Delete cruft from copy-n-paste.
46058         Reported by Bruno Haible.
46059
46060 2008-01-10  Bruno Haible  <bruno@clisp.org>
46061
46062         Make c-strstr rely on strstr.
46063         * lib/c-strstr.c: Don't include str-kmp.h.
46064         (c_strstr): Define in terms of strstr.
46065         * modules/c-strstr (Files): Remove lib/str-kmp.h.
46066         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
46067
46068 2008-01-10  Bruno Haible  <bruno@clisp.org>
46069
46070         * doc/gnulib.texi (String Functions in C Locale): New section.
46071         * doc/c-ctype.texi: New file.
46072         * doc/c-strcase.texi: New file.
46073         * doc/c-strcaseeq.texi: New file.
46074         * doc/c-strcasestr.texi: New file.
46075         * doc/c-strstr.texi: New file.
46076         * doc/c-strtod.texi: New file.
46077         * doc/c-strtold.texi: New file.
46078
46079 2008-01-10  Eric Blake  <ebb9@byu.net>
46080
46081         * lib/relocatable.h: Fix a comment.
46082
46083 2008-01-10  Eric Blake  <ebb9@byu.net>
46084
46085         Share two-way algorithm.
46086         * lib/str-two-way.h: New file, merged from...
46087         * lib/memmem.c: ...here...
46088         * lib/strstr.c: ...and here.
46089         * modules/memmem (Files): Use it.
46090         * modules/strstr (Files): Likewise.
46091
46092         Avoid quadratic strstr implementations.
46093         * lib/strstr.c: New file.
46094         * m4/strstr.m4: Likewise.
46095         * modules/strstr: Likewise.
46096         * modules/strstr-tests: Likewise.
46097         * tests/test-strstr.c: Likewise.
46098         * lib/string.in.h (rpl_strstr): Declare.
46099         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
46100         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
46101         * modules/string (Makefile.am): Likewise.
46102         * MODULES.html.sh (string handling): Mention new module.
46103         * doc/functions/strstr.texi (strstr): Document the bug.
46104
46105 2008-01-10  Bruno Haible  <bruno@clisp.org>
46106
46107         * lib/relocatable.h (relocate): State whether result is freshly
46108         allocated or not.
46109         * lib/relocatable.c (relocate): Return a freshly allocated string
46110         instead of a pointer to a privately held string.
46111         Reported by Sylvain Beucler <beuc@gnu.org>.
46112
46113 2008-01-10  Colin Watson  <cjwatson@debian.org>
46114
46115         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
46116         s/S_ISNLK/S_ISLNK/.
46117
46118 2008-01-09  Bruno Haible  <bruno@clisp.org>
46119
46120         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
46121         and other files.
46122         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
46123         if it's only a guess.
46124         * modules/memmem: Simplify by depending on memmem-simple.
46125
46126 2008-01-09  Bruno Haible  <bruno@clisp.org>
46127
46128         Work around OpenBSD 4.0 tdelete() bug.
46129         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
46130         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
46131         macros and don't redefine the enum values.
46132         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
46133         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
46134         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
46135
46136 2008-01-09  Bruno Haible  <bruno@clisp.org>
46137
46138         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
46139         (main): Don't perform the tests if setlocale did not install a UTF-8
46140         locale. Needed on OpenBSD 4.0.
46141         * modules/wcwidth-tests (Depends-on): Add localcharset.
46142
46143 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46144
46145         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
46146         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
46147         * NEWS: announce this.
46148         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
46149
46150 2008-01-09  Simon Josefsson  <simon@josefsson.org>
46151         and Eric Blake  <ebb9@byu.net>
46152
46153         Add memmem-simple module.
46154         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
46155         (gl_FUNC_MEMMEM): Separate performance from presence checks.
46156         * modules/memmem-simple: New file.
46157         * modules/memmem (Description): Tweak.
46158         * MODULES.html.sh (string handling): Mention new module.
46159         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
46160         addressed by memmem-simple.
46161         * NEWS: Document the difference.
46162
46163 2008-01-09  Eric Blake  <ebb9@byu.net>
46164
46165         Give gcc some memmem optimization hints.
46166         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
46167         (strcasestr): Declare as pure.
46168         * modules/memmem (Maintainer): Claim my implementation.
46169
46170 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46171
46172         Support AIX 6.1 and higher.
46173         * build-aux/config.libpath: Likewise.
46174         * build-aux/config.rpath: Likewise.
46175
46176 2008-01-08  Jim Meyering  <meyering@redhat.com>
46177             Bruno Haible  <bruno@clisp.org>
46178
46179         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
46180         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
46181         Reported by Peter Fales in
46182         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
46183
46184 2008-01-08  Bruno Haible  <bruno@clisp.org>
46185
46186         * modules/unictype/category-of (Depends-on): Add
46187         unictype/category-none.
46188         * modules/unictype/category-and-tests (Depends-on): Add
46189         unictype/category-{L,N,Lu,Nd}.
46190         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
46191         * modules/unictype/category-or-tests (Depends-on): Add
46192         unictype/category-{L,N}.
46193         * modules/unictype/category-name-tests (Depends-on): Add
46194         unictype/category-{Z,Nl}.
46195         Reported by Simon Josefsson.
46196
46197 2008-01-08  Bruno Haible  <bruno@clisp.org>
46198
46199         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
46200         convention better.
46201         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
46202         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
46203         Reported by Peter Miller <millerp@canb.auug.org.au>.
46204
46205 2008-01-08  Eric Blake  <ebb9@byu.net>
46206
46207         Rewrite memmem to guarantee linear complexity without malloc.
46208         * lib/memmem.c (memmem): Use Two-Way rather than
46209         Knuth-Morris-Pratt, to allow O(1) space usage.
46210         (critical_factorization, two_way_short_needle)
46211         (two_way_long_needle): New functions.
46212         (knuth_morris_pratt): Delete.
46213         * modules/memmem (Depends-on): No longer need malloca or stdbool.
46214         Add stdint.
46215         * tests/test-memmem.c (main): Add tests for periodic needle and
46216         sublinear performance.
46217         * doc/functions/memmem.texi (memmem): Document other deficiencies
46218         in cygwin and older glibc.
46219
46220 2008-01-08  Bruno Haible  <bruno@clisp.org>
46221
46222         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
46223         augmentation.
46224
46225 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
46226
46227         Add a configure time option: --disable-acl.
46228         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
46229         AC_ARG_ENABLE(acl).
46230
46231 2008-01-06  Simon Josefsson  <simon@josefsson.org>
46232
46233         * tests/test-localename.c: Don't include obsolete "setenv.h".
46234
46235         * modules/localename-tests (Depends-on): Need unsetenv.
46236
46237 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46238
46239         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
46240
46241 2008-01-06  Colin Watson  <cjwatson@debian.org>
46242
46243         * users.txt: Add man-db.
46244
46245 2008-01-07  Bruno Haible  <bruno@clisp.org>
46246
46247         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
46248         previous section name.
46249
46250 2008-01-07  Bruno Haible  <bruno@clisp.org>
46251
46252         * lib/progname.c (set_program_name): Don't strip off a leading
46253         "lt-" prefix outside a .libs directory.
46254         Suggested by Paul Eggert.
46255
46256 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
46257             Bruno Haible  <bruno@clisp.org>
46258
46259         Improve memory cleanup in 'relocatable' module.
46260         * lib/relocatable.h (compute_curr_prefix): Change return type to
46261         'char *'.
46262         * lib/relocatable.c (compute_curr_prefix): Change return type to
46263         'char *'. Free curr_installdir after use.
46264         (relocate): Free curr_prefix_better after use.
46265         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
46266
46267 2008-01-01  Bruno Haible  <bruno@clisp.org>
46268
46269         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
46270         failure on older glibc systems.
46271         Reported by Peter Fales <psfales@alcatel-lucent.com>.
46272
46273 2008-01-05  Eric Blake  <ebb9@byu.net>
46274
46275         Avoid quadratic system memmem.
46276         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
46277         Reported by Ralf Wildenhues.
46278
46279         Fix memmem test for mingw.
46280         * modules/memmem-tests (configure.ac): Check for alarm.
46281         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
46282         it.
46283         * doc/functions/memmem.texi: New file.
46284         * doc/gnulib.texi (Function Substitutes): Add memmem.
46285         Reported by Bruno Haible.
46286
46287 2008-01-04  Bruno Haible  <bruno@clisp.org>
46288
46289         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
46290         Require gl_HEADER_STRINGS_H_DEFAULTS, not
46291         gl_HEADER_STRING_H_DEFAULTS.
46292
46293 2008-01-04  Eric Blake  <ebb9@byu.net>
46294
46295         Shorten duration of memmem test.
46296         * tests/test-memmem.c (main): Use alarm to declare failure if test
46297         is taking too long.
46298         Reported by Ralf Wildenhues.
46299
46300 2007-12-21  Simon Josefsson  <simon@josefsson.org>
46301
46302         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
46303         string, needed by strerror.
46304
46305 2008-01-03  Colin Watson  <cjwatson@debian.org>
46306             Bruno Haible  <bruno@clisp.org>
46307
46308         * doc/gnulib-tool.texi (Localization): New section.
46309
46310 2008-01-02  Bruno Haible  <bruno@clisp.org>
46311
46312         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
46313         variables to 'unsigned char *' type.
46314         Reported by Paul Eggert.
46315
46316 2008-01-02  Jim Meyering  <jim@meyering.net>
46317
46318         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
46319
46320 2007-12-31  Jim Meyering  <jim@meyering.net>
46321
46322         Avoid use of private FTS type name.
46323         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
46324
46325 2007-12-30  Karl Berry  <karl@gnu.org>
46326
46327         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
46328         work around defect in Texinfo and/or the standalone Info browser.
46329
46330 2007-12-30  Bruno Haible  <bruno@clisp.org>
46331
46332         Unify 5 copies of the KMP code.
46333         * lib/str-kmp.h: New file.
46334         * lib/c-strcasestr.c: Include str-kmp.h.
46335         (knuth_morris_pratt): Remove function.
46336         (c_strcasestr): Update.
46337         * lib/c-strstr.c: Include str-kmp.h.
46338         (knuth_morris_pratt): Remove function.
46339         (c_strcasestr): Update.
46340         * lib/mbscasestr.c: Include str-kmp.h.
46341         (knuth_morris_pratt_unibyte): Remove function.
46342         * lib/mbsstr.c: Include str-kmp.h.
46343         (knuth_morris_pratt_unibyte): Remove function.
46344         * lib/strcasestr.c: Include str-kmp.h.
46345         (knuth_morris_pratt): Remove function.
46346         (strcasestr): Update.
46347         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
46348         * modules/c-strstr (Files): Likewise.
46349         * modules/mbscasestr (Files): Likewise.
46350         * modules/mbsstr (Files): Likewise.
46351         * modules/strcasestr (Files): Likewise.
46352         Suggested by Paul Eggert.
46353
46354 2007-12-30  Bruno Haible  <bruno@clisp.org>
46355
46356         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
46357         defined.
46358
46359 2007-12-30  Bruno Haible  <bruno@clisp.org>
46360
46361         * lib/xmalloca.h: Include xalloc.h.
46362         (xnmalloca): New macro.
46363
46364 2007-12-30  Bruno Haible  <bruno@clisp.org>
46365
46366         * lib/malloca.h (nmalloca): New macro.
46367         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
46368         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
46369         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
46370         knuth_morris_pratt_multibyte): Likewise.
46371         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
46372         knuth_morris_pratt_multibyte): Likewise.
46373         * lib/memmem.c (knuth_morris_pratt): Likewise.
46374         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
46375
46376 2007-12-25  Bruno Haible  <bruno@clisp.org>
46377
46378         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
46379         * lib/glob.c: Don't include openat.h.
46380         (link_exists2_p): Add back the code that deals with the
46381         !GLOB_ALTDIRFUNC case.
46382         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
46383         let it do the filename concatenation.
46384         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
46385         * modules/glob (Depends-on): Remove openat.
46386
46387 2007-12-31  Bruno Haible  <bruno@clisp.org>
46388
46389         * modules/dirfd (License): Change to LGPLv2+.
46390         Approved by Jim Meyering.
46391
46392 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
46393
46394         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
46395         when multiplying M by sizeof (size_t).
46396
46397 2007-12-10  Martin Lambers  <marlam@marlam.de>
46398
46399         Override getpagesize on mingw.
46400         * lib/getpagesize.c: New file.
46401         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
46402         * modules/getpagesize (Files): Add lib/getpagesize.c.
46403         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
46404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46405         REPLACE_GETPAGESIZE.
46406         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
46407
46408 2007-12-25  Bruno Haible  <bruno@clisp.org>
46409
46410         * modules/localcharset (Notice): New field.
46411         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
46412         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
46413
46414 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
46415             Bruno Haible  <bruno@clisp.org>
46416
46417         Avoid using the syntax symbol() in formatted documentation.
46418         * MODULES.html.sh (func_module): When replacing symbol() with a
46419         hyperlink, remove the parentheses. Show an error if some remain.
46420         Recognize and render the '...' syntax.
46421         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
46422         Rework. Add paragraph about GCC's inlining.
46423         * doc/alloca.texi: Likewise.
46424         * doc/error.texi: Remove parentheses from symbol reference.
46425         * doc/gnulib-intro.texi: Likewise.
46426         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
46427         * modules/fnmatch (Description): Reword to say "the ... function".
46428         * modules/full-read (Description): Likewise.
46429         * modules/full-write (Description): Likewise.
46430         * modules/safe-read (Description): Likewise.
46431         * modules/safe-write (Description): Likewise.
46432         * modules/strchrnul (Description): Likewise.
46433         * modules/trim (Description): Likewise.
46434         * modules/error (Description): Remove parentheses from symbol
46435         references.
46436         * modules/verror (Description): Likewise.
46437         Reported by Karl Berry.
46438
46439 2007-12-25  Bruno Haible  <bruno@clisp.org>
46440
46441         Fixup after 2007-10-16 commit.
46442         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
46443
46444 2007-12-24  Bruno Haible  <bruno@clisp.org>
46445
46446         Make --enable-relocatable work with DESTDIR.
46447         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
46448         to compute installdir from destprog.
46449         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
46450         also set the RELOC_DESTDIR variable.
46451         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46452
46453 2007-12-24  Bruno Haible  <bruno@clisp.org>
46454
46455         Fix link error due to xalloc_die().
46456         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
46457         of xreadlink.
46458         * lib/relocwrapper.c: Update comments.
46459         * build-aux/install-reloc: Remove xreadlink.c from file list.
46460         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
46461         xreadlink.c.
46462         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46463
46464 2007-12-24  Bruno Haible  <bruno@clisp.org>
46465
46466         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
46467         * lib/setenv.h: Remove file.
46468         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
46469         lib/setenv.h.
46470         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
46471         (Depends-on): Add stdlib.
46472         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
46473         gl_FUNC_UNSETENV.
46474         (Include): Replace setenv.h with <stdlib.h>.
46475         * modules/unsetenv: New file.
46476         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
46477         * lib/unsetenv.c: Include <stdlib.h> first.
46478         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
46479         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
46480         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
46481         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
46482         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
46483         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
46484         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
46485         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
46486         * doc/functions/unsetenv.texi: Update.
46487         * modules/xsetenv (Depends-on): Add unsetenv.
46488         * modules/getdate (Depends-on): Likewise.
46489         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
46490         * lib/xsetenv.c: Don't include setenv.h.
46491         * lib/getdate.y: Likewise.
46492         * lib/relocwrapper.c: Likewise.
46493         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
46494         (Depends-on): Add stdlib.
46495         * NEWS: Mention the changes.
46496         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
46497
46498 2007-12-23  Bruno Haible  <bruno@clisp.org>
46499
46500         * lib/memmem.c (memmem): Use lowercase variable names. Tab
46501         indentation.
46502
46503 2007-12-23  Bruno Haible  <bruno@clisp.org>
46504
46505         * lib/c-strcasestr.c: Add more comments.
46506         * lib/c-strstr.c: Likewise.
46507         * lib/mbscasestr.c: Likewise.
46508         * lib/mbsstr.c: Likewise.
46509         * lib/strcasestr.c: Likewise.
46510         * lib/memmem.c: Likewise.
46511
46512 2007-12-23  Bruno Haible  <bruno@clisp.org>
46513
46514         * tests/test-memmem.c: Include <string.h> first.
46515
46516 2007-12-22  Bruno Haible  <bruno@clisp.org>
46517
46518         * gnulib-tool (func_create_testdir): Change $auxdir while generating
46519         the contents of $testsbase.
46520         Reported by Ralf Wildenhues.
46521
46522 2007-12-22  Bruno Haible  <bruno@clisp.org>
46523
46524         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
46525         two variables local_ldadd_before, local_ldadd_last.
46526
46527 2007-12-20  Eric Blake  <ebb9@byu.net>
46528
46529         Work around circular library issue when cross-compiling.
46530         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
46531         that progname.o does not need to pull in rpl_memcmp.
46532
46533 2007-12-19  Eric Blake  <ebb9@byu.net>
46534
46535         Fix memmem to avoid O(n^2) worst-case complexity.
46536         * lib/memmem.c (knuth_morris_pratt): New function.
46537         (memmem): Use it if first few naive iterations fail.
46538         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
46539         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
46540         * modules/memchr (License): Likewise.
46541         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
46542         malloca.
46543         * tests/test-memmem.c: Rewrite, borrowing ideas from
46544         test-mbsstr1.c; the old version wouldn't even compile!
46545         * modules/memmem-tests: New file.
46546         * lib/string.in.h (rpl_memmem): Add declaration.
46547         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
46548         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
46549         REPLACE_MEMMEM.
46550
46551 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46552
46553         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
46554         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
46555         before any system include files, and undef after them all.  This
46556         should fix a problem on VMS reported by John E. Malmberg in
46557         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
46558
46559 2007-12-17  Eric Blake  <ebb9@byu.net>
46560
46561         Revert addition of verify, for BSD/OS.
46562         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
46563         can't handle large files, for the sake of obsolete platforms.
46564         * modules/fseeko (Depends-on): Remove verify.
46565         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
46566         * doc/functions/ftello.texi (ftello): Likewise.
46567         * doc/functions/fgetpos.texi (fgetpos): Likewise.
46568         Reported by Larry Jones.
46569
46570 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
46571
46572         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
46573         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
46574
46575 2007-12-17  Jim Meyering  <meyering@redhat.com>
46576
46577         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
46578         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
46579         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
46580         * modules/getcwd (Depends-on): Add openat.
46581         Reported by Petr Salinger.
46582
46583 2007-12-17  Bruno Haible  <bruno@clisp.org>
46584
46585         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
46586         avoid a segmentation fault of the configure test on x86_64 systems.
46587
46588 2007-12-15  Jim Meyering  <meyering@redhat.com>
46589
46590         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
46591
46592 2007-12-13  Eric Blake  <ebb9@byu.net>
46593
46594         Another fseek test.
46595         * tests/test-fseek.c (main): Also test ungetc handling.
46596         * tests/test-fseeko.c (main): Likewise.
46597         * modules/fseeko (Depends-on): Add verify.
46598         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
46599         large.
46600         Reported by Larry Jones.
46601
46602         Fix fseeko on mingw.
46603         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
46604         seek.
46605
46606         Beef up fseek tests.
46607         * tests/test-fseek.c (main): Also test eof handling.
46608         * tests/test-fseeko.c (main): Likewise.
46609         Reported by Larry Jones.
46610
46611 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
46612
46613         Fix fseeko on BSD-based platforms.
46614         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
46615         successful seek.
46616
46617 2007-12-12  Eric Blake  <ebb9@byu.net>
46618
46619         Allow circular dependency of separate libtests.a
46620         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
46621         when use_libtests.
46622
46623 2007-12-11  Eric Blake  <ebb9@byu.net>
46624
46625         Fix bug with -0.0L in previous patch.
46626         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
46627         * tests/test-isnan.c (main): Also test on zeroes.
46628         * tests/test-isnanf.c (main): Likewise.
46629         * tests/test-isnanl.h (main): Likewise.
46630
46631         Detect pseudo-denormals on x86 even when cross-compiling.
46632         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
46633         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
46634         invalid bit patterns that happen to satisfy ==.
46635
46636         Avoid link failures with separate libtests.a.
46637         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
46638         last, to satisfy circular dependencies.
46639
46640 2007-12-11  Eric Blake  <ebb9@byu.net>
46641         and Bruno Haible  <bruno@clisp.org>
46642
46643         Fix OpenBSD 4.0 <float.h> handling of long double.
46644         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
46645         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
46646         * doc/headers/float.texi (float.h): Document OpenBSD bug.
46647
46648 2007-12-11  Jim Meyering  <meyering@redhat.com>
46649
46650         * users.txt: Add libvirt.
46651
46652         Support versions of autoconf prior to 2.59c.
46653         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
46654         if it is not already defined.
46655
46656 2007-12-09  Bruno Haible  <bruno@clisp.org>
46657
46658         Let 'gnulib-tool --import' collect sources needed for the tests in
46659         tests/ rather than in lib/.
46660         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
46661         argument. If true, add rules to generate libtests.a, and put libtests.a
46662         into $(LDADD). Consider source files in subdirectories and set
46663         uses_subdirs.
46664         (func_emit_initmacro_start, func_emit_initmacro_end,
46665         func_emit_initmacro_done): Pass all arguments explicitly.
46666         (func_import): Determine two module lists main_modules,
46667         testsrelated_modules. Determine use_libtests. Determine two variables
46668         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
46669         instead of just sed_transform_lib_file. Determine two variables
46670         main_files and testsrelated_files. Compute 'files' as the union of
46671         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
46672         func_add_or_update. In the generated gnulib-comp.m4, collect the
46673         object files for tests/ in different variables than those for lib/.
46674         Substitute LIBTESTS_LIBDEPS.
46675         (func_create_testdir): Combine the uses_subdirs results from
46676         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
46677
46678 2007-12-09  Bruno Haible  <bruno@clisp.org>
46679
46680         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
46681         the build-aux directory.
46682
46683 2007-12-09  Bruno Haible  <bruno@clisp.org>
46684
46685         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
46686         introduced on 2006-09-09.
46687
46688 2007-12-07  Jim Meyering  <meyering@redhat.com>
46689
46690         Let these macros work also with autoconf-2.59.
46691         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
46692         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
46693         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46694
46695 2007-12-06  Jim Meyering  <meyering@redhat.com>
46696
46697         Avoid a configure-time syntax error in gl_FUNC_ACL.
46698         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
46699         function in each branch, before testing the cache variable.
46700
46701 2007-12-04  Eric Blake  <ebb9@byu.net>
46702
46703         Make scripts executable.
46704         * build-aux/config.guess: Add execute permissions.
46705         * build-aux/config.sub: Likewise.
46706         * build-aux/gendocs.sh: Likewise.
46707
46708         Fix frexp on mingw.
46709         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
46710         cross-compiling.
46711         * doc/functions/frexp.texi (frexp): Document the bug.
46712
46713         Make cygwin fseeko check more reliable.
46714         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
46715         version numbers, rather than unrelated feature check.
46716         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
46717         * doc/functions/ftello.texi (ftello): Likewise.
46718         Reported by Bruno Haible.
46719
46720         * m4/strerror.m4: Bump version number.
46721
46722 2007-12-03  Bruno Haible  <bruno@clisp.org>
46723
46724         * doc/functions/mprotect.texi: Mention the mingw problem.
46725
46726 2007-12-03  Eric Blake  <ebb9@byu.net>
46727
46728         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
46729         REPLACE_STRERROR is initialized before this macro.
46730
46731 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
46732
46733         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
46734         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
46735         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
46736         put -lsec in even for programs other than 'ls'.  This fixes a problem
46737         for gettext reported by Bruno Haible in
46738         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
46739         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
46740         Add support for Solaris 10.  This isn't efficient, but should get the
46741         job done for now.
46742
46743 2007-12-03  James Youngman  <jay@gnu.org>
46744
46745         * doc/regexprops-generic.texi: change "an close-group" to "a
46746         close-group" and "illegal" to "not allowed".
46747
46748 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46749
46750         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
46751         pr_byname.h. Needed for the rare case when the maintainer has done
46752         "make maintainer-clean" in the source directory and then attempts a
46753         build outside the source directory.
46754         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
46755         scripts_byname.h.
46756
46757 2007-12-02  Martin Lambers <marlam@marlam.de>
46758             Bruno Haible  <bruno@clisp.org>
46759
46760         * lib/getpagesize.h: Remove file.
46761         * lib/unistd.in.h: Include declaration of getpagesize here.
46762         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
46763         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
46764         HAVE_SYS_PARAM_H.
46765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
46766         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
46767         * modules/getpagesize (Files): Remove lib/getpagesize.h.
46768         (Depends-on): Add unistd.
46769         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46770         (Include): Use <unistd.h> instead of getpagesize.h.
46771         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
46772         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
46773         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
46774         gl_GETPAGESIZE invocation, already handled by module dependency.
46775         * lib/pagealign_alloc.c: Don't include getpagesize.h.
46776
46777 2007-12-02  Bruno Haible  <bruno@clisp.org>
46778
46779         * modules/strings-tests: New file.
46780         * tests/test-strings.c: New file.
46781
46782         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
46783         * lib/strings.in.h: New file.
46784         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
46785         * m4/strings_h.m4: New file.
46786         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
46787         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
46788         * modules/strings: New file.
46789         * modules/string (Makefile.am): Update.
46790         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
46791         Reported by Karl Berry.
46792
46793 2007-12-01  Eric Blake  <ebb9@byu.net>
46794
46795         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
46796         accomodate fix in cygwin 1.5.25.
46797
46798 2007-12-01  Jim Meyering  <meyering@redhat.com>
46799
46800         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
46801         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
46802         that would inhibit utf8-optimization of a regexp containing line-
46803         or buffer-anchors, e.g., `^', `$'.
46804
46805 2007-11-30  Bruno Haible  <bruno@clisp.org>
46806
46807         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
46808         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
46809         glthread_recursive_lock_init.
46810         * lib/lock.c (glthread_recursive_lock_init)
46811         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
46812         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46813
46814 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
46815
46816         New function qset_acl, like set_acl but with syscall semantics.
46817         * lib/acl.h (qset_acl): New decl.
46818         * lib/acl.c (qset_acl): New function.
46819         (set_acl): Use new function.  Use more-consistent diagnostics.
46820
46821 2007-11-28  Jim Meyering  <meyering@redhat.com>
46822
46823         * modules/physmem (License): Change from GPL to LGPLv2+.
46824
46825 2007-11-26  Bruno Haible  <bruno@clisp.org>
46826
46827         * lib/vasnprintf.c (decode_long_double): Don't abort if the
46828         'long double' type has excess precision.
46829         Reported by Jim Meyering in
46830         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
46831
46832 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46833
46834         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
46835         Sync from <http://gnu.org/licenses>.
46836         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
46837         with license text from same location.
46838         * doc/maintain.texi, doc/standards.texi:  Sync from
46839         <http://savannah.gnu.org/projects/gnustandards>.
46840
46841 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
46842         and Jim Meyering  <meyering@redhat.com>
46843
46844         Adjust getdate' grammar to accept a slightly more regular language.
46845         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
46846         Before, the former was rejected.
46847         * lib/getdate.y (digits_to_date_time): New function, factored
46848         out of ...
46849         (number): ...here.  Just call digits_to_date_time.
46850         (hybrid): New non-terminal to handle an <unsigned number,
46851         signed relative offset> sequence consistently.
46852
46853 2007-11-18  Jim Meyering  <meyering@redhat.com>
46854
46855         Pull my changes from coreutils:
46856         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
46857         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
46858         use of $gnulib_tool_option_extras, so that it's separated from the
46859         preceding argument.
46860
46861         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
46862         * build-aux/bootstrap (cp_mark_as_generated): Create any required
46863         parent destination directories before copying a file into place.
46864
46865 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
46866
46867         bootstrap: work also with 4-argument variant of AC_INIT
46868         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
46869
46870 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46871
46872         Port test-getaddrinfo to Solaris.
46873         Problem reported by Bruno Haible in
46874         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
46875         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
46876         explanation of setting 'hints'.
46877         Don't reject an implementation merely because it returns EAI_SERVICE.
46878         (EAI_SERVICE): Define to 0 if not defined.
46879
46880 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
46881
46882         The license of gnu-make and posix-shell is now "GPLed build tool".
46883         * modules/gnu-make (License): Likewise.
46884         * modules/posix-shell (License): Likewise.
46885
46886         New module posix-shell, for determining a POSIX shell
46887         or perhaps something that is close enough to a POSIX shell.
46888         * m4/posix-shell.m4: New file.
46889         * modules/posix-shell: New file.
46890
46891         * MODULES.html.sh: Mention new module.
46892
46893         New module gnu-make, for determining whether we're using GNU Make.
46894         * m4/gnu-make.m4: New file.
46895         * modules/gnu-make: New file.
46896         * MODULES.html.sh: Mention new module.
46897
46898 2007-11-14  Jim Meyering  <meyering@redhat.com>
46899
46900         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
46901         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
46902         use this macro to create a function _definition_.
46903         Remove useless "#undef ARGMATCH_DIE".
46904
46905 2007-11-14  Bruno Haible  <bruno@clisp.org>
46906
46907         * lib/config.charset: Update for OpenBSD 4.1.
46908         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
46909
46910 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
46911
46912         Document 64-bit #if problems in stdint.texi.
46913         * doc/headers/stdint.texi (stdint.h): Mention problems with
46914         64-bit-#if, and how to work around them.
46915
46916         Don't insist on 'long long int' support in the preprocessor.  It
46917         breaks too many things.  For example, PRIdMAX still uses a 'long
46918         long int' format with the latest Sun compiler, even though
46919         HAVE_LONG_LONG_INT isn't defined due to that compiler's
46920         preprocessor problem.  This causes the latest coreutils to dump
46921         core on Solaris 10 sparc with the Sun C compiler.
46922         Instead, fix the 2007-10-16 problem in a different way, by evaluating
46923         the troublesome expressions at configure-time, not at #if-time.
46924         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
46925         preprocessor.
46926         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
46927         compile-time C checks, done at 'configure'-time.
46928         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
46929         * modules/inttypes (Makefile): Substitute the new symbols that
46930         gl_INTTYPES_H now generates.
46931         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
46932
46933 2007-11-12  Bruno Haible  <bruno@clisp.org>
46934
46935         Tests for Unicode character classification functions.
46936
46937         * modules/unictype/bidicategory-byname-tests: New file.
46938         * modules/unictype/bidicategory-name-tests: New file.
46939         * modules/unictype/bidicategory-of-tests: New file.
46940         * modules/unictype/bidicategory-test-tests: New file.
46941         * modules/unictype/block-list-tests: New file.
46942         * modules/unictype/block-of-tests: New file.
46943         * modules/unictype/block-test-tests: New file.
46944         * modules/unictype/category-C-tests: New file.
46945         * modules/unictype/category-Cc-tests: New file.
46946         * modules/unictype/category-Cf-tests: New file.
46947         * modules/unictype/category-Cn-tests: New file.
46948         * modules/unictype/category-Co-tests: New file.
46949         * modules/unictype/category-Cs-tests: New file.
46950         * modules/unictype/category-L-tests: New file.
46951         * modules/unictype/category-Ll-tests: New file.
46952         * modules/unictype/category-Lm-tests: New file.
46953         * modules/unictype/category-Lo-tests: New file.
46954         * modules/unictype/category-Lt-tests: New file.
46955         * modules/unictype/category-Lu-tests: New file.
46956         * modules/unictype/category-M-tests: New file.
46957         * modules/unictype/category-Mc-tests: New file.
46958         * modules/unictype/category-Me-tests: New file.
46959         * modules/unictype/category-Mn-tests: New file.
46960         * modules/unictype/category-N-tests: New file.
46961         * modules/unictype/category-Nd-tests: New file.
46962         * modules/unictype/category-Nl-tests: New file.
46963         * modules/unictype/category-No-tests: New file.
46964         * modules/unictype/category-P-tests: New file.
46965         * modules/unictype/category-Pc-tests: New file.
46966         * modules/unictype/category-Pd-tests: New file.
46967         * modules/unictype/category-Pe-tests: New file.
46968         * modules/unictype/category-Pf-tests: New file.
46969         * modules/unictype/category-Pi-tests: New file.
46970         * modules/unictype/category-Po-tests: New file.
46971         * modules/unictype/category-Ps-tests: New file.
46972         * modules/unictype/category-S-tests: New file.
46973         * modules/unictype/category-Sc-tests: New file.
46974         * modules/unictype/category-Sk-tests: New file.
46975         * modules/unictype/category-Sm-tests: New file.
46976         * modules/unictype/category-So-tests: New file.
46977         * modules/unictype/category-Z-tests: New file.
46978         * modules/unictype/category-Zl-tests: New file.
46979         * modules/unictype/category-Zp-tests: New file.
46980         * modules/unictype/category-Zs-tests: New file.
46981         * modules/unictype/category-and-not-tests: New file.
46982         * modules/unictype/category-and-tests: New file.
46983         * modules/unictype/category-byname-tests: New file.
46984         * modules/unictype/category-name-tests: New file.
46985         * modules/unictype/category-none-tests: New file.
46986         * modules/unictype/category-of-tests: New file.
46987         * modules/unictype/category-or-tests: New file.
46988         * modules/unictype/category-test-withtable-tests: New file.
46989         * modules/unictype/combining-class-tests: New file.
46990         * modules/unictype/ctype-alnum-tests: New file.
46991         * modules/unictype/ctype-alpha-tests: New file.
46992         * modules/unictype/ctype-blank-tests: New file.
46993         * modules/unictype/ctype-cntrl-tests: New file.
46994         * modules/unictype/ctype-digit-tests: New file.
46995         * modules/unictype/ctype-graph-tests: New file.
46996         * modules/unictype/ctype-lower-tests: New file.
46997         * modules/unictype/ctype-print-tests: New file.
46998         * modules/unictype/ctype-punct-tests: New file.
46999         * modules/unictype/ctype-space-tests: New file.
47000         * modules/unictype/ctype-upper-tests: New file.
47001         * modules/unictype/ctype-xdigit-tests: New file.
47002         * modules/unictype/decimal-digit-tests: New file.
47003         * modules/unictype/digit-tests: New file.
47004         * modules/unictype/mirror-tests: New file.
47005         * modules/unictype/numeric-tests: New file.
47006         * modules/unictype/property-alphabetic-tests: New file.
47007         * modules/unictype/property-ascii-hex-digit-tests: New file.
47008         * modules/unictype/property-bidi-arabic-digit-tests: New file.
47009         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
47010         * modules/unictype/property-bidi-block-separator-tests: New file.
47011         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
47012         * modules/unictype/property-bidi-common-separator-tests: New file.
47013         * modules/unictype/property-bidi-control-tests: New file.
47014         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
47015         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
47016         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
47017         * modules/unictype/property-bidi-european-digit-tests: New file.
47018         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
47019         * modules/unictype/property-bidi-left-to-right-tests: New file.
47020         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
47021         * modules/unictype/property-bidi-other-neutral-tests: New file.
47022         * modules/unictype/property-bidi-pdf-tests: New file.
47023         * modules/unictype/property-bidi-segment-separator-tests: New file.
47024         * modules/unictype/property-bidi-whitespace-tests: New file.
47025         * modules/unictype/property-byname-tests: New file.
47026         * modules/unictype/property-combining-tests: New file.
47027         * modules/unictype/property-composite-tests: New file.
47028         * modules/unictype/property-currency-symbol-tests: New file.
47029         * modules/unictype/property-dash-tests: New file.
47030         * modules/unictype/property-decimal-digit-tests: New file.
47031         * modules/unictype/property-default-ignorable-code-point-tests: New file.
47032         * modules/unictype/property-deprecated-tests: New file.
47033         * modules/unictype/property-diacritic-tests: New file.
47034         * modules/unictype/property-extender-tests: New file.
47035         * modules/unictype/property-format-control-tests: New file.
47036         * modules/unictype/property-grapheme-base-tests: New file.
47037         * modules/unictype/property-grapheme-extend-tests: New file.
47038         * modules/unictype/property-grapheme-link-tests: New file.
47039         * modules/unictype/property-hex-digit-tests: New file.
47040         * modules/unictype/property-hyphen-tests: New file.
47041         * modules/unictype/property-id-continue-tests: New file.
47042         * modules/unictype/property-id-start-tests: New file.
47043         * modules/unictype/property-ideographic-tests: New file.
47044         * modules/unictype/property-ids-binary-operator-tests: New file.
47045         * modules/unictype/property-ids-trinary-operator-tests: New file.
47046         * modules/unictype/property-ignorable-control-tests: New file.
47047         * modules/unictype/property-iso-control-tests: New file.
47048         * modules/unictype/property-join-control-tests: New file.
47049         * modules/unictype/property-left-of-pair-tests: New file.
47050         * modules/unictype/property-line-separator-tests: New file.
47051         * modules/unictype/property-logical-order-exception-tests: New file.
47052         * modules/unictype/property-lowercase-tests: New file.
47053         * modules/unictype/property-math-tests: New file.
47054         * modules/unictype/property-non-break-tests: New file.
47055         * modules/unictype/property-not-a-character-tests: New file.
47056         * modules/unictype/property-numeric-tests: New file.
47057         * modules/unictype/property-other-alphabetic-tests: New file.
47058         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
47059         * modules/unictype/property-other-grapheme-extend-tests: New file.
47060         * modules/unictype/property-other-id-continue-tests: New file.
47061         * modules/unictype/property-other-id-start-tests: New file.
47062         * modules/unictype/property-other-lowercase-tests: New file.
47063         * modules/unictype/property-other-math-tests: New file.
47064         * modules/unictype/property-other-uppercase-tests: New file.
47065         * modules/unictype/property-paired-punctuation-tests: New file.
47066         * modules/unictype/property-paragraph-separator-tests: New file.
47067         * modules/unictype/property-pattern-syntax-tests: New file.
47068         * modules/unictype/property-pattern-white-space-tests: New file.
47069         * modules/unictype/property-private-use-tests: New file.
47070         * modules/unictype/property-punctuation-tests: New file.
47071         * modules/unictype/property-quotation-mark-tests: New file.
47072         * modules/unictype/property-radical-tests: New file.
47073         * modules/unictype/property-sentence-terminal-tests: New file.
47074         * modules/unictype/property-soft-dotted-tests: New file.
47075         * modules/unictype/property-space-tests: New file.
47076         * modules/unictype/property-terminal-punctuation-tests: New file.
47077         * modules/unictype/property-test-tests: New file.
47078         * modules/unictype/property-titlecase-tests: New file.
47079         * modules/unictype/property-unassigned-code-value-tests: New file.
47080         * modules/unictype/property-unified-ideograph-tests: New file.
47081         * modules/unictype/property-uppercase-tests: New file.
47082         * modules/unictype/property-variation-selector-tests: New file.
47083         * modules/unictype/property-white-space-tests: New file.
47084         * modules/unictype/property-xid-continue-tests: New file.
47085         * modules/unictype/property-xid-start-tests: New file.
47086         * modules/unictype/property-zero-width-tests: New file.
47087         * modules/unictype/scripts-tests: New file.
47088         * modules/unictype/syntax-c-ident-tests: New file.
47089         * modules/unictype/syntax-c-whitespace-tests: New file.
47090         * modules/unictype/syntax-java-ident-tests: New file.
47091         * modules/unictype/syntax-java-whitespace-tests: New file.
47092         * tests/unictype/test-bidi_byname.c: New file.
47093         * tests/unictype/test-bidi_name.c: New file.
47094         * tests/unictype/test-bidi_of.c: New file.
47095         * tests/unictype/test-bidi_test.c: New file.
47096         * tests/unictype/test-block_list.c: New file.
47097         * tests/unictype/test-block_of.c: New file.
47098         * tests/unictype/test-block_test.c: New file.
47099         * tests/unictype/test-categ_and.c: New file.
47100         * tests/unictype/test-categ_and_not.c: New file.
47101         * tests/unictype/test-categ_byname.c: New file.
47102         * tests/unictype/test-categ_name.c: New file.
47103         * tests/unictype/test-categ_none.c: New file.
47104         * tests/unictype/test-categ_of.c: New file.
47105         * tests/unictype/test-categ_or.c: New file.
47106         * tests/unictype/test-categ_test_withtable.c: New file.
47107         * tests/unictype/test-combining.c: New file.
47108         * tests/unictype/test-decdigit.c: New file.
47109         * tests/unictype/test-digit.c: New file.
47110         * tests/unictype/test-mirror.c: New file.
47111         * tests/unictype/test-numeric.c: New file.
47112         * tests/unictype/test-pr_byname.c: New file.
47113         * tests/unictype/test-pr_test.c: New file.
47114         * tests/unictype/test-predicate-part1.h: New file.
47115         * tests/unictype/test-predicate-part2.h: New file.
47116         * tests/unictype/test-scripts.c: New file.
47117         * tests/unictype/test-sy_c_ident.c: New file.
47118         * tests/unictype/test-sy_java_ident.c: New file.
47119
47120         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
47121         for Unicode 5.0.0.
47122         * tests/unictype/test-categ_Cc.c: Likewise.
47123         * tests/unictype/test-categ_Cf.c: Likewise.
47124         * tests/unictype/test-categ_Cn.c: Likewise.
47125         * tests/unictype/test-categ_Co.c: Likewise.
47126         * tests/unictype/test-categ_Cs.c: Likewise.
47127         * tests/unictype/test-categ_L.c: Likewise.
47128         * tests/unictype/test-categ_Ll.c: Likewise.
47129         * tests/unictype/test-categ_Lm.c: Likewise.
47130         * tests/unictype/test-categ_Lo.c: Likewise.
47131         * tests/unictype/test-categ_Lt.c: Likewise.
47132         * tests/unictype/test-categ_Lu.c: Likewise.
47133         * tests/unictype/test-categ_M.c: Likewise.
47134         * tests/unictype/test-categ_Mc.c: Likewise.
47135         * tests/unictype/test-categ_Me.c: Likewise.
47136         * tests/unictype/test-categ_Mn.c: Likewise.
47137         * tests/unictype/test-categ_N.c: Likewise.
47138         * tests/unictype/test-categ_Nd.c: Likewise.
47139         * tests/unictype/test-categ_Nl.c: Likewise.
47140         * tests/unictype/test-categ_No.c: Likewise.
47141         * tests/unictype/test-categ_P.c: Likewise.
47142         * tests/unictype/test-categ_Pc.c: Likewise.
47143         * tests/unictype/test-categ_Pd.c: Likewise.
47144         * tests/unictype/test-categ_Pe.c: Likewise.
47145         * tests/unictype/test-categ_Pf.c: Likewise.
47146         * tests/unictype/test-categ_Pi.c: Likewise.
47147         * tests/unictype/test-categ_Po.c: Likewise.
47148         * tests/unictype/test-categ_Ps.c: Likewise.
47149         * tests/unictype/test-categ_S.c: Likewise.
47150         * tests/unictype/test-categ_Sc.c: Likewise.
47151         * tests/unictype/test-categ_Sk.c: Likewise.
47152         * tests/unictype/test-categ_Sm.c: Likewise.
47153         * tests/unictype/test-categ_So.c: Likewise.
47154         * tests/unictype/test-categ_Z.c: Likewise.
47155         * tests/unictype/test-categ_Zl.c: Likewise.
47156         * tests/unictype/test-categ_Zp.c: Likewise.
47157         * tests/unictype/test-categ_Zs.c: Likewise.
47158         * tests/unictype/test-ctype_alnum.c: Likewise.
47159         * tests/unictype/test-ctype_alpha.c: Likewise.
47160         * tests/unictype/test-ctype_blank.c: Likewise.
47161         * tests/unictype/test-ctype_cntrl.c: Likewise.
47162         * tests/unictype/test-ctype_digit.c: Likewise.
47163         * tests/unictype/test-ctype_graph.c: Likewise.
47164         * tests/unictype/test-ctype_lower.c: Likewise.
47165         * tests/unictype/test-ctype_print.c: Likewise.
47166         * tests/unictype/test-ctype_punct.c: Likewise.
47167         * tests/unictype/test-ctype_space.c: Likewise.
47168         * tests/unictype/test-ctype_upper.c: Likewise.
47169         * tests/unictype/test-ctype_xdigit.c: Likewise.
47170         * tests/unictype/test-decdigit.h: Likewise.
47171         * tests/unictype/test-digit.h: Likewise.
47172         * tests/unictype/test-numeric.h: Likewise.
47173         * tests/unictype/test-pr_alphabetic.c: Likewise.
47174         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
47175         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
47176         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
47177         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
47178         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
47179         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
47180         * tests/unictype/test-pr_bidi_control.c: Likewise.
47181         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
47182         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
47183         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
47184         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
47185         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
47186         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
47187         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
47188         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
47189         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
47190         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
47191         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
47192         * tests/unictype/test-pr_combining.c: Likewise.
47193         * tests/unictype/test-pr_composite.c: Likewise.
47194         * tests/unictype/test-pr_currency_symbol.c: Likewise.
47195         * tests/unictype/test-pr_dash.c: Likewise.
47196         * tests/unictype/test-pr_decimal_digit.c: Likewise.
47197         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
47198         * tests/unictype/test-pr_deprecated.c: Likewise.
47199         * tests/unictype/test-pr_diacritic.c: Likewise.
47200         * tests/unictype/test-pr_extender.c: Likewise.
47201         * tests/unictype/test-pr_format_control.c: Likewise.
47202         * tests/unictype/test-pr_grapheme_base.c: Likewise.
47203         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
47204         * tests/unictype/test-pr_grapheme_link.c: Likewise.
47205         * tests/unictype/test-pr_hex_digit.c: Likewise.
47206         * tests/unictype/test-pr_hyphen.c: Likewise.
47207         * tests/unictype/test-pr_id_continue.c: Likewise.
47208         * tests/unictype/test-pr_id_start.c: Likewise.
47209         * tests/unictype/test-pr_ideographic.c: Likewise.
47210         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
47211         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
47212         * tests/unictype/test-pr_ignorable_control.c: Likewise.
47213         * tests/unictype/test-pr_iso_control.c: Likewise.
47214         * tests/unictype/test-pr_join_control.c: Likewise.
47215         * tests/unictype/test-pr_left_of_pair.c: Likewise.
47216         * tests/unictype/test-pr_line_separator.c: Likewise.
47217         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
47218         * tests/unictype/test-pr_lowercase.c: Likewise.
47219         * tests/unictype/test-pr_math.c: Likewise.
47220         * tests/unictype/test-pr_non_break.c: Likewise.
47221         * tests/unictype/test-pr_not_a_character.c: Likewise.
47222         * tests/unictype/test-pr_numeric.c: Likewise.
47223         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
47224         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
47225         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
47226         * tests/unictype/test-pr_other_id_continue.c: Likewise.
47227         * tests/unictype/test-pr_other_id_start.c: Likewise.
47228         * tests/unictype/test-pr_other_lowercase.c: Likewise.
47229         * tests/unictype/test-pr_other_math.c: Likewise.
47230         * tests/unictype/test-pr_other_uppercase.c: Likewise.
47231         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
47232         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
47233         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
47234         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
47235         * tests/unictype/test-pr_private_use.c: Likewise.
47236         * tests/unictype/test-pr_punctuation.c: Likewise.
47237         * tests/unictype/test-pr_quotation_mark.c: Likewise.
47238         * tests/unictype/test-pr_radical.c: Likewise.
47239         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
47240         * tests/unictype/test-pr_soft_dotted.c: Likewise.
47241         * tests/unictype/test-pr_space.c: Likewise.
47242         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
47243         * tests/unictype/test-pr_titlecase.c: Likewise.
47244         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
47245         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
47246         * tests/unictype/test-pr_uppercase.c: Likewise.
47247         * tests/unictype/test-pr_variation_selector.c: Likewise.
47248         * tests/unictype/test-pr_white_space.c: Likewise.
47249         * tests/unictype/test-pr_xid_continue.c: Likewise.
47250         * tests/unictype/test-pr_xid_start.c: Likewise.
47251         * tests/unictype/test-pr_zero_width.c: Likewise.
47252         * tests/unictype/test-sy_c_whitespace.c: Likewise.
47253         * tests/unictype/test-sy_java_whitespace.c: Likewise.
47254
47255 2007-11-12  Bruno Haible  <bruno@clisp.org>
47256
47257         Unicode character classification functions.
47258         * lib/unictype.h: New file.
47259         * modules/unictype/base: New file.
47260         * modules/unictype/category-L: New file.
47261         * modules/unictype/category-Lu: New file.
47262         * modules/unictype/category-Ll: New file.
47263         * modules/unictype/category-Lt: New file.
47264         * modules/unictype/category-Lm: New file.
47265         * modules/unictype/category-Lo: New file.
47266         * modules/unictype/category-M: New file.
47267         * modules/unictype/category-Mn: New file.
47268         * modules/unictype/category-Mc: New file.
47269         * modules/unictype/category-Me: New file.
47270         * modules/unictype/category-N: New file.
47271         * modules/unictype/category-Nd: New file.
47272         * modules/unictype/category-Nl: New file.
47273         * modules/unictype/category-No: New file.
47274         * modules/unictype/category-P: New file.
47275         * modules/unictype/category-Pc: New file.
47276         * modules/unictype/category-Pd: New file.
47277         * modules/unictype/category-Ps: New file.
47278         * modules/unictype/category-Pe: New file.
47279         * modules/unictype/category-Pi: New file.
47280         * modules/unictype/category-Pf: New file.
47281         * modules/unictype/category-Po: New file.
47282         * modules/unictype/category-S: New file.
47283         * modules/unictype/category-Sm: New file.
47284         * modules/unictype/category-Sc: New file.
47285         * modules/unictype/category-Sk: New file.
47286         * modules/unictype/category-So: New file.
47287         * modules/unictype/category-Z: New file.
47288         * modules/unictype/category-Zs: New file.
47289         * modules/unictype/category-Zl: New file.
47290         * modules/unictype/category-Zp: New file.
47291         * modules/unictype/category-C: New file.
47292         * modules/unictype/category-Cc: New file.
47293         * modules/unictype/category-Cf: New file.
47294         * modules/unictype/category-Cs: New file.
47295         * modules/unictype/category-Co: New file.
47296         * modules/unictype/category-Cn: New file.
47297         * modules/unictype/category-or: New file.
47298         * modules/unictype/category-of: New file.
47299         * modules/unictype/category-test: New file.
47300         * modules/unictype/category-test-withtable: New file.
47301         * modules/unictype/category-byname: New file.
47302         * modules/unictype/category-none: New file.
47303         * modules/unictype/category-and: New file.
47304         * modules/unictype/category-and-not: New file.
47305         * modules/unictype/category-name: New file.
47306         * modules/unictype/combining-class: New file.
47307         * modules/unictype/category-all: New file.
47308         * modules/unictype/bidicategory-all: New file.
47309         * modules/unictype/bidicategory-byname: New file.
47310         * modules/unictype/bidicategory-name: New file.
47311         * modules/unictype/bidicategory-of: New file.
47312         * modules/unictype/bidicategory-test: New file.
47313         * modules/unictype/decimal-digit: New file.
47314         * modules/unictype/digit: New file.
47315         * modules/unictype/numeric: New file.
47316         * modules/unictype/mirror: New file.
47317         * modules/unictype/property-white-space: New file.
47318         * modules/unictype/property-alphabetic: New file.
47319         * modules/unictype/property-other-alphabetic: New file.
47320         * modules/unictype/property-not-a-character: New file.
47321         * modules/unictype/property-default-ignorable-code-point: New file.
47322         * modules/unictype/property-other-default-ignorable-code-point: New
47323         file.
47324         * modules/unictype/property-deprecated: New file.
47325         * modules/unictype/property-logical-order-exception: New file.
47326         * modules/unictype/property-variation-selector: New file.
47327         * modules/unictype/property-private-use: New file.
47328         * modules/unictype/property-unassigned-code-value: New file.
47329         * modules/unictype/property-uppercase: New file.
47330         * modules/unictype/property-other-uppercase: New file.
47331         * modules/unictype/property-lowercase: New file.
47332         * modules/unictype/property-other-lowercase: New file.
47333         * modules/unictype/property-titlecase: New file.
47334         * modules/unictype/property-soft-dotted: New file.
47335         * modules/unictype/property-id-start: New file.
47336         * modules/unictype/property-other-id-start: New file.
47337         * modules/unictype/property-id-continue: New file.
47338         * modules/unictype/property-other-id-continue: New file.
47339         * modules/unictype/property-xid-start: New file.
47340         * modules/unictype/property-xid-continue: New file.
47341         * modules/unictype/property-pattern-white-space: New file.
47342         * modules/unictype/property-pattern-syntax: New file.
47343         * modules/unictype/property-join-control: New file.
47344         * modules/unictype/property-grapheme-base: New file.
47345         * modules/unictype/property-grapheme-extend: New file.
47346         * modules/unictype/property-other-grapheme-extend: New file.
47347         * modules/unictype/property-grapheme-link: New file.
47348         * modules/unictype/property-bidi-control: New file.
47349         * modules/unictype/property-bidi-left-to-right: New file.
47350         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
47351         * modules/unictype/property-bidi-arabic-right-to-left: New file.
47352         * modules/unictype/property-bidi-european-digit: New file.
47353         * modules/unictype/property-bidi-eur-num-separator: New file.
47354         * modules/unictype/property-bidi-eur-num-terminator: New file.
47355         * modules/unictype/property-bidi-arabic-digit: New file.
47356         * modules/unictype/property-bidi-common-separator: New file.
47357         * modules/unictype/property-bidi-block-separator: New file.
47358         * modules/unictype/property-bidi-segment-separator: New file.
47359         * modules/unictype/property-bidi-whitespace: New file.
47360         * modules/unictype/property-bidi-non-spacing-mark: New file.
47361         * modules/unictype/property-bidi-boundary-neutral: New file.
47362         * modules/unictype/property-bidi-pdf: New file.
47363         * modules/unictype/property-bidi-embedding-or-override: New file.
47364         * modules/unictype/property-bidi-other-neutral: New file.
47365         * modules/unictype/property-hex-digit: New file.
47366         * modules/unictype/property-ascii-hex-digit: New file.
47367         * modules/unictype/property-ideographic: New file.
47368         * modules/unictype/property-unified-ideograph: New file.
47369         * modules/unictype/property-radical: New file.
47370         * modules/unictype/property-ids-binary-operator: New file.
47371         * modules/unictype/property-ids-trinary-operator: New file.
47372         * modules/unictype/property-zero-width: New file.
47373         * modules/unictype/property-space: New file.
47374         * modules/unictype/property-non-break: New file.
47375         * modules/unictype/property-iso-control: New file.
47376         * modules/unictype/property-format-control: New file.
47377         * modules/unictype/property-dash: New file.
47378         * modules/unictype/property-hyphen: New file.
47379         * modules/unictype/property-punctuation: New file.
47380         * modules/unictype/property-line-separator: New file.
47381         * modules/unictype/property-paragraph-separator: New file.
47382         * modules/unictype/property-quotation-mark: New file.
47383         * modules/unictype/property-sentence-terminal: New file.
47384         * modules/unictype/property-terminal-punctuation: New file.
47385         * modules/unictype/property-currency-symbol: New file.
47386         * modules/unictype/property-math: New file.
47387         * modules/unictype/property-other-math: New file.
47388         * modules/unictype/property-paired-punctuation: New file.
47389         * modules/unictype/property-left-of-pair: New file.
47390         * modules/unictype/property-combining: New file.
47391         * modules/unictype/property-composite: New file.
47392         * modules/unictype/property-decimal-digit: New file.
47393         * modules/unictype/property-numeric: New file.
47394         * modules/unictype/property-diacritic: New file.
47395         * modules/unictype/property-extender: New file.
47396         * modules/unictype/property-ignorable-control: New file.
47397         * modules/unictype/property-test: New file.
47398         * modules/unictype/property-byname: New file.
47399         * modules/unictype/property-all: New file.
47400         * modules/unictype/scripts: New file.
47401         * modules/unictype/scripts-all: New file.
47402         * modules/unictype/block-of: New file.
47403         * modules/unictype/block-test: New file.
47404         * modules/unictype/block-list: New file.
47405         * modules/unictype/block-all: New file.
47406         * modules/unictype/syntax-c-whitespace: New file.
47407         * modules/unictype/syntax-java-whitespace: New file.
47408         * modules/unictype/syntax-c-ident: New file.
47409         * modules/unictype/syntax-java-ident: New file.
47410         * modules/unictype/ctype-alnum: New file.
47411         * modules/unictype/ctype-alpha: New file.
47412         * modules/unictype/ctype-cntrl: New file.
47413         * modules/unictype/ctype-digit: New file.
47414         * modules/unictype/ctype-graph: New file.
47415         * modules/unictype/ctype-lower: New file.
47416         * modules/unictype/ctype-print: New file.
47417         * modules/unictype/ctype-punct: New file.
47418         * modules/unictype/ctype-space: New file.
47419         * modules/unictype/ctype-upper: New file.
47420         * modules/unictype/ctype-xdigit: New file.
47421         * modules/unictype/ctype-blank: New file.
47422         * lib/unictype/bidi_byname.c: New file.
47423         * lib/unictype/bidi_name.c: New file.
47424         * lib/unictype/bidi_of.c: New file.
47425         * lib/unictype/bidi_test.c: New file.
47426         * lib/unictype/bitmap.h: New file.
47427         * lib/unictype/block_test.c: New file.
47428         * lib/unictype/blocks.c: New file.
47429         * lib/unictype/categ_C.c: New file.
47430         * lib/unictype/categ_Cc.c: New file.
47431         * lib/unictype/categ_Cf.c: New file.
47432         * lib/unictype/categ_Cn.c: New file.
47433         * lib/unictype/categ_Co.c: New file.
47434         * lib/unictype/categ_Cs.c: New file.
47435         * lib/unictype/categ_L.c: New file.
47436         * lib/unictype/categ_Ll.c: New file.
47437         * lib/unictype/categ_Lm.c: New file.
47438         * lib/unictype/categ_Lo.c: New file.
47439         * lib/unictype/categ_Lt.c: New file.
47440         * lib/unictype/categ_Lu.c: New file.
47441         * lib/unictype/categ_M.c: New file.
47442         * lib/unictype/categ_Mc.c: New file.
47443         * lib/unictype/categ_Me.c: New file.
47444         * lib/unictype/categ_Mn.c: New file.
47445         * lib/unictype/categ_N.c: New file.
47446         * lib/unictype/categ_Nd.c: New file.
47447         * lib/unictype/categ_Nl.c: New file.
47448         * lib/unictype/categ_No.c: New file.
47449         * lib/unictype/categ_P.c: New file.
47450         * lib/unictype/categ_Pc.c: New file.
47451         * lib/unictype/categ_Pd.c: New file.
47452         * lib/unictype/categ_Pe.c: New file.
47453         * lib/unictype/categ_Pf.c: New file.
47454         * lib/unictype/categ_Pi.c: New file.
47455         * lib/unictype/categ_Po.c: New file.
47456         * lib/unictype/categ_Ps.c: New file.
47457         * lib/unictype/categ_S.c: New file.
47458         * lib/unictype/categ_Sc.c: New file.
47459         * lib/unictype/categ_Sk.c: New file.
47460         * lib/unictype/categ_Sm.c: New file.
47461         * lib/unictype/categ_So.c: New file.
47462         * lib/unictype/categ_Z.c: New file.
47463         * lib/unictype/categ_Zl.c: New file.
47464         * lib/unictype/categ_Zp.c: New file.
47465         * lib/unictype/categ_Zs.c: New file.
47466         * lib/unictype/categ_and.c: New file.
47467         * lib/unictype/categ_and_not.c: New file.
47468         * lib/unictype/categ_byname.c: New file.
47469         * lib/unictype/categ_name.c: New file.
47470         * lib/unictype/categ_none.c: New file.
47471         * lib/unictype/categ_of.c: New file.
47472         * lib/unictype/categ_or.c: New file.
47473         * lib/unictype/categ_test.c: New file.
47474         * lib/unictype/combining.c: New file.
47475         * lib/unictype/ctype_alnum.c: New file.
47476         * lib/unictype/ctype_alpha.c: New file.
47477         * lib/unictype/ctype_blank.c: New file.
47478         * lib/unictype/ctype_cntrl.c: New file.
47479         * lib/unictype/ctype_digit.c: New file.
47480         * lib/unictype/ctype_graph.c: New file.
47481         * lib/unictype/ctype_lower.c: New file.
47482         * lib/unictype/ctype_print.c: New file.
47483         * lib/unictype/ctype_punct.c: New file.
47484         * lib/unictype/ctype_space.c: New file.
47485         * lib/unictype/ctype_upper.c: New file.
47486         * lib/unictype/ctype_xdigit.c: New file.
47487         * lib/unictype/decdigit.c: New file.
47488         * lib/unictype/digit.c: New file.
47489         * lib/unictype/identsyntaxmap.h: New file.
47490         * lib/unictype/mirror.c: New file.
47491         * lib/unictype/numeric.c: New file.
47492         * lib/unictype/pr_alphabetic.c: New file.
47493         * lib/unictype/pr_ascii_hex_digit.c: New file.
47494         * lib/unictype/pr_bidi_arabic_digit.c: New file.
47495         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
47496         * lib/unictype/pr_bidi_block_separator.c: New file.
47497         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
47498         * lib/unictype/pr_bidi_common_separator.c: New file.
47499         * lib/unictype/pr_bidi_control.c: New file.
47500         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
47501         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
47502         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
47503         * lib/unictype/pr_bidi_european_digit.c: New file.
47504         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
47505         * lib/unictype/pr_bidi_left_to_right.c: New file.
47506         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
47507         * lib/unictype/pr_bidi_other_neutral.c: New file.
47508         * lib/unictype/pr_bidi_pdf.c: New file.
47509         * lib/unictype/pr_bidi_segment_separator.c: New file.
47510         * lib/unictype/pr_bidi_whitespace.c: New file.
47511         * lib/unictype/pr_byname.c: New file.
47512         * lib/unictype/pr_byname.gperf: New file.
47513         * lib/unictype/pr_combining.c: New file.
47514         * lib/unictype/pr_composite.c: New file.
47515         * lib/unictype/pr_currency_symbol.c: New file.
47516         * lib/unictype/pr_dash.c: New file.
47517         * lib/unictype/pr_decimal_digit.c: New file.
47518         * lib/unictype/pr_default_ignorable_code_point.c: New file.
47519         * lib/unictype/pr_deprecated.c: New file.
47520         * lib/unictype/pr_diacritic.c: New file.
47521         * lib/unictype/pr_extender.c: New file.
47522         * lib/unictype/pr_format_control.c: New file.
47523         * lib/unictype/pr_grapheme_base.c: New file.
47524         * lib/unictype/pr_grapheme_extend.c: New file.
47525         * lib/unictype/pr_grapheme_link.c: New file.
47526         * lib/unictype/pr_hex_digit.c: New file.
47527         * lib/unictype/pr_hyphen.c: New file.
47528         * lib/unictype/pr_id_continue.c: New file.
47529         * lib/unictype/pr_id_start.c: New file.
47530         * lib/unictype/pr_ideographic.c: New file.
47531         * lib/unictype/pr_ids_binary_operator.c: New file.
47532         * lib/unictype/pr_ids_trinary_operator.c: New file.
47533         * lib/unictype/pr_ignorable_control.c: New file.
47534         * lib/unictype/pr_iso_control.c: New file.
47535         * lib/unictype/pr_join_control.c: New file.
47536         * lib/unictype/pr_left_of_pair.c: New file.
47537         * lib/unictype/pr_line_separator.c: New file.
47538         * lib/unictype/pr_logical_order_exception.c: New file.
47539         * lib/unictype/pr_lowercase.c: New file.
47540         * lib/unictype/pr_math.c: New file.
47541         * lib/unictype/pr_non_break.c: New file.
47542         * lib/unictype/pr_not_a_character.c: New file.
47543         * lib/unictype/pr_numeric.c: New file.
47544         * lib/unictype/pr_other_alphabetic.c: New file.
47545         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
47546         * lib/unictype/pr_other_grapheme_extend.c: New file.
47547         * lib/unictype/pr_other_id_continue.c: New file.
47548         * lib/unictype/pr_other_id_start.c: New file.
47549         * lib/unictype/pr_other_lowercase.c: New file.
47550         * lib/unictype/pr_other_math.c: New file.
47551         * lib/unictype/pr_other_uppercase.c: New file.
47552         * lib/unictype/pr_paired_punctuation.c: New file.
47553         * lib/unictype/pr_paragraph_separator.c: New file.
47554         * lib/unictype/pr_pattern_syntax.c: New file.
47555         * lib/unictype/pr_pattern_white_space.c: New file.
47556         * lib/unictype/pr_private_use.c: New file.
47557         * lib/unictype/pr_punctuation.c: New file.
47558         * lib/unictype/pr_quotation_mark.c: New file.
47559         * lib/unictype/pr_radical.c: New file.
47560         * lib/unictype/pr_sentence_terminal.c: New file.
47561         * lib/unictype/pr_soft_dotted.c: New file.
47562         * lib/unictype/pr_space.c: New file.
47563         * lib/unictype/pr_terminal_punctuation.c: New file.
47564         * lib/unictype/pr_test.c: New file.
47565         * lib/unictype/pr_titlecase.c: New file.
47566         * lib/unictype/pr_unassigned_code_value.c: New file.
47567         * lib/unictype/pr_unified_ideograph.c: New file.
47568         * lib/unictype/pr_uppercase.c: New file.
47569         * lib/unictype/pr_variation_selector.c: New file.
47570         * lib/unictype/pr_white_space.c: New file.
47571         * lib/unictype/pr_xid_continue.c: New file.
47572         * lib/unictype/pr_xid_start.c: New file.
47573         * lib/unictype/pr_zero_width.c: New file.
47574         * lib/unictype/scripts.c: New file.
47575         * lib/unictype/sy_c_ident.c: New file.
47576         * lib/unictype/sy_c_whitespace.c: New file.
47577         * lib/unictype/sy_java_ident.c: New file.
47578         * lib/unictype/sy_java_whitespace.c: New file.
47579
47580         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
47581         Unicode 5.0.0.
47582         * lib/unictype/blocks.h: Likewise.
47583         * lib/unictype/categ_C.h: Likewise.
47584         * lib/unictype/categ_Cc.h: Likewise.
47585         * lib/unictype/categ_Cf.h: Likewise.
47586         * lib/unictype/categ_Cn.h: Likewise.
47587         * lib/unictype/categ_Co.h: Likewise.
47588         * lib/unictype/categ_Cs.h: Likewise.
47589         * lib/unictype/categ_L.h: Likewise.
47590         * lib/unictype/categ_Ll.h: Likewise.
47591         * lib/unictype/categ_Lm.h: Likewise.
47592         * lib/unictype/categ_Lo.h: Likewise.
47593         * lib/unictype/categ_Lt.h: Likewise.
47594         * lib/unictype/categ_Lu.h: Likewise.
47595         * lib/unictype/categ_M.h: Likewise.
47596         * lib/unictype/categ_Mc.h: Likewise.
47597         * lib/unictype/categ_Me.h: Likewise.
47598         * lib/unictype/categ_Mn.h: Likewise.
47599         * lib/unictype/categ_N.h: Likewise.
47600         * lib/unictype/categ_Nd.h: Likewise.
47601         * lib/unictype/categ_Nl.h: Likewise.
47602         * lib/unictype/categ_No.h: Likewise.
47603         * lib/unictype/categ_P.h: Likewise.
47604         * lib/unictype/categ_Pc.h: Likewise.
47605         * lib/unictype/categ_Pd.h: Likewise.
47606         * lib/unictype/categ_Pe.h: Likewise.
47607         * lib/unictype/categ_Pf.h: Likewise.
47608         * lib/unictype/categ_Pi.h: Likewise.
47609         * lib/unictype/categ_Po.h: Likewise.
47610         * lib/unictype/categ_Ps.h: Likewise.
47611         * lib/unictype/categ_S.h: Likewise.
47612         * lib/unictype/categ_Sc.h: Likewise.
47613         * lib/unictype/categ_Sk.h: Likewise.
47614         * lib/unictype/categ_Sm.h: Likewise.
47615         * lib/unictype/categ_So.h: Likewise.
47616         * lib/unictype/categ_Z.h: Likewise.
47617         * lib/unictype/categ_Zl.h: Likewise.
47618         * lib/unictype/categ_Zp.h: Likewise.
47619         * lib/unictype/categ_Zs.h: Likewise.
47620         * lib/unictype/categ_of.h: Likewise.
47621         * lib/unictype/combining.h: Likewise.
47622         * lib/unictype/ctype_alnum.h: Likewise.
47623         * lib/unictype/ctype_alpha.h: Likewise.
47624         * lib/unictype/ctype_blank.h: Likewise.
47625         * lib/unictype/ctype_cntrl.h: Likewise.
47626         * lib/unictype/ctype_digit.h: Likewise.
47627         * lib/unictype/ctype_graph.h: Likewise.
47628         * lib/unictype/ctype_lower.h: Likewise.
47629         * lib/unictype/ctype_print.h: Likewise.
47630         * lib/unictype/ctype_punct.h: Likewise.
47631         * lib/unictype/ctype_space.h: Likewise.
47632         * lib/unictype/ctype_upper.h: Likewise.
47633         * lib/unictype/ctype_xdigit.h: Likewise.
47634         * lib/unictype/decdigit.h: Likewise.
47635         * lib/unictype/digit.h: Likewise.
47636         * lib/unictype/mirror.h: Likewise.
47637         * lib/unictype/numeric.h: Likewise.
47638         * lib/unictype/pr_alphabetic.h: Likewise.
47639         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
47640         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
47641         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
47642         * lib/unictype/pr_bidi_block_separator.h: Likewise.
47643         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
47644         * lib/unictype/pr_bidi_common_separator.h: Likewise.
47645         * lib/unictype/pr_bidi_control.h: Likewise.
47646         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
47647         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
47648         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
47649         * lib/unictype/pr_bidi_european_digit.h: Likewise.
47650         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
47651         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
47652         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
47653         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
47654         * lib/unictype/pr_bidi_pdf.h: Likewise.
47655         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
47656         * lib/unictype/pr_bidi_whitespace.h: Likewise.
47657         * lib/unictype/pr_combining.h: Likewise.
47658         * lib/unictype/pr_composite.h: Likewise.
47659         * lib/unictype/pr_currency_symbol.h: Likewise.
47660         * lib/unictype/pr_dash.h: Likewise.
47661         * lib/unictype/pr_decimal_digit.h: Likewise.
47662         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
47663         * lib/unictype/pr_deprecated.h: Likewise.
47664         * lib/unictype/pr_diacritic.h: Likewise.
47665         * lib/unictype/pr_extender.h: Likewise.
47666         * lib/unictype/pr_format_control.h: Likewise.
47667         * lib/unictype/pr_grapheme_base.h: Likewise.
47668         * lib/unictype/pr_grapheme_extend.h: Likewise.
47669         * lib/unictype/pr_grapheme_link.h: Likewise.
47670         * lib/unictype/pr_hex_digit.h: Likewise.
47671         * lib/unictype/pr_hyphen.h: Likewise.
47672         * lib/unictype/pr_id_continue.h: Likewise.
47673         * lib/unictype/pr_id_start.h: Likewise.
47674         * lib/unictype/pr_ideographic.h: Likewise.
47675         * lib/unictype/pr_ids_binary_operator.h: Likewise.
47676         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
47677         * lib/unictype/pr_ignorable_control.h: Likewise.
47678         * lib/unictype/pr_iso_control.h: Likewise.
47679         * lib/unictype/pr_join_control.h: Likewise.
47680         * lib/unictype/pr_left_of_pair.h: Likewise.
47681         * lib/unictype/pr_line_separator.h: Likewise.
47682         * lib/unictype/pr_logical_order_exception.h: Likewise.
47683         * lib/unictype/pr_lowercase.h: Likewise.
47684         * lib/unictype/pr_math.h: Likewise.
47685         * lib/unictype/pr_non_break.h: Likewise.
47686         * lib/unictype/pr_not_a_character.h: Likewise.
47687         * lib/unictype/pr_numeric.h: Likewise.
47688         * lib/unictype/pr_other_alphabetic.h: Likewise.
47689         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
47690         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
47691         * lib/unictype/pr_other_id_continue.h: Likewise.
47692         * lib/unictype/pr_other_id_start.h: Likewise.
47693         * lib/unictype/pr_other_lowercase.h: Likewise.
47694         * lib/unictype/pr_other_math.h: Likewise.
47695         * lib/unictype/pr_other_uppercase.h: Likewise.
47696         * lib/unictype/pr_paired_punctuation.h: Likewise.
47697         * lib/unictype/pr_paragraph_separator.h: Likewise.
47698         * lib/unictype/pr_pattern_syntax.h: Likewise.
47699         * lib/unictype/pr_pattern_white_space.h: Likewise.
47700         * lib/unictype/pr_private_use.h: Likewise.
47701         * lib/unictype/pr_punctuation.h: Likewise.
47702         * lib/unictype/pr_quotation_mark.h: Likewise.
47703         * lib/unictype/pr_radical.h: Likewise.
47704         * lib/unictype/pr_sentence_terminal.h: Likewise.
47705         * lib/unictype/pr_soft_dotted.h: Likewise.
47706         * lib/unictype/pr_space.h: Likewise.
47707         * lib/unictype/pr_terminal_punctuation.h: Likewise.
47708         * lib/unictype/pr_titlecase.h: Likewise.
47709         * lib/unictype/pr_unassigned_code_value.h: Likewise.
47710         * lib/unictype/pr_unified_ideograph.h: Likewise.
47711         * lib/unictype/pr_uppercase.h: Likewise.
47712         * lib/unictype/pr_variation_selector.h: Likewise.
47713         * lib/unictype/pr_white_space.h: Likewise.
47714         * lib/unictype/pr_xid_continue.h: Likewise.
47715         * lib/unictype/pr_xid_start.h: Likewise.
47716         * lib/unictype/pr_zero_width.h: Likewise.
47717         * lib/unictype/scripts.h: Likewise.
47718         * lib/unictype/scripts_byname.gperf: Likewise.
47719         * lib/unictype/sy_c_ident.h: Likewise.
47720         * lib/unictype/sy_c_whitespace.h: Likewise.
47721         * lib/unictype/sy_java_ident.h: Likewise.
47722         * lib/unictype/sy_java_whitespace.h: Likewise.
47723
47724         * lib/unictype/Makefile: New file.
47725         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
47726         glibc.
47727         * lib/unictype/3level.h: New file, copied from glibc.
47728         * lib/unictype/3levelbit.h: New file.
47729
47730 2007-11-11  Bruno Haible  <bruno@clisp.org>
47731
47732         * modules/gperf: New file.
47733         * modules/iconv_open (Depends-on): Add it.
47734         (Makefile.am): Remove the GPERF definition.
47735
47736 2007-11-11  Bruno Haible  <bruno@clisp.org>
47737
47738         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
47739         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
47740
47741 2007-11-11  Bruno Haible  <bruno@clisp.org>
47742
47743         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
47744         (usage): Remove function.
47745
47746 2007-11-11  Bruno Haible  <bruno@clisp.org>
47747
47748         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
47749         gl_FUNC_CEILF_LIBS.
47750         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
47751         gl_FUNC_CEIL_LIBS.
47752         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
47753         gl_FUNC_CEILL_LIBS.
47754         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
47755         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
47756         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
47757
47758 2007-11-11  Bruno Haible  <bruno@clisp.org>
47759
47760         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
47761         roundf were declared but do not exist on functions.
47762         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
47763         roundl were declared but do not exist on functions.
47764         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
47765         HAVE_FLOORL_AND_CEILL, respectively.
47766         Needed for Sun C on Solaris 10.
47767
47768 2007-11-11  Bruno Haible  <bruno@clisp.org>
47769
47770         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
47771         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
47772         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
47773         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
47774         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
47775         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
47776         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
47777         HAVE_DECL_ROUNDF.
47778         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
47779         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
47780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
47781         of HAVE_DECL_ROUND*.
47782         * modules/math (Makefile.am): Update.
47783
47784 2007-11-10  Bruno Haible  <bruno@clisp.org>
47785
47786         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
47787         ptrdiff_t as m4/intl.m4.
47788
47789 2007-11-10  Jim Meyering  <meyering@redhat.com>
47790
47791         Avoid link failure for the argmatch test.
47792         * tests/test-argmatch.c (usage): Define function to avoid a link
47793         failure: argmatch_die requires a usage function.
47794
47795 2007-11-09  Bruno Haible  <bruno@clisp.org>
47796
47797         * doc/functions/snprintf.texi: Mention BeOS deficiency.
47798         * doc/functions/vsnprintf.texi: Likewise.
47799         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
47800         with a size argument < 2.
47801
47802 2007-11-09  Bruno Haible  <bruno@clisp.org>
47803
47804         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
47805         buffer. Fixes an inefficiency introduced on 2007-11-03.
47806
47807 2007-11-09  Bruno Haible  <bruno@clisp.org>
47808
47809         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
47810         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
47811
47812 2007-11-08  Jim Meyering  <meyering@redhat.com>
47813
47814         Change cache variable name prefix "jm_" to "gl_" everywhere.
47815         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
47816         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
47817         * m4/uptime.m4: s/gl_/jm_/
47818
47819 2007-11-07  Bruno Haible  <bruno@clisp.org>
47820
47821         Update to GNU gettext 0.17.
47822         * m4/intl.m4: Update to GNU gettext 0.17.
47823         * m4/po.m4: Likewise.
47824         * modules/gettext (Files): Remove m4/ulonglong.m4.
47825         (configure.ac): Require gettext infrastructure from version 0.17.
47826
47827 2007-11-06  Bruno Haible  <bruno@clisp.org>
47828
47829         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
47830         symbolic values are not defined in a public header.
47831         * lib/freadable.c (freadable) [QNX]: Likewise.
47832         * lib/freadahead.c (freadahead) [QNX]: Likewise.
47833         * lib/freading.c (freading) [QNX]: Likewise.
47834         * lib/fseterr.c (fseterr) [QNX]: Likewise.
47835         * lib/fwritable.c (fwritable) [QNX]: Likewise.
47836         * lib/fwriting.c (fwriting) [QNX]: Likewise.
47837         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
47838         Reported by Alain Magloire.
47839
47840         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
47841
47842 2007-11-05  Bruno Haible  <bruno@clisp.org>
47843
47844         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
47845         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
47846         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
47847         Reported by Eric Blake.
47848
47849 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47850             Bruno Haible  <bruno@clisp.org>
47851
47852         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
47853         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
47854         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
47855         (malloc): Undefine also before including <stdlib.h>.
47856         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
47857         Needed on OSF/1 4.0.
47858
47859 2007-11-05  Jim Meyering  <meyering@redhat.com>
47860
47861         git-version-gen: sync from coreutils.
47862         * build-aux/git-version-gen: Add comments.
47863         Change the first '-' to '.' in the snapshot version string,
47864         e.g., 6.9-377-08144 -> 6.9.377-08144
47865         Remove first parameter.
47866         Don't declare a version "-dirty" merely because a time
47867         stamp has changed.
47868
47869 2007-11-04  Bruno Haible  <bruno@clisp.org>
47870
47871         * lib/lock.h: Protect all macro definitions containing an 'if'
47872         statement through a "do { ... } while (0)".
47873         * lib/tls.h: Likewise.
47874
47875 2007-11-04  Bruno Haible  <bruno@clisp.org>
47876
47877         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
47878
47879 2007-11-04  Bruno Haible  <bruno@clisp.org>
47880
47881         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
47882         * modules/fprintf-posix (Depends-on): Add nocrash.
47883         * modules/snprintf-posix (Depends-on): Likewise.
47884         * modules/sprintf-posix (Depends-on): Likewise.
47885         * modules/vasnprintf-posix (Depends-on): Likewise.
47886         * modules/vasprintf-posix (Depends-on): Likewise.
47887         * modules/vfprintf-posix (Depends-on): Likewise.
47888         * modules/vsnprintf-posix (Depends-on): Likewise.
47889         * modules/vsprintf-posix (Depends-on): Likewise.
47890         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47891         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47892         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47893         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47894         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47895         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47896         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47897
47898 2007-11-04  Bruno Haible  <bruno@clisp.org>
47899
47900         * modules/nocrash: New file.
47901         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
47902         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
47903
47904 2007-11-04  Bruno Haible  <bruno@clisp.org>
47905
47906         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
47907         precision handling.
47908         * tests/test-vasprintf-posix.c (test_function): Likewise.
47909         * tests/test-snprintf-posix.h (test_function): Likewise.
47910         * tests/test-sprintf-posix.h (test_function): Likewise.
47911
47912         Fix *printf behaviour for large precisions on mingw and BeOS.
47913         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
47914         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
47915         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
47916         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47917         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47918         gl_PRINTF_PRECISION and test its result. Invoke
47919         gl_PREREQ_VASNPRINTF_PRECISION.
47920         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47921         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47922         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47923         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47924         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47925         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47926         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47927         * doc/functions/fprintf.texi: Update.
47928         * doc/functions/printf.texi: Update.
47929         * doc/functions/snprintf.texi: Update.
47930         * doc/functions/sprintf.texi: Update.
47931         * doc/functions/vfprintf.texi: Update.
47932         * doc/functions/vprintf.texi: Update.
47933         * doc/functions/vsnprintf.texi: Update.
47934         * doc/functions/vsprintf.texi: Update.
47935
47936 2007-11-04  Bruno Haible  <bruno@clisp.org>
47937
47938         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
47939
47940 2007-11-04  Bruno Haible  <bruno@clisp.org>
47941
47942         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
47943         Reported by Sylvain Beucler <beuc@gnu.org>.
47944
47945 2007-11-03  Bruno Haible  <bruno@clisp.org>
47946
47947         * tests/test-fprintf-posix2.sh: New file.
47948         * tests/test-fprintf-posix2.c: New file.
47949         * modules/fprintf-posix-tests (Files): Add them.
47950         (TESTS): Add test-fprintf-posix2.sh.
47951         (configure.ac): Check for getrlimit and setrlimit.
47952         (check_PROGRAMS): Add test-fprintf-posix2.
47953
47954         * tests/test-printf-posix2.sh: New file.
47955         * tests/test-printf-posix2.c: New file.
47956         * modules/printf-posix-tests (Files): Add them.
47957         (TESTS): Add test-printf-posix2.sh.
47958         (configure.ac): Check for getrlimit and setrlimit.
47959         (check_PROGRAMS): Add test-printf-posix2.
47960
47961         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
47962         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
47963         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
47964         (decode_double): New function, copied from decode_long_double.
47965         (scale10_round_decimal_decoded): New function, extracted from
47966         scale10_round_decimal_long_double.
47967         (scale10_round_decimal_long_double): Use it.
47968         (scale10_round_decimal_double): New function.
47969         (floorlog10): New function.
47970         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
47971         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
47972         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47973         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47974         gl_PRINTF_ENOMEM and test its result. Invoke
47975         gl_PREREQ_VASNPRINTF_ENOMEM.
47976         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47977         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47978         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47979         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47980         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47981         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47982         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47983         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
47984         * modules/snprintf-posix (Depends-on): Likewise.
47985         * modules/sprintf-posix (Depends-on): Likewise.
47986         * modules/vasnprintf-posix (Depends-on): Likewise.
47987         * modules/vasprintf-posix (Depends-on): Likewise.
47988         * modules/vfprintf-posix (Depends-on): Likewise.
47989         * modules/vsnprintf-posix (Depends-on): Likewise.
47990         * modules/vsprintf-posix (Depends-on): Likewise.
47991         * doc/functions/fprintf.texi: Update.
47992         * doc/functions/printf.texi: Update.
47993         * doc/functions/snprintf.texi: Update.
47994         * doc/functions/sprintf.texi: Update.
47995         * doc/functions/vfprintf.texi: Update.
47996         * doc/functions/vprintf.texi: Update.
47997         * doc/functions/vsnprintf.texi: Update.
47998         * doc/functions/vsprintf.texi: Update.
47999
48000 2007-11-03  Bruno Haible  <bruno@clisp.org>
48001
48002         * modules/frexp-nolibm-tests: New file.
48003
48004         * modules/frexp-nolibm: New file.
48005         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
48006
48007 2007-11-03  Bruno Haible  <bruno@clisp.org>
48008
48009         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
48010         value is C99 compliant.
48011         Needed for OSF/1 5.1.
48012
48013 2007-11-03  Bruno Haible  <bruno@clisp.org>
48014
48015         Fix out-of-memory handling of vasnprintf.
48016         * lib/printf-parse.c: Include <errno.h>.
48017         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
48018         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
48019         is already set.
48020
48021 2007-11-02  Eric Blake  <ebb9@byu.net>
48022
48023         Fix tests on cygwin.
48024         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
48025
48026 2007-11-01  Bruno Haible  <bruno@clisp.org>
48027
48028         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
48029         warning.
48030         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
48031         needed for POSIX compatibility.
48032
48033 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
48034
48035         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
48036         for compatibility with GNU.
48037
48038 2007-11-01  Bruno Haible  <bruno@clisp.org>
48039
48040         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
48041         (putenv): Renamed from rpl_putenv. Change argument type from
48042         'const char *' to 'char *'.
48043         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
48044         of defining putenv in config.h, just set REPLACE_PUTENV.
48045         * modules/putenv (Depends-on): Add stdlib.
48046         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48047         (Include): Use <stdlib.h>.
48048         * lib/stdlib.in.h (putenv): New declaration.
48049         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
48050         REPLACE_PUTENV.
48051         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
48052         REPLACE_PUTENV.
48053         Needed for MacOS X 10.5.0.
48054         Reported by Peter O'Gorman <peter@pogma.com>.
48055
48056 2007-11-01  Jim Meyering  <meyering@redhat.com>
48057
48058         Treat an empty date string exactly like "0".
48059         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
48060         if the remaining date string (to be parsed) is empty, use "0".
48061         Reported by Mischa Molhoek and discussed in this thread:
48062         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
48063
48064 2007-10-31  Bruno Haible  <bruno@clisp.org>
48065
48066         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
48067         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
48068         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
48069         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
48070         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
48071         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
48072
48073 2007-10-31  Bruno Haible  <bruno@clisp.org>
48074
48075         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
48076         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
48077         (AC_TYPE_LONG_LONG_INT): Use it.
48078         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
48079         it as well.
48080         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
48081         to m4/longlong.m4.
48082         * modules/stdint (Files): Remove m4/ulonglong.m4.
48083         * modules/strtoull (Files): Use m4/longlong.m4 instead of
48084         m4/ulonglong.m4.
48085         * modules/strtoumax (Files): Likewise.
48086
48087 2007-10-30  Bruno Haible  <bruno@clisp.org>
48088
48089         * modules/xvasprintf-posix: New file.
48090         Suggested by Eric Blake.
48091
48092 2007-10-30  Bruno Haible  <bruno@clisp.org>
48093
48094         * modules/xprintf-posix-tests: New file.
48095         * tests/test-xprintf-posix.sh: New file.
48096         * tests/test-xprintf-posix.c: New file.
48097         * tests/test-xfprintf-posix.c: New file.
48098
48099         * modules/xprintf-posix: New file.
48100
48101 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48102
48103         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
48104         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
48105         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
48106
48107 2007-10-29  Bruno Haible  <bruno@clisp.org>
48108
48109         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
48110         contain the special marker '_cv_'.
48111         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
48112         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
48113         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
48114         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
48115         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
48116         Reported by Ralf Wildenhues.
48117
48118 2007-10-29  Bruno Haible  <bruno@clisp.org>
48119
48120         * gnulib-tool (func_import): When --lgpl is not specified, set
48121         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
48122         GPLv3.
48123         Reported by Simon Josefsson.
48124
48125 2007-10-28  Bruno Haible  <bruno@clisp.org>
48126
48127         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
48128         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
48129         HAVE_DECL_ISFINITE.
48130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
48131         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
48132         HAVE_DECL_ISFINITE.
48133
48134 2007-10-28  Bruno Haible  <bruno@clisp.org>
48135
48136         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
48137         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
48138
48139 2007-10-28  Bruno Haible  <bruno@clisp.org>
48140
48141         Fix link errors with Sun C 5.0 on Solaris 10.
48142         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
48143         function is declared but not present in the compiler's libm.
48144         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
48145         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48146         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
48147         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
48148         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
48149         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
48150         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
48151         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
48152         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
48153         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
48154         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
48155         HAVE_DECL_FLOORL.
48156
48157 2007-10-28  Bruno Haible  <bruno@clisp.org>
48158
48159         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
48160         gl_FUNC_FLOORL. Cache the result.
48161         (gl_FUNC_FLOORL): Use it.
48162         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
48163         gl_FUNC_CEILL. Cache the result.
48164         (gl_FUNC_CEILL): Use it.
48165
48166         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
48167         gl_FUNC_FLOOR. Cache the result.
48168         (gl_FUNC_FLOOR): Use it.
48169         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
48170         gl_FUNC_CEIL. Cache the result.
48171         (gl_FUNC_CEIL): Use it.
48172
48173         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
48174         gl_FUNC_FLOORF. Cache the result.
48175         (gl_FUNC_FLOORF): Use it.
48176         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
48177         gl_FUNC_CEILF. Cache the result.
48178         (gl_FUNC_CEILF): Use it.
48179
48180 2007-10-28  Bruno Haible  <bruno@clisp.org>
48181
48182         * gnulib-tool: Allow specifying the LGPL version number through
48183         --lgpl=2 or --lgpl=3.
48184         (func_usage): Document --lgpl with argument.
48185         Handle --lgpl=... arguments.
48186         (func_import): Recognize also gl_LGPL calls with an argument. When
48187         --lgpl=2 is used and the module's license is just LGPL, report an
48188         error. Set sed_transform_lib_file according to the lgpl variable. In
48189         the generated files, use --lgpl or gl_LGPL invocations with argument,
48190         if necessary.
48191         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
48192         an LGPv2+ license.
48193         * doc/gnulib-tool.texi (Modified imports): Update explanation of
48194         gl_LGPL macro.
48195
48196 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48197             Bruno Haible  <bruno@clisp.org>
48198
48199         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
48200         (u16_uctomb_aux): Likewise.
48201         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
48202         !HAVE_INLINE.
48203         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
48204
48205 2007-10-28  Bruno Haible  <bruno@clisp.org>
48206
48207         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
48208         Invoke AM_GETTEXT_OPTION if it exists.
48209         * modules/vasprintf: Likewise.
48210         * modules/verror: Likewise.
48211         * modules/xprintf: Likewise.
48212         * modules/xvasprintf: Likewise.
48213
48214 2007-10-27  Ben Pfaff  <blp@gnu.org>
48215
48216         * lib/math.in.h: Define isfinite macro and prototypes for
48217         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
48218         implementations.
48219         * m4/math_h.m4: New substitutions for isfinite module.
48220         * lib/isfinite.c: New file.
48221         * m4/isfinite.m4: New file.
48222         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
48223         * modules/isfinite: New file.
48224         * modules/isfinite-tests: New file.
48225         * tests/tests-isfinite.c: New file.
48226         * doc/functions/isfinite.texi: Mention isfinite module.
48227         * MODULES.html.sh: Mention new module.
48228
48229 2007-10-27  Ben Pfaff  <blp@gnu.org>
48230
48231         Ralf Wildenhues reported that Tru64 4.0D declares the round
48232         functions but does not have definitions.
48233         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
48234         cannot be found in any library, set the output variable to
48235         "missing" instead of "".
48236         * m4/round.m4: Also use our substitute if we cannot find round in
48237         any library, even if it is declared.
48238         * m4/roundf.m4: Likewise for roundf.
48239         * m4/roundl.m4: Likewise for roundl.
48240         * lib/math.in.h: Undefine roundf, round, roundl before defining
48241         their replacements, to allow for hypothetical systems where these
48242         may be defined as macros but not available in libraries.
48243
48244 2007-10-27  Bruno Haible  <bruno@clisp.org>
48245
48246         * doc/gnulib.texi: Invoke @firstparagraphindent.
48247         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
48248         changes in gnulib.
48249         (Source changes): New section.
48250
48251 2007-10-26  Bruno Haible  <bruno@clisp.org>
48252
48253         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
48254         borrowed from autoconf.
48255
48256 2007-10-26  Bruno Haible  <bruno@clisp.org>
48257
48258         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
48259         strerror returned the empty string. Needed on HP-UX 11.00.
48260
48261 2007-10-24  Micah Cowan  <micah@cowan.name>
48262
48263         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
48264         * build-aux/bootstrap: Remove support for now-unnecessary option,
48265         --cvs-user, and envvars CVS_USER, CVS_RSH.
48266
48267 2007-10-24  Jim Meyering  <meyering@redhat.com>
48268
48269         Avoid diagnostics from sha1sum when there is no cached checksum.
48270         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
48271         if the po.s1 file hasn't been created yet.
48272
48273         * build-aux/bootstrap: Sync from coreutils:
48274         2007-10-24  Jim Meyering  <meyering@redhat.com>
48275         Get gnulib from the git repository, not from an obsolete cvs one.
48276         * build-aux/bootstrap: Suggestion from Micah Cowan.
48277         2007-10-04  Jim Meyering  <jim@meyering.net>
48278         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
48279         (update_po_files): Work also when there are no .po files in po/.
48280
48281 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48282
48283         * README: Append ".git" to git and cg examples.
48284         Problem reported by Benoit Sigoure.
48285
48286 2007-10-23  Micah Cowan  <micah@cowan.name>
48287
48288         * users.txt: Add wget.
48289
48290 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48291
48292         Fix linking of some unistdio tests on FreeBSD.
48293         * modules/unistdio/u16-vsnprintf-tests
48294         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
48295         * modules/unistdio/u16-vsprintf-tests
48296         (test_u16_vsnprintf1_LDADD): Likewise.
48297         * modules/unistdio/u32-vsnprintf-tests
48298         (test_u32_vsnprintf1_LDADD): Likewise.
48299         * modules/unistdio/u32-vsprintf-tests
48300         (test_u32_vsprintf1_LDADD): Likewise.
48301         * modules/unistdio/u8-vsnprintf-tests
48302         (test_u8_vsnprintf1_LDADD): Likewise.
48303         * modules/unistdio/u8-vsprintf-tests
48304         (test_u8_vsprintf1_LDADD): Likewise.
48305         * modules/unistdio/ulc-vsnprintf-tests
48306         (test_ulc_vsnprintf1_LDADD): Likewise.
48307         * modules/unistdio/ulc-vsprintf-tests
48308         (test_ulc_vsprintf1_LDADD): Likewise.
48309
48310         Fix linking of some uniconv tests on FreeBSD.
48311         * modules/uniconv/u16-conv-from-enc-tests
48312         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
48313         * modules/uniconv/u16-conv-to-enc-tests
48314         (test_u16_conv_to_enc_LDADD): Likewise.
48315         * modules/uniconv/u16-strconv-from-enc-tests
48316         (test_u16_strconv_from_enc_LDADD): Likewise.
48317         * modules/uniconv/u16-strconv-to-enc-tests
48318         (test_u16_strconv_to_enc_LDADD): Likewise.
48319         * modules/uniconv/u32-conv-from-enc-tests
48320         (test_u32_conv_from_enc_LDADD): Likewise.
48321         * modules/uniconv/u32-conv-to-enc-tests
48322         (test_u32_conv_to_enc_LDADD): Likewise.
48323         * modules/uniconv/u32-strconv-from-enc-tests
48324         (test_u32_strconv_from_enc_LDADD): Likewise.
48325         * modules/uniconv/u32-strconv-to-enc-tests
48326         (test_u32_strconv_to_enc_LDADD): Likewise.
48327         * modules/uniconv/u8-conv-from-enc-tests
48328         (test_u8_conv_from_enc_LDADD): Likewise.
48329         * modules/uniconv/u8-conv-to-enc-tests
48330         (test_u8_conv_to_enc_LDADD): Likewise.
48331         * modules/uniconv/u8-strconv-from-enc-tests
48332         (test_u8_strconv_from_enc_LDADD): Likewise.
48333         * modules/uniconv/u8-strconv-to-enc-tests
48334         (test_u8_strconv_to_enc_LDADD): Likewise.
48335
48336 2007-10-22  Bruno Haible  <bruno@clisp.org>
48337
48338         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
48339         size.
48340
48341 2007-10-22  Eric Blake  <ebb9@byu.net>
48342
48343         Tweak x*printf documentation.
48344         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
48345         variable name and comments.
48346         Suggested by Bruno Haible.
48347
48348 2007-10-22  Bruno Haible  <bruno@clisp.org>
48349
48350         * lib/acl.c (copy_acl): Fix file name in comment.
48351
48352 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
48353
48354         Fix Tru64 problem with stdbool.h.
48355         * lib/stdbool.in.h (false, true):
48356         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
48357         Don't declare as an enum in this situation; it runs afoul of Tru64.
48358         Problem reported by Steven M. Schweda in
48359         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
48360
48361 2007-10-22  Eric Blake  <ebb9@byu.net>
48362
48363         Also wrap vf?printf.
48364         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
48365         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
48366         (xvprintf, xvfprintf): New functions.
48367
48368 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48369
48370         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
48371         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
48372
48373         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
48374         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
48375
48376 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
48377
48378         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
48379         by Bruno Haible.
48380
48381 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48382
48383         * lib/getloadavg.c
48384         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
48385         Undef `sys' after including sys/table.h, for Tru64 4.0D.
48386
48387         * tests/test-i-ring.c: Work for C89.
48388
48389 2007-10-22  Bruno Haible  <bruno@clisp.org>
48390
48391         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
48392         -1u, in preprocessor expression, so that we don't test for the bug
48393         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
48394         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
48395
48396 2007-10-22  Eric Blake  <ebb9@byu.net>
48397
48398         * tests/test-yesno.sh: Silence stderr during test.
48399
48400 2007-10-22  Simon Josefsson  <simon@josefsson.org>
48401
48402         * modules/crypto/gc-camellia: New file.
48403
48404         * m4/gc-camellia.m4: New file.
48405
48406         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
48407
48408         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
48409
48410 2007-10-22  Simon Josefsson  <simon@josefsson.org>
48411
48412         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
48413         --help to stdout.  Reported by sms@antinode.org (Steven
48414         M. Schweda).
48415
48416 2007-10-22  Simon Josefsson  <simon@josefsson.org>
48417
48418         * users.txt: Fix link to libksba.
48419
48420 2007-10-21  Ben Pfaff  <blp@gnu.org>
48421
48422         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
48423         round.c roundf implementation that depends on floorf and ceilf to
48424         be tested unconditionally.
48425
48426 2007-10-21  Ben Pfaff  <blp@gnu.org>
48427
48428         * m4/check-libm-func.m4: Removed.
48429         * m4/check-math-lib.m4: New file.
48430         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
48431         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
48432         definition and lack of AC_LIBOBJ([roundf]).
48433         * m4/roundl.m4: Ditto, and similarly for roundl.
48434         * modules/round: Reference new m4 file.
48435         * modules/roundf: Ditto.
48436         * modules/roundl: Ditto.
48437         * tests/test-round2.c (main): Use ROUND instead of round.
48438         Bug report from Bruno Haible.
48439
48440 2007-10-21  Bruno Haible  <bruno@clisp.org>
48441
48442         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
48443         context.
48444
48445 2007-10-21  Bruno Haible  <bruno@clisp.org>
48446
48447         * tests/test-wcwidth.c (main): Allow negative result for some control
48448         characters.
48449
48450         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
48451         Needed on OSF/1 5.1.
48452
48453 2007-10-21  Bruno Haible  <bruno@clisp.org>
48454
48455         * tests/test-floorf1.c: Include isnanf.h.
48456         (main): Use isnanf() instead of isnan().
48457         * tests/test-ceilf1.c: Include isnanf.h.
48458         (main): Use isnanf() instead of isnan().
48459         * tests/test-truncf1.c: Include isnanf.h.
48460         (main): Use isnanf() instead of isnan().
48461         * tests/test-roundf1.c: Include isnanf.h.
48462         (main): Use isnanf() instead of isnan().
48463
48464 2007-10-21  Eric Blake  <ebb9@byu.net>
48465
48466         * users.txt: Update URL for m4.
48467
48468 2007-10-21  Bruno Haible  <bruno@clisp.org>
48469
48470         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
48471
48472 2007-10-21  Bruno Haible  <bruno@clisp.org>
48473
48474         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
48475         Git's management files if the CVS files are not present.
48476
48477 2007-10-20  Bruno Haible  <bruno@clisp.org>
48478
48479         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
48480         gcc-3.4.x.
48481
48482 2007-10-20  Ben Pfaff  <blp@gnu.org>
48483
48484         * lib/math.in.h: Declare round, roundf, roundl if we are providing
48485         implementations.
48486         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
48487         * lib/round.c: New file.
48488         * lib/roundf.c: New file.
48489         * lib/roundl.c: New file.
48490         * m4/round.m4: New file.
48491         * m4/roundf.m4: New file.
48492         * m4/roundl.m4: New file.
48493         * m4/check-libm-func-m4: New file.
48494         * modules/math: Replace round, roundf, roundl related @VARS@ in
48495         math.in.h.
48496         * modules/round: New file.
48497         * modules/round-tests: New file.
48498         * modules/roundf: New file.
48499         * modules/roundf-tests: New file.
48500         * modules/roundl: New file.
48501         * modules/roundl-tests: New file.
48502         * tests/test-round1.c: New file.
48503         * tests/test-round2.c: New file.
48504         * tests/test-roundf1.c: New file.
48505         * tests/test-roundf2.c: New file.
48506         * tests/test-roundl.c: New file.
48507         * doc/functions/round.texi: Mention round module.
48508         * doc/functions/roundf.texi: Mention roundf module.
48509         * doc/functions/roundl.texi: Mention roundl module.
48510         * MODULES.html.sh: Mention new modules.
48511         Thanks to Bruno Haible for suggestions.
48512
48513 2007-10-20  Jim Meyering  <meyering@redhat.com>
48514
48515         * lib/xprintf.c: Include <config.h> unconditionally.
48516
48517         Change xprintf's license to GPL.
48518         * modules/xprintf (License): s/LGPL/GPL/, since this module
48519         depends on modules (exit and exitfail) which are GPL.
48520         Suggestion from Bruno Haible.
48521
48522         xprintf fixes.
48523         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
48524         Use a clearer diagnostic.
48525         Patch from Bruno Haible.
48526
48527 2007-10-20  Bruno Haible  <bruno@clisp.org>
48528
48529         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
48530         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
48531         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48532
48533 2007-10-20  Bruno Haible  <bruno@clisp.org>
48534
48535         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
48536         precision in the comparison result > x - 1 or similar.
48537         * tests/test-ceilf2.c (correct_result_p): Likewise.
48538         * tests/test-truncf2.c (correct_result_p): Likewise.
48539         * tests/test-trunc2.c (correct_result_p): Likewise.
48540         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48541
48542 2007-10-20  Bruno Haible  <bruno@clisp.org>
48543
48544         * modules/ceil: New file.
48545         * m4/ceil.m4: New file.
48546         * doc/functions/ceil.texi: Mention the 'ceil' module.
48547
48548 2007-10-20  Bruno Haible  <bruno@clisp.org>
48549
48550         * modules/floor: New file.
48551         * m4/floor.m4: New file.
48552         * doc/functions/floor.texi: Mention the 'floor' module.
48553
48554 2007-10-20  Bruno Haible  <bruno@clisp.org>
48555
48556         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
48557         of %a.
48558         * modules/floorf-tests (Depends-on): Likewise.
48559         * modules/truncf-tests (Depends-on): Likewise.
48560         * modules/trunc-tests (Depends-on): Likewise.
48561         Reported by Ben Pfaff.
48562
48563 2007-10-19  Jim Meyering  <meyering@redhat.com>
48564
48565         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
48566         Don't bother testing specific errno values.  Just test ferror.
48567
48568         New module: xprintf
48569         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
48570
48571 2007-10-19  Bruno Haible  <bruno@clisp.org>
48572
48573         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
48574         syntax.
48575         * modules/javaexec (Makefile.am): Likewise.
48576         * modules/relocatable-prog (Makefile.am): Likewise.
48577         Suggested by Jim Meyering.
48578
48579 2007-10-18  Bruno Haible  <bruno@clisp.org>
48580
48581         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
48582         Reported by Jim Meyering.
48583
48584 2007-10-18  Eric Blake  <ebb9@byu.net>
48585
48586         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
48587
48588 2007-10-18  Bruno Haible  <bruno@clisp.org>
48589
48590         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
48591         the format string into writable memory. Needed in Fortify conditions.
48592
48593 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
48594             Bruno Haible  <bruno@clisp.org>
48595
48596         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
48597         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
48598         * modules/trim (Depends-on): Add mbchar.
48599         (configure.ac): Add gl_FUNC_MBRTOWC.
48600         (Makefile.am): Augment lib_SOURCES.
48601
48602 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
48603
48604         Modify glob.c to use fstatat and dirfd, to simplify it.
48605         Suggested by Eric Blake.
48606         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
48607         Don't include <stdbool.h>; not used.
48608         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
48609         (link_exists_p): Simplify implementation, since we can now assume
48610         dirfd and fstatat.
48611         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
48612
48613 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48614
48615         * gnulib-tool (func_get_dependencies): Fix sed script to
48616         match only tests.
48617
48618 2007-10-17  Bruno Haible  <bruno@clisp.org>
48619
48620         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
48621         allow locale names without encoding suffix.
48622         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48623         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48624
48625 2007-10-16  Bruno Haible  <bruno@clisp.org>
48626
48627         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
48628         * lib/getgroups.c (getgroups): Likewise.
48629         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
48630
48631 2007-10-16  Bruno Haible  <bruno@clisp.org>
48632
48633         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
48634         * modules/malloc-posix (License): Likewise.
48635         * modules/realloc-posix (License): Likewise.
48636         * modules/calloc-posix (License): Likewise.
48637         * modules/intprops (License): Change from GPL to LGPL, with
48638         Paul Eggert's approval.
48639
48640 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48641
48642         Merge glibc changes into lib/glob.c.
48643
48644         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
48645         2007-10-15 04:59:03 UTC.  Here are the changes:
48646
48647         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
48648
48649         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
48650
48651         * lib/glob.c: Add some branch prediction throughout.
48652
48653         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
48654
48655         [BZ #5103]
48656         * lib/glob.c (glob): Recognize patterns starting \/.
48657
48658         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
48659
48660         [BZ #3996]
48661         * lib/glob.c (attribute_hidden): Define if not defined.
48662         (glob): Unescape dirname, filename or username when needed and not
48663         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
48664         is NULL.  Handle unescaped [ in pattern without closing ].
48665         Don't pass GLOB_CHECK down to recursive glob for directories.
48666         (__glob_pattern_type): New function.
48667         (__glob_pattern_p): Implement using __glob_pattern_type.
48668         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
48669         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
48670         Remove unreachable code.
48671
48672         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
48673
48674         * lib/glob.c (glob_in_dir): Add some comments and asserts to
48675         explain why there are no leaks.
48676
48677         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
48678
48679         [BZ #3253]
48680         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
48681         time, rather allocate increasingly bigger arrays of pointers, if
48682         possible with alloca, if too large with malloc.
48683
48684 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48685
48686         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
48687         Problem reported by H.Merijn Brand in
48688         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
48689         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
48690         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
48691
48692 2007-10-15  Bruno Haible  <bruno@clisp.org>
48693
48694         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
48695         with explicit rpl_ prefix.
48696         * lib/fopen.c (fopen): Likewise.
48697         * lib/freopen.c (freopen): Likewise.
48698         * lib/iconv.c (iconv): Likewise.
48699         * lib/iconv_close.c (iconv_close): Likewise.
48700
48701 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48702
48703         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
48704
48705 2007-10-15  Bruno Haible  <bruno@clisp.org>
48706
48707         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
48708         <stddef.h> instead of <stdlib.h> since we only need NULL.
48709         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48710
48711 2007-10-15  Bruno Haible  <bruno@clisp.org>
48712
48713         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
48714         Replace paragraph talking about LIBOBJS.
48715         Reported by Colin Watson <cjwatson@debian.org>.
48716
48717 2007-10-15  Bruno Haible  <bruno@clisp.org>
48718
48719         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
48720         <stdlib.h> before using NULL.
48721
48722 2007-10-15  Simon Josefsson  <simon@josefsson.org>
48723
48724         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
48725         Reported by Albert Chin <china@thewrittenword.com>.
48726
48727 2007-10-14  Bruno Haible  <bruno@clisp.org>
48728
48729         * modules/iconv_open-utf-tests: New file.
48730         * tests/test-iconv-utf.c: New file.
48731
48732         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
48733         * modules/iconv_open-utf: New file.
48734         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
48735         (iconv, iconv_close): New declarations.
48736         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
48737         be defined.
48738         (iconv_open): Add special handling of conversion between UTF-8 and
48739         UTF-{16,32}{BE,LE}.
48740         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
48741         * lib/iconv_close.c: New file.
48742         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
48743         gl_FUNC_ICONV_OPEN.
48744         (gl_FUNC_ICONV_OPEN): Use it.
48745         (gl_FUNC_ICONV_OPEN_UTF): New macro.
48746         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
48747         and REPLACE_ICONV_UTF.
48748         * modules/iconv_open (Depends-on): Add c-strcase.
48749         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
48750         ICONV_CONST.
48751         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
48752
48753 2007-10-13  Albert Chin  <china@thewrittenword.com>
48754             Bruno Haible  <bruno@clisp.org>
48755
48756         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
48757         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
48758
48759 2007-10-13  Bruno Haible  <bruno@clisp.org>
48760
48761         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
48762         defined, use the ISO C99 inline semantics.
48763         * lib/argp.h (ARGP_EI): Likewise.
48764
48765 2007-10-13  Bruno Haible  <bruno@clisp.org>
48766
48767         Handle 'inline' change in gcc 4.3.0.
48768         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
48769         argp_fmtstream_write, argp_fmtstream_set_lmargin,
48770         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
48771         argp_fmtstream_point): Disable 'extern' declaration if the function
48772         definition is going to be provided inline.
48773         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
48774         semantics, not the ISO C99 inline semantics.
48775         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
48776         'extern' declaration if the function definition is going to be provided
48777         inline.
48778         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
48779         the GNU C inline semantics, not the ISO C99 inline semantics. With
48780         GCC 4.2, avoid a warning.
48781
48782 2007-10-13  Bruno Haible  <bruno@clisp.org>
48783
48784         * lib/freading.h (freading): Enable the use of __freading for
48785         glibc >= 2.7.
48786         * lib/freading.c (freading): Likewise.
48787
48788 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48789
48790         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
48791         "warning: C99 inline functions are not supported; using GNU89".
48792
48793 2007-10-12  Bruno Haible  <bruno@clisp.org>
48794
48795         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
48796         of 2.
48797         * tests/test-ceilf2.c: New file.
48798         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
48799
48800         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
48801         * modules/ceilf-tests: Update.
48802
48803 2007-10-12  Bruno Haible  <bruno@clisp.org>
48804
48805         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
48806         of 2.
48807         * tests/test-floorf2.c: New file.
48808         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
48809
48810         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
48811         * modules/floorf-tests: Update.
48812
48813 2007-10-12  Bruno Haible  <bruno@clisp.org>
48814
48815         * tests/test-trunc2.c: New file.
48816         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
48817
48818         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
48819         * modules/trunc-tests: Update.
48820
48821 2007-10-12  Bruno Haible  <bruno@clisp.org>
48822
48823         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
48824         of 2.
48825         * tests/test-truncf2.c: New file.
48826         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
48827
48828         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
48829         * modules/truncf-tests: Update.
48830
48831 2007-10-11  Eric Blake  <ebb9@byu.net>
48832
48833         Don't claim strerror is broken on Interix.
48834         * doc/functions/strerror.texi (strerror): Known broken systems are
48835         now Solaris 8, and not Interix.
48836         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
48837         Interix on cross-compile.
48838         Reported by Martin Koeppe in
48839         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
48840
48841 2007-10-11  Bruno Haible  <bruno@clisp.org>
48842
48843         * modules/i-ring-tests: New file.
48844         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
48845         instead of assert.
48846
48847 2007-10-11  Bruno Haible  <bruno@clisp.org>
48848
48849         * modules/filenamecat-tests: New file.
48850         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
48851         * lib/filenamecat.c: Remove test code.
48852
48853 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48854
48855         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
48856
48857         * lib/strerror.c: Include <string.h> always, to test interface,
48858         and to remove the need for the dummy.
48859         Include intprops.h to compute width instead of doing it ourselves
48860         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
48861         (strerror): Define it to return NULL if there's no system strerror.
48862         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
48863         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
48864         ancient pre-strerror Unix systems well any more.  Saying "unknown
48865         system error" is enough.
48866         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
48867         simpler strerror.c implementation.
48868         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
48869         Simplify the tests to reflect the simpler strerror implementation.
48870         * modules/strerror (Depends-on): Add intprops.
48871
48872 2007-10-09  Eric Blake  <ebb9@byu.net>
48873
48874         Silence test-fpending.
48875         * modules/fpending-tests (Files): Add wrapper script.
48876         * tests/test-fpending.sh: New file.
48877
48878 2007-10-09  Bruno Haible  <bruno@clisp.org>
48879
48880         * MODULES.html.sh (func_module): Don't create a hyperlink for
48881         function names like 'printf_frexp'.
48882         (Misc): Add crc, memxor.
48883         (Characteristics of floating types): New section.
48884         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
48885         isnanf-nolibm, signbit, trunc, truncf, truncl.
48886         (Enhancements for ISO C 99 functions): New subsection Input/output.
48887         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
48888         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
48889         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
48890         (Compatibility checks for POSIX:2001 functions): Add clock-time.
48891         (Enhancements for POSIX:2001 functions): Add chdir-long.
48892         (File system functions): Add areadlink, chdir-safer, read-file.
48893         Remove cycle-check.
48894         (File system as inode set): New section.
48895         (Date and time): Add gethrxtime.
48896         (Multithreading): Add openmp.
48897         (Internationalization functions): Add localename.
48898         (Unicode string functions): Add unistr/u*-mbsnlen.
48899         (Support for maintaining and releasing projects): Add git-version-gen.
48900         (Lone files): Remove directories.
48901
48902 2007-10-08  Ben Pfaff  <blp@gnu.org>
48903
48904         * lib/xmalloca.h: Fix typo in comment.
48905
48906 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48907
48908         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
48909         when avoiding problems with integer overflow.  Use a portable test
48910         instead.
48911
48912 2007-10-08  Simon Josefsson  <simon@josefsson.org>
48913
48914         * modules/dummy (License): Change to LGPLv2+.
48915         * modules/float (License): Likewise
48916         * modules/realloc (License): Likewise
48917         * modules/stdlib (License): Likewise
48918
48919 2007-10-07  Bruno Haible  <bruno@clisp.org>
48920
48921         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
48922         * floor.c (TWO_MANT_DIG): Likewise.
48923         * ceil.c (TWO_MANT_DIG): Likewise.
48924         Reported by Ben Pfaff.
48925
48926 2007-10-07  Bruno Haible  <bruno@clisp.org>
48927
48928         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
48929         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
48930         * lib/frexp.c (FUNC): Likewise.
48931         * lib/printf-frexp.h (printf_frexp): Likewise.
48932         * lib/printf-frexpl.h (printf_frexpl): Likewise.
48933         * lib/printf-frexp.c (FUNC): Likewise.
48934         Suggested by Jim Meyering.
48935
48936 2007-10-07  Jim Meyering  <meyering@redhat.com>
48937
48938         Make xnanosleep's integer overflow test more robust.
48939         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
48940         so that gcc-4.3.0 doesn't optimize away this test for overflow.
48941
48942 2007-10-07  Bruno Haible  <bruno@clisp.org>
48943
48944         * NEWS: Mention the license change.
48945
48946         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
48947         abbreviations in the modules files.
48948
48949         Change copyright notice from GPLv2+ to GPLv3+.
48950         * README: Change copyright notice.
48951         * MODULES.html.sh: Likewise.
48952         * build-aux/bootstrap.conf: Likewise.
48953         * build-aux/config.libpath: Likewise.
48954         * build-aux/csharpcomp.sh.in: Likewise.
48955         * build-aux/csharpexec.sh.in: Likewise.
48956         * build-aux/install-reloc: Likewise.
48957         * build-aux/javacomp.sh.in: Likewise.
48958         * build-aux/javaexec.sh.in: Likewise.
48959         * build-aux/ldd.sh.in: Likewise.
48960         * build-aux/reloc-ldflags: Likewise.
48961         * build-aux/relocatable.sh.in: Likewise.
48962         * build-aux/x-to-1.in: Likewise.
48963         * check-module: Likewise.
48964         * config/srclistvars.sh: Likewise.
48965         * gnulib-tool: Likewise.
48966         * lib/acl-internal.h: Likewise.
48967         * lib/acl.c: Likewise.
48968         * lib/acl.h: Likewise.
48969         * lib/acl_entries.c: Likewise.
48970         * lib/areadlink-with-size.c: Likewise.
48971         * lib/areadlink.c: Likewise.
48972         * lib/areadlink.h: Likewise.
48973         * lib/argmatch.c: Likewise.
48974         * lib/argmatch.h: Likewise.
48975         * lib/argp-ba.c: Likewise.
48976         * lib/argp-eexst.c: Likewise.
48977         * lib/argp-fmtstream.c: Likewise.
48978         * lib/argp-fmtstream.h: Likewise.
48979         * lib/argp-fs-xinl.c: Likewise.
48980         * lib/argp-help.c: Likewise.
48981         * lib/argp-namefrob.h: Likewise.
48982         * lib/argp-parse.c: Likewise.
48983         * lib/argp-pin.c: Likewise.
48984         * lib/argp-pv.c: Likewise.
48985         * lib/argp-pvh.c: Likewise.
48986         * lib/argp-xinl.c: Likewise.
48987         * lib/argp.h: Likewise.
48988         * lib/at-func.c: Likewise.
48989         * lib/atanl.c: Likewise.
48990         * lib/backupfile.c: Likewise.
48991         * lib/backupfile.h: Likewise.
48992         * lib/basename.c: Likewise.
48993         * lib/binary-io.h: Likewise.
48994         * lib/byteswap.in.h: Likewise.
48995         * lib/c-stack.c: Likewise.
48996         * lib/c-stack.h: Likewise.
48997         * lib/c-strcasestr.c: Likewise.
48998         * lib/c-strcasestr.h: Likewise.
48999         * lib/c-strstr.c: Likewise.
49000         * lib/c-strstr.h: Likewise.
49001         * lib/c-strtod.c: Likewise.
49002         * lib/calloc.c: Likewise.
49003         * lib/canon-host.c: Likewise.
49004         * lib/canon-host.h: Likewise.
49005         * lib/canonicalize-lgpl.c: Likewise.
49006         * lib/canonicalize.c: Likewise.
49007         * lib/canonicalize.h: Likewise.
49008         * lib/ceil.c: Likewise.
49009         * lib/ceilf.c: Likewise.
49010         * lib/ceill.c: Likewise.
49011         * lib/chdir-long.c: Likewise.
49012         * lib/chdir-long.h: Likewise.
49013         * lib/chdir-safer.c: Likewise.
49014         * lib/chdir-safer.h: Likewise.
49015         * lib/chown.c: Likewise.
49016         * lib/classpath.c: Likewise.
49017         * lib/classpath.h: Likewise.
49018         * lib/clean-temp.c: Likewise.
49019         * lib/clean-temp.h: Likewise.
49020         * lib/cloexec.c: Likewise.
49021         * lib/close-stream.c: Likewise.
49022         * lib/closein.c: Likewise.
49023         * lib/closein.h: Likewise.
49024         * lib/closeout.c: Likewise.
49025         * lib/closeout.h: Likewise.
49026         * lib/concat-filename.c: Likewise.
49027         * lib/copy-file.c: Likewise.
49028         * lib/copy-file.h: Likewise.
49029         * lib/count-one-bits.h: Likewise.
49030         * lib/crc.c: Likewise.
49031         * lib/crc.h: Likewise.
49032         * lib/creat-safer.c: Likewise.
49033         * lib/csharpcomp.c: Likewise.
49034         * lib/csharpcomp.h: Likewise.
49035         * lib/csharpexec.c: Likewise.
49036         * lib/csharpexec.h: Likewise.
49037         * lib/cycle-check.c: Likewise.
49038         * lib/cycle-check.h: Likewise.
49039         * lib/diacrit.c: Likewise.
49040         * lib/diacrit.h: Likewise.
49041         * lib/diffseq.h: Likewise.
49042         * lib/dirchownmod.c: Likewise.
49043         * lib/dirent.in.h: Likewise.
49044         * lib/dirfd.c: Likewise.
49045         * lib/dirfd.h: Likewise.
49046         * lib/dirname.c: Likewise.
49047         * lib/dirname.h: Likewise.
49048         * lib/dummy.c: Likewise.
49049         * lib/dup-safer.c: Likewise.
49050         * lib/dup2.c: Likewise.
49051         * lib/eealloc.h: Likewise.
49052         * lib/error.c: Likewise.
49053         * lib/error.h: Likewise.
49054         * lib/euidaccess.c: Likewise.
49055         * lib/exclude.c: Likewise.
49056         * lib/exclude.h: Likewise.
49057         * lib/execute.c: Likewise.
49058         * lib/execute.h: Likewise.
49059         * lib/exitfail.c: Likewise.
49060         * lib/exitfail.h: Likewise.
49061         * lib/expl.c: Likewise.
49062         * lib/fatal-signal.c: Likewise.
49063         * lib/fatal-signal.h: Likewise.
49064         * lib/fbufmode.c: Likewise.
49065         * lib/fbufmode.h: Likewise.
49066         * lib/fchdir.c: Likewise.
49067         * lib/fchmodat.c: Likewise.
49068         * lib/fchownat.c: Likewise.
49069         * lib/fcntl--.h: Likewise.
49070         * lib/fcntl-safer.h: Likewise.
49071         * lib/fcntl.in.h: Likewise.
49072         * lib/fd-safer.c: Likewise.
49073         * lib/fflush.c: Likewise.
49074         * lib/file-has-acl.c: Likewise.
49075         * lib/file-set.c: Likewise.
49076         * lib/file-type.c: Likewise.
49077         * lib/file-type.h: Likewise.
49078         * lib/fileblocks.c: Likewise.
49079         * lib/filemode.c: Likewise.
49080         * lib/filemode.h: Likewise.
49081         * lib/filename.h: Likewise.
49082         * lib/filenamecat.c: Likewise.
49083         * lib/filenamecat.h: Likewise.
49084         * lib/findprog.c: Likewise.
49085         * lib/findprog.h: Likewise.
49086         * lib/float.in.h: Likewise.
49087         * lib/floor.c: Likewise.
49088         * lib/floorf.c: Likewise.
49089         * lib/floorl.c: Likewise.
49090         * lib/fopen-safer.c: Likewise.
49091         * lib/fopen.c: Likewise.
49092         * lib/fpending.c: Likewise.
49093         * lib/fpending.h: Likewise.
49094         * lib/fprintf.c: Likewise.
49095         * lib/fprintftime.h: Likewise.
49096         * lib/fpucw.h: Likewise.
49097         * lib/fpurge.c: Likewise.
49098         * lib/fpurge.h: Likewise.
49099         * lib/freadable.c: Likewise.
49100         * lib/freadable.h: Likewise.
49101         * lib/freadahead.c: Likewise.
49102         * lib/freadahead.h: Likewise.
49103         * lib/freading.c: Likewise.
49104         * lib/freading.h: Likewise.
49105         * lib/free.c: Likewise.
49106         * lib/freopen.c: Likewise.
49107         * lib/frexp.c: Likewise.
49108         * lib/frexpl.c: Likewise.
49109         * lib/fseek.c: Likewise.
49110         * lib/fseterr.c: Likewise.
49111         * lib/fseterr.h: Likewise.
49112         * lib/fstatat.c: Likewise.
49113         * lib/fstrcmp.c: Likewise.
49114         * lib/fstrcmp.h: Likewise.
49115         * lib/fsusage.c: Likewise.
49116         * lib/fsusage.h: Likewise.
49117         * lib/ftell.c: Likewise.
49118         * lib/ftello.c: Likewise.
49119         * lib/fts-cycle.c: Likewise.
49120         * lib/fts.c: Likewise.
49121         * lib/fts_.h: Likewise.
49122         * lib/full-read.c: Likewise.
49123         * lib/full-read.h: Likewise.
49124         * lib/full-write.c: Likewise.
49125         * lib/full-write.h: Likewise.
49126         * lib/fwritable.c: Likewise.
49127         * lib/fwritable.h: Likewise.
49128         * lib/fwriteerror.c: Likewise.
49129         * lib/fwriteerror.h: Likewise.
49130         * lib/fwriting.c: Likewise.
49131         * lib/fwriting.h: Likewise.
49132         * lib/gcd.c: Likewise.
49133         * lib/gcd.h: Likewise.
49134         * lib/getcwd.c: Likewise.
49135         * lib/getdate.h: Likewise.
49136         * lib/getdate.y: Likewise.
49137         * lib/getdomainname.c: Likewise.
49138         * lib/getdomainname.h: Likewise.
49139         * lib/getgroups.c: Likewise.
49140         * lib/gethostname.c: Likewise.
49141         * lib/gethrxtime.c: Likewise.
49142         * lib/gethrxtime.h: Likewise.
49143         * lib/getloadavg.c: Likewise.
49144         * lib/getndelim2.c: Likewise.
49145         * lib/getndelim2.h: Likewise.
49146         * lib/getnline.c: Likewise.
49147         * lib/getnline.h: Likewise.
49148         * lib/getopt.c: Likewise.
49149         * lib/getopt.in.h: Likewise.
49150         * lib/getopt1.c: Likewise.
49151         * lib/getopt_int.h: Likewise.
49152         * lib/getpagesize.h: Likewise.
49153         * lib/getsubopt.c: Likewise.
49154         * lib/gettime.c: Likewise.
49155         * lib/getugroups.c: Likewise.
49156         * lib/getugroups.h: Likewise.
49157         * lib/getusershell.c: Likewise.
49158         * lib/gl_anyavltree_list1.h: Likewise.
49159         * lib/gl_anyavltree_list2.h: Likewise.
49160         * lib/gl_anyhash_list1.h: Likewise.
49161         * lib/gl_anyhash_list2.h: Likewise.
49162         * lib/gl_anylinked_list1.h: Likewise.
49163         * lib/gl_anylinked_list2.h: Likewise.
49164         * lib/gl_anyrbtree_list1.h: Likewise.
49165         * lib/gl_anyrbtree_list2.h: Likewise.
49166         * lib/gl_anytree_list1.h: Likewise.
49167         * lib/gl_anytree_list2.h: Likewise.
49168         * lib/gl_anytree_oset.h: Likewise.
49169         * lib/gl_anytreehash_list1.h: Likewise.
49170         * lib/gl_anytreehash_list2.h: Likewise.
49171         * lib/gl_array_list.c: Likewise.
49172         * lib/gl_array_list.h: Likewise.
49173         * lib/gl_array_oset.c: Likewise.
49174         * lib/gl_array_oset.h: Likewise.
49175         * lib/gl_avltree_list.c: Likewise.
49176         * lib/gl_avltree_list.h: Likewise.
49177         * lib/gl_avltree_oset.c: Likewise.
49178         * lib/gl_avltree_oset.h: Likewise.
49179         * lib/gl_avltreehash_list.c: Likewise.
49180         * lib/gl_avltreehash_list.h: Likewise.
49181         * lib/gl_carray_list.c: Likewise.
49182         * lib/gl_carray_list.h: Likewise.
49183         * lib/gl_linked_list.c: Likewise.
49184         * lib/gl_linked_list.h: Likewise.
49185         * lib/gl_linkedhash_list.c: Likewise.
49186         * lib/gl_linkedhash_list.h: Likewise.
49187         * lib/gl_list.c: Likewise.
49188         * lib/gl_list.h: Likewise.
49189         * lib/gl_oset.c: Likewise.
49190         * lib/gl_oset.h: Likewise.
49191         * lib/gl_rbtree_list.c: Likewise.
49192         * lib/gl_rbtree_list.h: Likewise.
49193         * lib/gl_rbtree_oset.c: Likewise.
49194         * lib/gl_rbtree_oset.h: Likewise.
49195         * lib/gl_rbtreehash_list.c: Likewise.
49196         * lib/gl_rbtreehash_list.h: Likewise.
49197         * lib/gl_sublist.c: Likewise.
49198         * lib/gl_sublist.h: Likewise.
49199         * lib/group-member.c: Likewise.
49200         * lib/group-member.h: Likewise.
49201         * lib/hard-locale.c: Likewise.
49202         * lib/hard-locale.h: Likewise.
49203         * lib/hash-pjw.c: Likewise.
49204         * lib/hash-pjw.h: Likewise.
49205         * lib/hash-triple.c: Likewise.
49206         * lib/hash.c: Likewise.
49207         * lib/hash.h: Likewise.
49208         * lib/human.c: Likewise.
49209         * lib/human.h: Likewise.
49210         * lib/i-ring.c: Likewise.
49211         * lib/i-ring.h: Likewise.
49212         * lib/idcache.c: Likewise.
49213         * lib/imaxabs.c: Likewise.
49214         * lib/imaxdiv.c: Likewise.
49215         * lib/inet_pton.c: Likewise.
49216         * lib/inet_pton.h: Likewise.
49217         * lib/intprops.h: Likewise.
49218         * lib/inttostr.c: Likewise.
49219         * lib/inttostr.h: Likewise.
49220         * lib/inttypes.in.h: Likewise.
49221         * lib/isapipe.c: Likewise.
49222         * lib/isdir.c: Likewise.
49223         * lib/isnan.c: Likewise.
49224         * lib/isnan.h: Likewise.
49225         * lib/isnanf.c: Likewise.
49226         * lib/isnanf.h: Likewise.
49227         * lib/isnanl-nolibm.h: Likewise.
49228         * lib/isnanl.c: Likewise.
49229         * lib/isnanl.h: Likewise.
49230         * lib/javacomp.c: Likewise.
49231         * lib/javacomp.h: Likewise.
49232         * lib/javaexec.c: Likewise.
49233         * lib/javaexec.h: Likewise.
49234         * lib/javaversion.c: Likewise.
49235         * lib/javaversion.h: Likewise.
49236         * lib/javaversion.java: Likewise.
49237         * lib/lbrkprop.h: Likewise.
49238         * lib/lchmod.h: Likewise.
49239         * lib/lchown.c: Likewise.
49240         * lib/ldexpl.c: Likewise.
49241         * lib/linebreak.c: Likewise.
49242         * lib/linebreak.h: Likewise.
49243         * lib/linebuffer.c: Likewise.
49244         * lib/linebuffer.h: Likewise.
49245         * lib/locale.in.h: Likewise.
49246         * lib/logl.c: Likewise.
49247         * lib/long-options.c: Likewise.
49248         * lib/long-options.h: Likewise.
49249         * lib/lstat.c: Likewise.
49250         * lib/lstat.h: Likewise.
49251         * lib/math.in.h: Likewise.
49252         * lib/mbchar.c: Likewise.
49253         * lib/mbchar.h: Likewise.
49254         * lib/mbfile.h: Likewise.
49255         * lib/mbiter.h: Likewise.
49256         * lib/mbscasecmp.c: Likewise.
49257         * lib/mbscasestr.c: Likewise.
49258         * lib/mbschr.c: Likewise.
49259         * lib/mbscspn.c: Likewise.
49260         * lib/mbslen.c: Likewise.
49261         * lib/mbsncasecmp.c: Likewise.
49262         * lib/mbsnlen.c: Likewise.
49263         * lib/mbspbrk.c: Likewise.
49264         * lib/mbspcasecmp.c: Likewise.
49265         * lib/mbsrchr.c: Likewise.
49266         * lib/mbssep.c: Likewise.
49267         * lib/mbsspn.c: Likewise.
49268         * lib/mbsstr.c: Likewise.
49269         * lib/mbstok_r.c: Likewise.
49270         * lib/mbswidth.c: Likewise.
49271         * lib/mbswidth.h: Likewise.
49272         * lib/mbuiter.h: Likewise.
49273         * lib/memcasecmp.c: Likewise.
49274         * lib/memcasecmp.h: Likewise.
49275         * lib/memchr.c: Likewise.
49276         * lib/memcmp.c: Likewise.
49277         * lib/memcoll.c: Likewise.
49278         * lib/memcoll.h: Likewise.
49279         * lib/memcpy.c: Likewise.
49280         * lib/memrchr.c: Likewise.
49281         * lib/mkancesdirs.c: Likewise.
49282         * lib/mkdir-p.c: Likewise.
49283         * lib/mkdir-p.h: Likewise.
49284         * lib/mkdir.c: Likewise.
49285         * lib/mkdirat.c: Likewise.
49286         * lib/mkdtemp.c: Likewise.
49287         * lib/mkstemp-safer.c: Likewise.
49288         * lib/mkstemp.c: Likewise.
49289         * lib/modechange.c: Likewise.
49290         * lib/modechange.h: Likewise.
49291         * lib/mountlist.c: Likewise.
49292         * lib/mountlist.h: Likewise.
49293         * lib/mpsort.c: Likewise.
49294         * lib/nanosleep.c: Likewise.
49295         * lib/obstack.c: Likewise.
49296         * lib/obstack.h: Likewise.
49297         * lib/open-safer.c: Likewise.
49298         * lib/open.c: Likewise.
49299         * lib/openat-die.c: Likewise.
49300         * lib/openat-priv.h: Likewise.
49301         * lib/openat-proc.c: Likewise.
49302         * lib/openat.c: Likewise.
49303         * lib/openat.h: Likewise.
49304         * lib/pagealign_alloc.c: Likewise.
49305         * lib/pagealign_alloc.h: Likewise.
49306         * lib/physmem.c: Likewise.
49307         * lib/physmem.h: Likewise.
49308         * lib/pipe-safer.c: Likewise.
49309         * lib/pipe.c: Likewise.
49310         * lib/pipe.h: Likewise.
49311         * lib/posixtm.c: Likewise.
49312         * lib/posixtm.h: Likewise.
49313         * lib/posixver.c: Likewise.
49314         * lib/printf-frexp.c: Likewise.
49315         * lib/printf-frexp.h: Likewise.
49316         * lib/printf-frexpl.c: Likewise.
49317         * lib/printf-frexpl.h: Likewise.
49318         * lib/printf.c: Likewise.
49319         * lib/progname.c: Likewise.
49320         * lib/progname.h: Likewise.
49321         * lib/progreloc.c: Likewise.
49322         * lib/putenv.c: Likewise.
49323         * lib/quote.c: Likewise.
49324         * lib/quote.h: Likewise.
49325         * lib/quotearg.c: Likewise.
49326         * lib/quotearg.h: Likewise.
49327         * lib/raise.c: Likewise.
49328         * lib/readline.c: Likewise.
49329         * lib/readline.h: Likewise.
49330         * lib/readlink.c: Likewise.
49331         * lib/readtokens.c: Likewise.
49332         * lib/readtokens.h: Likewise.
49333         * lib/readtokens0.c: Likewise.
49334         * lib/readtokens0.h: Likewise.
49335         * lib/readutmp.c: Likewise.
49336         * lib/readutmp.h: Likewise.
49337         * lib/realloc.c: Likewise.
49338         * lib/relocwrapper.c: Likewise.
49339         * lib/rename-dest-slash.c: Likewise.
49340         * lib/rename.c: Likewise.
49341         * lib/rmdir.c: Likewise.
49342         * lib/rpmatch.c: Likewise.
49343         * lib/safe-read.c: Likewise.
49344         * lib/safe-read.h: Likewise.
49345         * lib/safe-write.c: Likewise.
49346         * lib/safe-write.h: Likewise.
49347         * lib/same-inode.h: Likewise.
49348         * lib/same.c: Likewise.
49349         * lib/same.h: Likewise.
49350         * lib/save-cwd.c: Likewise.
49351         * lib/save-cwd.h: Likewise.
49352         * lib/savedir.c: Likewise.
49353         * lib/savedir.h: Likewise.
49354         * lib/savewd.c: Likewise.
49355         * lib/savewd.h: Likewise.
49356         * lib/search.in.h: Likewise.
49357         * lib/setenv.c: Likewise.
49358         * lib/setenv.h: Likewise.
49359         * lib/settime.c: Likewise.
49360         * lib/sh-quote.c: Likewise.
49361         * lib/sh-quote.h: Likewise.
49362         * lib/sig2str.c: Likewise.
49363         * lib/sig2str.h: Likewise.
49364         * lib/signal.in.h: Likewise.
49365         * lib/signbitd.c: Likewise.
49366         * lib/signbitf.c: Likewise.
49367         * lib/signbitl.c: Likewise.
49368         * lib/sigprocmask.c: Likewise.
49369         * lib/sincosl.c: Likewise.
49370         * lib/sleep.c: Likewise.
49371         * lib/sprintf.c: Likewise.
49372         * lib/sqrtl.c: Likewise.
49373         * lib/stat-time.h: Likewise.
49374         * lib/stdio--.h: Likewise.
49375         * lib/stdio-safer.h: Likewise.
49376         * lib/stdlib--.h: Likewise.
49377         * lib/stdlib-safer.h: Likewise.
49378         * lib/stdlib.in.h: Likewise.
49379         * lib/stpcpy.c: Likewise.
49380         * lib/stpncpy.c: Likewise.
49381         * lib/strchrnul.c: Likewise.
49382         * lib/strcspn.c: Likewise.
49383         * lib/strerror.c: Likewise.
49384         * lib/strftime.c: Likewise.
49385         * lib/strftime.h: Likewise.
49386         * lib/striconveh.c: Likewise.
49387         * lib/striconveh.h: Likewise.
49388         * lib/striconveha.c: Likewise.
49389         * lib/striconveha.h: Likewise.
49390         * lib/stripslash.c: Likewise.
49391         * lib/strnlen1.c: Likewise.
49392         * lib/strnlen1.h: Likewise.
49393         * lib/strtod.c: Likewise.
49394         * lib/strtoimax.c: Likewise.
49395         * lib/strtok_r.c: Likewise.
49396         * lib/strtol.c: Likewise.
49397         * lib/strtoll.c: Likewise.
49398         * lib/strtoul.c: Likewise.
49399         * lib/strtoull.c: Likewise.
49400         * lib/sysexits.in.h: Likewise.
49401         * lib/tempname.c: Likewise.
49402         * lib/tempname.h: Likewise.
49403         * lib/timespec.h: Likewise.
49404         * lib/tls.c: Likewise.
49405         * lib/tls.h: Likewise.
49406         * lib/tmpdir.c: Likewise.
49407         * lib/tmpdir.h: Likewise.
49408         * lib/tmpfile-safer.c: Likewise.
49409         * lib/tmpfile.c: Likewise.
49410         * lib/trigl.c: Likewise.
49411         * lib/trigl.h: Likewise.
49412         * lib/trim.c: Likewise.
49413         * lib/trim.h: Likewise.
49414         * lib/trunc.c: Likewise.
49415         * lib/truncf.c: Likewise.
49416         * lib/truncl.c: Likewise.
49417         * lib/tsearch.c: Likewise.
49418         * lib/unicodeio.c: Likewise.
49419         * lib/unicodeio.h: Likewise.
49420         * lib/unistd--.h: Likewise.
49421         * lib/unistd-safer.h: Likewise.
49422         * lib/unistdio/ulc-fprintf.c: Likewise.
49423         * lib/unistdio/ulc-vfprintf.c: Likewise.
49424         * lib/unlinkdir.c: Likewise.
49425         * lib/unlinkdir.h: Likewise.
49426         * lib/unlocked-io.h: Likewise.
49427         * lib/unsetenv.c: Likewise.
49428         * lib/userspec.c: Likewise.
49429         * lib/utime.c: Likewise.
49430         * lib/utimecmp.c: Likewise.
49431         * lib/utimecmp.h: Likewise.
49432         * lib/utimens.c: Likewise.
49433         * lib/verify.h: Likewise.
49434         * lib/verror.c: Likewise.
49435         * lib/verror.h: Likewise.
49436         * lib/version-etc-fsf.c: Likewise.
49437         * lib/version-etc.c: Likewise.
49438         * lib/version-etc.h: Likewise.
49439         * lib/vfprintf.c: Likewise.
49440         * lib/vprintf.c: Likewise.
49441         * lib/vsprintf.c: Likewise.
49442         * lib/w32spawn.h: Likewise.
49443         * lib/wait-process.c: Likewise.
49444         * lib/wait-process.h: Likewise.
49445         * lib/wcwidth.c: Likewise.
49446         * lib/write-any-file.c: Likewise.
49447         * lib/xalloc-die.c: Likewise.
49448         * lib/xalloc.h: Likewise.
49449         * lib/xasprintf.c: Likewise.
49450         * lib/xgetcwd.c: Likewise.
49451         * lib/xgetcwd.h: Likewise.
49452         * lib/xgetdomainname.c: Likewise.
49453         * lib/xgetdomainname.h: Likewise.
49454         * lib/xgethostname.c: Likewise.
49455         * lib/xmalloc.c: Likewise.
49456         * lib/xmalloca.c: Likewise.
49457         * lib/xmalloca.h: Likewise.
49458         * lib/xmemcoll.c: Likewise.
49459         * lib/xnanosleep.c: Likewise.
49460         * lib/xreadlink.c: Likewise.
49461         * lib/xreadlink.h: Likewise.
49462         * lib/xsetenv.c: Likewise.
49463         * lib/xsetenv.h: Likewise.
49464         * lib/xstriconv.c: Likewise.
49465         * lib/xstriconv.h: Likewise.
49466         * lib/xstrndup.c: Likewise.
49467         * lib/xstrndup.h: Likewise.
49468         * lib/xstrtod.c: Likewise.
49469         * lib/xstrtod.h: Likewise.
49470         * lib/xstrtol-error.c: Likewise.
49471         * lib/xstrtol.c: Likewise.
49472         * lib/xstrtol.h: Likewise.
49473         * lib/xtime.h: Likewise.
49474         * lib/xvasprintf.c: Likewise.
49475         * lib/xvasprintf.h: Likewise.
49476         * lib/yesno.c: Likewise.
49477         * lib/yesno.h: Likewise.
49478         * posix-modules: Likewise.
49479         * tests/test-alloca-opt.c: Likewise.
49480         * tests/test-arcfour.c: Likewise.
49481         * tests/test-arctwo.c: Likewise.
49482         * tests/test-argmatch.c: Likewise.
49483         * tests/test-argp-2.sh: Likewise.
49484         * tests/test-argp.c: Likewise.
49485         * tests/test-arpa_inet.c: Likewise.
49486         * tests/test-array_list.c: Likewise.
49487         * tests/test-array_oset.c: Likewise.
49488         * tests/test-atexit.c: Likewise.
49489         * tests/test-avltree_list.c: Likewise.
49490         * tests/test-avltree_oset.c: Likewise.
49491         * tests/test-avltreehash_list.c: Likewise.
49492         * tests/test-base64.c: Likewise.
49493         * tests/test-binary-io.c: Likewise.
49494         * tests/test-byteswap.c: Likewise.
49495         * tests/test-c-ctype.c: Likewise.
49496         * tests/test-c-strcasecmp.c: Likewise.
49497         * tests/test-c-strcasestr.c: Likewise.
49498         * tests/test-c-strncasecmp.c: Likewise.
49499         * tests/test-c-strstr.c: Likewise.
49500         * tests/test-canonicalize-lgpl.c: Likewise.
49501         * tests/test-canonicalize.c: Likewise.
49502         * tests/test-carray_list.c: Likewise.
49503         * tests/test-ceilf.c: Likewise.
49504         * tests/test-ceill.c: Likewise.
49505         * tests/test-count-one-bits.c: Likewise.
49506         * tests/test-crc.c: Likewise.
49507         * tests/test-dirname.c: Likewise.
49508         * tests/test-fbufmode.c: Likewise.
49509         * tests/test-fcntl.c: Likewise.
49510         * tests/test-fflush.c: Likewise.
49511         * tests/test-floorf.c: Likewise.
49512         * tests/test-floorl.c: Likewise.
49513         * tests/test-fopen.c: Likewise.
49514         * tests/test-fprintf-posix.c: Likewise.
49515         * tests/test-fprintf-posix.h: Likewise.
49516         * tests/test-fpurge.c: Likewise.
49517         * tests/test-freadable.c: Likewise.
49518         * tests/test-freadahead.c: Likewise.
49519         * tests/test-freading.c: Likewise.
49520         * tests/test-freopen.c: Likewise.
49521         * tests/test-frexp.c: Likewise.
49522         * tests/test-frexpl.c: Likewise.
49523         * tests/test-fseek.c: Likewise.
49524         * tests/test-fseeko.c: Likewise.
49525         * tests/test-fseterr.c: Likewise.
49526         * tests/test-fstrcmp.c: Likewise.
49527         * tests/test-ftell.c: Likewise.
49528         * tests/test-ftello.c: Likewise.
49529         * tests/test-fwritable.c: Likewise.
49530         * tests/test-fwriting.c: Likewise.
49531         * tests/test-getaddrinfo.c: Likewise.
49532         * tests/test-getpass.c: Likewise.
49533         * tests/test-gettimeofday.c: Likewise.
49534         * tests/test-hmac-md5.c: Likewise.
49535         * tests/test-hmac-sha1.c: Likewise.
49536         * tests/test-iconv.c: Likewise.
49537         * tests/test-iconvme.c: Likewise.
49538         * tests/test-inttypes.c: Likewise.
49539         * tests/test-isnan.c: Likewise.
49540         * tests/test-isnanf.c: Likewise.
49541         * tests/test-isnanl-nolibm.c: Likewise.
49542         * tests/test-isnanl.c: Likewise.
49543         * tests/test-isnanl.h: Likewise.
49544         * tests/test-ldexpl.c: Likewise.
49545         * tests/test-linked_list.c: Likewise.
49546         * tests/test-linkedhash_list.c: Likewise.
49547         * tests/test-locale.c: Likewise.
49548         * tests/test-localename.c: Likewise.
49549         * tests/test-lock.c: Likewise.
49550         * tests/test-lseek.c: Likewise.
49551         * tests/test-malloca.c: Likewise.
49552         * tests/test-math.c: Likewise.
49553         * tests/test-mbscasecmp.c: Likewise.
49554         * tests/test-mbscasestr1.c: Likewise.
49555         * tests/test-mbscasestr2.c: Likewise.
49556         * tests/test-mbscasestr3.c: Likewise.
49557         * tests/test-mbscasestr4.c: Likewise.
49558         * tests/test-mbschr.c: Likewise.
49559         * tests/test-mbscspn.c: Likewise.
49560         * tests/test-mbsncasecmp.c: Likewise.
49561         * tests/test-mbspbrk.c: Likewise.
49562         * tests/test-mbspcasecmp.c: Likewise.
49563         * tests/test-mbsrchr.c: Likewise.
49564         * tests/test-mbsspn.c: Likewise.
49565         * tests/test-mbsstr1.c: Likewise.
49566         * tests/test-mbsstr2.c: Likewise.
49567         * tests/test-mbsstr3.c: Likewise.
49568         * tests/test-md5.c: Likewise.
49569         * tests/test-memmem.c: Likewise.
49570         * tests/test-netinet_in.c: Likewise.
49571         * tests/test-open.c: Likewise.
49572         * tests/test-printf-frexp.c: Likewise.
49573         * tests/test-printf-frexpl.c: Likewise.
49574         * tests/test-printf-posix.c: Likewise.
49575         * tests/test-printf-posix.h: Likewise.
49576         * tests/test-rbtree_list.c: Likewise.
49577         * tests/test-rbtree_oset.c: Likewise.
49578         * tests/test-rbtreehash_list.c: Likewise.
49579         * tests/test-read-file.c: Likewise.
49580         * tests/test-rijndael.c: Likewise.
49581         * tests/test-search.c: Likewise.
49582         * tests/test-signbit.c: Likewise.
49583         * tests/test-sleep.c: Likewise.
49584         * tests/test-snprintf-posix.c: Likewise.
49585         * tests/test-snprintf-posix.h: Likewise.
49586         * tests/test-snprintf.c: Likewise.
49587         * tests/test-sprintf-posix.c: Likewise.
49588         * tests/test-sprintf-posix.h: Likewise.
49589         * tests/test-stat-time.c: Likewise.
49590         * tests/test-stdbool.c: Likewise.
49591         * tests/test-stdint.c: Likewise.
49592         * tests/test-stdio.c: Likewise.
49593         * tests/test-stdlib.c: Likewise.
49594         * tests/test-stpncpy.c: Likewise.
49595         * tests/test-strcasestr.c: Likewise.
49596         * tests/test-striconv.c: Likewise.
49597         * tests/test-striconveh.c: Likewise.
49598         * tests/test-striconveha.c: Likewise.
49599         * tests/test-string.c: Likewise.
49600         * tests/test-sys_select.c: Likewise.
49601         * tests/test-sys_socket.c: Likewise.
49602         * tests/test-sys_stat.c: Likewise.
49603         * tests/test-sys_time.c: Likewise.
49604         * tests/test-sysexits.c: Likewise.
49605         * tests/test-time.c: Likewise.
49606         * tests/test-tls.c: Likewise.
49607         * tests/test-trunc.c: Likewise.
49608         * tests/test-truncf.c: Likewise.
49609         * tests/test-truncl.c: Likewise.
49610         * tests/test-unistd.c: Likewise.
49611         * tests/test-vasnprintf-posix.c: Likewise.
49612         * tests/test-vasnprintf-posix2.c: Likewise.
49613         * tests/test-vasnprintf.c: Likewise.
49614         * tests/test-vasprintf-posix.c: Likewise.
49615         * tests/test-vasprintf.c: Likewise.
49616         * tests/test-verify.c: Likewise.
49617         * tests/test-vfprintf-posix.c: Likewise.
49618         * tests/test-vprintf-posix.c: Likewise.
49619         * tests/test-vsnprintf-posix.c: Likewise.
49620         * tests/test-vsnprintf.c: Likewise.
49621         * tests/test-vsprintf-posix.c: Likewise.
49622         * tests/test-wchar.c: Likewise.
49623         * tests/test-wctype.c: Likewise.
49624         * tests/test-wcwidth.c: Likewise.
49625         * tests/test-xstrtol.c: Likewise.
49626         * tests/test-xvasprintf.c: Likewise.
49627         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
49628         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
49629         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49630         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49631         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49632         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
49633         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49634         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49635         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49636         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
49637         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49638         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49639         * tests/uniname/test-uninames.c: Likewise.
49640         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
49641         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
49642         * tests/unistdio/test-u16-printf1.h: Likewise.
49643         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
49644         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
49645         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
49646         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
49647         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
49648         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
49649         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
49650         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
49651         * tests/unistdio/test-u32-printf1.h: Likewise.
49652         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
49653         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
49654         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
49655         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
49656         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
49657         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
49658         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
49659         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
49660         * tests/unistdio/test-u8-printf1.h: Likewise.
49661         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
49662         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
49663         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
49664         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
49665         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
49666         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
49667         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
49668         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
49669         * tests/unistdio/test-ulc-printf1.h: Likewise.
49670         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
49671         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
49672         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
49673         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
49674         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
49675         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
49676         * tests/uniwidth/test-u16-strwidth.c: Likewise.
49677         * tests/uniwidth/test-u16-width.c: Likewise.
49678         * tests/uniwidth/test-u32-strwidth.c: Likewise.
49679         * tests/uniwidth/test-u32-width.c: Likewise.
49680         * tests/uniwidth/test-u8-strwidth.c: Likewise.
49681         * tests/uniwidth/test-u8-width.c: Likewise.
49682         * tests/uniwidth/test-uc_width.c: Likewise.
49683         * config/srclist-update: Likewise.
49684         (fixlicense): Update to GPLv3+.
49685
49686         Change copyright notice from LGPLv2.1+ to LGPLv3+.
49687         * tests/test-tsearch.c: Change copyright notice.
49688
49689         Change copyright notice from LGPLv2.0+ to LGPLv3+.
49690         * lib/c-strcaseeq.h: Change copyright notice.
49691         * lib/streq.h: Likewise.
49692         * lib/uniconv.h: Likewise.
49693         * lib/uniconv/u-conv-from-enc.h: Likewise.
49694         * lib/uniconv/u-conv-to-enc.h: Likewise.
49695         * lib/uniconv/u-strconv-from-enc.h: Likewise.
49696         * lib/uniconv/u-strconv-to-enc.h: Likewise.
49697         * lib/uniconv/u16-conv-from-enc.c: Likewise.
49698         * lib/uniconv/u16-conv-to-enc.c: Likewise.
49699         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
49700         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
49701         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
49702         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
49703         * lib/uniconv/u32-conv-from-enc.c: Likewise.
49704         * lib/uniconv/u32-conv-to-enc.c: Likewise.
49705         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
49706         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
49707         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
49708         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
49709         * lib/uniconv/u8-conv-from-enc.c: Likewise.
49710         * lib/uniconv/u8-conv-to-enc.c: Likewise.
49711         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
49712         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
49713         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
49714         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
49715         * lib/uniname.h: Likewise.
49716         * lib/uniname/uniname.c: Likewise.
49717         * lib/unistdio.h: Likewise.
49718         * lib/unistdio/u-asnprintf.h: Likewise.
49719         * lib/unistdio/u-asprintf.h: Likewise.
49720         * lib/unistdio/u-printf-args.c: Likewise.
49721         * lib/unistdio/u-printf-args.h: Likewise.
49722         * lib/unistdio/u-printf-parse.h: Likewise.
49723         * lib/unistdio/u-snprintf.h: Likewise.
49724         * lib/unistdio/u-sprintf.h: Likewise.
49725         * lib/unistdio/u-vasprintf.h: Likewise.
49726         * lib/unistdio/u-vsnprintf.h: Likewise.
49727         * lib/unistdio/u-vsprintf.h: Likewise.
49728         * lib/unistdio/u16-asnprintf.c: Likewise.
49729         * lib/unistdio/u16-asprintf.c: Likewise.
49730         * lib/unistdio/u16-printf-parse.c: Likewise.
49731         * lib/unistdio/u16-snprintf.c: Likewise.
49732         * lib/unistdio/u16-sprintf.c: Likewise.
49733         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
49734         * lib/unistdio/u16-u16-asprintf.c: Likewise.
49735         * lib/unistdio/u16-u16-snprintf.c: Likewise.
49736         * lib/unistdio/u16-u16-sprintf.c: Likewise.
49737         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
49738         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
49739         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
49740         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
49741         * lib/unistdio/u16-vasnprintf.c: Likewise.
49742         * lib/unistdio/u16-vasprintf.c: Likewise.
49743         * lib/unistdio/u16-vsnprintf.c: Likewise.
49744         * lib/unistdio/u16-vsprintf.c: Likewise.
49745         * lib/unistdio/u32-asnprintf.c: Likewise.
49746         * lib/unistdio/u32-asprintf.c: Likewise.
49747         * lib/unistdio/u32-printf-parse.c: Likewise.
49748         * lib/unistdio/u32-snprintf.c: Likewise.
49749         * lib/unistdio/u32-sprintf.c: Likewise.
49750         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
49751         * lib/unistdio/u32-u32-asprintf.c: Likewise.
49752         * lib/unistdio/u32-u32-snprintf.c: Likewise.
49753         * lib/unistdio/u32-u32-sprintf.c: Likewise.
49754         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
49755         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
49756         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
49757         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
49758         * lib/unistdio/u32-vasnprintf.c: Likewise.
49759         * lib/unistdio/u32-vasprintf.c: Likewise.
49760         * lib/unistdio/u32-vsnprintf.c: Likewise.
49761         * lib/unistdio/u32-vsprintf.c: Likewise.
49762         * lib/unistdio/u8-asnprintf.c: Likewise.
49763         * lib/unistdio/u8-asprintf.c: Likewise.
49764         * lib/unistdio/u8-printf-parse.c: Likewise.
49765         * lib/unistdio/u8-snprintf.c: Likewise.
49766         * lib/unistdio/u8-sprintf.c: Likewise.
49767         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
49768         * lib/unistdio/u8-u8-asprintf.c: Likewise.
49769         * lib/unistdio/u8-u8-snprintf.c: Likewise.
49770         * lib/unistdio/u8-u8-sprintf.c: Likewise.
49771         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
49772         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
49773         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
49774         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
49775         * lib/unistdio/u8-vasnprintf.c: Likewise.
49776         * lib/unistdio/u8-vasprintf.c: Likewise.
49777         * lib/unistdio/u8-vsnprintf.c: Likewise.
49778         * lib/unistdio/u8-vsprintf.c: Likewise.
49779         * lib/unistdio/ulc-asnprintf.c: Likewise.
49780         * lib/unistdio/ulc-asprintf.c: Likewise.
49781         * lib/unistdio/ulc-printf-parse.c: Likewise.
49782         * lib/unistdio/ulc-snprintf.c: Likewise.
49783         * lib/unistdio/ulc-sprintf.c: Likewise.
49784         * lib/unistdio/ulc-vasnprintf.c: Likewise.
49785         * lib/unistdio/ulc-vasprintf.c: Likewise.
49786         * lib/unistdio/ulc-vsnprintf.c: Likewise.
49787         * lib/unistdio/ulc-vsprintf.c: Likewise.
49788         * lib/unistr.h: Likewise.
49789         * lib/unistr/u-cpy-alloc.h: Likewise.
49790         * lib/unistr/u-cpy.h: Likewise.
49791         * lib/unistr/u-endswith.h: Likewise.
49792         * lib/unistr/u-move.h: Likewise.
49793         * lib/unistr/u-set.h: Likewise.
49794         * lib/unistr/u-startswith.h: Likewise.
49795         * lib/unistr/u-stpcpy.h: Likewise.
49796         * lib/unistr/u-stpncpy.h: Likewise.
49797         * lib/unistr/u-strcat.h: Likewise.
49798         * lib/unistr/u-strcpy.h: Likewise.
49799         * lib/unistr/u-strcspn.h: Likewise.
49800         * lib/unistr/u-strdup.h: Likewise.
49801         * lib/unistr/u-strlen.h: Likewise.
49802         * lib/unistr/u-strncat.h: Likewise.
49803         * lib/unistr/u-strncpy.h: Likewise.
49804         * lib/unistr/u-strnlen.h: Likewise.
49805         * lib/unistr/u-strpbrk.h: Likewise.
49806         * lib/unistr/u-strspn.h: Likewise.
49807         * lib/unistr/u-strstr.h: Likewise.
49808         * lib/unistr/u-strtok.h: Likewise.
49809         * lib/unistr/u16-check.c: Likewise.
49810         * lib/unistr/u16-chr.c: Likewise.
49811         * lib/unistr/u16-cmp.c: Likewise.
49812         * lib/unistr/u16-cpy-alloc.c: Likewise.
49813         * lib/unistr/u16-cpy.c: Likewise.
49814         * lib/unistr/u16-endswith.c: Likewise.
49815         * lib/unistr/u16-mblen.c: Likewise.
49816         * lib/unistr/u16-mbsnlen.c: Likewise.
49817         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49818         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49819         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49820         * lib/unistr/u16-mbtouc.c: Likewise.
49821         * lib/unistr/u16-mbtoucr.c: Likewise.
49822         * lib/unistr/u16-move.c: Likewise.
49823         * lib/unistr/u16-next.c: Likewise.
49824         * lib/unistr/u16-prev.c: Likewise.
49825         * lib/unistr/u16-set.c: Likewise.
49826         * lib/unistr/u16-startswith.c: Likewise.
49827         * lib/unistr/u16-stpcpy.c: Likewise.
49828         * lib/unistr/u16-stpncpy.c: Likewise.
49829         * lib/unistr/u16-strcat.c: Likewise.
49830         * lib/unistr/u16-strchr.c: Likewise.
49831         * lib/unistr/u16-strcmp.c: Likewise.
49832         * lib/unistr/u16-strcpy.c: Likewise.
49833         * lib/unistr/u16-strcspn.c: Likewise.
49834         * lib/unistr/u16-strdup.c: Likewise.
49835         * lib/unistr/u16-strlen.c: Likewise.
49836         * lib/unistr/u16-strmblen.c: Likewise.
49837         * lib/unistr/u16-strmbtouc.c: Likewise.
49838         * lib/unistr/u16-strncat.c: Likewise.
49839         * lib/unistr/u16-strncmp.c: Likewise.
49840         * lib/unistr/u16-strncpy.c: Likewise.
49841         * lib/unistr/u16-strnlen.c: Likewise.
49842         * lib/unistr/u16-strpbrk.c: Likewise.
49843         * lib/unistr/u16-strrchr.c: Likewise.
49844         * lib/unistr/u16-strspn.c: Likewise.
49845         * lib/unistr/u16-strstr.c: Likewise.
49846         * lib/unistr/u16-strtok.c: Likewise.
49847         * lib/unistr/u16-to-u32.c: Likewise.
49848         * lib/unistr/u16-to-u8.c: Likewise.
49849         * lib/unistr/u16-uctomb-aux.c: Likewise.
49850         * lib/unistr/u16-uctomb.c: Likewise.
49851         * lib/unistr/u32-check.c: Likewise.
49852         * lib/unistr/u32-chr.c: Likewise.
49853         * lib/unistr/u32-cmp.c: Likewise.
49854         * lib/unistr/u32-cpy-alloc.c: Likewise.
49855         * lib/unistr/u32-cpy.c: Likewise.
49856         * lib/unistr/u32-endswith.c: Likewise.
49857         * lib/unistr/u32-mblen.c: Likewise.
49858         * lib/unistr/u32-mbsnlen.c: Likewise.
49859         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49860         * lib/unistr/u32-mbtouc.c: Likewise.
49861         * lib/unistr/u32-mbtoucr.c: Likewise.
49862         * lib/unistr/u32-move.c: Likewise.
49863         * lib/unistr/u32-next.c: Likewise.
49864         * lib/unistr/u32-prev.c: Likewise.
49865         * lib/unistr/u32-set.c: Likewise.
49866         * lib/unistr/u32-startswith.c: Likewise.
49867         * lib/unistr/u32-stpcpy.c: Likewise.
49868         * lib/unistr/u32-stpncpy.c: Likewise.
49869         * lib/unistr/u32-strcat.c: Likewise.
49870         * lib/unistr/u32-strchr.c: Likewise.
49871         * lib/unistr/u32-strcmp.c: Likewise.
49872         * lib/unistr/u32-strcpy.c: Likewise.
49873         * lib/unistr/u32-strcspn.c: Likewise.
49874         * lib/unistr/u32-strdup.c: Likewise.
49875         * lib/unistr/u32-strlen.c: Likewise.
49876         * lib/unistr/u32-strmblen.c: Likewise.
49877         * lib/unistr/u32-strmbtouc.c: Likewise.
49878         * lib/unistr/u32-strncat.c: Likewise.
49879         * lib/unistr/u32-strncmp.c: Likewise.
49880         * lib/unistr/u32-strncpy.c: Likewise.
49881         * lib/unistr/u32-strnlen.c: Likewise.
49882         * lib/unistr/u32-strpbrk.c: Likewise.
49883         * lib/unistr/u32-strrchr.c: Likewise.
49884         * lib/unistr/u32-strspn.c: Likewise.
49885         * lib/unistr/u32-strstr.c: Likewise.
49886         * lib/unistr/u32-strtok.c: Likewise.
49887         * lib/unistr/u32-to-u16.c: Likewise.
49888         * lib/unistr/u32-to-u8.c: Likewise.
49889         * lib/unistr/u32-uctomb.c: Likewise.
49890         * lib/unistr/u8-check.c: Likewise.
49891         * lib/unistr/u8-chr.c: Likewise.
49892         * lib/unistr/u8-cmp.c: Likewise.
49893         * lib/unistr/u8-cpy-alloc.c: Likewise.
49894         * lib/unistr/u8-cpy.c: Likewise.
49895         * lib/unistr/u8-endswith.c: Likewise.
49896         * lib/unistr/u8-mblen.c: Likewise.
49897         * lib/unistr/u8-mbsnlen.c: Likewise.
49898         * lib/unistr/u8-mbtouc-aux.c: Likewise.
49899         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49900         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49901         * lib/unistr/u8-mbtouc.c: Likewise.
49902         * lib/unistr/u8-mbtoucr.c: Likewise.
49903         * lib/unistr/u8-move.c: Likewise.
49904         * lib/unistr/u8-next.c: Likewise.
49905         * lib/unistr/u8-prev.c: Likewise.
49906         * lib/unistr/u8-set.c: Likewise.
49907         * lib/unistr/u8-startswith.c: Likewise.
49908         * lib/unistr/u8-stpcpy.c: Likewise.
49909         * lib/unistr/u8-stpncpy.c: Likewise.
49910         * lib/unistr/u8-strcat.c: Likewise.
49911         * lib/unistr/u8-strchr.c: Likewise.
49912         * lib/unistr/u8-strcmp.c: Likewise.
49913         * lib/unistr/u8-strcpy.c: Likewise.
49914         * lib/unistr/u8-strcspn.c: Likewise.
49915         * lib/unistr/u8-strdup.c: Likewise.
49916         * lib/unistr/u8-strlen.c: Likewise.
49917         * lib/unistr/u8-strmblen.c: Likewise.
49918         * lib/unistr/u8-strmbtouc.c: Likewise.
49919         * lib/unistr/u8-strncat.c: Likewise.
49920         * lib/unistr/u8-strncmp.c: Likewise.
49921         * lib/unistr/u8-strncpy.c: Likewise.
49922         * lib/unistr/u8-strnlen.c: Likewise.
49923         * lib/unistr/u8-strpbrk.c: Likewise.
49924         * lib/unistr/u8-strrchr.c: Likewise.
49925         * lib/unistr/u8-strspn.c: Likewise.
49926         * lib/unistr/u8-strstr.c: Likewise.
49927         * lib/unistr/u8-strtok.c: Likewise.
49928         * lib/unistr/u8-to-u16.c: Likewise.
49929         * lib/unistr/u8-to-u32.c: Likewise.
49930         * lib/unistr/u8-uctomb-aux.c: Likewise.
49931         * lib/unistr/u8-uctomb.c: Likewise.
49932         * lib/unitypes.h: Likewise.
49933         * lib/uniwidth.h: Likewise.
49934         * lib/uniwidth/cjk.h: Likewise.
49935         * lib/uniwidth/u16-strwidth.c: Likewise.
49936         * lib/uniwidth/u16-width.c: Likewise.
49937         * lib/uniwidth/u32-strwidth.c: Likewise.
49938         * lib/uniwidth/u32-width.c: Likewise.
49939         * lib/uniwidth/u8-strwidth.c: Likewise.
49940         * lib/uniwidth/u8-width.c: Likewise.
49941         * lib/uniwidth/width.c: Likewise.
49942
49943 2007-10-07  Bruno Haible  <bruno@clisp.org>
49944
49945         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
49946         The file is still under LGPL (see modules/inttypes).
49947
49948 2007-10-06  Bruno Haible  <bruno@clisp.org>
49949
49950         * modules/trunc (Dependencies): Add 'extensions'.
49951         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
49952         Reported by Ben Pfaff <blp@gnu.org>.
49953
49954 2007-10-06  Bruno Haible  <bruno@clisp.org>
49955
49956         * modules/freopen-tests: New file.
49957         * tests/test-freopen.c: New file.
49958
49959         * modules/fopen-tests: New file.
49960         * tests/test-fopen.c: New file.
49961
49962         * modules/fopen: New file.
49963         * lib/fopen.c: New file.
49964         * m4/fopen.m4: New file.
49965         * modules/freopen: New file.
49966         * lib/freopen.c: New file.
49967         * m4/freopen.m4: New file.
49968         * lib/stdio.in.h (fopen, freopen): New declarations.
49969         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
49970         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49971         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
49972         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49973         * doc/functions/fopen.texi: Mention the 'fopen' module.
49974         * doc/functions/freopen.texi: Mention the 'freopen' module.
49975
49976 2007-10-06  Bruno Haible  <bruno@clisp.org>
49977
49978         * modules/open-tests: New file.
49979         * tests/test-open.c: New file.
49980
49981         * modules/open: New file.
49982         * lib/open.c: New file.
49983         * m4/open.m4: New file.
49984         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
49985         lib/open.c does.
49986         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
49987         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
49988         macros.
49989         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
49990         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
49991         REPLACE_OPEN.
49992         * doc/functions/open.texi: Mention the 'open' module.
49993
49994 2007-10-04  Bruno Haible  <bruno@clisp.org>
49995
49996         * modules/ceill-tests: New file.
49997         * tests/test-ceill.c: New file.
49998
49999         * modules/ceill: New file.
50000         * lib/ceill.c: Replace entire file.
50001         * m4/ceill.m4: New file.
50002         * lib/math.in.h (ceill): Replace declaration.
50003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
50004         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
50005         * doc/functions/ceill.texi: Mention the 'ceill' module.
50006         * modules/mathl (Files): Remove lib/ceill.c.
50007         (Depends-on): Add ceill.
50008
50009 2007-10-04  Bruno Haible  <bruno@clisp.org>
50010
50011         * modules/ceilf-tests: New file.
50012         * tests/test-ceilf.c: New file.
50013
50014         * modules/ceilf: New file.
50015         * lib/ceil.c: New file.
50016         * lib/ceilf.c: New file.
50017         * m4/ceilf.m4: New file.
50018         * lib/math.in.h (ceilf): New declaration.
50019         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
50020         HAVE_DECL_CEILF.
50021         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
50022         HAVE_DECL_CEILF.
50023         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
50024
50025 2007-10-04  Bruno Haible  <bruno@clisp.org>
50026
50027         * modules/floorl-tests: New file.
50028         * tests/test-floorl.c: New file.
50029
50030         * modules/floorl: New file.
50031         * lib/floorl.c: Replace entire file.
50032         * m4/floorl.m4: New file.
50033         * lib/math.in.h (floorl): Replace declaration.
50034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
50035         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
50036         * doc/functions/floorl.texi: Mention the 'floorl' module.
50037         * modules/mathl (Files): Remove lib/floorl.c.
50038         (Depends-on): Add floorl.
50039
50040 2007-10-04  Bruno Haible  <bruno@clisp.org>
50041
50042         * modules/floorf-tests: New file.
50043         * tests/test-floorf.c: New file.
50044
50045         * modules/floorf: New file.
50046         * lib/floor.c: New file.
50047         * lib/floorf.c: New file.
50048         * m4/floorf.m4: New file.
50049         * lib/math.in.h (floorf): New declaration.
50050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
50051         HAVE_DECL_FLOORF.
50052         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
50053         HAVE_DECL_FLOORF.
50054         * doc/functions/floorf.texi: Mention the 'floorf' module.
50055
50056 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
50057             Bruno Haible  <bruno@clisp.org>
50058
50059         Advertise for the Git server instead of the CVS server.
50060         * doc/gnulib-intro.texi (Steady Development): Mention the Git
50061         repository instead of the CVS one.
50062         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
50063         about all VCS systems generically.
50064         * doc/gnulib.texi (Introduction): Capitalize `Git'.
50065
50066 2007-10-04  Bruno Haible  <bruno@clisp.org>
50067
50068         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
50069         means.
50070         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
50071
50072 2007-10-04  Bruno Haible  <bruno@clisp.org>
50073
50074         * modules/truncl-tests: New file.
50075         * tests/test-truncl.c: New file.
50076
50077         * modules/truncl: New file.
50078         * lib/truncl.c: New file.
50079         * m4/truncl.m4: New file.
50080         * lib/math.in.h (truncl): New declaration.
50081         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
50082         HAVE_DECL_TRUNCL.
50083         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
50084         HAVE_DECL_TRUNCL.
50085         * doc/functions/truncl.texi: Mention the 'truncl' module.
50086
50087 2007-10-04  Bruno Haible  <bruno@clisp.org>
50088
50089         * modules/truncf-tests: New file.
50090         * tests/test-truncf.c: New file.
50091
50092         * modules/truncf: New file.
50093         * lib/trunc.c: Make paramerizable through USE_* macros.
50094         * lib/truncf.c: New file.
50095         * m4/truncf.m4: New file.
50096         * lib/math.in.h (truncf): New declaration.
50097         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
50098         HAVE_DECL_TRUNCF.
50099         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
50100         HAVE_DECL_TRUNCF.
50101         * doc/functions/truncf.texi: Mention the 'truncf' module.
50102
50103 2007-10-03  Bruno Haible  <bruno@clisp.org>
50104
50105         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
50106         augmentation also for tests modules.
50107         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
50108         * modules/atexit-tests (Makefile.am): Likewise.
50109         * modules/binary-io-tests (Makefile.am): Likewise.
50110         * modules/c-strcase-tests (Makefile.am): Likewise.
50111         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
50112         * modules/canonicalize-tests (Makefile.am): Likewise.
50113         * modules/closein-tests (Makefile.am): Likewise.
50114         * modules/fprintf-posix-tests (Makefile.am): Likewise.
50115         * modules/freadahead-tests (Makefile.am): Likewise.
50116         * modules/fseek-tests (Makefile.am): Likewise.
50117         * modules/fseeko-tests (Makefile.am): Likewise.
50118         * modules/ftell-tests (Makefile.am): Likewise.
50119         * modules/ftello-tests (Makefile.am): Likewise.
50120         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
50121         * modules/isnanl-tests (Makefile.am): Likewise.
50122         * modules/lseek-tests (Makefile.am): Likewise.
50123         * modules/mbscasecmp-tests (Makefile.am): Likewise.
50124         * modules/mbscasestr-tests (Makefile.am): Likewise.
50125         * modules/mbschr-tests (Makefile.am): Likewise.
50126         * modules/mbscspn-tests (Makefile.am): Likewise.
50127         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
50128         * modules/mbspbrk-tests (Makefile.am): Likewise.
50129         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
50130         * modules/mbsrchr-tests (Makefile.am): Likewise.
50131         * modules/mbsspn-tests (Makefile.am): Likewise.
50132         * modules/mbsstr-tests (Makefile.am): Likewise.
50133         * modules/printf-posix-tests (Makefile.am): Likewise.
50134         * modules/snprintf-posix-tests (Makefile.am): Likewise.
50135         * modules/sprintf-posix-tests (Makefile.am): Likewise.
50136         * modules/tsearch-tests (Makefile.am): Likewise.
50137         * modules/uniname/uniname-tests (Makefile.am): Likewise.
50138         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
50139         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
50140         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
50141         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
50142         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
50143         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
50144         * modules/vprintf-posix-tests (Makefile.am): Likewise.
50145         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
50146         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
50147         * modules/xstrtoimax-tests (Makefile.am): Likewise.
50148         * modules/xstrtol-tests (Makefile.am): Likewise.
50149         * modules/xstrtoumax-tests (Makefile.am): Likewise.
50150         * modules/yesno-tests (Makefile.am): Likewise.
50151
50152 2007-10-03  Bruno Haible  <bruno@clisp.org>
50153
50154         * modules/trunc-tests: New file.
50155         * tests/test-trunc.c: New file.
50156
50157         * modules/trunc: New file.
50158         * lib/trunc.c: New file.
50159         * m4/trunc.m4: New file.
50160         * lib/math.in.h (trunc): New declaration.
50161         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
50162         HAVE_DECL_TRUNC.
50163         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
50164         HAVE_DECL_TRUNC.
50165         * doc/functions/trunc.texi: Mention the 'trunc' module.
50166
50167 2007-10-03  Bruno Haible  <bruno@clisp.org>
50168
50169         * tests/test-fpending.c: New file, mostly copied
50170         from coreutils/lib/t-fpending.c.
50171         * modules/fpending-tests: New file.
50172
50173 2007-10-03  Bruno Haible  <bruno@clisp.org>
50174
50175         Port the stdio extensions to QNX (untested).
50176         * lib/fseterr.c (fseterr): Add support for QNX.
50177         * lib/fbufmode.c (fbufmode): Likewise.
50178         * lib/freadable.c (freadable): Likewise.
50179         * lib/fwritable.c (fwritable): Likewise.
50180         * lib/freading.c (freading): Likewise.
50181         * lib/fwriting.c (fwriting): Likewise.
50182         * lib/freadahead.c (freadahed): Likewise.
50183         * lib/fpurge.c (fpurge): Likewise.
50184         * lib/fseeko.c (rpl_fseeko): Likewise.
50185
50186 2007-10-03  Bruno Haible  <bruno@clisp.org>
50187             Jim Meyering  <jim@meyering.net>
50188             Eric Blake  <ebb9@byu.net>
50189
50190         * doc/relocatable.texi: Use @command instead of @program.
50191
50192 2007-10-02  Jim Meyering  <jim@meyering.net>
50193
50194         Perform one more "_.h" -> ".in.h" substitution.
50195         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
50196         instead of unistd_.h here, too.
50197
50198 2007-10-01  Bruno Haible  <bruno@clisp.org>
50199
50200         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
50201         Needed for the alloca-opt module.
50202
50203 2007-09-30  Bruno Haible  <bruno@clisp.org>
50204
50205         * lib/alloca.in.h: Renamed from lib/alloca_.h.
50206         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
50207         alloca_.h.
50208         * lib/argz.in.h: Renamed from lib/argz_.h.
50209         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
50210         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
50211         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
50212         byteswap_.h.
50213         * lib/dirent.in.h: Renamed from lib/dirent_.h.
50214         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
50215         dirent_.h.
50216         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
50217         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
50218         fcntl_.h.
50219         * lib/float.in.h: Renamed from lib/float_.h.
50220         * modules/float (Files, Makefile.am): Use float.in.h instead of
50221         float_.h.
50222         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
50223         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
50224         fnmatch_.h.
50225         * lib/getopt.in.h: Renamed from lib/getopt_.h.
50226         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
50227         getopt_.h.
50228         * lib/glob.in.h: Renamed from lib/glob_.h.
50229         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
50230         * lib/iconv.in.h: Renamed from lib/iconv_.h.
50231         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
50232         iconv_.h.
50233         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
50234         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
50235         inttypes_.h.
50236         * lib/locale.in.h: Renamed from lib/locale_.h.
50237         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
50238         locale_.h.
50239         * lib/math.in.h: Renamed from lib/math_.h.
50240         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
50241         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
50242         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
50243         of netinet_in_.h. Add dependency.
50244         * lib/poll.in.h: Renamed from lib/poll_.h.
50245         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
50246         * lib/search.in.h: Renamed from lib/search_.h.
50247         * modules/search (Files, Makefile.am): Use search.in.h instead of
50248         search_.h.
50249         * lib/signal.in.h: Renamed from lib/signal_.h.
50250         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
50251         _signal.h.
50252         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
50253         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
50254         stdbool_.h.
50255         * lib/stdint.in.h: Renamed from lib/stdint_.h.
50256         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
50257         stdint_.h.
50258         * lib/stdio.in.h: Renamed from lib/stdio_.h.
50259         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
50260         stdio_.h.
50261         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
50262         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
50263         stdlib_.h.
50264         * lib/string.in.h: Renamed from lib/string_.h.
50265         * modules/string (Files, Makefile.am): Use string.in.h instead of
50266         string_.h.
50267         * doc/gnulib-tool.texi (Initial import): Update.
50268         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
50269         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
50270         of sys_select_.h. Add dependency.
50271         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
50272         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
50273         of sys_socket_.h.
50274         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
50275         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
50276         sys_stat_.h.
50277         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
50278         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
50279         sys_time_.h.
50280         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
50281         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
50282         sysexits_.h.
50283         * lib/time.in.h: Renamed from lib/time_.h.
50284         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
50285         * lib/unistd.in.h: Renamed from lib/unistd_.h.
50286         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
50287         unistd_.h.
50288         * lib/wchar.in.h: Renamed from lib/wchar_.h.
50289         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
50290         wchar_.h.
50291         * lib/wctype.in.h: Renamed from lib/wctype_.h.
50292         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
50293         wctype_.h.
50294         * build-aux/bootstrap (slurp): Update.
50295         * lib/.cppi-disable: Update.
50296
50297 2007-09-30  Bruno Haible  <bruno@clisp.org>
50298
50299         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
50300         Needed on BeOS.
50301
50302 2007-09-30  Bruno Haible  <bruno@clisp.org>
50303
50304         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
50305
50306 2007-09-29  Bruno Haible  <bruno@clisp.org>
50307
50308         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
50309
50310 2007-09-29  Bruno Haible  <bruno@clisp.org>
50311
50312         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
50313         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
50314         * build-aux/install-reloc: Compile also areadlink.c.
50315         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
50316
50317 2007-09-29  Bruno Haible  <bruno@clisp.org>
50318
50319         * gnulib-tool (func_emit_initmacro_done): Indentation.
50320
50321 2007-09-29  Bruno Haible  <bruno@clisp.org>
50322
50323         * README: Add CVS checkout update instructions.
50324         Info from Bob Proulx <bob@proulx.com>.
50325
50326 2007-09-28  Eric Blake  <ebb9@byu.net>
50327
50328         Provide move-if-change.
50329         * build-aux/move-if-change: New file, based on best practice
50330         rather than any canonical upstream location.
50331
50332 2007-09-28  Jim Meyering  <jim@meyering.net>
50333
50334         Fix canonicalize loop-detection corner case.
50335         Do not attempt to stat the symlink values stored via seen_triple.
50336         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
50337         on linux-2.6.18, (but not 2.6.22).
50338         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
50339         triple_compare.  The former compares dev,ino,filename, while the latter
50340         would actually stat dirname(filename) when dev and ino were equal.
50341         * lib/hash-triple.c: Install <string.h>.
50342         (STREQ): Define.
50343         (triple_compare_ino_str): New function.
50344         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
50345
50346 2007-09-28  Eric Blake  <ebb9@byu.net>
50347
50348         Enforce that AC_REPLACE_FUNCS files exist.
50349         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
50350         override check for typos.
50351
50352         Fix test-closein on Solaris 10.
50353         * tests/test-closein.c (main): Don't assume stdin can be inherited
50354         closed on all systems.
50355         * tests/test-closein.sh: Likewise.
50356         Reported by Piotr Tarnowski.
50357
50358 2007-09-28  Jim Meyering  <jim@meyering.net>
50359
50360         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
50361
50362 2007-09-27  Jim Meyering  <jim@meyering.net>
50363
50364         canonicalize: Avoid a false-positive cycle failure.
50365         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
50366         Sort.  Remove cycle-check.
50367         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
50368         not cycle-check.h.
50369         (seen_triple): New function.
50370         (canonicalize_filename_mode): Use it instead of cycle-check.
50371         * tests/test-canonicalize.c: Add a test for this bug.
50372         * tests/test-canonicalize.sh: Set up and run the test.
50373
50374         New module, file-set, from coreutils.
50375         * modules/file-set: Define it.
50376         * lib/file-set.c, lib/file-set.h: Implement.
50377
50378         New module, hash-triple, from coreutils.
50379         * modules/hash-triple: Define it.
50380         * lib/hash-triple.c, lib/hash-triple.h: Implement.
50381
50382 2007-09-25  Eric Blake  <ebb9@byu.net>
50383
50384         Fix strerror on Interix.
50385         * lib/string_.h (strerror): Declare replacement.
50386         * doc/functions/strerror.texi (strerror): Document the Interix
50387         shortcoming.
50388         * modules/string (Makefile.am): Support new hooks.
50389         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
50390         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
50391         gl_FUNC_STRERROR_SEPARATE.
50392         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
50393         * lib/strerror.c (rpl_strerror): Provide replacement.
50394         * modules/strerror (Depends-on): Add string.
50395         (configure.ac): Detect use of module.
50396         * tests/test-strerror.c: New file.
50397         * modules/strerror-tests: New test module.
50398         * modules/argp (Depends-on): Add strerror.
50399         * modules/error (Depends-on): Likewise.
50400         Reported by Martin Koeppe.
50401
50402 2007-09-24  Bruno Haible  <bruno@clisp.org>
50403
50404         * README: Update git instructions.
50405
50406 2007-09-24  Eric Blake  <ebb9@byu.net>
50407
50408         Revert fpending breakage from 2007-09-08.
50409         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
50410         __fpending.c.
50411
50412 2007-09-24  Jim Meyering  <jim@meyering.net>
50413
50414         filenamecat.c: Add a test.
50415         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
50416         showing how the function works when DIR is the empty string.
50417
50418 2007-09-21  Simon Josefsson  <simon@josefsson.org>
50419
50420         * tests/test-canonicalize.sh: Turn on executable bit.
50421
50422 2007-09-19  Eric Blake  <ebb9@byu.net>
50423
50424         * README: Update CVS instructions.
50425
50426 2007-09-18  Bruno Haible  <bruno@clisp.org>
50427
50428         * modules/areadlink: New file.
50429         * lib/areadlink.h (areadlink): New declaration.
50430         * lib/areadlink.c: New file, based on lib/xreadlink.c.
50431
50432 2007-09-17  Jim Meyering  <jim@meyering.net>
50433
50434         * lib/savewd.c (ESTALE) [!defined]: Define.
50435         Reported to be required on Interix by Martin Koeppe.
50436
50437 2007-09-17  Bruno Haible  <bruno@clisp.org>
50438
50439         * gnulib-tool (func_version): Use $version.
50440
50441 2007-09-16  Bruno Haible  <bruno@clisp.org>
50442
50443         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
50444         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
50445         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
50446         Reported by Greg Schafer <gschafer@zip.com.au>.
50447
50448 2007-09-15  Bruno Haible  <bruno@clisp.org>
50449
50450         * gnulib-tool (sed): Try a little harder to make bash understand the
50451         alias.
50452         Reported by Bruce Korb <bruce.korb@gmail.com>.
50453
50454 2007-09-13  Eric Blake  <ebb9@byu.net>
50455
50456         * ChangeLog: Remove conflict markers.
50457
50458 2007-09-13  Simon Josefsson  <simon@josefsson.org>
50459
50460         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
50461         Reported by Bruno Haible <bruno@clisp.org>.
50462
50463 2007-09-12  Bruno Haible  <bruno@clisp.org>
50464
50465         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
50466         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
50467         is not defined.
50468
50469 2007-09-12  Eric Blake  <ebb9@byu.net>
50470
50471         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
50472         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
50473         Autoconf definition.
50474         * modules/euidaccess (Depends-on): Add extensions, for
50475         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
50476         * modules/fnmatch (Depends-on): Likewise.
50477         * modules/getaddrinfo (Depends-on): Likewise.
50478         * modules/getdelim (Depends-on): Likewise.
50479         * modules/getline (Depends-on): Likewise.
50480         * modules/getsubopt (Depends-on): Likewise.
50481         * modules/gettext (Depends-on): Likewise.
50482         * modules/group-member (Depends-on): Likewise.
50483         * modules/mbchar (Depends-on): Likewise.
50484         * modules/memmem (Depends-on): Likewise.
50485         * modules/mempcpy (Depends-on): Likewise.
50486         * modules/memrchr (Depends-on): Likewise.
50487         * modules/pagealign_alloc (Depends-on): Likewise.
50488         * modules/readutmp (Depends-on): Likewise.
50489         * modules/stpcpy (Depends-on): Likewise.
50490         * modules/stpncpy (Depends-on): Likewise.
50491         * modules/strchrnul (Depends-on): Likewise.
50492         * modules/strndup (Depends-on): Likewise.
50493         * modules/strsep (Depends-on): Likewise.
50494         * modules/strverscmp (Depends-on): Likewise.
50495         * modules/vasprintf (Depends-on): Likewise.
50496         * modules/wcwidth (Depends-on): Likewise.
50497         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
50498         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
50499         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
50500         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
50501         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
50502         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
50503         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
50504         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50505         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
50506         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
50507         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50508         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
50509         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
50510         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
50511         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
50512         * m4/readutmp.m4 (gl_READUTMP): Likewise.
50513         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50514         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
50515         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50516         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
50517         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50518         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
50519         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
50520         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
50521         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
50522         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50523         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
50524         so that lock.m4 can be used in gettext without extensions module.
50525
50526 2007-09-11  Bruno Haible  <bruno@clisp.org>
50527
50528         * m4/isc-posix.m4: Remove file.
50529         Suggested by Eric Blake.
50530
50531 2007-09-11  Eric Blake  <ebb9@byu.net>
50532
50533         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
50534
50535 2007-09-10  Bruno Haible  <bruno@clisp.org>
50536
50537         * posix-modules: Fix typo in error message.
50538         Reported by Matt <mkraai@beckman.com>.
50539
50540 2007-09-09  Bruno Haible  <bruno@clisp.org>
50541
50542         * doc/functions/getdelim.texi: Update list of platforms lacking the
50543         function.
50544         * doc/functions/getline.texi: Likewise.
50545
50546 2007-09-09  Jim Meyering  <jim@meyering.net>
50547
50548         * lib/hash.c (hash_initialize): Detect calloc failure.
50549         Reported by Bruno Haible.
50550
50551 2007-09-09  Bruno Haible  <bruno@clisp.org>
50552
50553         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
50554         malloc or realloc fails.
50555
50556 2007-09-09  Bruno Haible  <bruno@clisp.org>
50557
50558         * modules/getcwd (Depends-on): Add malloc-posix.
50559         * modules/glob (Depends-on): Likewise.
50560         * modules/putenv (Depends-on): Likewise.
50561         * modules/strdup (Depends-on): Likewise.
50562         * modules/getdelim (Depends-on): Add realloc-posix.
50563         * modules/read-file (Depends-on): Likewise.
50564
50565 2007-09-09  Bruno Haible  <bruno@clisp.org>
50566
50567         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
50568         (gl_FUNC_MALLOC_POSIX): Require it.
50569         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
50570         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
50571         * modules/realloc (Files): Add m4/malloc.m4.
50572         * modules/calloc (Files): Likewise.
50573
50574 2007-09-09  Bruno Haible  <bruno@clisp.org>
50575
50576         * modules/malloc-posix: New file.
50577         * modules/malloc (Depends-on): Add malloc-posix.
50578         * lib/malloc.c: Include errno.h.
50579         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
50580         and a POSIX-compatible malloc into a single function. Set ENOMEM
50581         when returning NULL.
50582         * m4/malloc.m4: New file.
50583         * doc/functions/malloc.texi: Mention the malloc-posix module.
50584         * lib/stdlib_.h (malloc): New declaration.
50585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50586         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
50587         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
50588         and HAVE_MALLOC_POSIX.
50589
50590 2007-09-09  Bruno Haible  <bruno@clisp.org>
50591
50592         * modules/realloc-posix: New file.
50593         * modules/realloc (Depends-on): Add realloc-posix.
50594         * lib/realloc.c: Include errno.h.
50595         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
50596         and a POSIX-compatible realloc into a single function. Set ENOMEM
50597         when returning NULL.
50598         * m4/realloc.m4: New file.
50599         * doc/functions/realloc.texi: Mention the realloc-posix module.
50600         * lib/stdlib_.h (realloc): New declaration.
50601         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50602         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
50603         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
50604         and HAVE_REALLOC_POSIX.
50605
50606 2007-09-09  Bruno Haible  <bruno@clisp.org>
50607
50608         * modules/calloc-posix: New file.
50609         * modules/calloc (Depends-on): Add calloc-posix.
50610         * lib/calloc.c: Include errno.h.
50611         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
50612         and a POSIX-compatible calloc into a single function. Set ENOMEM
50613         when returning NULL.
50614         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
50615         * doc/functions/calloc.texi: Mention the calloc-posix module.
50616         * lib/stdlib_.h (calloc): New declaration.
50617         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
50618         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
50619         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
50620         and HAVE_CALLOC_POSIX.
50621
50622 2007-09-09  Bruno Haible  <bruno@clisp.org>
50623
50624         Allow for modules to show an arbitrary notice.
50625         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
50626         * gnulib-tool: New option --extract-notice.
50627         (func_usage): Document it.
50628         (sed_extract_prog): Update.
50629         (func_get_notice): New function.
50630         (func_modules_notice): New function.
50631         (func_import, func_create_testdir): Invoke it.
50632         Suggested by Jim Meyering.
50633
50634 2007-09-09  Bruno Haible  <bruno@clisp.org>
50635
50636         * gnulib-tool: New options --verbose, --quiet.
50637         (func_usage): Document them.
50638         (verbose): New variable.
50639         (func_execute_command): New function.
50640         (func_import): Don't show the module list and the file list if
50641         $verbose < 0.
50642         (func_create_testdir): Likewise. Use func_execute_command.
50643         (func_create_megatestdir): Use func_execute_command.
50644
50645 2007-09-08  Bruno Haible  <bruno@clisp.org>
50646
50647         * gnulib-tool (func_import): Prefer rsync over wget when available,
50648         for fetching the PO files.
50649
50650 2007-09-08  Bruno Haible  <bruno@clisp.org>
50651
50652         * posix-modules: New file. Portions copied from gnulib-tool.
50653         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
50654
50655 2007-09-08  Jim Meyering  <jim@meyering.net>
50656
50657         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
50658         * lib/fpending.h: Rename from __fpending.h.
50659         * lib/fpending.c: Rename from __fpending.c.
50660         Include "fpending.h", not "__fpending.h".
50661         * lib/__fpending.h, lib/__fpending.c: Remove files.
50662         * modules/fpending (Files): Reflect new file names.
50663         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
50664
50665 2007-09-08  Bruno Haible  <bruno@clisp.org>
50666
50667         * m4/inttypes-h.m4: Remove stub file.
50668
50669 2007-09-07  Simon Josefsson  <simon@josefsson.org>
50670
50671         * doc/headers/stdint.texi: Discuss #include_next issue.
50672
50673 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50674
50675         * build-aux/bootstrap: Remove obsolete comment about wget --help.
50676
50677 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50678
50679         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
50680         in variable name.
50681
50682 2007-09-03  Jim Meyering  <jim@meyering.net>
50683
50684         New module: git-version-gen.
50685         * modules/git-version-gen: New file.
50686
50687         Import changes from coreutils for bootstrap script.
50688
50689         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
50690
50691         bootstrap: uses rsync to download the .po files
50692         * build-aux/bootstrap (po_download_command_format): New global.
50693         (download_po_files): Use rsync.
50694         (update_po_files): Don't remove .po files after download,
50695         so future rsync runs can take advantage of the copies.
50696
50697         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
50698
50699         Solve the unnecessary-.po-file-regeneration problem once and for all.
50700         * build-aux/bootstrap (download_po_files): New function, renamed from
50701         get_translations.  Now, downloads, but doesn't update LINGUAS.
50702         (update_po_files): New function.
50703
50704         bootstrap: Ignore more.
50705         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
50706         uniwidth to e.g., lib/.gitignore.
50707         (slurp): Handle the sys_stat_.h -> sys mapping, too.
50708
50709         * build-aux/bootstrap: New setting: vc_ignore.
50710         (insert_sorted_if_absent): Create $file if absent.
50711         Adapt to new, possibly empty, list: $vc_ignore.
50712
50713         bootstrap: generate more ignorable names
50714         * build-aux/bootstrap (slurp): When generating ignorable names,
50715         also map .sin to .sed, .gperf to .c, and .y to .c.
50716
50717 2007-09-03  Jim Meyering  <jim@meyering.net>
50718
50719         * build-aux/git-version-gen: New file, from coreutils.  For details, see
50720         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
50721
50722 2007-09-02  Bruno Haible  <bruno@clisp.org>
50723
50724         Fix mis-recognition of 'mcs' on QNX 6.
50725         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
50726         output contains the string "Mono".
50727         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
50728         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
50729
50730 2007-09-01  Bruno Haible  <bruno@clisp.org>
50731
50732         Fix collision between uniwidth/* and linebreak modules.
50733         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
50734         u32_width): Remove declarations.
50735         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
50736         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
50737         streq3, streq2, streq1, streq0): Remove functions.
50738         (STREQ): Remove macro.
50739         (is_cjk_encoding): Remove function.
50740         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
50741         (uc_width, u8_width, u16_width, u32_width): Remove functions.
50742         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
50743         * NEWS: Document the change.
50744
50745 2007-09-01  Bruno Haible  <bruno@clisp.org>
50746
50747         * lib/streq.h: Add double-inclusion guard.
50748
50749 2007-09-01  Karl Berry  <karl@gnu.org>
50750
50751         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
50752
50753 2007-08-28  Jim Meyering  <jim@meyering.net>
50754
50755         Rename mreadlink_with_size to areadlink_with_size.
50756         * NEWS: Document the change.
50757         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
50758         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
50759         * lib/mreadlink.h: Rename this to...
50760         * lib/areadlink.h: ...this.
50761         * modules/mreadlink-with-size: Rename this to...
50762         * modules/areadlink-with-size: ...this.
50763         * lib/canonicalize.c: Reflect the renaming.
50764         * modules/canonicalize: Likewise.
50765
50766 2007-08-26  Bruno Haible  <bruno@clisp.org>
50767
50768         * gnulib-tool (func_import): When deciding which files to remove,
50769         consider also dangling symbolic links.
50770         Reported by Eric Blake.
50771
50772 2007-08-26  Bruno Haible  <bruno@clisp.org>
50773
50774         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
50775
50776 2007-08-23  Simon Josefsson  <simon@josefsson.org>
50777
50778         * lib/readline.c: Don't include getline.h, the prototype is now
50779         found in stdio.h.
50780
50781 2007-08-23  Jim Meyering  <jim@meyering.net>
50782
50783         Getdelim touchup.
50784         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
50785         around the funlockfile call, since funlockfile never sets errno.
50786         Don't set errno upon failed realloc.
50787
50788 2007-08-22  Eric Blake  <ebb9@byu.net>
50789
50790         Getline touchups.
50791         * lib/getdelim.c (getdelim): Revert regression that required *n to
50792         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
50793         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
50794         getdelim, rather than whether implementation is missing.
50795         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
50796         * lib/stdio_.h (getline): Also declare if replacement is
50797         required.
50798         * doc/functions/getdelim.texi: New file.
50799         * doc/functions/getline.texi: Likewise.
50800         * doc/gnulib.texi (Function Substitutes): Add new files.
50801         Reported by Bruno Haible.
50802
50803 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
50804
50805         * users.txt: Add Guile.
50806
50807 2007-08-22  Eric Blake  <ebb9@byu.net>
50808
50809         * tests/test-getdelim.c (main): Use remove, not unlink.
50810         * tests/test-getline.c (main): Likewise.
50811
50812         Move getline and getdelim into stdio.h, per POSIX 200x.
50813         * modules/getline (Files): Remove getline.h.
50814         (Depends-on): Add stdio.
50815         (configure.ac): Add module indicator.
50816         * modules/getdelim (Files): Remove getdelim.h.
50817         (Depends-on): Add stdio.
50818         (configure.ac): Add module indicator.
50819         * modules/stdio (Makefile.am): Work with new indicators.
50820         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
50821         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
50822         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
50823         * lib/getdelim.h: Delete.
50824         * lib/getline.h: Delete.
50825         * lib/stdio_.h (getdelim, getline): Declare.
50826         * modules/getdelim-tests: New module.
50827         * modules/getline-tests: Likewise.
50828         * tests/test-getdelim.c: New file.
50829         * tests/test-getline.c: Likewise.
50830         * NEWS: Document the change.
50831         * lib/getline.c: Update choice of header.
50832         * lib/csharpcomp.c: Likewise.
50833         * lib/getpass.c: Likewise.
50834         * lib/javacomp.c: Likewise.
50835         * lib/javaversion.c: Likewise.
50836         * lib/yesno.c: Likewise.
50837         * lib/getdelim.c: Likewise.
50838         (getdelim): Set errno on failure, and avoid memory leak.
50839
50840 2007-08-19  Bruno Haible  <bruno@clisp.org>
50841
50842         * modules/closein (Depends-on): Add freadahead.
50843         * lib/closein.c: Include freadahead.h.
50844         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
50845         is zero.
50846
50847 2007-08-19  Bruno Haible  <bruno@clisp.org>
50848
50849         * modules/freadahead-tests: New file.
50850         * tests/test-freadahead.sh: New file.
50851         * tests/test-freadahead.c: New file.
50852
50853         * modules/freadahead: New file.
50854         * lib/freadahead.h: New file.
50855         * lib/freadahead.c: New file.
50856         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
50857         fbufmode, fpurge, freadable, fwritable.
50858
50859 2007-08-19  Eric Blake  <ebb9@byu.net>
50860
50861         Test yesno in combination with closein.
50862         * lib/yesno.c (yesno): Document use of stdin.
50863         * modules/yesno-tests (Files): New module.
50864         * tests/test-yesno.c (main): New file.
50865         * tests/test-yesno.sh: Likewise.
50866
50867 2007-08-19  Bruno Haible  <bruno@clisp.org>
50868
50869         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
50870         * lib/fseeko.c (rpl_fseeko): Likewise.
50871         * lib/fseterr.c (fseterr): Likewise.
50872
50873 2007-08-19  Bruno Haible  <bruno@clisp.org>
50874
50875         * tests/test-lseek.c (main): Disable a test for BeOS.
50876         * doc/functions/lseek.texi: Document the BeOS bug.
50877
50878 2007-08-19  Bruno Haible  <bruno@clisp.org>
50879             Eric Blake  <ebb9@byu.net>
50880
50881         * lib/lseek.c: Include <sys/stat.h>.
50882         (rpl_lseek): Add workaround code also for Unix platforms.
50883         Needed for BeOS.
50884         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
50885         * doc/functions/lseek.texi: Document BeOS definiency.
50886
50887 2007-08-18  Bruno Haible  <bruno@clisp.org>
50888
50889         * modules/fstrcmp-tests: New file.
50890         * tests/test-fstrcmp.c: New file.
50891
50892 2007-08-18  Bruno Haible  <bruno@clisp.org>
50893
50894         * modules/fstrcmp: New file, from GNU gettext with modifications.
50895         * lib/fstrcmp.h: New file, from GNU gettext.
50896         * lib/fstrcmp.c: New file, from GNU gettext.
50897         * MODULES.html.sh (String handling): Add fstrcmp.
50898
50899 2007-08-18  Bruno Haible  <bruno@clisp.org>
50900
50901         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
50902         'bool'.
50903         (diag, compareseq): Remove const from the ctxt argument.
50904         (USE_HEURISTIC): Undefine at the end.
50905
50906 2007-08-18  Jim Meyering  <jim@meyering.net>
50907
50908         New file: lib/idcache.h
50909         * NEWS: Mention the addition.
50910         * modules/idcache (Files): Add lib/idcache.h
50911         * lib/idcache.c: Include "idcache.h".
50912         Don't include <sys/types.h>.
50913         Add a FIXME comment.
50914         Move file-scoped "static" declarations to the top.
50915         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
50916
50917 2007-08-17  Bruno Haible  <bruno@clisp.org>
50918         and Paul Eggert  <eggert@cs.ucla.edu>
50919
50920         * MODULES.html.sh: Add diffseq.
50921         * modules/diffseq: New file.
50922         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
50923         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
50924
50925 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50926
50927         Import changes from coreutils for bootstrap script.
50928
50929         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
50930
50931         * build-aux/bootstrap (slurp): Work even in environments where
50932         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
50933         current code does not slurp files whose names start with ".", and
50934         this looks like it might be a troublesome area.
50935
50936         2007-07-11  Jim Meyering  <jim@meyering.net>
50937
50938         If there's a GPL vN copyright comment, require that N == 3.
50939
50940         2007-07-08  Jim Meyering  <jim@meyering.net>
50941
50942         Run the coreutils-specific code only if tests/Makefile.am.in exists.
50943         * build-aux/bootstrap (mam_template): Move definition out of loop.
50944
50945         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
50946
50947         * build-aux/bootstrap (symlink_to_dir): Rename function from
50948         symlink_to_gnulib.  Add a directory parameter.  Update all
50949         callers.
50950         (cp_mark_as_generated): Also check for -- and link to -- files in
50951         gl/.
50952
50953         2007-07-08  Jim Meyering  <jim@meyering.net>
50954
50955         Adapt to deeper hierarchy in gnulib.
50956         * build-aux/bootstrap (symlink_to_dir): If the destination
50957         directory doesn't exist, create it. This is required at least for
50958         "lib/uniwidth/cjk.h".
50959
50960         2007-05-15  Jim Meyering  <jim@meyering.net>
50961
50962         * build-aux/bootstrap: Now that generated Makefile.am files
50963         are no longer under version control, they must be created at
50964         bootstrap time.
50965
50966 2007-08-14  Ben Pfaff  <blp@gnu.org>
50967
50968         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
50969
50970 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50971
50972         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
50973         given the changes below.
50974         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
50975         even on hosts that have padding bits beyond the supported 64.
50976
50977 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50978
50979         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
50980         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
50981         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
50982         depends on it.
50983         (xstrtol_error): Remove.
50984         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
50985         but with a different signature.
50986         (ATTRIBUTE_NORETURN, __attribute__): New macros.
50987         * lib/xstrtol-error.c: Include exitfail.h.
50988         (xstrtol_fatal): New function, with a different signature from the
50989         old xstrtol_error, so that the caller need not worry about passing
50990         in an exit status, or about storage management of the option argument.
50991         (xstrtol_error): Now a static function.  Redo signature to
50992         implement xstrtol_fatal.  Output the correct number of hyphens in
50993         front of the option so that the caller need not worry about
50994         storage management.
50995         (N_): New macro.
50996         (_): Remove; not used now.
50997         * modules/xstrtol: Depend on getopt.
50998         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
50999         of old STRTOL_FATAL_ERROR macro.
51000         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
51001         of test program.
51002         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
51003         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
51004
51005 2007-08-08  Eric Blake  <ebb9@byu.net>
51006
51007         * lib/xstrtol-error.c: Add missing include.
51008
51009         Move xstrtol messages into gnulib domain, when --pobase is used.
51010         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
51011         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
51012         * modules/xstrtol (Files): Distribute new file.
51013         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
51014         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
51015         * tests/test-xstrtol.c: ...into new file.
51016         * tests/test-xstrtoul.c: Also test xstrtoul.
51017         * tests/test-xstrtoimax.c: Also test xstrtoimax.
51018         * tests/test-xstrtoumax.c: Also test xstrtoumax.
51019         * tests/test-xstrtol.sh: Drive the tests.
51020         * tests/test-xstrtoimax.sh: Likewise.
51021         * tests/test-xstrtoumax.sh: Likewise.
51022         * modules/xstrtol-tests: New module.
51023         * modules/xstrtoimax-tests: Likewise.
51024         * modules/xstrtoumax-tests: Likewise.
51025
51026 2007-08-08  Jim Meyering  <jim@meyering.net>
51027
51028         New function: mfile_name_concat.
51029         * lib/filenamecat.c (mfile_name_concat): New function, just like
51030         file_name_concat, but return NULL upon failure rather than exiting
51031         with a diagnostic.
51032         * lib/filenamecat.h: Declare it.
51033
51034 2007-08-07  Bruno Haible  <bruno@clisp.org>
51035
51036         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
51037         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
51038         warning from gcc.
51039         Reported by Eric Blake.
51040
51041 2007-08-07  Simon Josefsson  <simon@josefsson.org>
51042
51043         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
51044         * modules/crypto/arcfour (License): Likewise.
51045         * modules/crypto/des-tests (License): Likewise.
51046         * modules/crypto/gc-arctwo-tests (License): Likewise.
51047         * modules/crypto/gc-des-tests (License): Likewise.
51048         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
51049         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
51050         * modules/crypto/gc-md2-tests (License): Likewise.
51051         * modules/crypto/gc-md4-tests (License): Likewise.
51052         * modules/crypto/gc-md5-tests (License): Likewise.
51053         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
51054         * modules/crypto/gc-rijndael-tests (License): Likewise.
51055         * modules/crypto/gc-sha1-tests (License): Likewise.
51056         * modules/crypto/gc-tests (License): Likewise.
51057         * modules/crypto/hmac-md5 (License): Likewise.
51058         * modules/crypto/hmac-sha1 (License): Likewise.
51059         * modules/crypto/md2-tests (License): Likewise.
51060         * modules/crypto/md4-tests (License): Likewise.
51061         * modules/crypto/md5 (License): Likewise.
51062         * modules/crypto/rijndael (License): Likewise.
51063         * modules/crypto/sha1 (License): Likewise.
51064         * modules/memxor (License): Likewise.
51065
51066 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51067         and Bruno Haible  <bruno@clisp.org>
51068
51069         * NEWS: Describe interface changes to human, xstrtol.
51070         * lib/human.h: Include <xstrtol.h>.
51071         (human_options): Return enum strtol_error, not int.  Remove
51072         bool arg; take int * instead.
51073         * lib/human.c: Don't include "gettext.h".
51074         (_): Remove; no longer used.
51075         Don't include <xstrtol.h>, since human.h does it.
51076         (human_options): Adjust to abovementioned interface changes.
51077         Do not report error to stderr; that's now the caller's
51078         responsibility.
51079         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
51080         interface change.
51081         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
51082         Str, Argument_type_string.  All uses changed.  Put " argument"
51083         in diagnostics to make them clearer.  Change wording of suffix
51084         message for clarity.
51085         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
51086         Argument_type_string.
51087         (STRTOL_FATAL_WARN): Remove; no longer used.
51088         * modules/human (Depends-on): Remove gettext-h.
51089
51090 2007-08-06  Simon Josefsson  <simon@josefsson.org>
51091
51092         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
51093
51094 2007-07-31  Bruno Haible  <bruno@clisp.org>
51095
51096         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
51097         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
51098         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
51099
51100 2007-07-31  Bruno Haible  <bruno@clisp.org>
51101
51102         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
51103         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
51104
51105 2007-07-30  Bruno Haible  <bruno@clisp.org>
51106
51107         * modules/base64 (License): Use the synonymous term "LGPLv2+".
51108         * modules/c-ctype (License): Likewise.
51109         * modules/c-strcase (License): Likewise.
51110         * modules/check-version (License): Likewise.
51111         * modules/iconv (License): Likewise.
51112         * modules/iconv_open (License): Likewise.
51113         * modules/read-file (License): Likewise.
51114         * modules/striconv (License): Likewise.
51115         * modules/strverscmp (License): Likewise.
51116         * modules/vasprintf (License): Likewise.
51117         * modules/crypto/des (License): Likewise.
51118         * modules/crypto/gc (License): Likewise.
51119         * modules/crypto/gc-arcfour (License): Likewise.
51120         * modules/crypto/gc-arctwo (License): Likewise.
51121         * modules/crypto/gc-des (License): Likewise.
51122         * modules/crypto/gc-hmac-md5 (License): Likewise.
51123         * modules/crypto/gc-hmac-sha1 (License): Likewise.
51124         * modules/crypto/gc-md2 (License): Likewise.
51125         * modules/crypto/gc-md4 (License): Likewise.
51126         * modules/crypto/gc-md5 (License): Likewise.
51127         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
51128         * modules/crypto/gc-random (License): Likewise.
51129         * modules/crypto/gc-rijndael (License): Likewise.
51130         * modules/crypto/gc-sha1 (License): Likewise.
51131         * modules/crypto/md2 (License): Likewise.
51132         * modules/crypto/md4 (License): Likewise.
51133
51134 2007-07-30  Jim Meyering  <jim@meyering.net>
51135
51136         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
51137         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
51138         it has valid stat data.  This bug would cause du not to count the
51139         sizes of inaccessible directories.
51140         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
51141         in <http://bugzilla.redhat.com/250077>.
51142
51143 2007-07-25  Peter O'Gorman  <peter@pogma.com>
51144             Bruno Haible  <bruno@clisp.org>
51145
51146         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
51147         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
51148         #include_next, gives a diagnostic about it, but reports no error in
51149         the exit code.
51150         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51151
51152 2007-07-24  Ben Pfaff  <blp@gnu.org>
51153
51154         Improve name: "count-one-bits" is better than "popcount".
51155         * MODULES.html.sh: Update name.
51156         * lib/popcount.h: Renamed lib/count-one-bits.h.
51157         (popcount): Renamed count_one_bits.
51158         (popcountl): Renamed count_one_bits_l.
51159         (popcountll): Renamed count_one_bits_ll.
51160         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
51161         * modules/popcount: Renamed module/count-one-bits.
51162         * modules/popcount-tests: Renamed module/count-one-bits-tests.
51163         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
51164
51165 2007-07-23  Ben Pfaff  <blp@gnu.org>
51166
51167         * lib/popcount.h (popcount32): Reduce size of constants, to allow
51168         better code generation, and add U to large constants to avoid
51169         warnings, in non-GCC case.
51170         Suggested by Bruno Haible.
51171
51172 2007-07-23  Ben Pfaff  <blp@gnu.org>
51173
51174         * lib/popcount.h: Use verify_true instead of if...abort.
51175         * modules/popcount: Depend on verify module.
51176         Suggested by Jim Meyering.
51177
51178 2007-07-23  Bruno Haible  <bruno@clisp.org>
51179
51180         * gnulib-tool (func_import): Create a .cvsignore file also when the
51181         directory is not yet in CVS but the toplevel directory is. When
51182         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
51183         Reported by Karl Berry.
51184
51185 2007-07-22  Ben Pfaff  <blp@gnu.org>
51186
51187         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
51188         case.
51189         Suggested by Eric Blake.
51190
51191 2007-07-22  Ben Pfaff  <blp@gnu.org>
51192
51193         New module: popcount.
51194         * MODULES.html.sh: Add popcount.
51195         * modules/popcount: New file.
51196         * modules/popcount-tests: New file.
51197         * tests/test-popcount.c: New file.
51198         * lib/popcount.h: New file.
51199         * m4/popcount.m4: New file.
51200
51201 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51202
51203         * build-aux/announce-gen: Update to GPLv3.
51204
51205         * build-aux/config.guess: Update from config.
51206
51207 2007-07-21  Bruno Haible  <bruno@clisp.org>
51208
51209         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
51210         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
51211
51212 2007-07-20  Jim Meyering  <jim@meyering.net>
51213
51214         * check-module: Diagnose a self-dependency.
51215
51216 2007-07-19  Bruno Haible  <bruno@clisp.org>
51217
51218         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
51219         empty.
51220         Reported by Eric Blake.
51221
51222 2007-07-18  Bruno Haible  <bruno@clisp.org>
51223
51224         * gnulib-tool: New options --po-base, --po-domain.
51225         (func_usage): Document them.
51226         (pobase, po_domain): New variables.
51227         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
51228         DEFAULT_TEXT_DOMAIN.
51229         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
51230         (func_import): Consider pobase and po_domain. Create a po/ directory.
51231         (func_create_testdir): Set pobase and po_domain to empty.
51232         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
51233         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
51234
51235 2007-07-18  Bruno Haible  <bruno@clisp.org>
51236
51237         * gnulib-tool (func_get_automake_snippet): Synthesize also an
51238         EXTRA_DIST augmentation for files in build-aux/.
51239
51240 2007-07-16  Bruno Haible  <bruno@clisp.org>
51241
51242         * modules/lseek (License): Use the synonymous term "LGPLv2+".
51243         * modules/getdelim (License): Likewise.
51244
51245 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51246
51247         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
51248         * modules/d-type (License): Likewise.
51249         * modules/extensions (License): Likewise.
51250         * modules/fnmatch (License): Likewise.
51251         * modules/fseeko (License): Likewise.
51252         * modules/getaddrinfo (License): Likewise.
51253         * modules/getline (License): Likewise.
51254         * modules/getlogin_r (License): Likewise.
51255         * modules/getpass (License): Likewise.
51256         * modules/gettimeofday (License): Likewise.
51257         * modules/glob (License): Likewise.
51258         * modules/inet_ntop (License): Likewise.
51259         * modules/malloc (License): Likewise.
51260         * modules/malloca (License): Likewise.
51261         * modules/memmem (License): Likewise.
51262         * modules/mempcpy (License): Likewise.
51263         * modules/memset (License): Likewise.
51264         * modules/minmax (License): Likewise.
51265         * modules/mktime (License): Likewise.
51266         * modules/netinet_in (License): Likewise.
51267         * modules/pathmax (License): Likewise.
51268         * modules/poll (License): Likewise.
51269         * modules/regex (License): Likewise.
51270         * modules/snprintf (License): Likewise.
51271         * modules/stdbool (License): Likewise.
51272         * modules/stdint (License): Likewise.
51273         * modules/stdio (License): Likewise.
51274         * modules/strcase (License): Likewise.
51275         * modules/strcasestr (License): Likewise.
51276         * modules/strdup (License): Likewise.
51277         * modules/string (License): Likewise.
51278         * modules/strndup (License): Likewise.
51279         * modules/strnlen (License): Likewise.
51280         * modules/strpbrk (License): Likewise.
51281         * modules/strptime (License): Likewise.
51282         * modules/strsep (License): Likewise.
51283         * modules/sys_select (License): Likewise.
51284         * modules/sys_socket (License): Likewise.
51285         * modules/sys_stat (License): Likewise.
51286         * modules/sys_time (License): Likewise.
51287         * modules/time (License): Likewise.
51288         * modules/time_r (License): Likewise.
51289         * modules/timegm (License): Likewise.
51290         * modules/unistd (License): Likewise.
51291         * modules/vsnprintf (License): Likewise.
51292         * modules/wctype (License): Likewise.
51293
51294 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51295
51296         * modules/argz (License): LGPLv2+.
51297
51298 2007-07-15  Karl Berry  <karl@gnu.org>
51299
51300         * doc/gnulib.texi: revise node structure per new fdl.texi.
51301
51302 2007-07-14  Bruno Haible  <bruno@clisp.org>
51303
51304         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
51305         the output file.
51306         * lib/uniname/uninames.h: Regenerated.
51307
51308 2007-07-14  Karl Berry  <karl@gnu.org>
51309
51310         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
51311         omitting sectioning and index commands.
51312
51313 2007-07-13  Bruno Haible  <bruno@clisp.org>
51314
51315         New gnulib-tool option --more-symlinks.
51316         * gnulib-tool (func_usage): Document --more-symlinks.
51317         (do_copyrights): New variable.
51318         Recognize option --more-symlinks.
51319         (func_import): Don't add a copyright notice transform to
51320         sed_transform_lib_file if do_copyrights is empty.
51321
51322 2007-07-13  Bruno Haible  <bruno@clisp.org>
51323
51324         * lib/vasnprintf.c (decimal_point_char): Define also if
51325         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
51326         && !NEED_PRINTF_DIRECTIVE_A.
51327         Reported by Clemens Koller <clemens.koller@anagramm.de> via
51328         Gary V. Vaughan <gary@gnu.org>.
51329
51330 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
51331
51332         * lib/inttypes_.h: Undo previous change, since it was fixed
51333         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
51334
51335 2007-07-13  Bruno Haible  <bruno@clisp.org>
51336
51337         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
51338         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
51339
51340 2007-07-13  Jim Meyering  <jim@meyering.net>
51341
51342         df: Don't fail for Tru64's "file-on-file mount".
51343         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
51344         so we fall through and use statfs instead.  Details here:
51345         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
51346         Reported by Albert Chin.
51347
51348 2007-07-13  Bruno Haible  <bruno@clisp.org>
51349
51350         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
51351         * modules/configmake (License): Likewise.
51352         * modules/gettext (License): Likewise.
51353         * modules/gettext-h (License): Likewise.
51354         * modules/include_next (License): Likewise.
51355         * modules/link-warning (License): Likewise.
51356         * modules/localcharset (License): Likewise.
51357         * modules/localename (License): Likewise.
51358         * modules/lock (License): Likewise.
51359         * modules/relocatable-lib-lgpl (License): Likewise.
51360         * modules/size_max (License): Likewise.
51361         * modules/vasnprintf (License): Likewise.
51362         * modules/wchar (License): Likewise.
51363         * modules/xsize (License): Likewise.
51364
51365 2007-07-13  Bruno Haible  <bruno@clisp.org>
51366
51367         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
51368         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
51369
51370 2007-07-12  Bruno Haible  <bruno@clisp.org>
51371
51372         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
51373         in the modules files.
51374
51375 2007-07-11  Karl Berry  <karl@gnu.org>
51376
51377         * MODULES.html.sh (func_module): use
51378          sed -e '\|^'"${includefile}"'$|d'
51379          instead of /.../d, to avoid errors on $includefile's containing /.
51380
51381 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51382
51383         * gnulib-tool (func_import): Avoid duplication of --avoid
51384         statements
51385         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
51386         names to `_' in variable names.
51387
51388 2007-07-10  Eric Blake  <ebb9@byu.net>
51389
51390         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
51391         * NEWS: Document this change.
51392
51393 2007-07-08  Bruno Haible  <bruno@clisp.org>
51394
51395         Update to Unicode 5.0.
51396         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
51397         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
51398         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
51399         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
51400         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
51401         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
51402         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
51403         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
51404         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
51405         U+10A3F, U+1D242..U+1D244.
51406         (nonspacing_table_ind): Update.
51407         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
51408         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
51409
51410 2007-07-08  Bruno Haible  <bruno@clisp.org>
51411
51412         Update to Unicode 5.0.
51413         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
51414         code transform. Extend the name index field of unicode_name_to_code and
51415         unicode_code_to_name from 16 to 24 bits.
51416         * lib/uniname/uniname.c (unicode_character_name,
51417         unicode_name_character): Add the range 0x12xxx to the code transform.
51418         * lib/uniname/uninames.h: Regenerated.
51419         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
51420
51421 2007-07-07  Bruno Haible  <bruno@clisp.org>
51422
51423         * modules/wcwidth-tests: New file.
51424         * tests/test-wcwidth.c: New file.
51425
51426         Work around MacOS X wcwidth() bug.
51427         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
51428         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
51429         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
51430         original wcwidth in non-UTF-8 locales.
51431         * modules/wcwidth (Depends-on): Add localcharset, streq,
51432         uniwidth/width.
51433         * doc/functions/wcwidth.texi: Update.
51434
51435 2007-07-07  Bruno Haible  <bruno@clisp.org>
51436
51437         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
51438         (wcwidth): New declaration.
51439         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
51440         macros.
51441         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
51442         here. Prepare for creating <wchar.h> unconditionally.
51443         * modules/wchar (Depends-on): Add link-warning.
51444         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
51445         REPLACE_WCWIDTH, and GL_LINK_WARNING.
51446         * lib/wcwidth.h: Remove file.
51447         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
51448         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
51449         * modules/wcwidth (Files): Remove lib/wcwidth.h.
51450         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
51451         (Include): Replace wcwidth.h with <wchar.h>.
51452         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
51453         * lib/mbchar.h: Don't include wcwidth.h.
51454         * lib/mbswidth.c: Likewise.
51455         * NEWS: Mention the change.
51456
51457 2007-07-07  Bruno Haible  <bruno@clisp.org>
51458
51459         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
51460         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
51461         definition with an external declaration.
51462         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
51463         defined as a function. Remove AC_C_INLINE requirement.
51464         * modules/wcwidth (Files): Add lib/wcwidth.c.
51465         (Makefile.am): Remove redundant statement.
51466
51467 2007-07-07  Bruno Haible  <bruno@clisp.org>
51468
51469         * MODULES.html.sh (Unicode string functions): Add the new modules.
51470
51471         * tests/uniwidth/test-u32-strwidth.c: New file.
51472         * modules/uniwidth/u32-strwidth-tests: New file.
51473
51474         * lib/uniwidth/u32-strwidth.c: New file.
51475         * modules/uniwidth/u32-strwidth: New file.
51476
51477         * tests/uniwidth/test-u16-strwidth.c: New file.
51478         * modules/uniwidth/u16-strwidth-tests: New file.
51479
51480         * lib/uniwidth/u16-strwidth.c: New file.
51481         * modules/uniwidth/u16-strwidth: New file.
51482
51483         * tests/uniwidth/test-u8-strwidth.c: New file.
51484         * modules/uniwidth/u8-strwidth-tests: New file.
51485
51486         * lib/uniwidth/u8-strwidth.c: New file.
51487         * modules/uniwidth/u8-strwidth: New file.
51488
51489         * tests/uniwidth/test-u32-width.c: New file.
51490         * modules/uniwidth/u32-width-tests: New file.
51491
51492         * lib/uniwidth/u32-width.c: New file.
51493         * modules/uniwidth/u32-width: New file.
51494
51495         * tests/uniwidth/test-u16-width.c: New file.
51496         * modules/uniwidth/u16-width-tests: New file.
51497
51498         * lib/uniwidth/u16-width.c: New file.
51499         * modules/uniwidth/u16-width: New file.
51500
51501         * tests/uniwidth/test-u8-width.c: New file.
51502         * modules/uniwidth/u8-width-tests: New file.
51503
51504         * lib/uniwidth/u8-width.c: New file.
51505         * modules/uniwidth/u8-width: New file.
51506
51507         * tests/uniwidth/test-uc_width.c: New file.
51508         * modules/uniwidth/width-tests: New file.
51509
51510         * lib/uniwidth/width.c: New file, from GNU libiconv.
51511         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
51512         * modules/uniwidth/width: New file.
51513
51514         * lib/uniwidth.h: New file, from GNU libiconv.
51515         * modules/uniwidth/base: New file.
51516
51517 2007-07-07  Bruno Haible  <bruno@clisp.org>
51518
51519         * lib/uniname.h: New file, from GNU gettext.
51520         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
51521         * lib/uniname/uninames.h: New file, from GNU gettext.
51522         * lib/uniname/uniname.c: New file, from GNU gettext.
51523         * tests/uniname/test-uninames.sh: New file.
51524         * tests/uniname/test-uninames.c: New file, from GNU gettext.
51525         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
51526         * modules/uniname/base: New file.
51527         * modules/uniname/uniname: New file.
51528         * modules/uniname/uniname-tests: New file.
51529         * MODULES.html.sh (Unicode string functions): Add the new modules.
51530
51531 2007-07-06  Bruno Haible  <bruno@clisp.org>
51532
51533         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
51534
51535 2007-07-06  Bruno Haible  <bruno@clisp.org>
51536
51537         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
51538         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
51539         includes <cygwin/sys_time.h> which includes <sys/select.h> which
51540         include <sys/time.h>.
51541         Reported by Eric Blake.
51542
51543 2007-07-06  Eric Blake  <ebb9@byu.net>
51544
51545         Fix testing canonicalize on cygwin.
51546         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
51547         Revert patch from 2007-06-19.
51548         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
51549         canonicalize module is also in use.
51550         * tests/test-canonicalize.c: New file.
51551         * tests/test-canonicalize.sh: Likewise.
51552         * modules/canonicalize-tests: Likewise.
51553
51554 2007-07-06  Jim Meyering  <jim@meyering.net>
51555
51556         * lib/getugroups.c (getugroups): Detect getgrent failure.
51557         Adjust comment to reflect reality: this function may return -1.
51558
51559 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
51560
51561         * build-aux/bootstrap (TP_URL,get_translations): Update to use
51562         the new TP address.
51563         (usage): Fix typo
51564         (gnulib_mk): New variable.
51565
51566 2007-07-05  Jim Meyering  <jim@meyering.net>
51567
51568         Don't let endgrent clobber errno, no matter how improbable.
51569         * lib/getugroups.c (getugroups): Save and restore errno around
51570         endgrent call.
51571
51572         Close the group DB even when failing with 2^31 or more members.
51573         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
51574
51575 2007-07-04  Jim Meyering  <jim@meyering.net>
51576
51577         * lib/getugroups.h: New file.
51578         * lib/getugroups.c: Include "getugroups.h".
51579         Remove uses of "register" keyword.
51580         Move local variable, "cp", down into scope where used.
51581         Give "username" parameter the "const" attribute.
51582         * modules/getugroups (Files): Add lib/getugroups.h
51583
51584 2007-07-04  Karl Berry  <karl@gnu.org>
51585
51586         * MODULES.html.sh (func_all_modules): Complete rename of
51587         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
51588
51589 2007-07-02  Bruno Haible  <bruno@clisp.org>
51590
51591         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
51592         mode, when inttypes.h comes from gnulib.
51593         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
51594
51595 2007-07-02  Simon Josefsson  <simon@josefsson.org>
51596
51597         * NEWS: Mention lgpl module name change.
51598
51599         * modules/lgpl-2.1: Renamed from lgpl.
51600
51601         * NEWS: Mention gpl module name change.
51602
51603         * modules/gpl-3.0: New file, based on gpl-2.0.
51604
51605         * modules/gpl-2.0: Renamed from gpl.
51606
51607         * modules/gpl: Fix filename, doc/gpl.texi is now found at
51608         doc/gpl-2.0.texi.
51609
51610 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51611
51612         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
51613         #define __STDC_LIMIT_MACROS temporarily while including
51614         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
51615         Problem reported by Joel E. Denny in
51616         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
51617
51618 2007-07-01  Bruno Haible  <bruno@clisp.org>
51619
51620         * lib/unistdio.h: New file.
51621         * lib/unistdio/u-asnprintf.h: New file.
51622         * lib/unistdio/u-asprintf.h: New file.
51623         * lib/unistdio/u-printf-args.c: New file.
51624         * lib/unistdio/u-printf-args.h: New file.
51625         * lib/unistdio/u-printf-parse.h: New file.
51626         * lib/unistdio/u-snprintf.h: New file.
51627         * lib/unistdio/u-sprintf.h: New file.
51628         * lib/unistdio/u-vasprintf.h: New file.
51629         * lib/unistdio/u-vsnprintf.h: New file.
51630         * lib/unistdio/u-vsprintf.h: New file.
51631         * lib/unistdio/ulc-asnprintf.c: New file.
51632         * lib/unistdio/ulc-asprintf.c: New file.
51633         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
51634         * lib/unistdio/ulc-printf-parse.c: New file.
51635         * lib/unistdio/ulc-snprintf.c: New file.
51636         * lib/unistdio/ulc-sprintf.c: New file.
51637         * lib/unistdio/ulc-vasnprintf.c: New file.
51638         * lib/unistdio/ulc-vasprintf.c: New file.
51639         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
51640         * lib/unistdio/ulc-vsnprintf.c: New file.
51641         * lib/unistdio/ulc-vsprintf.c: New file.
51642         * lib/unistdio/u8-asnprintf.c: New file.
51643         * lib/unistdio/u8-asprintf.c: New file.
51644         * lib/unistdio/u8-printf-parse.c: New file.
51645         * lib/unistdio/u8-snprintf.c: New file.
51646         * lib/unistdio/u8-sprintf.c: New file.
51647         * lib/unistdio/u8-vasnprintf.c: New file.
51648         * lib/unistdio/u8-vasprintf.c: New file.
51649         * lib/unistdio/u8-vsnprintf.c: New file.
51650         * lib/unistdio/u8-vsprintf.c: New file.
51651         * lib/unistdio/u8-u8-asnprintf.c: New file.
51652         * lib/unistdio/u8-u8-asprintf.c: New file.
51653         * lib/unistdio/u8-u8-snprintf.c: New file.
51654         * lib/unistdio/u8-u8-sprintf.c: New file.
51655         * lib/unistdio/u8-u8-vasnprintf.c: New file.
51656         * lib/unistdio/u8-u8-vasprintf.c: New file.
51657         * lib/unistdio/u8-u8-vsnprintf.c: New file.
51658         * lib/unistdio/u8-u8-vsprintf.c: New file.
51659         * lib/unistdio/u16-asnprintf.c: New file.
51660         * lib/unistdio/u16-asprintf.c: New file.
51661         * lib/unistdio/u16-printf-parse.c: New file.
51662         * lib/unistdio/u16-snprintf.c: New file.
51663         * lib/unistdio/u16-sprintf.c: New file.
51664         * lib/unistdio/u16-vasnprintf.c: New file.
51665         * lib/unistdio/u16-vasprintf.c: New file.
51666         * lib/unistdio/u16-vsnprintf.c: New file.
51667         * lib/unistdio/u16-vsprintf.c: New file.
51668         * lib/unistdio/u16-u16-asnprintf.c: New file.
51669         * lib/unistdio/u16-u16-asprintf.c: New file.
51670         * lib/unistdio/u16-u16-snprintf.c: New file.
51671         * lib/unistdio/u16-u16-sprintf.c: New file.
51672         * lib/unistdio/u16-u16-vasnprintf.c: New file.
51673         * lib/unistdio/u16-u16-vasprintf.c: New file.
51674         * lib/unistdio/u16-u16-vsnprintf.c: New file.
51675         * lib/unistdio/u16-u16-vsprintf.c: New file.
51676         * lib/unistdio/u32-asnprintf.c: New file.
51677         * lib/unistdio/u32-asprintf.c: New file.
51678         * lib/unistdio/u32-printf-parse.c: New file.
51679         * lib/unistdio/u32-snprintf.c: New file.
51680         * lib/unistdio/u32-sprintf.c: New file.
51681         * lib/unistdio/u32-vasnprintf.c: New file.
51682         * lib/unistdio/u32-vasprintf.c: New file.
51683         * lib/unistdio/u32-vsnprintf.c: New file.
51684         * lib/unistdio/u32-vsprintf.c: New file.
51685         * lib/unistdio/u32-u32-asnprintf.c: New file.
51686         * lib/unistdio/u32-u32-asprintf.c: New file.
51687         * lib/unistdio/u32-u32-snprintf.c: New file.
51688         * lib/unistdio/u32-u32-sprintf.c: New file.
51689         * lib/unistdio/u32-u32-vasnprintf.c: New file.
51690         * lib/unistdio/u32-u32-vasprintf.c: New file.
51691         * lib/unistdio/u32-u32-vsnprintf.c: New file.
51692         * lib/unistdio/u32-u32-vsprintf.c: New file.
51693         * tests/unistdio/test-ulc-asnprintf1.c: New file.
51694         * tests/unistdio/test-ulc-asnprintf1.h: New file.
51695         * tests/unistdio/test-ulc-printf1.h: New file.
51696         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
51697         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
51698         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
51699         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
51700         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
51701         * tests/unistdio/test-ulc-vasprintf1.c: New file.
51702         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
51703         * tests/unistdio/test-ulc-vsprintf1.c: New file.
51704         * tests/unistdio/test-u8-asnprintf1.c: New file.
51705         * tests/unistdio/test-u8-asnprintf1.h: New file.
51706         * tests/unistdio/test-u8-printf1.h: New file.
51707         * tests/unistdio/test-u8-vasnprintf1.c: New file.
51708         * tests/unistdio/test-u8-vasnprintf2.c: New file.
51709         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
51710         * tests/unistdio/test-u8-vasnprintf3.c: New file.
51711         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
51712         * tests/unistdio/test-u8-vasprintf1.c: New file.
51713         * tests/unistdio/test-u8-vsnprintf1.c: New file.
51714         * tests/unistdio/test-u8-vsprintf1.c: New file.
51715         * tests/unistdio/test-u16-asnprintf1.c: New file.
51716         * tests/unistdio/test-u16-asnprintf1.h: New file.
51717         * tests/unistdio/test-u16-printf1.h: New file.
51718         * tests/unistdio/test-u16-vasnprintf1.c: New file.
51719         * tests/unistdio/test-u16-vasnprintf2.c: New file.
51720         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
51721         * tests/unistdio/test-u16-vasnprintf3.c: New file.
51722         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
51723         * tests/unistdio/test-u16-vasprintf1.c: New file.
51724         * tests/unistdio/test-u16-vsnprintf1.c: New file.
51725         * tests/unistdio/test-u16-vsprintf1.c: New file.
51726         * tests/unistdio/test-u32-asnprintf1.c: New file.
51727         * tests/unistdio/test-u32-asnprintf1.h: New file.
51728         * tests/unistdio/test-u32-printf1.h: New file.
51729         * tests/unistdio/test-u32-vasnprintf1.c: New file.
51730         * tests/unistdio/test-u32-vasnprintf2.c: New file.
51731         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
51732         * tests/unistdio/test-u32-vasnprintf3.c: New file.
51733         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
51734         * tests/unistdio/test-u32-vasprintf1.c: New file.
51735         * tests/unistdio/test-u32-vsnprintf1.c: New file.
51736         * tests/unistdio/test-u32-vsprintf1.c: New file.
51737         * modules/unistdio/base: New file.
51738         * modules/unistdio/u-printf-args: New file.
51739         * modules/unistdio/ulc-asnprintf: New file.
51740         * modules/unistdio/ulc-asprintf: New file.
51741         * modules/unistdio/ulc-fprintf: New file.
51742         * modules/unistdio/ulc-printf-parse: New file.
51743         * modules/unistdio/ulc-snprintf: New file.
51744         * modules/unistdio/ulc-sprintf: New file.
51745         * modules/unistdio/ulc-vasnprintf: New file.
51746         * modules/unistdio/ulc-vasprintf: New file.
51747         * modules/unistdio/ulc-vfprintf: New file.
51748         * modules/unistdio/ulc-vsnprintf: New file.
51749         * modules/unistdio/ulc-vsprintf: New file.
51750         * modules/unistdio/u8-asnprintf: New file.
51751         * modules/unistdio/u8-asprintf: New file.
51752         * modules/unistdio/u8-printf-parse: New file.
51753         * modules/unistdio/u8-snprintf: New file.
51754         * modules/unistdio/u8-sprintf: New file.
51755         * modules/unistdio/u8-vasnprintf: New file.
51756         * modules/unistdio/u8-vasprintf: New file.
51757         * modules/unistdio/u8-vsnprintf: New file.
51758         * modules/unistdio/u8-vsprintf: New file.
51759         * modules/unistdio/u8-u8-asnprintf: New file.
51760         * modules/unistdio/u8-u8-asprintf: New file.
51761         * modules/unistdio/u8-u8-snprintf: New file.
51762         * modules/unistdio/u8-u8-sprintf: New file.
51763         * modules/unistdio/u8-u8-vasnprintf: New file.
51764         * modules/unistdio/u8-u8-vasprintf: New file.
51765         * modules/unistdio/u8-u8-vsnprintf: New file.
51766         * modules/unistdio/u8-u8-vsprintf: New file.
51767         * modules/unistdio/u16-asnprintf: New file.
51768         * modules/unistdio/u16-asprintf: New file.
51769         * modules/unistdio/u16-printf-parse: New file.
51770         * modules/unistdio/u16-snprintf: New file.
51771         * modules/unistdio/u16-sprintf: New file.
51772         * modules/unistdio/u16-vasnprintf: New file.
51773         * modules/unistdio/u16-vasprintf: New file.
51774         * modules/unistdio/u16-vsnprintf: New file.
51775         * modules/unistdio/u16-vsprintf: New file.
51776         * modules/unistdio/u16-u16-asnprintf: New file.
51777         * modules/unistdio/u16-u16-asprintf: New file.
51778         * modules/unistdio/u16-u16-snprintf: New file.
51779         * modules/unistdio/u16-u16-sprintf: New file.
51780         * modules/unistdio/u16-u16-vasnprintf: New file.
51781         * modules/unistdio/u16-u16-vasprintf: New file.
51782         * modules/unistdio/u16-u16-vsnprintf: New file.
51783         * modules/unistdio/u16-u16-vsprintf: New file.
51784         * modules/unistdio/u32-asnprintf: New file.
51785         * modules/unistdio/u32-asprintf: New file.
51786         * modules/unistdio/u32-printf-parse: New file.
51787         * modules/unistdio/u32-snprintf: New file.
51788         * modules/unistdio/u32-sprintf: New file.
51789         * modules/unistdio/u32-vasnprintf: New file.
51790         * modules/unistdio/u32-vasprintf: New file.
51791         * modules/unistdio/u32-vsnprintf: New file.
51792         * modules/unistdio/u32-vsprintf: New file.
51793         * modules/unistdio/u32-u32-asnprintf: New file.
51794         * modules/unistdio/u32-u32-asprintf: New file.
51795         * modules/unistdio/u32-u32-snprintf: New file.
51796         * modules/unistdio/u32-u32-sprintf: New file.
51797         * modules/unistdio/u32-u32-vasnprintf: New file.
51798         * modules/unistdio/u32-u32-vasprintf: New file.
51799         * modules/unistdio/u32-u32-vsnprintf: New file.
51800         * modules/unistdio/u32-u32-vsprintf: New file.
51801         * modules/unistdio/ulc-asnprintf-tests: New file.
51802         * modules/unistdio/ulc-vasnprintf-tests: New file.
51803         * modules/unistdio/ulc-vasprintf-tests: New file.
51804         * modules/unistdio/ulc-vsnprintf-tests: New file.
51805         * modules/unistdio/ulc-vsprintf-tests: New file.
51806         * modules/unistdio/u8-asnprintf-tests: New file.
51807         * modules/unistdio/u8-vasnprintf-tests: New file.
51808         * modules/unistdio/u8-vasprintf-tests: New file.
51809         * modules/unistdio/u8-vsnprintf-tests: New file.
51810         * modules/unistdio/u8-vsprintf-tests: New file.
51811         * modules/unistdio/u16-asnprintf-tests: New file.
51812         * modules/unistdio/u16-vasnprintf-tests: New file.
51813         * modules/unistdio/u16-vasprintf-tests: New file.
51814         * modules/unistdio/u16-vsnprintf-tests: New file.
51815         * modules/unistdio/u16-vsprintf-tests: New file.
51816         * modules/unistdio/u32-asnprintf-tests: New file.
51817         * modules/unistdio/u32-vasnprintf-tests: New file.
51818         * modules/unistdio/u32-vasprintf-tests: New file.
51819         * modules/unistdio/u32-vsnprintf-tests: New file.
51820         * modules/unistdio/u32-vsprintf-tests: New file.
51821         * MODULES.html.sh (Unicode string functions): Add the new modules.
51822
51823 2007-07-01  Bruno Haible  <bruno@clisp.org>
51824
51825         * lib/sprintf.c (sprintf): Limit the available length estimation,
51826         to avoid address wraparound.
51827         * lib/vsprintf.c (vsprintf): Likewise.
51828         * modules/sprintf-posix (Dependencies): Add stdint.
51829         * modules/vsprintf-posix (Dependencies): Likewise.
51830
51831 2007-07-01  Bruno Haible  <bruno@clisp.org>
51832
51833         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
51834         Windows PATH as well. Conservative double-quoting. Comments.
51835
51836 2007-07-01  Bruno Haible  <bruno@clisp.org>
51837             Eric Blake  <ebb9@byu.net>
51838             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51839
51840         * gnulib-tool (self_abspathname): Fix algorithm to cope with
51841         empty components in $PATH, denoting '.'.
51842
51843 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51844
51845         * gnulib-tool: Fix indentation.
51846         (func_create_megatestdir): Likewise.
51847         Report by Bruno Haible.
51848
51849 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51850
51851         Sync from Automake.
51852         * build-aux/gnupload: Fix shell portability issues with for loops.
51853         Report by Karl Berry.
51854
51855 2007-06-29  Simon Josefsson  <simon@josefsson.org>
51856
51857         * build-aux/maint.mk (POURL): Use translationproject.org.
51858
51859 2007-06-27  Simon Josefsson  <simon@josefsson.org>
51860             Bruno Haible  <bruno@clisp.org>
51861
51862         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
51863         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
51864         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
51865         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
51866         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
51867
51868 2007-06-27  Bruno Haible  <bruno@clisp.org>
51869
51870         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
51871         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
51872
51873 2007-06-26  Karl Berry  <karl@gnu.org>
51874
51875         * MODULES.html.sh: remove xreadlink-with-size.
51876
51877 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51878
51879         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
51880         method that I hope also handles the double-include problem noted
51881         by Bruno Haible in
51882         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
51883
51884 2007-06-23  Bruno Haible  <bruno@clisp.org>
51885
51886         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51887         Don't let the 'mostlyclean' target fail if the last subdirectory could
51888         not be removed.
51889         Reported by Karl Berry.
51890
51891 2007-06-23  Bruno Haible  <bruno@clisp.org>
51892
51893         * gnulib-tool (echo): Add a speedier workaround for ksh.
51894         * tests/test-echo.sh: Likewise.
51895
51896 2007-06-23  Bruno Haible  <bruno@clisp.org>
51897
51898         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
51899         * tests/test-echo.sh: Likewise.
51900
51901 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51902
51903         * gnulib-tool (IFS): Initialize early, so we don't set it to
51904         empty later.
51905         (self_abspathname): Rewrite algorithm to set it, reindent.
51906         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
51907         (func_create_megatestdir): Merge some sed scripts.
51908
51909 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
51910
51911         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
51912         exposed by Sun Studio 11 cc on Solaris 8.
51913
51914 2007-06-22  Bruno Haible  <bruno@clisp.org>
51915
51916         * gnulib-tool (echo): Ensure the echo primitive does not interpret
51917         backslashes.
51918         * tests/test-echo.sh: New file.
51919
51920 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51921
51922         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
51923         simplify `sed_replace_build_aux' scripts, they are portable but
51924         echoing them with `echo' is not.
51925         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
51926
51927 2007-06-21  Karl Berry  <karl@gnu.org>
51928
51929         * config/srclist.txt: guess we can't handle the licenses via
51930         srclist at the moment.
51931
51932 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
51933
51934         * MODULES.html.sh: Add include_next.
51935         * modules/include_next: New file.
51936
51937 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51938
51939         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
51940         INCLUDE_NEXT.
51941         (gl_CHECK_NEXT_HEADERS): New macro.
51942         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
51943         the obsolescent gl_ABSOLUTE_HEADER.
51944         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
51945         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
51946         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
51947         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51948         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
51949         * m4/math_h.m4 (gl_MATH_H): Likewise.
51950         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51951         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
51952         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
51953         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51954         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
51955         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
51956         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
51957         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51958         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51959         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
51960         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
51961         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
51962         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
51963         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
51964         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
51965         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
51966         * m4/inttypes.m4 (gl_INTTYPES_H): Define
51967         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
51968         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
51969         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
51970         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
51971         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
51972         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
51973         * lib/float_.h: Likewise.
51974         * lib/inttypes_.h: Likewise.
51975         * lib/math_.h: Likewise.
51976         * lib/search_.h: Likewise.
51977         * lib/signal_.h: Likewise.
51978         * lib/stdint_.h: Likewise.
51979         * lib/stdio_.h: Likewise.
51980         * lib/stdlib_.h: Likewise.
51981         * lib/string_.h: Likewise.
51982         * lib/sys_stat_.h: Likewise.
51983         * lib/sys_time_.h: Likewise.
51984         * lib/time_.h: Likewise.
51985         * lib/unistd_.h: Likewise.
51986         * lib/wchar_.h: Likewise.
51987         * lib/wctype_.h: Likewise.
51988         * lib/dirent_.h: Likewise.
51989         * lib/iconv_.h: Likewise.
51990         * lib/locale_.h: Likewise.
51991         * lib/netinet_in_.h: Likewise.
51992         * lib/sys_select_.h: Likewise.
51993         * lib/sys_socket_.h: Likewise.
51994         * lib/sysexits_.h: Likewise.
51995         * modules/fcntl (Depends-on): Depend on include_next, not
51996         absolute_header.
51997         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
51998         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
51999         * modules/fchdir: Likewise.
52000         * modules/float: Likewise.
52001         * modules/iconv_open: Likewise.
52002         * modules/inttypes: Likewise.
52003         * modules/locale: Likewise.
52004         * modules/math: Likewise.
52005         * modules/netinet_in: Likewise.
52006         * modules/search: Likewise.
52007         * modules/signal: Likewise.
52008         * modules/stdint: Likewise.
52009         * modules/stdio: Likewise.
52010         * modules/stdlib: Likewise.
52011         * modules/string: Likewise.
52012         * modules/sys_select: Likewise.
52013         * modules/sys_socket: Likewise.
52014         * modules/sys_stat: Likewise.
52015         * modules/sys_time: Likewise.
52016         * modules/sysexits: Likewise.
52017         * modules/time: Likewise.
52018         * modules/unistd: Likewise.
52019         * modules/wchar: Likewise.
52020         * modules/wctype: Likewise.
52021         * modules/sys_stat: Change maintainer to "all".
52022         * modules/unistd: Likewise.
52023
52024 2007-06-20  Karl Berry  <karl@gnu.org>
52025
52026         * config/srclist.txt: track www changes in license files.
52027
52028 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
52029
52030         * build-aux/bootstrap: Remove stray dot.
52031         Make sure build_aux settings are honored when linking
52032         gnulib_extra_files.
52033
52034 2007-06-19  Eric Blake  <ebb9@byu.net>
52035
52036         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
52037         Allow compilation on cygwin.
52038
52039 2007-06-19  Jim Meyering  <jim@meyering.net>
52040
52041         xreadlink-with-size: Remove module.  No longer used.
52042         Ex-callers now use xreadlink or mreadlink-with-size.
52043         * modules/xreadlink-with-size: Remove module.
52044         * lib/xreadlink-with-size.c: Remove file.
52045         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
52046         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
52047         just before the function definition *is* accurate.
52048
52049         Eliminate one way canonicalize_filename_mode could exit.
52050         * lib/canonicalize.c (canonicalize_filename_mode):
52051         Use mreadlink_with_size, not xreadlink_with_size.
52052
52053 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
52054
52055         Detect porting problems to FreeBSD/arm, which has time_t wider than
52056         long int.  Original problem reported for GNU diff by Xin Li in
52057         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
52058         * modules/getdate (Depends-on): Add intprops, verify.
52059         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
52060         is an integer type no wider than long int.
52061
52062 2007-06-18  Jim Meyering  <jim@meyering.net>
52063
52064         New module: mreadlink-with-size.
52065         * MODULES.html.sh: Add mreadlink-with-size.
52066         * modules/mreadlink-with-size: New module
52067         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
52068         not xreadlink-with-size.
52069         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
52070
52071 2007-06-16  Bruno Haible  <bruno@clisp.org>
52072
52073         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
52074         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
52075         Reported by Gary V. Vaughan <gary@gnu.org>.
52076
52077 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
52078
52079         Revamp lchown so that it lives in unistd.h where it belongs.
52080         * lib/lchown.h: Remove.
52081         * lib/dirchownmod.c: Don't include lib/lchown.h.
52082         * lib/fchownat.c: Likewise.
52083         * lib/openat.c: Likewise.
52084         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
52085         does not follow symlinks.
52086         (EOPNOTSUPP): Define if not defined.
52087         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
52088         is defined to 0.
52089         (lchown): New decl.
52090         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
52091         Do not check for lchown decl.
52092         Set REPLACE_LCHOWN.
52093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
52094         REPLACE_LCHOWN.
52095         * modules/chown: Make it clear it follows symlinks.
52096         * modules/lchown: Make it clear it doesn't follow symlinks.
52097         (Files): Remove lib/lchown.h
52098         (Depends-on): Add unistd.
52099         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
52100         (Include): Include <unistd.h>, not "lchown.h".
52101         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
52102         REPLACE_LCHOWN.
52103
52104 2007-06-15  Jim Meyering  <jim@meyering.net>
52105
52106         Change license (GPL to LGPL) of fsusage and dependents.
52107         * modules/fsusage (License): Change to LGPL.
52108         * modules/full-read (License): Likewise.
52109         * modules/full-write (License): Likewise.
52110         * modules/safe-read (License): Likewise.
52111         * modules/safe-write (License): Likewise.
52112
52113 2007-06-14  Ben Pfaff  <blp@gnu.org>
52114
52115         Missing part of allocsa -> malloca transition.
52116         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
52117         gl_MALLOCA.
52118
52119 2007-06-12  Bruno Haible  <bruno@clisp.org>
52120
52121         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
52122         to ia64, x86_64, i386.
52123         Reported by Eric Blake.
52124
52125 2007-06-12  Bruno Haible  <bruno@clisp.org>
52126
52127         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
52128         cross-compiling to x86_64.
52129
52130 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
52131
52132         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
52133         glitch reported by Ralf Wildenhues in
52134         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
52135
52136         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
52137         Vin Shelton.
52138
52139 2007-06-11  Bruno Haible  <bruno@clisp.org>
52140
52141         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
52142         replacement string.
52143         Reported by Eric Blake.
52144
52145 2007-06-10  Bruno Haible  <bruno@clisp.org>
52146
52147         Prepare vasnprintf code for use with Unicode strings.
52148         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
52149         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
52150         TYPE_U32_STRING.
52151         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
52152         a_u32_string variants.
52153         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
52154         * lib/printf-args.c: Don't include config.h and the specification
52155         header if PRINTF_FETCHARGS is already defined.
52156         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
52157         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
52158         TYPE_U16_STRING, TYPE_U32_STRING.
52159         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
52160         u16_directive, u16_directives, u32_directive, u32_directives): New
52161         types.
52162         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
52163         New declarations.
52164         * lib/printf-parse.c: Don't include config.h and the specification
52165         header if PRINTF_PARSE is already defined. Eliminate the set of
52166         parameters for WIDE_CHAR_VERSION; the user of this file must provide
52167         them now. Include c-ctype.h.
52168         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
52169         directive and CHAR_T_ONLY_ASCII.
52170         * lib/vasnprintf.c: Don't include config.h and the specification header
52171         if VASNPRINTF is already defined.
52172         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
52173         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
52174         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
52175         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
52176         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
52177         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
52178         code accordingly.
52179         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
52180         pad_ourselves also in this case, with the 'c' and 's' directives, and
52181         with a different notion of "width".
52182         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
52183
52184 2007-06-10  Bruno Haible  <bruno@clisp.org>
52185
52186         * modules/unistr/u32-mbsnlen: New file.
52187         * lib/unistr/u32-mbsnlen.c: New file.
52188
52189         * modules/unistr/u16-mbsnlen: New file.
52190         * lib/unistr/u16-mbsnlen.c: New file.
52191
52192         * modules/unistr/u8-mbsnlen: New file.
52193         * lib/unistr/u8-mbsnlen.c: New file.
52194
52195         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
52196         declarations.
52197
52198 2007-06-10  Bruno Haible  <bruno@clisp.org>
52199
52200         * lib/string_.h (mbsnlen): New declaration.
52201         * lib/mbsnlen.c: New file.
52202         * m4/mbsnlen.m4: New file.
52203         * modules/mbsnlen: New file.
52204         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
52205         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
52206         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
52207
52208 2007-06-10  Bruno Haible  <bruno@clisp.org>
52209
52210         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
52211
52212 2007-06-10  Bruno Haible  <bruno@clisp.org>
52213
52214         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
52215         * lib/mbuiter.h: Likewise.
52216
52217 2007-06-10  Bruno Haible  <bruno@clisp.org>
52218
52219         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
52220         declaration.
52221
52222 2007-06-10  Karl Berry  <karl@gnu.org>
52223
52224         * config/srclist.txt: remove gettext entries, Bruno prefers
52225         to update individually.
52226
52227 2007-06-10  Bruno Haible  <bruno@clisp.org>
52228
52229         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
52230         'maxlen'. Ensure only length + width bytes are allocated, not
52231         length + 1 + width.
52232
52233 2007-06-09  Bruno Haible  <bruno@clisp.org>
52234
52235         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
52236         (CHAR_T): Remove macro.
52237         (VASNPRINTF): Update.
52238
52239 2007-06-09  Bruno Haible  <bruno@clisp.org>
52240
52241         * MODULES.html.sh (Unicode string functions): Add the new modules.
52242
52243         * modules/uniconv/u32-conv-to-enc: New file.
52244         * lib/uniconv/u32-conv-to-enc.c: New file.
52245         * modules/uniconv/u32-conv-to-enc-tests: New file.
52246         * tests/uniconv/test-u32-conv-to-enc.c: New file.
52247
52248         * modules/uniconv/u16-conv-to-enc: New file.
52249         * lib/uniconv/u16-conv-to-enc.c: New file.
52250         * lib/uniconv/u-conv-to-enc.h: New file.
52251         * modules/uniconv/u16-conv-to-enc-tests: New file.
52252         * tests/uniconv/test-u16-conv-to-enc.c: New file.
52253
52254         * modules/uniconv/u8-conv-to-enc: New file.
52255         * lib/uniconv/u8-conv-to-enc.c: New file.
52256         * modules/uniconv/u8-conv-to-enc-tests: New file.
52257         * tests/uniconv/test-u8-conv-to-enc.c: New file.
52258
52259         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
52260         u32_conv_to_encoding): New declarations.
52261
52262 2007-06-09  Bruno Haible  <bruno@clisp.org>
52263
52264         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
52265
52266 2007-06-09  Bruno Haible  <bruno@clisp.org>
52267
52268         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
52269         * modules/malloca: Renamed from modules/allocsa, updated.
52270         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
52271         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
52272         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
52273         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
52274         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
52275         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
52276         * modules/xmalloca: Renamed from modules/xallocsa, updated.
52277         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
52278         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
52279         * modules/c-strcasestr (Depends-on): Update.
52280         * lib/c-strcasestr.c: Update.
52281         * modules/c-strstr (Depends-on): Update.
52282         * lib/c-strstr.c: Update.
52283         * modules/canonicalize-lgpl (Depends-on): Update.
52284         * lib/canonicalize-lgpl.c: Update.
52285         * modules/clean-temp (Depends-on): Update.
52286         * lib/clean-temp.c: Update.
52287         * modules/csharpcomp (Depends-on): Update.
52288         * lib/csharpcomp.c: Update.
52289         * modules/csharpexec (Depends-on): Update.
52290         * lib/csharpexec.c: Update.
52291         * modules/javacomp (Depends-on): Update.
52292         * lib/javacomp.c: Update.
52293         * modules/javaexec (Depends-on): Update.
52294         * lib/javaexec.c: Update.
52295         * modules/mbscasestr (Depends-on): Update.
52296         * lib/mbscasestr.c: Update.
52297         * modules/mbsstr (Depends-on): Update.
52298         * lib/mbsstr.c: Update.
52299         * modules/setenv (Depends-on): Update.
52300         * lib/setenv.c: Update.
52301         * modules/strcasestr (Depends-on): Update.
52302         * lib/strcasestr.c: Update.
52303         * modules/striconveha (Depends-on): Update.
52304         * lib/striconveha.c: Update.
52305         * modules/relocatable-prog-wrapper (Files): Update.
52306         * lib/relocwrapper.c: Update.
52307         * build-aux/install-reloc: Update.
52308         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
52309
52310 2007-06-08  Bruno Haible  <bruno@clisp.org>
52311
52312         Port to uClibc.
52313         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
52314         * lib/fpurge.c (fpurge): Likewise.
52315         * lib/freading.c (freading): Likewise.
52316         * lib/fseeko.c (rpl_fseeko): Likewise.
52317         * lib/fseterr.c (fseterr): Likewise.
52318         * lib/fwriting.c (fwriting): Likewise.
52319         * tests/test-fflush.c (main): Avoid a failure on uClibc.
52320
52321 2007-06-08  Bruno Haible  <bruno@clisp.org>
52322
52323         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
52324         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
52325         * modules/gettext (Files): Add m4/intlmacosx.m4.
52326
52327 2007-06-07  Bruno Haible  <bruno@clisp.org>
52328
52329         * modules/localename-tests: New file.
52330         * tests/test-localename.c: New file.
52331
52332         New module 'localename'.
52333         * lib/localename.h: New file.
52334         * lib/localename.c: New file, from GNU gettext.
52335         * m4/localename.m4: New file.
52336         * modules/localename: New file.
52337
52338 2007-06-07  Bruno Haible  <bruno@clisp.org>
52339
52340         Work around the lack of <wchar.h> on some builds of uClibc.
52341         * doc/headers/wchar.texi: Update.
52342         * lib/wchar_.h: Include <wchar.h> only if it exists.
52343         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
52344         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
52345         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
52346         doesn't exist.
52347         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
52348         * modules/mbfile (Depends-on): Add wchar.
52349         * modules/mbiter (Depends-on): Likewise.
52350         * modules/mbuiter (Depends-on): Likewise.
52351         Reported by Simon Josefsson.
52352
52353 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
52354
52355         Work around problem reported by Steven M. Schweda in
52356         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
52357         Tru64 5.1B with the Compaq compiler environment installed declares
52358         an 'isblank' function but does not define it in the C library.
52359         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
52360         * lib/regex_internal.h (isblank): Likewise.
52361         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
52362         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52363
52364 2007-06-05  Bruno Haible  <bruno@clisp.org>
52365
52366         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
52367         ia64.
52368         * modules/printf-safe: New file.
52369         * modules/fprintf-posix (Depends-on): Add printf-safe.
52370         * modules/printf-posix (Depends-on): Likewise.
52371         * modules/snprintf-posix (Depends-on): Likewise.
52372         * modules/sprintf-posix (Depends-on): Likewise.
52373         * modules/vasnprintf-posix (Depends-on): Likewise.
52374         * modules/vasprintf-posix (Depends-on): Likewise.
52375         * modules/vfprintf-posix (Depends-on): Likewise.
52376         * modules/vprintf-posix (Depends-on): Likewise.
52377         * modules/vsnprintf-posix (Depends-on): Likewise.
52378         * modules/vsprintf-posix (Depends-on): Likewise.
52379         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
52380         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
52381         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
52382         "no" on i386, x86_64, ia64.
52383         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
52384         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52385         on i386, x86_64, ia64.
52386         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
52387         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52388         on i386, x86_64, ia64.
52389         * tests/test-vasnprintf-posix.c: Include float.h.
52390         (LDBL80_WORDS): New macro.
52391         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52392         on i386, x86_64, ia64.
52393         * tests/test-vasprintf-posix.c: Include float.h.
52394         (LDBL80_WORDS): New macro.
52395         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
52396         on i386, x86_64, ia64.
52397         * tests/test-snprintf-posix.c: Include float.h.
52398         * tests/test-sprintf-posix.c: Likewise.
52399         * tests/test-vsnprintf-posix.c: Likewise.
52400         * tests/test-vsprintf-posix.c: Likewise.
52401
52402 2007-06-05  Bruno Haible  <bruno@clisp.org>
52403
52404         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
52405         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
52406         non-IEEE numbers on i386, x86_64, ia64.
52407         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
52408         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
52409         * tests/test-isnanl.h: Include float.h.
52410         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
52411
52412 2007-06-05  Bruno Haible  <bruno@clisp.org>
52413
52414         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
52415         also the %a / %A. Handle the %a / %A code before this extra handling.
52416
52417 2007-06-05  Bruno Haible  <bruno@clisp.org>
52418
52419         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
52420         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
52421
52422 2007-06-05  Bruno Haible  <bruno@clisp.org>
52423
52424         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
52425         typo in variable name.
52426
52427 2007-06-05  Eric Blake  <ebb9@byu.net>
52428
52429         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
52430         Reported by Simon Josefsson.
52431
52432 2007-06-04  Bruno Haible  <bruno@clisp.org>
52433
52434         Avoid test failures on some PowerPC platforms.
52435         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
52436         Define differently for PowerPC.
52437         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
52438         Reported by Gary V. Vaughan <gary@gnu.org>.
52439
52440 2007-06-02  Bruno Haible  <bruno@clisp.org>
52441
52442         Fix test-stdint failure on FreeBSD/ia64.
52443         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
52444         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
52445         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
52446         * doc/headers/stdint.texi: Update.
52447
52448 2007-06-01  Bruno Haible  <bruno@clisp.org>
52449
52450         * tests/test-binary-io.c (main): Pass a third argument to open().
52451         Reported by Gary V. Vaughan <gary@gnu.org>.
52452
52453 2007-06-01  Bruno Haible  <bruno@clisp.org>
52454
52455         * doc/functions/frexpl.texi: Update for mingw.
52456
52457 2007-06-01  Bruno Haible  <bruno@clisp.org>
52458
52459         * tests/test-lseek.c (main): Disable test of errno for invalid third
52460         argument.
52461         * doc/functions/lseek.texi: Update.
52462         Reported by Gary V. Vaughan <gary@gnu.org>.
52463
52464 2007-05-28  Bruno Haible  <bruno@clisp.org>
52465
52466         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
52467
52468 2007-05-31  Eric Blake  <ebb9@byu.net>
52469
52470         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
52471         cross compiling.
52472
52473 2007-05-30  Eric Blake  <ebb9@byu.net>
52474         and Bruno Haible  <bruno@clisp.org>
52475
52476         Work around mingw test failures exposed by m4-1.4.9b.
52477         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
52478         * tests/test-unistd.c: Disable uid_t and git_t tests for the
52479         moment.
52480
52481 2007-05-30  Bruno Haible  <bruno@clisp.org>
52482
52483         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
52484         assuming that they are closed. Needed on HP-UX 11.
52485
52486 2007-05-29  Bruno Haible  <bruno@clisp.org>
52487
52488         Fix a problem with #include_next.
52489         * lib/dirent_.h: Split the double-inclusion guard.
52490         * lib/fcntl_.h: Likewise.
52491         * lib/float_.h: Likewise.
52492         * lib/iconv_.h: Likewise.
52493         * lib/inttypes_.h: Likewise.
52494         * lib/locale_.h: Likewise.
52495         * lib/math_.h: Likewise.
52496         * lib/netinet_in_.h: Likewise.
52497         * lib/search_.h: Likewise.
52498         * lib/signal_.h: Likewise.
52499         * lib/stdint_.h: Likewise.
52500         * lib/stdio_.h: Likewise.
52501         * lib/stdlib_.h: Likewise.
52502         * lib/string_.h: Likewise.
52503         * lib/sys_select_.h: Likewise.
52504         * lib/sys_socket_.h: Likewise.
52505         * lib/sys_stat_.h: Likewise.
52506         * lib/sys_time_.h: Likewise.
52507         * lib/sysexits_.h: Likewise.
52508         * lib/time_.h: Likewise.
52509         * lib/unistd_.h: Likewise.
52510         * lib/wchar_.h: Likewise.
52511         * lib/wctype_.h: Likewise.
52512
52513 2007-05-29  Bruno Haible  <bruno@clisp.org>
52514
52515         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
52516         for the moment.
52517
52518 2007-05-29  Bruno Haible  <bruno@clisp.org>
52519
52520         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
52521         invocation.
52522         Reported by Eric Blake.
52523
52524 2007-05-29  Bruno Haible  <bruno@clisp.org>
52525
52526         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
52527         compiling case.
52528
52529 2007-05-29  Eric Blake  <ebb9@byu.net>
52530             Bruno Haible  <bruno@clisp.org>
52531
52532         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
52533         cross compiles.
52534
52535 2007-05-28  Eric Blake  <ebb9@byu.net>
52536
52537         * modules/closein-tests (test_closein_LDADD): Support test on
52538         cygwin with libtool.
52539
52540 2007-05-28  Bruno Haible  <bruno@clisp.org>
52541
52542         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
52543         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52544         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52545         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52546         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52547         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52548         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52549         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52550         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52551
52552 2007-05-28  Eric Blake  <ebb9@byu.net>
52553
52554         Unconditionally include <config.h> in unit tests.
52555         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
52556         * tests/test-allocsa.c, tests/test-arcfour.c,
52557         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
52558         tests/test-array_list.c, tests/test-array_oset.c,
52559         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
52560         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
52561         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
52562         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
52563         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
52564         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
52565         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
52566         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
52567         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
52568         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
52569         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
52570         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
52571         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
52572         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
52573         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
52574         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
52575         test-md5.c, test-memmem.c, test-printf-posix.c,
52576         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
52577         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
52578         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
52579         test-strcasestr.c, test-striconv.c, test-striconveh.c,
52580         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
52581         test-vasnprintf-posix2.c, test-vasnprintf.c,
52582         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
52583         test-vfprintf-posix.c, test-vprintf-posix.c,
52584         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
52585         test-xvasprintf.c: Likewise.
52586
52587 2007-05-28  Bruno Haible  <bruno@clisp.org>
52588
52589         * gnulib-tool (func_import): Remember the --with-tests command-line
52590         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
52591         Reported by Eric Blake.
52592
52593 2007-05-28  Bruno Haible  <bruno@clisp.org>
52594
52595         * modules/ftell-tests: New file.
52596         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
52597         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
52598
52599         * lib/ftell.c: New file.
52600         * modules/ftell: New file.
52601         * m4/ftell.m4: New file.
52602         * doc/functions/ftell.texi: Update.
52603         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
52604         REPLACE_FTELL.
52605         * lib/stdio_.h (rpl_ftell): New declaration.
52606         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
52607         REPLACE_FTELL.
52608
52609 2007-05-28  Eric Blake  <ebb9@byu.net>
52610
52611         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
52612
52613 2007-05-28  Bruno Haible  <bruno@clisp.org>
52614
52615         * modules/fseek-tests: New file.
52616         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
52617         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
52618
52619         * lib/fseek.c: New file.
52620         * modules/fseek: New file.
52621         * m4/fseek.m4: New file.
52622         * doc/functions/fseek.texi: Update.
52623         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
52624         REPLACE_FSEEK.
52625         * lib/stdio_.h (rpl_fseek): New declaration.
52626         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
52627         REPLACE_FSEEK.
52628
52629 2007-05-28  Bruno Haible  <bruno@clisp.org>
52630
52631         * lib/stdio_.h (fflush): More comments.
52632
52633 2007-05-28  Bruno Haible  <bruno@clisp.org>
52634
52635         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
52636         runtime test.
52637
52638 2007-05-28  Eric Blake  <ebb9@byu.net>
52639
52640         Improve lseek module.
52641         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
52642         * lib/unistd_.h (lseek): Scale back link warning message.
52643         * tests/test-lseek.c: Beef up test.
52644         * tests/test-lseek.sh: Exercise more facets of lseek.
52645         Reported by Bruno Haible.
52646
52647 2007-05-28  Bruno Haible  <bruno@clisp.org>
52648
52649         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
52650         to define.
52651
52652 2007-05-27  Bruno Haible  <bruno@clisp.org>
52653
52654         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
52655
52656 2007-05-27  Bruno Haible  <bruno@clisp.org>
52657
52658         * modules/openmp: New file.
52659         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
52660         Noah Misch.
52661
52662 2007-05-26  Bruno Haible  <bruno@clisp.org>
52663
52664         * modules/chdir-long (Depends-on): Add fchdir.
52665         * modules/chdir-safer (Depends-on): Likewise.
52666         * modules/fts (Depends-on): Likewise.
52667         * modules/fts-lgpl (Depends-on): Likewise.
52668         * modules/openat (Depends-on): Likewise.
52669         * modules/savewd (Depends-on): Likewise.
52670
52671 2007-05-24  Eric Blake  <ebb9@byu.net>
52672
52673         Fix lseek on mingw.
52674         * modules/lseek: New module.
52675         * m4/lseek.m4: New file.
52676         * lib/lseek.c: New file.
52677         * modules/lseek-tests: New file.
52678         * tests/test-lseek.c: New file.
52679         * tests/test-lseek.sh: New file.
52680         * MODULES.html.sh: Document lseek module.
52681         * modules/fflush (Depends-on): Add lseek, fseeko.
52682         * modules/fseeko (Depends-on): Likewise.
52683         * modules/ftello (Depends-on): Likewise.
52684         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
52685         broken.
52686         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
52687         broken.
52688         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
52689         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
52690         * lib/ftello.c (rpl_ftello): Likewise.
52691         * tests/test-fseeko.c (main): Test this.
52692         * tests/test-fseeko.sh: Likewise.
52693         * tests/test-ftello.c (main): Likewise.
52694         * tests/test-ftello.sh: Likewise.
52695         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
52696         implies replacing fseek.
52697         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
52698         HAVE_FTELLO.
52699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
52700         * modules/unistd (Makefile.am): Likewise.
52701         * lib/unistd_.h (lseek): Declare a replacement.
52702         * doc/functions/lseek.texi (lseek): Document this fix.
52703         * doc/functions/fseek.texi (fseek): Likewise.
52704         * doc/functions/ftell.texi (ftell): Likewise.
52705
52706 2007-05-24  Bruno Haible  <bruno@clisp.org>
52707
52708         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
52709         in the printed representation of a NaN.
52710         * tests/test-vasprintf-posix.c (test_function): Likewise.
52711         * tests/test-snprintf-posix.h (test_function): Likewise.
52712         * tests/test-sprintf-posix.h (test_function): Likewise.
52713         Reported by Eric Blake.
52714
52715 2007-05-23  Eric Blake  <ebb9@byu.net>
52716
52717         Fix fseeko/ftello on cygwin 1.5.24.
52718         * doc/functions/fseeko.texi (fseeko): Document the fix.
52719         * doc/functions/ftello.texi (ftello): Document the fix.
52720         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
52721         * doc/functions/stdout.text (stdout): New file.
52722         * doc/functions/stderr.text (stderr): New file.
52723         * doc/gnulib.texi (Function Substitutes): Use new files.
52724         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
52725         prior to 1.7.0.
52726         * tests/test-ftello.c (main): Likewise for ftello.
52727         * tests/test-fseeko.sh: New file.
52728         * tests/test-ftello.sh: New file.
52729         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
52730         with seekable stdin.
52731         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
52732         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
52733         (gl_REPLACE_FSEEKO): New macro.
52734         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
52735         * modules/fseeko (Files): Distribute fseeko.c.
52736         * modules/ftello (Files): Distribute ftello.c.
52737         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
52738         mode.
52739         * lib/ftello.c (rpl_ftello): New file.
52740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
52741         fseeko, ftello.
52742         (gl_STDIN_LARGE_OFFSET): New macro.
52743         * modules/stdio (Makefile.am): Perform the replacement.
52744         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
52745
52746 2007-05-23  Bruno Haible  <bruno@clisp.org>
52747
52748         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
52749         GNULIB_POSIXCHECK is defined.
52750
52751 2007-05-21  Bruno Haible  <bruno@clisp.org>
52752
52753         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
52754         Check also the output for NaN arguments. When cross-compiling, guess
52755         no on IRIX.
52756         * lib/vasnprintf.c: Update comments.
52757         * tests/test-vasnprintf-posix.c (strisnan): New function.
52758         (test_function): Use it.
52759         * tests/test-vasprintf-posix.c (strisnan): New function.
52760         (test_function): Use it.
52761         * tests/test-snprintf-posix.h (strisnan): New function.
52762         (test_function): Use it.
52763         * tests/test-sprintf-posix.h (strisnan): New function.
52764         (test_function): Use it.
52765         Reported by Eric Blake.
52766
52767 2007-05-20  Bruno Haible  <bruno@clisp.org>
52768
52769         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
52770         numbers that fails on BeOS.
52771         * doc/functions/frexpl.texi: Update.
52772
52773 2007-05-20  Jim Meyering  <jim@meyering.net>
52774
52775         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
52776         forced upon us by glibc-2.6.
52777
52778 2007-05-20  Bruno Haible  <bruno@clisp.org>
52779
52780         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
52781         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
52782         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
52783         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
52784         NEED_PRINTF_INFINITE.
52785         (is_infinitel): New function.
52786         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
52787         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
52788         gl_PREREQ_VASNPRINTF_INFINITE.
52789         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
52790         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52791         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
52792         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
52793         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
52794         gl_PREREQ_VASNPRINTF_INFINITE.
52795         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52796         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52797         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52798         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52799         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52800         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52801         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52802         * doc/functions/fprintf.texi: Update.
52803         * doc/functions/printf.texi: Update.
52804         * doc/functions/snprintf.texi: Update.
52805         * doc/functions/sprintf.texi: Update.
52806         * doc/functions/vfprintf.texi: Update.
52807         * doc/functions/vprintf.texi: Update.
52808         * doc/functions/vsnprintf.texi: Update.
52809         * doc/functions/vsprintf.texi: Update.
52810
52811 2007-05-20  Bruno Haible  <bruno@clisp.org>
52812
52813         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
52814         was not found in libc.
52815         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
52816
52817 2007-05-20  Bruno Haible  <bruno@clisp.org>
52818
52819         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
52820         printed as "-nan" instead of "nan".
52821         * tests/test-vasprintf-posix.c (test_function): Likewise.
52822         * tests/test-snprintf-posix.h (test_function): Likewise.
52823         * tests/test-sprintf-posix.h (test_function): Likewise.
52824         Needed for HP-UX 11.
52825
52826 2007-05-20  Jim Meyering  <jim@meyering.net>
52827
52828         Fix buggy test for the fchownat-deref bug.
52829         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
52830         symlink required for the run-test.  Without it, this test would
52831         always declare that fchownat doesn't work, and client code would
52832         unnecessarily use the replacement function with fixed libc.
52833         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
52834         Reported by Greg Schafer.
52835
52836 2007-05-19  Bruno Haible  <bruno@clisp.org>
52837
52838         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
52839         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
52840         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
52841         Needed for IRIX 6.5 and Solaris 2.5.1.
52842
52843 2007-05-19  Bruno Haible  <bruno@clisp.org>
52844
52845         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
52846         (test_function): Skip tests involving -0.0 on platforms where
52847         -0.0 = 0.0.
52848         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
52849         (test_function): Skip tests involving -0.0 on platforms where
52850         -0.0 = 0.0.
52851         * tests/test-snprintf-posix.h (have_minus_zero): New function.
52852         (test_function): Skip tests involving -0.0 on platforms where
52853         -0.0 = 0.0.
52854         * tests/test-sprintf-posix.h (have_minus_zero): New function.
52855         (test_function): Skip tests involving -0.0 on platforms where
52856         -0.0 = 0.0.
52857         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
52858         tests.
52859         * tests/test-printf-posix.h (test_function): Likewise.
52860         * tests/test-printf-posix.output: Remove all -0.0 related results.
52861         Needed for IRIX 6.5.
52862
52863 2007-05-19  Bruno Haible  <bruno@clisp.org>
52864
52865         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
52866         printed as "nan0x7fffffff" instead of "nan".
52867         * tests/test-vasprintf-posix.c (test_function): Likewise.
52868         * tests/test-snprintf-posix.h (test_function): Likewise.
52869         * tests/test-sprintf-posix.h (test_function): Likewise.
52870         * tests/test-fprintf-posix.h (NaN): Remove macro.
52871         (test_function): Remove all NaN related tests.
52872         * tests/test-printf-posix.h (NaN): Remove macro.
52873         (test_function): Remove all NaN related tests.
52874         * tests/test-printf-posix.output: Remove all NaN related results.
52875         Needed for IRIX 6.5.
52876
52877 2007-05-19  Bruno Haible  <bruno@clisp.org>
52878
52879         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
52880         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
52881
52882 2007-05-19  Bruno Haible  <bruno@clisp.org>
52883
52884         * lib/float_.h: New file.
52885         * m4/float_h.m4: New file.
52886         * modules/float: New file.
52887         * modules/isnanl (Dependencies): Add float.
52888         * modules/isnanl-nolibm (Dependencies): Likewise.
52889         * modules/mathl (Dependencies): Likewise.
52890         * modules/printf-frexpl (Dependencies): Likewise.
52891         * modules/signbit (Dependencies): Likewise.
52892         * modules/vasnprintf (Dependencies): Likewise.
52893         * doc/headers/float.texi: Update.
52894
52895 2007-05-19  Jim Meyering  <jim@meyering.net>
52896
52897         * lib/utimens.c (gl_futimens): Rename from futimens,
52898         now that glibc-2.6 declares futimens.
52899         * lib/utimens.h: Likewise.
52900
52901 2007-05-19  Bruno Haible  <bruno@clisp.org>
52902
52903         Avoid test failures on mingw.
52904         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
52905         * tests/test-printf-posix.sh: Likewise.
52906         * tests/test-vfprintf-posix.sh: Likewise.
52907         * tests/test-vprintf-posix.sh: Likewise.
52908
52909 2007-05-19  Bruno Haible  <bruno@clisp.org>
52910
52911         Fix *printf result for NaN, Inf, -0.0 on mingw.
52912         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
52913         * lib/vasnprintf.c: Include math.h and isnan.h.
52914         (is_infinite_or_zero): New function.
52915         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
52916         values in the %f, %F, %e, %E, %g, %G directives.
52917         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
52918         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52919         gl_PRINTF_INFINITE and test its result. Invoke
52920         gl_PREREQ_VASNPRINTF_INFINITE.
52921         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52922         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52923         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52924         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52925         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52926         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52927         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52928         * doc/functions/fprintf.texi: Update.
52929         * doc/functions/printf.texi: Update.
52930         * doc/functions/snprintf.texi: Update.
52931         * doc/functions/sprintf.texi: Update.
52932         * doc/functions/vfprintf.texi: Update.
52933         * doc/functions/vprintf.texi: Update.
52934         * doc/functions/vsnprintf.texi: Update.
52935         * doc/functions/vsprintf.texi: Update.
52936
52937 2007-05-19  Bruno Haible  <bruno@clisp.org>
52938
52939         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
52940         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
52941         Instead of multiplying with 10^k, set extra_zeroes to k.
52942         (scale10_round_long_double): Remove function.
52943
52944 2007-05-18  Bruno Haible  <bruno@clisp.org>
52945
52946         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
52947         introduced on 2007-05-06.
52948
52949 2007-05-18  Bruno Haible  <bruno@clisp.org>
52950
52951         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
52952         %g directives.
52953         * tests/test-vasprintf-posix.c (test_function): Likewise.
52954         * tests/test-snprintf-posix.h (test_function): Likewise.
52955         * tests/test-sprintf-posix.h (test_function): Likewise.
52956
52957 2007-05-18  Bruno Haible  <bruno@clisp.org>
52958
52959         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
52960         (strmatch): New function.
52961         (test_function): Test the %f directive on numbers of various exponents.
52962         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
52963         (strmatch): New function.
52964         (test_function): Test the %f directive on numbers of various exponents.
52965         * tests/test-snprintf-posix.h (strmatch): New function.
52966         (test_function): Test the %f directive on numbers of various exponents.
52967         * tests/test-sprintf-posix.h (strmatch): New function.
52968         (test_function): Test the %f directive on numbers of various exponents.
52969         * tests/test-snprintf-posix.c (SIZEOF): New macro.
52970         * tests/test-sprintf-posix.c (SIZEOF): New macro.
52971         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
52972         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
52973
52974 2007-05-18  Bruno Haible  <bruno@clisp.org>
52975
52976         Add support for 'long double' number output.
52977         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
52978         * lib/vasnprintf.c: Include math.h and float+.h.
52979         (mp_limb_t): New type.
52980         (GMP_LIMB_BITS): New macro.
52981         (mp_twolimb_t): New type.
52982         (GMP_TWOLIMB_BITS): New macro.
52983         (mpn_t): New type.
52984         (multiply, divide, convert_to_decimal, decode_long_double,
52985         scale10_round_long_double, scale10_round_decimal_long_double,
52986         floorlog10l): New functions.
52987         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
52988         for the %f, %F, %e, %E, %g, %G directives.
52989         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
52990         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52991         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
52992         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
52993         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52994         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52995         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52996         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52997         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52998         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52999         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53000         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
53001         * modules/snprintf-posix (Depends-on): Likewise.
53002         * modules/sprintf-posix (Depends-on): Likewise.
53003         * modules/vasnprintf-posix (Depends-on): Likewise.
53004         * modules/vasprintf-posix (Depends-on): Likewise.
53005         * modules/vfprintf-posix (Depends-on): Likewise.
53006         * modules/vsnprintf-posix (Depends-on): Likewise.
53007         * modules/vsprintf-posix (Depends-on): Likewise.
53008         * modules/vasnprintf (Files): Add lib/float+.h.
53009         * doc/functions/fprintf.texi: Update.
53010         * doc/functions/printf.texi: Update.
53011         * doc/functions/snprintf.texi: Update.
53012         * doc/functions/sprintf.texi: Update.
53013         * doc/functions/vfprintf.texi: Update.
53014         * doc/functions/vprintf.texi: Update.
53015         * doc/functions/vsnprintf.texi: Update.
53016         * doc/functions/vsprintf.texi: Update.
53017
53018 2007-05-18  Bruno Haible  <bruno@clisp.org>
53019
53020         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
53021
53022 2007-05-18  Bruno Haible  <bruno@clisp.org>
53023
53024         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
53025         for printing 64-bit integers. Needed for mingw.
53026
53027 2007-05-18  Bruno Haible  <bruno@clisp.org>
53028
53029         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53030         gl_FUNC_FREXPL_WORKS.
53031         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
53032
53033 2007-05-18  Bruno Haible  <bruno@clisp.org>
53034
53035         * modules/frexpl-nolibm-tests: New file.
53036
53037         * modules/frexpl-nolibm: New file.
53038         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
53039
53040 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
53041
53042         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
53043         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53044         GCC 4.2, which otherwise issues a lot of warnings.
53045         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
53046         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
53047         Likewise.
53048         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
53049         * modules/iconv_open (iconv.h): Likewise.
53050         * modules/locale (locale.h): Likewise.
53051         * modules/netinet_in (netinet/in.h): Likewise.
53052         * modules/sys_select (sys_select.h): Likewise.
53053         * modules/sys_socket (sys/socket.h): Likewise.
53054         * modules/sys_stat (sys/stat.h): Likewise.
53055         * modules/sysexits (sysexits.h): Likewise.
53056         * modules/unistd (unistd.h): Likewise.
53057
53058 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53059
53060         * modules/closein-tests (Makefile.am): Distribute
53061         `test-closein.sh'.
53062
53063 2007-05-17  Bruno Haible  <bruno@clisp.org>
53064
53065         * tests/test-printf-posix.output: Renamed from
53066         tests/test-fprintf-posix.out.
53067         * modules/fprintf-posix-tests: Update.
53068         * modules/printf-posix-tests: Update.
53069         * modules/vfprintf-posix-tests: Update.
53070         * modules/vprintf-posix-tests: Update.
53071         * tests/test-fprintf-posix.sh: Update.
53072         * tests/test-printf-posix.sh: Update.
53073         * tests/test-vfprintf-posix.sh: Update.
53074         * tests/test-vprintf-posix.sh: Update.
53075         Reported by Ralf Wildenhues.
53076
53077 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
53078
53079         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
53080         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
53081         GCC 4.2, which otherwise issues a lot of warnings.
53082         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
53083         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
53084         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
53085         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
53086         it should no longer be needed.
53087         * lib/string_.h: Likewise.
53088         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
53089         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
53090         * modules/inttypes (inttypes.h): Likewise.
53091         * modules/math (math.h): Likewise.
53092         * modules/search (search.h): Likewise.
53093         * modules/signal (signal.h): Likewise.
53094         * modules/stdint (stdint.h): Likewise.
53095         * modules/stdio (stdio.h): Likewise.
53096         * modules/stdlib (stdlib.h): Likewise.
53097         * modules/string (string.h): Likewise.
53098         * modules/sys_time (sys/time.h): Likewise.
53099         * modules/time (time.h): Likewise.
53100         * modules/wchar (wchar.h): Likewise.
53101         * modules/wctype (wtype.h): Likewise.
53102
53103 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53104
53105         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
53106
53107 2007-05-13  Bruno Haible  <bruno@clisp.org>
53108
53109         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
53110         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53111         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
53112         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53113         (gl_PREREQ_STRTOK_R): Don't require it here.
53114
53115 2007-05-13  Bruno Haible  <bruno@clisp.org>
53116
53117         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
53118         when used in C++ mode.
53119
53120 2007-05-12  Bruno Haible  <bruno@clisp.org>
53121
53122         * lib/linebuffer.h: Tweak doc.
53123         * lib/linebuffer.c: Likewise.
53124
53125 2007-05-12  James Youngman  <jay@gnu.org>
53126
53127         * lib/linebuffer.c (readlinebuffer_delim): New function,
53128         like readlinebuffer, but use a caller-specified delimiter.
53129         (readlinebuffer): Just call readlinebuffer_delim with '\n'
53130         as the delimiter.
53131         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
53132
53133 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53134
53135         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
53136         * modules/openat (Files): Remove openat-die.c.
53137         (Depends-on): Add openat-die.
53138         * modules/openat-die: New module.
53139
53140 2007-05-06  Bruno Haible  <bruno@clisp.org>
53141
53142         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
53143         Update with info about Cygwin.
53144         * doc/functions/fprintf.texi: Update.
53145         * doc/functions/printf.texi: Update.
53146         * doc/functions/snprintf.texi: Update.
53147         * doc/functions/sprintf.texi: Update.
53148         * doc/functions/vfprintf.texi: Update.
53149         * doc/functions/vprintf.texi: Update.
53150         * doc/functions/vsnprintf.texi: Update.
53151         * doc/functions/vsprintf.texi: Update.
53152         Reported by Eric Blake.
53153
53154 2007-05-06  Bruno Haible  <bruno@clisp.org>
53155
53156         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
53157         padding ourselves for the floating-point directives.
53158         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
53159         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
53160         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53161         gl_PRINTF_FLAG_ZERO and test its result. Invoke
53162         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
53163         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53164         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
53165         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53166         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53167         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53168         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53169         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53170         * tests/test-snprintf-posix.h (test_function): Also check the width
53171         and some flags in the %f directive.
53172         * tests/test-sprintf-posix.h (test_function): Likewise.
53173         * tests/test-vasnprintf-posix.c (test_function): Likewise.
53174         * tests/test-vasprintf-posix.c (test_function): Likewise.
53175         * doc/functions/fprintf.texi: Update.
53176         * doc/functions/printf.texi: Update.
53177         * doc/functions/snprintf.texi: Update.
53178         * doc/functions/sprintf.texi: Update.
53179         * doc/functions/vfprintf.texi: Update.
53180         * doc/functions/vprintf.texi: Update.
53181         * doc/functions/vsnprintf.texi: Update.
53182         * doc/functions/vsprintf.texi: Update.
53183
53184 2007-05-06  Bruno Haible  <bruno@clisp.org>
53185
53186         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
53187         pass the ' flag character to sprintf or snprintf.
53188         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
53189         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
53190         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53191         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
53192         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
53193         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53194         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
53195         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53196         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53197         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53198         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53199         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53200         * tests/test-snprintf-posix.h (test_function): Also check the grouping
53201         flag.
53202         * tests/test-sprintf-posix.h (test_function): Likewise.
53203         * tests/test-vasnprintf-posix.c (test_function): Likewise.
53204         * tests/test-vasprintf-posix.c (test_function): Likewise.
53205         * doc/functions/fprintf.texi: Update.
53206         * doc/functions/printf.texi: Update.
53207         * doc/functions/snprintf.texi: Update.
53208         * doc/functions/sprintf.texi: Update.
53209         * doc/functions/vfprintf.texi: Update.
53210         * doc/functions/vprintf.texi: Update.
53211         * doc/functions/vsnprintf.texi: Update.
53212         * doc/functions/vsprintf.texi: Update.
53213
53214 2007-05-01  Bruno Haible  <bruno@clisp.org>
53215
53216         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
53217
53218 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
53219
53220         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
53221         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
53222
53223 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53224
53225         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
53226         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
53227         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
53228
53229 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
53230
53231         * lib/argp-help.c (struct hol_entry): New member `ord'.
53232         (HOL_ENTRY_PTRCMP): Use ord for comparison
53233         (hol_sort): Initialize ord.
53234
53235 2007-05-01  Bruno Haible  <bruno@clisp.org>
53236
53237         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
53238         Reported by Eric Blake.
53239         * doc/gnulib.texi (Function Substitutes): Update.
53240
53241 2007-05-01  Bruno Haible  <bruno@clisp.org>
53242
53243         * doc/functions.texi: Remove file, now redundant through
53244         doc/functions/*.texi.
53245
53246 2007-05-01  Bruno Haible  <bruno@clisp.org>
53247
53248         * modules/argp (Depends-on): Add sleep.
53249
53250 2007-05-01  Bruno Haible  <bruno@clisp.org>
53251
53252         * modules/sleep-tests: New file.
53253         * tests/test-sleep.c: New file.
53254
53255         * modules/sleep: New file.
53256         * lib/sleep.c: New file.
53257         * m4/sleep.m4: New file.
53258         * lib/unistd_.h (sleep): New declaration.
53259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
53260         HAVE_SLEEP.
53261         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
53262         * doc/functions/sleep.texi: Document the sleep module.
53263
53264 2007-05-01  Bruno Haible  <bruno@clisp.org>
53265
53266         * lib/sigprocmask.h: Remove file.
53267         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
53268         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
53269         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
53270         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
53271         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
53272         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
53273         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
53274         HAVE_SIGSET_T as a shell variable.
53275         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
53276         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
53277         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
53278         (Depends-on): Add signal. Remove verify.
53279         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
53280         (Include): Mention <signal.h> instead of sigprocmask.h.
53281         * NEWS: Mention the change.
53282         * lib/fatal-signal.c: Don't include sigprocmask.h.
53283
53284 2007-05-01  Bruno Haible  <bruno@clisp.org>
53285
53286         * modules/signal: New file.
53287         * lib/signal_.h: New file.
53288         * m4/signal_h.m4: New file.
53289
53290 2007-05-01  Bruno Haible  <bruno@clisp.org>
53291
53292         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
53293         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
53294         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
53295         HAVE_WCTYPE_CTMP_BUG into wctype.h.
53296
53297 2007-05-01  Bruno Haible  <bruno@clisp.org>
53298
53299         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
53300         configure time.
53301         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
53302         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
53303         * modules/sys_stat (Makefile.am): Substitute their values into
53304         sys/stat.h.
53305
53306 2007-05-01  Bruno Haible  <bruno@clisp.org>
53307
53308         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
53309         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
53310         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
53311
53312 2007-05-01  Bruno Haible  <bruno@clisp.org>
53313
53314         * doc/header/assert.texi: Undo last change: don't mention the gnulib
53315         'assert' module here.
53316
53317 2007-05-01  Bruno Haible  <bruno@clisp.org>
53318
53319         * doc/functions/*.texi: New files.
53320         * doc/functions/google-ranking.txt: New file.
53321         * doc/gnulib.texi (Function Substitutes): New chapter.
53322         (ctime, inet_ntoa): Remove sections.
53323         * doc/ctime.texi: Remove file.
53324         * doc/inet_ntoa.texi: Remove file.
53325         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
53326         dependencies.
53327         (%.info): New rule, specifying a --reference-limit.
53328
53329 2007-05-01  Bruno Haible  <bruno@clisp.org>
53330
53331         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
53332
53333 2007-05-01  Bruno Haible  <bruno@clisp.org>
53334
53335         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
53336         the portability of 'mkdir' to mingw systems.
53337
53338 2007-05-01  Bruno Haible  <bruno@clisp.org>
53339
53340         * doc/headers/google-ranking.txt: New file.
53341
53342 2007-04-30  Eric Blake  <ebb9@byu.net>
53343
53344         Prefer fseeko to fseek.
53345         * modules/getpass (Depends-on): Add fseeko.
53346         * lib/getpass.c (getpass): Use fseeko, not fseek.
53347
53348 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
53349
53350         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
53351         assumes the sorting is stable, while most qsort implementations
53352         are not.  Use argument addresses to ensure they never compare as
53353         equal.
53354
53355         * tests/test-argp-2.sh (usage-indent test): Fix output
53356         (func_compare): Restore diff options
53357         * tests/test-argp.c: Restore #include "progname.h"
53358
53359 2007-04-29  Bruno Haible  <bruno@clisp.org>
53360
53361         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
53362         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53363         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
53364         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53365         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
53366         (configure.ac): Define CHECK_SNPRINTF_POSIX.
53367         (TESTS, check_PROGRAMS): Add test-snprintf.
53368         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
53369         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
53370         (TESTS, check_PROGRAMS): Add test-vsnprintf.
53371         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
53372         assertions that fail on HP-UX, OSF/1, or IRIX.
53373         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
53374
53375 2007-04-29  Bruno Haible  <bruno@clisp.org>
53376
53377         * MODULES.html.sh (posix_functions): Remove 'contents'.
53378
53379 2007-04-29  Karl Berry  <karl@gnu.org>
53380
53381         * config/srclist.txt (gendocs_template_min): new entry.
53382
53383 2007-04-29  Bruno Haible  <bruno@clisp.org>
53384
53385         Work around fpurge bug on BSD systems.
53386         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
53387         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
53388         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
53389         fpurge to rpl_fpurge if the system already has this function.
53390         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
53391         the case where the system already has this function. Correct invariants
53392         on BSD systems.
53393         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
53394         BSD systems.
53395
53396 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
53397
53398         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
53399         proposed by Sven Verdoolaege.
53400
53401         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
53402         options.
53403         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
53404         (usage and help tests): Update
53405
53406 2007-04-29  Bruno Haible  <bruno@clisp.org>
53407
53408         * tests/test-fflush.c (main): Use a file of size 17, not 10.
53409         Print more information in case of failure. Disable a test on BeOS.
53410
53411 2007-04-29  Bruno Haible  <bruno@clisp.org>
53412
53413         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
53414         This helps debugging on systems on which no gdb is available.
53415
53416 2007-04-29  Bruno Haible  <bruno@clisp.org>
53417
53418         * lib/freading.h: Improve comments.
53419         * lib/fwriting.h: Likewise.
53420         * tests/test-freading.c (main): Don't check freading immediately after
53421         repositioning. Needed for glibc.
53422
53423 2007-04-29  Bruno Haible  <bruno@clisp.org>
53424
53425         * lib/freading.c (freading): Trivial simplification.
53426
53427 2007-04-28  Bruno Haible  <bruno@clisp.org>
53428
53429         * tests/test-fwriting.c (main): Also test the interaction between
53430         fflush and fwriting.
53431         * modules/fwriting-tests (Depends-on): Add fflush.
53432
53433         * tests/test-freading.c (main): Also test the interaction between
53434         fflush and freading.
53435         * modules/freading-tests (Depends-on): Add fflush.
53436
53437 2007-04-28  Bruno Haible  <bruno@clisp.org>
53438
53439         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
53440         fseeko and ftello.
53441         Suggested by Eric Blake.
53442
53443 2007-04-28  Jim Meyering  <jim@meyering.net>
53444
53445         Avoid false-negative in gl_STDINT_H's C99 conformance test.
53446         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
53447         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
53448
53449 2007-04-27  Eric Blake  <ebb9@byu.net>
53450
53451         * doc/headers/assert.texi (assert.h): Document assert module use.
53452
53453 2007-04-27  Bruno Haible  <bruno@clisp.org>
53454
53455         * doc/headers/*.texi: New files.
53456         * doc/gnulib.texi (Header File Substitutes): New chapter.
53457         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
53458         dependencies.
53459         (standards.info ,standards.html, standards.dvi): Update dependencies.
53460         (mostlyclean, clean): New targets.
53461
53462 2007-04-27  Bruno Haible  <bruno@clisp.org>
53463
53464         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
53465         * modules/sysexits (Files, Makefile.am): Update.
53466
53467         * lib/sys_socket_.h: Renamed from lib/socket_.h.
53468         * modules/sys_socket (Files, Makefile.am): Update.
53469
53470         * lib/sys_stat_.h: Renamed from lib/stat_.h.
53471         * modules/sys_stat (Files, Makefile.am): Update.
53472
53473 2007-04-27  Eric Blake  <ebb9@byu.net>
53474
53475         * lib/freading.h: Improve comments.
53476         * lib/fwriting.h: Likewise.
53477         * lib/fflush.c: Likewise.
53478
53479         Fix closein for mingw.
53480         * modules/closein-tests: Add tests for closein.
53481         * tests/test-closein.c: New file.
53482         * tests/test-closein.sh: Likewise.
53483         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
53484         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
53485
53486 2007-04-27  Bruno Haible  <bruno@clisp.org>
53487
53488         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
53489         version is < 6.
53490         * lib/math_.h [__DECC]: Likewise.
53491         * lib/stdio_.h [__DECC]: Likewise.
53492         * lib/stdlib_.h [__DECC]: Likewise.
53493         * lib/string_.h [__DECC]: Likewise.
53494         * lib/time_.h [__DECC]: Likewise.
53495         * lib/wchar_.h [__DECC]: Likewise.
53496         * lib/wctype_.h [__DECC]: Likewise.
53497
53498 2007-04-27  Bruno Haible  <bruno@clisp.org>
53499
53500         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
53501
53502 2007-04-27  Bruno Haible  <bruno@clisp.org>
53503
53504         * lib/fflush.c: Add comments.
53505         * modules/fpurge-tests (Depends-on): Add fflush.
53506         * modules/freadable-tests (Depends-on): Likewise.
53507         * modules/fwritable-tests (Depends-on): Likewise.
53508
53509 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
53510
53511         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
53512         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
53513         Report by Bruno Haible <bruno@clisp.org>.
53514
53515 2007-04-26  Eric Blake  <ebb9@byu.net>
53516
53517         Fix fflush on mingw.
53518         * modules/fflush (Depends-on): Add freading.
53519         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
53520         but unread data.
53521
53522 2007-04-26  Eric Blake  <ebb9@byu.net>
53523         and Bruno Haible  <bruno@clisp.org>
53524
53525         Implement freading and fwriting.
53526         * lib/freading.c: New file.
53527         * lib/freading.h: Likewise.
53528         * m4/freading.m4: Likewise.
53529         * modules/freading: Likewise.
53530         * modules/freading-tests: Likewise.
53531         * tests/test-freading.c: Likewise.
53532         * lib/fwriting.c: New file.
53533         * lib/fwriting.h: Likewise.
53534         * m4/fwriting.m4: Likewise.
53535         * modules/fwriting: Likewise.
53536         * modules/fwriting-tests: Likewise.
53537         * tests/test-fwriting.c: Likewise.
53538         * MODULES.html.sh (File stream based Input/Output): Mention them.
53539
53540 2007-04-26  Bruno Haible  <bruno@clisp.org>
53541
53542         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
53543         'long' when we assume it.
53544         Suggested by Eric Blake.
53545
53546 2007-04-26  Bruno Haible  <bruno@clisp.org>
53547
53548         Ensure fseeko, ftello are declared on glibc systems.
53549         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
53550         * modules/fseeko (configure.ac-early): Likewise.
53551         * modules/ftello (configure.ac-early): Likewise.
53552         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
53553         AC_FUNC_FSEEKO for this.
53554         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
53555         (gl_CHECK_FSEEKO): Remove macro.
53556
53557 2007-04-26  Bruno Haible  <bruno@clisp.org>
53558
53559         * tests/test-fflush.c (main): Also check the ftell result after
53560         fflush and fseek/fseeko.
53561         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
53562         file descriptor position cache in the stream.
53563         * lib/fseeko.c (rpl_fseeko): Likewise.
53564
53565 2007-04-26  Bruno Haible  <bruno@clisp.org>
53566
53567         * modules/fflush-tests (Depends-on): Add fseeko.
53568
53569 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
53570             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53571
53572         * lib/argz_.h: ensure error_t definition is obtained in same
53573         mechanism system argz.h would have.
53574         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
53575         argz facilities are known bad.  Err on the side of caution if
53576         cross-compiling.
53577
53578 2007-04-25  Eric Blake  <ebb9@byu.net>
53579
53580         * lib/fpurge.c (includes): Use stdlib.h for free.
53581         * tests/test-fflush.c (main): Also test fflush-fseeko.
53582
53583 2007-04-25  Bruno Haible  <bruno@clisp.org>
53584
53585         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
53586         * lib/fseeko.c: New file.
53587         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
53588         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
53589         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
53590         gl_FUNC_FSEEKO.
53591         (gl_FUNC_FSEEKO): Invoke it.
53592         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
53593         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
53594         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
53595
53596 2007-04-25  Bruno Haible  <bruno@clisp.org>
53597
53598         * modules/fflush (Depends-on): Add ftello.
53599
53600 2007-04-25  Bruno Haible  <bruno@clisp.org>
53601
53602         * modules/ftello-tests: New file.
53603         * tests/test-ftello.c: New file.
53604
53605         * modules/ftello: New file.
53606         * m4/ftello.m4: New file.
53607         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
53608         HAVE_FTELLO.
53609         * lib/stdio_.h (ftello): New declaration.
53610         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
53611         HAVE_FTELLO.
53612
53613 2007-04-25  Bruno Haible  <bruno@clisp.org>
53614
53615         * modules/fseeko-tests: New file.
53616         * tests/test-fseeko.c: New file.
53617
53618         * modules/fseeko: New file.
53619         * m4/fseeko.m4: New file.
53620         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
53621         HAVE_FSEEKO.
53622         * lib/stdio_.h (fseeko): New declaration.
53623         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
53624         HAVE_FSEEKO.
53625
53626 2007-04-25  Bruno Haible  <bruno@clisp.org>
53627
53628         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
53629
53630 2007-04-25  Bruno Haible  <bruno@clisp.org>
53631
53632         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
53633         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
53634         * tests/test-unistd.c: Likewise.
53635         * tests/test-fcntl.c: Likewise.
53636
53637 2007-04-23  Eric Blake  <ebb9@byu.net>
53638
53639         * lib/fflush.c: Fix missing include.
53640         Reported by Bruno Haible.
53641
53642 2007-04-23  Bruno Haible  <bruno@clisp.org>
53643
53644         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
53645         Reported by Eric Blake.
53646
53647 2007-04-23  Bruno Haible  <bruno@clisp.org>
53648
53649         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
53650
53651 2007-04-23  Bruno Haible  <bruno@clisp.org>
53652
53653         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
53654
53655 2007-04-23  Bruno Haible  <bruno@clisp.org>
53656
53657         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
53658         Needed on HP-UX 11.
53659
53660 2007-04-16  Eric Blake  <ebb9@byu.net>
53661
53662         Make fflush rely on fpurge.
53663         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
53664         open coding all variants.
53665         * modules/fflush (Depends-on): Add fpurge and unistd.
53666         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
53667         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
53668
53669         Fix --with-tests compilation on cygwin.
53670         * modules/argmatch-tests (Makefile.am): List gnulib library first
53671         in LDADD.
53672         * modules/argp-tests (Makefile.am): Likewise.
53673         * modules/array-list-tests (Makefile.am): Likewise.
53674         * modules/array-oset-tests (Makefile.am): Likewise.
53675         * modules/avltree-list-tests (Makefile.am): Likewise.
53676         * modules/avltree-oset-tests (Makefile.am): Likewise.
53677         * modules/avltreehash-list-tests (Makefile.am): Likewise.
53678         * modules/carray-list-tests (Makefile.am): Likewise.
53679         * modules/dirname-tests (Makefile.am): Likewise.
53680         * modules/frexp-tests (Makefile.am): Likewise.
53681         * modules/isnanl-tests (Makefile.am): Likewise.
53682         * modules/linked-list-tests (Makefile.am): Likewise.
53683         * modules/linkedhash-list-tests (Makefile.am): Likewise.
53684         * modules/lock-tests (Makefile.am): Likewise.
53685         * modules/rbtree-list-tests (Makefile.am): Likewise.
53686         * modules/rbtree-oset-tests (Makefile.am): Likewise.
53687         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
53688         * modules/tls-tests (Makefile.am): Likewise.
53689         * modules/tsearch-tests (Makefile.am): Likewise.
53690         * modules/xvasprintf-tests (Makefile.am): Likewise.
53691
53692         Fix fpurge for cygwin.
53693         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
53694         value.
53695         * modules/fpurge-tests (Depends-on): Clean up trash.
53696
53697 2007-04-16  Simon Josefsson  <simon@josefsson.org>
53698
53699         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
53700
53701         * m4/autobuild.m4: Re-indent.
53702
53703 2007-04-13  Bruno Haible  <bruno@clisp.org>
53704
53705         * modules/fpurge-tests: New file.
53706         * tests/test-fpurge.c: New file.
53707
53708         * modules/fpurge: New file.
53709         * lib/fpurge.h: New file.
53710         * lib/fpurge.c: New file.
53711         * m4/fpurge.m4: New file.
53712
53713 2007-04-13  Bruno Haible  <bruno@clisp.org>
53714
53715         * modules/fbufmode-tests: New file.
53716         * tests/test-fbufmode.c: New file.
53717
53718         * modules/fbufmode: New file.
53719         * lib/fbufmode.h: New file.
53720         * lib/fbufmode.c: New file.
53721         * m4/fbufmode.m4: New file.
53722
53723 2007-04-13  Bruno Haible  <bruno@clisp.org>
53724
53725         * modules/fwritable-tests: New file.
53726         * tests/test-fwritable.c: New file.
53727
53728         * modules/fwritable: New file.
53729         * lib/fwritable.h: New file.
53730         * lib/fwritable.c: New file.
53731         * m4/fwritable.m4: New file.
53732
53733 2007-04-13  Bruno Haible  <bruno@clisp.org>
53734
53735         * modules/freadable-tests: New file.
53736         * tests/test-freadable.c: New file.
53737
53738         * modules/freadable: New file.
53739         * lib/freadable.h: New file.
53740         * lib/freadable.c: New file.
53741         * m4/freadable.m4: New file.
53742
53743 2007-04-13  Bruno Haible  <bruno@clisp.org>
53744
53745         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
53746         MOSTLYCLEANFILES.
53747
53748 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53749
53750         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
53751         gzip bootstrap.conf to avoid dragging in i18n machinery.
53752         (gnulib_tool_option): Use it.
53753
53754 2007-04-13  Bruno Haible  <bruno@clisp.org>
53755
53756         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
53757         %F directives.
53758         * tests/test-vasprintf-posix.c (test_function): Likewise.
53759         * tests/test-snprintf-posix.h (test_function): Likewise.
53760         * tests/test-sprintf-posix.h (test_function): Likewise.
53761         * tests/test-fprintf-posix.h (test_function): Likewise.
53762         * tests/test-printf-posix.h (test_function): Likewise.
53763         * tests/test-fprintf-posix.out: Likewise.
53764
53765 2007-04-13  Bruno Haible  <bruno@clisp.org>
53766
53767         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
53768         * modules/tls-tests (configure.ac): Likewise.
53769         Reported by Arto C. Nirkko <anirkko@insel.ch>.
53770
53771 2007-04-13  Bruno Haible  <bruno@clisp.org>
53772
53773         * lib/tls.c (glthread_tls_get): Fix return type.
53774         Patch by Arto C. Nirkko <anirkko@insel.ch>.
53775
53776 2007-04-12  Eric Blake  <ebb9@byu.net>
53777
53778         * modules/gettime (Depends-on): Remove gettime.
53779         Reported by Dmitry V. Levin.
53780
53781 2007-04-12  Bruno Haible  <bruno@clisp.org>
53782
53783         * modules/fflush (Include): Mention <stdio.h>.
53784         * modules/strtoimax (Include): Mention <inttypes.h>.
53785         * modules/strtoumax (Include): Likewise.
53786
53787 2007-04-12  Eric Blake  <ebb9@byu.net>
53788
53789         * .cvsignore: New file.
53790         * .gitignore: Likewise.
53791
53792 2007-04-12  Bruno Haible  <bruno@clisp.org>
53793
53794         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
53795         not before, since $(LDADD) often contains libgnu.a.
53796         * modules/striconv-tests (test_striconv_LDADD): Likewise.
53797         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
53798         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
53799         Needed on Cygwin.
53800
53801 2007-04-12  Eric Blake  <ebb9@byu.net>
53802
53803         Work around glibc's failure to flush stdin on fclose.
53804         * lib/closein.c (close_stdin): Flush stdin before closing.
53805
53806         Work around glibc's failure to reset seekable stdin on exit.
53807         * modules/closein: New module.
53808         * lib/closein.c: New file.
53809         * lib/closein.h: Likewise.
53810         * m4/closein.m4: Likewise.
53811         * MODULES.html.sh (File stream based Input/Output): Document it.
53812
53813 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53814
53815         * gnulib-tool: Rename generated 'autobuild' script to
53816         'do-autobuild' in --create-megatestdir output.
53817
53818         * doc/gnulib.texi (Build robot for gnulib): Fix.
53819
53820 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53821
53822         * modules/sysexits (Depends-on): Add absolute-header.
53823
53824 2007-04-12  Eric Blake  <ebb9@byu.net>
53825
53826         No need to preserve errno on success.
53827         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
53828         Reported by Bruno Haible.
53829
53830 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53831
53832         * MODULES.html.sh (Support for maintaining and releasing
53833         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
53834
53835 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53836
53837         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
53838
53839 2007-04-12  Simon Josefsson  <simon@josefsson.org>
53840
53841         * modules/autobuild: New module.
53842
53843         * m4/autobuild.m4: New file.
53844
53845 2007-04-11  Bruno Haible  <bruno@clisp.org>
53846
53847         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
53848         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
53849         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
53850         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
53851         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53852         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53853         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53854         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
53855         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53856         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53857         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
53858         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53859         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53860         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
53861         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53862         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53863         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
53864         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53865         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53866         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
53867         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53868         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53869         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
53870         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53871         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53872         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
53873         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
53874         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
53875         Reported by Eric Blake.
53876
53877 2007-04-11  Bruno Haible  <bruno@clisp.org>
53878
53879         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
53880
53881 2007-04-10  Bruno Haible  <bruno@clisp.org>
53882
53883         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
53884         for NaN and Infinity. Needed on FreeBSD 6.1.
53885         * tests/test-vasnprintf-posix.c (test_function): Undo last change
53886         regarding results for "%010a" of Infinity and NaN.
53887         * tests/test-vasprintf-posix.c (test_function): Likewise.
53888         * tests/test-snprintf-posix.h (test_function): Likewise.
53889         * tests/test-sprintf-posix.h (test_function): Likewise.
53890         * tests/test-fprintf-posix.h (test_function): Likewise.
53891         * tests/test-printf-posix.h (test_function): Likewise.
53892         * tests/test-fprintf-posix.out: Likewise.
53893
53894 2007-04-10  Bruno Haible  <bruno@clisp.org>
53895
53896         * modules/locale-tests: New file.
53897         * tests/test-locale.c: New file.
53898
53899         * modules/locale: New file.
53900         * lib/locale_.h: New file.
53901         * m4/locale_h.m4: New file.
53902
53903 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
53904             Bruno Haible  <bruno@clisp.org>
53905
53906         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
53907         be determined, test for availability of the copysignf, copysign,
53908         copysignl functions.
53909         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
53910         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
53911         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
53912
53913 2007-04-09  Eric Blake  <ebb9@byu.net>
53914
53915         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
53916         * modules/stdio (Makefile.am): Support fflush.
53917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53918         * modules/fflush: New file.
53919         * lib/fflush.c: Likewise.
53920         * m4/fflush.m4: Likewise.
53921         * modules/fflush-tests: New test.
53922         * tests/test-fflush.c: Likewise.
53923         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
53924
53925 2007-04-06  Bruno Haible  <bruno@clisp.org>
53926
53927         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
53928         (VASNPRINTF): Use signbit for faster determination whether to print a
53929         minus sign.
53930         * modules/vasnprintf (Files): Remove lib/float+.h.
53931         * modules/fprintf-posix (Depends-on): Add signbit.
53932         * modules/snprintf-posix (Depends-on): Likewise.
53933         * modules/sprintf-posix (Depends-on): Likewise.
53934         * modules/vasnprintf-posix (Depends-on): Likewise.
53935         * modules/vasprintf-posix (Depends-on): Likewise.
53936         * modules/vfprintf-posix (Depends-on): Likewise.
53937         * modules/vsnprintf-posix (Depends-on): Likewise.
53938         * modules/vsprintf-posix (Depends-on): Likewise.
53939
53940 2007-04-06  Bruno Haible  <bruno@clisp.org>
53941
53942         * tests/test-frexp.c (main): Test also the sign bit of zero results.
53943         * tests/test-frexpl.c (main): Likewise.
53944         * tests/test-ldexpl.c (main): Likewise.
53945         * modules/frexp-tests (Depends-on): Add signbit.
53946         * modules/frexpl-tests (Depdends-on): Likewise.
53947         * modules/ldexpl-tests (Depdends-on): Likewise.
53948
53949 2007-04-06  Bruno Haible  <bruno@clisp.org>
53950
53951         * modules/signbit-tests: New file.
53952         * tests/test-signbit.c: New file.
53953
53954         * modules/signbit: New file.
53955         * lib/signbitf.c: New file.
53956         * lib/signbitd.c: New file.
53957         * lib/signbitl.c: New file.
53958         * m4/signbit.m4: New file.
53959         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
53960         (signbit): New macro.
53961         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
53962         REPLACE_SIGNBIT.
53963         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
53964         REPLACE_FREXPL into math.h.
53965
53966 2007-04-06  Bruno Haible  <bruno@clisp.org>
53967
53968         * modules/isnanf-nolibm-tests: New file.
53969         * tests/test-isnanf.c: New file.
53970
53971         * modules/isnanf-nolibm: New file.
53972         * lib/isnanf.h: New file.
53973         * lib/isnanf.c: New file.
53974         * lib/isnan.c: Consider the USE_FLOAT macro.
53975         * m4/isnanf.m4: New file.
53976
53977 2007-04-06  Bruno Haible  <bruno@clisp.org>
53978
53979         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
53980         (Link): New section.
53981
53982         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
53983
53984 2007-04-06  Bruno Haible  <bruno@clisp.org>
53985
53986         Assume the 'long double' type.
53987         * m4/longdouble.m4: Remove file.
53988         * config/srclist.txt: Don't mention longdouble.m4.
53989         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
53990         * lib/float+.h: Likewise.
53991         * lib/frexp.c: Likewise.
53992         * lib/printf-args.h: Likewise.
53993         * lib/printf-args.c: Likewise.
53994         * lib/printf-frexp.c: Likewise.
53995         * lib/printf-parse.c: Likewise.
53996         * lib/vasnprintf.c: Likewise.
53997         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
53998         * m4/intl.m4: Likewise.
53999         * m4/isnanl.m4: Likewise.
54000         * m4/printf.m4: Likewise.
54001         * m4/printf-frexpl.m4: Likewise.
54002         * m4/vasnprintf.m4: Likewise.
54003         * modules/allocsa (Files): Remove m4/longdouble.m4.
54004         * modules/gettext (Files): Likewise.
54005         * modules/relocatable-prog-wrapper (Files): Likewise.
54006         * modules/vasnprintf (Files): Likewise.
54007         * modules/isnanl (Files): Likewise.
54008         (Include): Simplify.
54009         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
54010         (Include): Simplify.
54011         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
54012         (Include): Simplify.
54013         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
54014         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54015         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
54016         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54017         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54018         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54019         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
54020         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54021         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
54022         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54023         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
54024         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
54025         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
54026         * tests/test-isnanl.c: Likewise.
54027         * tests/test-snprintf-posix.h: Likewise.
54028         * tests/test-sprintf-posix.h: Likewise.
54029         * tests/test-vasnprintf-posix.c: Likewise.
54030         * tests/test-vasnprintf-posix2.c: Likewise.
54031         * tests/test-vasprintf-posix.c: Likewise.
54032
54033 2007-04-06  Bruno Haible  <bruno@clisp.org>
54034
54035         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
54036         * lib/math_.h [__DECC]: Include the overridden include file through
54037         #include_next, outside the double-inclusion guard.
54038         * lib/stdio_.h [__DECC]: Likewise.
54039         * lib/stdlib_.h [__DECC]: Likewise.
54040         * lib/string_.h [__DECC]: Likewise.
54041         * lib/time_.h [__DECC]: Likewise.
54042         * lib/wchar_.h [__DECC]: Likewise.
54043         * lib/wctype_.h [__DECC]: Likewise.
54044         * lib/inttypes_.h [__DECC]: Likewise.
54045         Reported by Albert Chin <china@thewrittenword.com> in
54046         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
54047
54048 2007-04-04  Eric Blake  <ebb9@byu.net>
54049
54050         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
54051         1.5.x.
54052
54053 2007-04-04  Bruno Haible  <bruno@clisp.org>
54054
54055         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
54056         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
54057
54058 2007-04-04  Bruno Haible  <bruno@clisp.org>
54059
54060         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
54061         results for "%010a" of Infinity and NaN.
54062         * tests/test-vasprintf-posix.c (test_function): Likewise.
54063         * tests/test-snprintf-posix.h (test_function): Likewise.
54064         * tests/test-sprintf-posix.h (test_function): Likewise.
54065         * tests/test-fprintf-posix.h (test_function): Remove these tests.
54066         * tests/test-printf-posix.h (test_function): Likewise.
54067         * tests/test-fprintf-posix.out: Update.
54068         Needed for FreeBSD 6.1.
54069
54070 2007-04-04  Bruno Haible  <bruno@clisp.org>
54071
54072         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
54073         directly used by the gnulib modules nor by gnulib-tool.
54074
54075 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
54076
54077         * DEPENDENCIES: Give overall description of version dependency
54078         desirability.  Use more-typical names for apps.
54079         Add shell, coreutils, diffutils, grep, tar, gzip.
54080
54081 2007-04-04  Simon Josefsson  <simon@josefsson.org>
54082
54083         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
54084
54085 2007-04-04  Karl Berry  <karl@gnu.org>
54086
54087         * MODULES.html.sh (func_module): missing '.
54088
54089 2007-04-03  Bruno Haible  <bruno@clisp.org>
54090
54091         * modules/argmatch-tests (Makefile.am): New variable
54092         test_argmatch_LDADD.
54093         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
54094         * modules/array-list-tests (Makefile.am): New variable
54095         test_array_list_LDADD.
54096         * modules/array-oset-tests (Makefile.am): New variable
54097         test_array_oset_LDADD.
54098         * modules/avltree-list-tests (Makefile.am): New variable
54099         test_avltree_list_LDADD.
54100         * modules/avltree-oset-tests (Makefile.am): New variable
54101         test_avltree_oset_LDADD.
54102         * modules/avltreehash-list-tests (Makefile.am): New variable
54103         test_avltreehash_list_LDADD.
54104         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
54105         test_canonicalize_lgpl_LDADD.
54106         * modules/carray-list-tests (Makefile.am): New variable
54107         test_carray_list_LDADD.
54108         * modules/dirname-tests (Makefile.am): New variable
54109         test_dirname_LDADD.
54110         * modules/linked-list-tests (Makefile.am): New variable
54111         test_linked_list_LDADD.
54112         * modules/linkedhash-list-tests (Makefile.am): New variable
54113         test_linkedhash_list_LDADD.
54114         * modules/rbtree-list-tests (Makefile.am): New variable
54115         test_rbtree_list_LDADD.
54116         * modules/rbtree-oset-tests (Makefile.am): New variable
54117         test_rbtree_oset_LDADD.
54118         * modules/rbtreehash-list-tests (Makefile.am): New variable
54119         test_rbtreehash_list_LDADD.
54120         * modules/xvasprintf-tests (Makefile.am): New variable
54121         test_xvasprintf_LDADD.
54122         Reported by Eric Blake.
54123
54124 2007-04-03  Eric Blake  <ebb9@byu.net>
54125
54126         * DEPENDENCIES: Weaken m4 requirements.
54127
54128 2007-04-03  Bruno Haible  <bruno@clisp.org>
54129
54130         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
54131         * modules/isnanl-tests (configure.ac): Likewise.
54132
54133 2007-04-03  Ben Pfaff  <blp@gnu.org>
54134
54135         * modules/iconv_open: Add $(srcdir)/ to source directory
54136         references in Makefile fragments that call gperf, to fix VPATH
54137         builds.
54138
54139 2007-04-03  Bruno Haible  <bruno@clisp.org>
54140
54141         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
54142         * lib/ldexpl.c: Undo last change.
54143
54144 2007-04-03  Bruno Haible  <bruno@clisp.org>
54145
54146         * modules/printf-frexpl (Depends-on): Undo last change.
54147         (Files): Add m4/ldexpl.m4.
54148
54149 2007-04-03  Bruno Haible  <bruno@clisp.org>
54150
54151         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
54152         * modules/isnanl (Link): New section.
54153
54154         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
54155         * modules/frexp (Link): New section.
54156
54157         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
54158         * modules/frexpl (Link): New section.
54159
54160         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
54161         * modules/ldexpl (Link): New section.
54162
54163 2007-04-03  Bruno Haible  <bruno@clisp.org>
54164
54165         * modules/TEMPLATE-EXTENDED: New file.
54166         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
54167
54168 2007-04-03  Bruno Haible  <bruno@clisp.org>
54169
54170         * DEPENDENCIES: New file.
54171         Suggested by Simon Josefsson.
54172
54173 2007-04-03  Bruno Haible  <bruno@clisp.org>
54174
54175         * doc/gnulib.texi: Escape @.
54176
54177 2007-04-03  James Youngman  <jay@gnu.org>
54178         and Paul Eggert  <eggert@cs.ucla.edu>
54179
54180         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
54181         birthtime on all systems that have birthtime, not just those which
54182         use st_birthtimensec rather than st_birthtim.  Putting zero in
54183         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
54184         that the birth time is not available for files on an NFS mount.
54185
54186 2007-04-03  Simon Josefsson  <simon@josefsson.org>
54187
54188         * modules/memxor: Move back from crypto/, suggested by Bruno.
54189         * modules/crypto/hmac-sha1: Fix memxor dependency.
54190
54191         * modules/crypto/gc: Moved from ../.
54192
54193 2007-04-02  Eric Blake  <ebb9@byu.net>
54194
54195         * lib/ldexpl.c (includes): Avoid libm.
54196
54197         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
54198
54199 2007-04-02  Bruno Haible  <bruno@clisp.org>
54200
54201         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
54202         on IRIX.
54203
54204 2007-04-02  Bruno Haible  <bruno@clisp.org>
54205
54206         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
54207         x86 or x86_64 platforms running MacOS X.
54208         Reported by Ryan Schmidt <@ryandesign.com>.
54209
54210 2007-04-02  Bruno Haible  <bruno@clisp.org>
54211
54212         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
54213         i386.
54214
54215 2007-04-01  Simon Josefsson  <simon@josefsson.org>
54216
54217         * modules/crypto/arcfour: Moved from ../.
54218         * modules/crypto/arcfour-tests: Moved from ../.
54219         * modules/crypto/arctwo: Moved from ../.
54220         * modules/crypto/arctwo-tests: Moved from ../.
54221         * modules/crypto/des: Moved from ../.
54222         * modules/crypto/des-tests: Moved from ../.
54223         * modules/crypto/gc-arcfour: Moved from ../.
54224         * modules/crypto/gc-arcfour-tests: Moved from ../.
54225         * modules/crypto/gc-arctwo: Moved from ../.
54226         * modules/crypto/gc-arctwo-tests: Moved from ../.
54227         * modules/crypto/gc-des: Moved from ../.
54228         * modules/crypto/gc-des-tests: Moved from ../.
54229         * modules/crypto/gc-hmac-md5: Moved from ../.
54230         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
54231         * modules/crypto/gc-hmac-sha1: Moved from ../.
54232         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
54233         * modules/crypto/gc-md2: Moved from ../.
54234         * modules/crypto/gc-md2-tests: Moved from ../.
54235         * modules/crypto/gc-md4: Moved from ../.
54236         * modules/crypto/gc-md4-tests: Moved from ../.
54237         * modules/crypto/gc-md5: Moved from ../.
54238         * modules/crypto/gc-md5-tests: Moved from ../.
54239         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
54240         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
54241         * modules/crypto/gc-random: Moved from ../.
54242         * modules/crypto/gc-rijndael: Moved from ../.
54243         * modules/crypto/gc-rijndael-tests: Moved from ../.
54244         * modules/crypto/gc-sha1: Moved from ../.
54245         * modules/crypto/gc-sha1-tests: Moved from ../.
54246         * modules/crypto/gc-tests: Moved from ../.
54247         * modules/crypto/hmac-md5: Moved from ../.
54248         * modules/crypto/hmac-md5-tests: Moved from ../.
54249         * modules/crypto/hmac-sha1: Moved from ../.
54250         * modules/crypto/hmac-sha1-tests: Moved from ../.
54251         * modules/crypto/md2: Moved from ../.
54252         * modules/crypto/md2-tests: Moved from ../.
54253         * modules/crypto/md4: Moved from ../.
54254         * modules/crypto/md4-tests: Moved from ../.
54255         * modules/crypto/md5: Moved from ../.
54256         * modules/crypto/md5-tests: Moved from ../.
54257         * modules/crypto/memxor: Moved from ../.
54258         * modules/crypto/rijndael: Moved from ../.
54259         * modules/crypto/rijndael-tests: Moved from ../.
54260         * modules/crypto/sha1: Moved from ../.
54261
54262 2007-03-30  James Youngman  <jay@gnu.org>
54263
54264         * tests/test-stat-time.c (prepare_test): use chmod() rather than
54265         rename() to change the ctime of a file (because ctime is unaffected
54266         by rename on jfs2 on AIX 5.1).
54267         (main): Start by doing cleanup, in case a previous run failed leaving
54268         test files behind.
54269
54270 2007-03-31  Bruno Haible  <bruno@clisp.org>
54271
54272         Support old proprietary implementations of iconv.
54273         * modules/iconv_open: New file.
54274         * lib/iconv_.h: New file.
54275         * m4/iconv_h.m4: New file.
54276         * lib/iconv_open.c: New file.
54277         * lib/iconv_open-aix.gperf: New file.
54278         * lib/iconv_open-hpux.gperf: New file.
54279         * lib/iconv_open-irix.gperf: New file.
54280         * lib/iconv_open-osf.gperf: New file.
54281         * m4/iconv_open.m4: New file.
54282         * modules/linebreak (Depends-on): Add iconv_open.
54283         * modules/striconv (Depends-on): Likewise.
54284         * modules/striconveh (Depends-on): Likewise.
54285         * modules/unicodeio (Depends-on): Likewise.
54286         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
54287         (iconv_t)(-1).
54288         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
54289         conversion if cd is (iconv_t)(-1).
54290         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
54291         is not possible.
54292
54293 2007-03-31  Bruno Haible  <bruno@clisp.org>
54294
54295         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
54296         work on Solaris either. Protect also second use of "autodetect_jp".
54297
54298 2007-03-31  Bruno Haible  <bruno@clisp.org>
54299
54300         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
54301         the function is not present.
54302
54303 2007-03-31  Bruno Haible  <bruno@clisp.org>
54304
54305         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
54306         the function is not present.
54307
54308 2007-03-31  Bruno Haible  <bruno@clisp.org>
54309
54310         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
54311         a bug in HP-UX iconv_open().
54312
54313 2007-03-31  Bruno Haible  <bruno@clisp.org>
54314
54315         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
54316         (Mathematics <math.h>): New section, add fpieee.
54317         (Input/output <stdio.h>): Add fseterr.
54318         (Mathematics <math.h>): New section, add printf-frexp.
54319         (Container data structures): Add sublist.
54320         (Core language properties): Add fpucw, inline.
54321         (Functions for greatest-width integer types <inttypes.h>): Add
54322         imaxabs, imaxdiv, inttypes.
54323         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
54324         isnanl-nolibm, ldexp.
54325         (Mathematics <math.h>): New section, add printf-frexpl.
54326         (Support for systems lacking POSIX:2001): Add fprintf-posix,
54327         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
54328         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
54329         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
54330         (Unicode string functions): Add unistr/u*-mbtoucr.
54331         (Java): Add javacomp-script, javaexec-script.
54332         (C#): Add csharpcomp-script, csharpexec-script.
54333         (Support for building libraries and executables): Add havelib,
54334         relocatable-*.
54335         (Support for maintaining and releasing projects): Renamed from
54336         'Support for maintaining and release projects'. Add announce-gen.
54337
54338 2007-03-31  Bruno Haible  <bruno@clisp.org>
54339
54340         * README: Talk primarily about git.
54341         (git and CVS): Renamed from CVS.
54342         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
54343         gnulib is available through git.
54344         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
54345
54346 2007-03-30  Bruno Haible  <bruno@clisp.org>
54347
54348         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
54349         * lib/poll_.h: Likewise.
54350         * lib/stat_.h: Likewise.
54351         * lib/sys_time_.h: Likewise.
54352         * lib/sysexit_.h: Likewise.
54353         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
54354         * lib/stdbool_.h: Likewise.
54355         * lib/byteswap_.h: Add double-inclusion guard.
54356
54357 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
54358
54359         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
54360
54361 2007-03-30  Karl Berry  <karl@gnu.org>
54362
54363         * config/srclist-update: double space after USA in the license
54364         substitution, since that's how it's usually (?) written.
54365
54366 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
54367
54368         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
54369         reported by Bruno Haible.
54370
54371 2007-03-29  Bruno Haible  <bruno@clisp.org>
54372
54373         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
54374         a bug in AIX iconv().
54375
54376 2007-03-29  Bruno Haible  <bruno@clisp.org>
54377
54378         * modules/ldexpl-tests: New file.
54379         * tests/test-ldexpl.c: New file.
54380
54381 2007-03-29  Bruno Haible  <bruno@clisp.org>
54382
54383         * lib/ldexpl.c: Include fpucw.h.
54384         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
54385         multiplication.
54386         * modules/ldexpl (Depends-on): Add fpucw.
54387
54388 2007-03-29  Bruno Haible  <bruno@clisp.org>
54389
54390         * modules/ldexpl: New file.
54391         * m4/ldexpl.m4: New file.
54392         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
54393         set.
54394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
54395         REPLACE_LDEXPL.
54396         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
54397         REPLACE_LDEXPL.
54398         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
54399         gl_FUNC_LDEXPL_WORKS.
54400         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
54401         * modules/mathl (Files): Remove lib/ldexpl.c.
54402         (Depends-on): Add ldexpl.
54403
54404 2007-03-29  Bruno Haible  <bruno@clisp.org>
54405
54406         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
54407
54408 2007-03-29  Bruno Haible  <bruno@clisp.org>
54409
54410         * tests/test-striconveh.c (main): Don't assume that a direct conversion
54411         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
54412         and possibly also HP-UX.
54413         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
54414         work on AIX, IRIX, HP-UX, OSF/1.
54415         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
54416         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
54417         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
54418         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
54419         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
54420         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
54421
54422 2007-03-29  Bruno Haible  <bruno@clisp.org>
54423
54424         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
54425
54426 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
54427
54428         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
54429         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
54430
54431 2007-03-29  Eric Blake  <ebb9@byu.net>
54432
54433         * lib/acl-internal.h: Remove redundant include.
54434         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
54435         Cygwin when a file is locked.
54436
54437 2007-03-29  Bruno Haible  <bruno@clisp.org>
54438
54439         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
54440         file.
54441         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
54442
54443 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
54444
54445         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
54446         try to remove a parent directory if the child couldn't be removed
54447         (except for the first rmdir, which could fail because the child
54448         doesn't exist).  Problem reported by Jeff Blaine in
54449         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
54450
54451 2007-03-28  Bruno Haible  <bruno@clisp.org>
54452
54453         * lib/striconveh.c (utf8conv_carefully): New function.
54454         (mem_cd_iconveh_internal): Invoke it.
54455
54456 2007-03-28  Bruno Haible  <bruno@clisp.org>
54457
54458         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
54459         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
54460         input.
54461         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
54462         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
54463         unistr/u8-uctomb.
54464
54465 2007-03-28  Bruno Haible  <bruno@clisp.org>
54466
54467         * modules/unistr/u8-mbtoucr: New file.
54468         * lib/unistr/u8-mbtoucr.c: New file.
54469         * modules/unistr/u16-mbtoucr: New file.
54470         * lib/unistr/u16-mbtoucr.c: New file.
54471         * modules/unistr/u16-mbtoucr: New file.
54472         * lib/unistr/u16-mbtoucr.c: New file.
54473         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
54474
54475 2007-03-27  Simon Josefsson  <simon@josefsson.org>
54476             Bruno Haible  <bruno@clisp.org>
54477
54478         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
54479         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
54480         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
54481
54482         * m4/stdio_h.m4: Add stubs for vasprintf too.
54483
54484         * modules/stdio: Support vasprintf in sed command.
54485
54486         * modules/vasprintf: Depend on stdio for prototypes.  Remove
54487         vasprintf.h.  Add stdio module indicator.
54488
54489         * lib/stdio_.h: Declare asprintf and vasprintf, based on
54490         vasprintf.h.
54491
54492         * lib/vasprintf.h: File removed.
54493
54494         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
54495         * lib/vasprintf.c: Ditto.
54496         * lib/xvasprintf.c: Ditto.
54497         * tests/test-vasprintf-posix.c: Ditto.
54498         * tests/test-vasprintf.c: Ditto.
54499
54500 2007-03-27  Bruno Haible  <bruno@clisp.org>
54501
54502         Make vasnprintf multithread-safe.
54503         * lib/vasnprintf.c (decimal_point_char): New function.
54504         (VASNPRINTF): Use it.
54505         Suggested by Simon Josefsson.
54506
54507 2007-03-27  Eric Blake  <ebb9@byu.net>
54508
54509         Support sub-second birthtime on cygwin.
54510         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
54511         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
54512         (get_stat_birthtime): Also work with st_birthtim.
54513
54514 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
54515
54516         * lib/stat-time.h (USE_BIRTHTIME): Remove.
54517         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
54518         (get_stat_birthtime_ns): Do not try to use "spare" fields.
54519         (get_stat_birthtime_ns): Simplify compile-time tests.
54520         (get_stat_birthtime): Change the API to look like
54521         get_stat_mtime etc., except return a negative tv_nsec on error.
54522         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
54523         Don't check for "spare" fields.
54524         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
54525         or for struct stat.st_birthtime, as these tests aren't used.
54526         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
54527
54528 2007-03-27  Bruno Haible  <bruno@clisp.org>
54529
54530         * lib/stat-time.h: Include <sys/stat.h>.
54531
54532 2007-03-27  James Youngman  <jay@gnu.org>
54533
54534         * lib/stat-time.h (get_stat_birthtime): New function for
54535           retrieving st_birthtime as provided by UFS2 (hence *BSD).
54536         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
54537           and its variants.
54538         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
54539         * modules/stat-time-test: New file.
54540         * tests/test-stat-time.c: New test, devised by Bruno Haible.
54541
54542 2007-03-26  Bruno Haible  <bruno@clisp.org>
54543
54544         Better support of signalling NaNs.
54545         * lib/atanl.c: Include isnanl.h.
54546         (atanl): Perform test for NaN at the beginning of the function and
54547         through a call to isnanl.
54548         * lib/cosl.c: Include isnanl.h.
54549         (cosl): Perform test for NaN at the beginning of the function and
54550         through a call to isnanl.
54551         * lib/ldexpl.c: Include isnanl.h.
54552         (ldexpl): Perform test for NaN through a call to isnanl.
54553         * lib/logl.c: Include isnanl.h.
54554         (logl): Perform test for NaN at the beginning of the function and
54555         through a call to isnanl.
54556         * lib/sinl.c: Include isnanl.h.
54557         (sinl): Perform test for NaN at the beginning of the function and
54558         through a call to isnanl.
54559         * lib/sqrtl.c: Include isnanl.h.
54560         (sqrtl): Perform test for NaN at the beginning of the function and
54561         through a call to isnanl.
54562         * lib/tanl.c: Include isnanl.h.
54563         (tanl): Perform test for NaN at the beginning of the function and
54564         through a call to isnanl.
54565         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
54566         * modules/mathl (Depends-on): Add isnanl.
54567
54568 2007-03-26  Eric Blake  <ebb9@byu.net>
54569
54570         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
54571         regression in logic sense of previous patch.
54572
54573 2007-03-26  Bruno Haible  <bruno@clisp.org>
54574
54575         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
54576         unportable shell command "if ! ...".
54577         Reported by Ralf Wildenhues.
54578
54579 2007-03-25  Bruno Haible  <bruno@clisp.org>
54580
54581         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
54582         <sysexits.h> file, and only add EX_CONFIG.
54583         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
54584         absolute file name and whether it is sufficient. Substitute also
54585         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
54586         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
54587         ABSOLUTE_SYSEXITS_H into sysexits.h.
54588
54589 2007-03-25  Bruno Haible  <bruno@clisp.org>
54590
54591         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
54592         hints is NULL.
54593
54594 2007-03-25  Bruno Haible  <bruno@clisp.org>
54595
54596         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
54597         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
54598
54599 2007-03-25  Bruno Haible  <bruno@clisp.org>
54600
54601         * lib/vasnprintf.c: Include langinfo.h.
54602         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
54603         multithread-safe.
54604         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
54605         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
54606         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54607         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54608         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54609         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54610         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54611         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
54612         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54613         Reported by Simon Josefsson.
54614
54615 2007-03-25  Bruno Haible  <bruno@clisp.org>
54616
54617         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
54618         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
54619         * modules/vasnprintf (Depends-on): Add stdint.
54620
54621 2007-03-25  Bruno Haible  <bruno@clisp.org>
54622
54623         * modules/fpieee: New file.
54624         * m4/fpieee.m4: New file.
54625         * modules/isnan-nolibm (Depends-on): Add fpieee.
54626         * modules/isnanl-nolibm (Depends-on): Add fpieee.
54627         * modules/isnanl (Depends-on): Add fpieee.
54628
54629 2007-03-25  Bruno Haible  <bruno@clisp.org>
54630
54631         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
54632
54633 2007-03-25  Bruno Haible  <bruno@clisp.org>
54634
54635         Avoid test failures on IRIX 6.5.
54636         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
54637         (main): Use it.
54638         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
54639         macros.
54640         (main): Use them.
54641
54642 2007-03-25  Bruno Haible  <bruno@clisp.org>
54643
54644         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
54645         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
54646         exists but doesn't work.
54647         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
54648         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
54649         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
54650         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
54651         math.h.
54652
54653 2007-03-25  Bruno Haible  <bruno@clisp.org>
54654
54655         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
54656         returns inf. Needed on IRIX 6.5.
54657
54658 2007-03-25  Bruno Haible  <bruno@clisp.org>
54659
54660         * tests/test-frexpl.c: Include isnanl-nolibm.h.
54661         (main): Use isnanl instead of x != x idiom.
54662         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
54663
54664         * tests/test-frexp.c: Include isnan.h.
54665         (main): Use isnan instead of x != x idiom.
54666         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
54667
54668 2007-03-25  Bruno Haible  <bruno@clisp.org>
54669
54670         * tests/test-frexp.c (NaN): New function/macro.
54671         (main): Use it instead of 0.0 / 0.0.
54672         * tests/test-isnan.c (NaN): New function/macro.
54673         (main): Use it instead of 0.0 / 0.0.
54674         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
54675         (test_function): Use it instead of 0.0 / 0.0.
54676         * tests/test-vasprintf-posix.c (NaN): New function/macro.
54677         (test_function): Use it instead of 0.0 / 0.0.
54678         * tests/test-snprintf-posix.h (NaN): New function/macro.
54679         (test_function): Use it instead of 0.0 / 0.0.
54680         * tests/test-sprintf-posix.h (NaN): New function/macro.
54681         (test_function): Use it instead of 0.0 / 0.0.
54682         * tests/test-fprintf-posix.h (NaN): New function/macro.
54683         (test_function): Use it instead of 0.0 / 0.0.
54684         * tests/test-printf-posix.h (NaN): New function/macro.
54685         (test_function): Use it instead of 0.0 / 0.0.
54686
54687         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
54688
54689 2007-03-25  Bruno Haible  <bruno@clisp.org>
54690
54691         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
54692
54693 2007-03-25  Bruno Haible  <bruno@clisp.org>
54694
54695         * lib/regexec.c (merge_state_with_log): Make static.
54696
54697 2007-03-25  Bruno Haible  <bruno@clisp.org>
54698
54699         * lib/trigl.c (kernel_rem_pio2): Make static.
54700
54701 2007-03-25  Bruno Haible  <bruno@clisp.org>
54702
54703         * lib/sincosl.c (sincosl_table): Make static.
54704
54705 2007-03-25  Bruno Haible  <bruno@clisp.org>
54706
54707         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
54708         if the compiler does not support C99.
54709
54710 2007-03-25  Bruno Haible  <bruno@clisp.org>
54711
54712         * modules/time (Makefile.am): Ensure all rule action lines start with a
54713         tab.
54714
54715 2007-03-24  Bruno Haible  <bruno@clisp.org>
54716
54717         * modules/tsearch-tests: New file.
54718         * tests/test-tsearch.sh: New file.
54719         * tests/test-tsearch.c: New file, mostly copied from glibc.
54720
54721         * modules/search-tests: New file.
54722         * tests/test-search.c: New file.
54723
54724         * modules/search: New file.
54725         * lib/search_.h: New file, incorporating lib/tsearch.h.
54726         * m4/search_h.m4: New file.
54727         * lib/tsearch.h: Remove file.
54728         * lib/tsearch.c: Include search.h instead of tsearch.h.
54729         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
54730         HAVE_TSEARCH.
54731         * modules/tsearch (Files): Remove lib/tsearch.h.
54732         (Depends-on): Add search.
54733         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
54734         (Include): Change tsearch.h into search.h.
54735
54736 2007-03-24  Bruno Haible  <bruno@clisp.org>
54737
54738         * modules/fpucw: New file.
54739         * lib/fpucw.h: New file.
54740         * lib/frexp.c: Include fpucw.h.
54741         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
54742         (FUNC): Use them.
54743         * lib/printf-frexp.c: Include fpucw.h.
54744         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
54745         (FUNC): Use them.
54746         * lib/vasnprintf.c: Include fpucw.h.
54747         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
54748         'long double' calculations.
54749         * tests/test-frexpl.c: Include fpucw.h.
54750         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
54751         * tests/test-printf-frexpl.c: Include fpucw.h.
54752         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
54753         * modules/frexpl (Depends-on): Add fpucw.
54754         * modules/printf-frexpl (Depends-on): Likewise.
54755         * modules/fprintf-posix (Depends-on): Likewise.
54756         * modules/snprintf-posix (Depends-on): Likewise.
54757         * modules/sprintf-posix (Depends-on): Likewise.
54758         * modules/vasnprintf-posix (Depends-on): Likewise.
54759         * modules/vasprintf-posix (Depends-on): Likewise.
54760         * modules/vfprintf-posix (Depends-on): Likewise.
54761         * modules/vsnprintf-posix (Depends-on): Likewise.
54762         * modules/vsprintf-posix (Depends-on): Likewise.
54763         * modules/frexpl-tests (Depends-on): Likewise.
54764         * modules/printf-frexpl-tests (Depends-on): Likewise.
54765
54766 2007-03-24  Bruno Haible  <bruno@clisp.org>
54767
54768         * lib/float+.h: New file.
54769         * lib/isnan.c: Include float+.h.
54770         (SIZE): New macro.
54771         (FUNC): Compare only SIZE bytes of the value.
54772         * lib/vasnprintf.c: Include float+.h.
54773         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
54774         SIZEOF_LDBL or SIZEOF_DBL bytes.
54775         * modules/isnan-nolibm (Files): Add lib/float+.h.
54776         * modules/isnanl-nolibm (Files): Add lib/float+.h.
54777         * modules/isnanl (Files): Add lib/float+.h.
54778         * modules/vasnprintf (Files): Add lib/float+.h.
54779
54780 2007-03-24  Bruno Haible  <bruno@clisp.org>
54781
54782         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
54783         include isnanl-nolibm.h.
54784
54785 2007-03-24  Bruno Haible  <bruno@clisp.org>
54786
54787         * tests/test-read-file.c (main): Don't produce spurious output for
54788         expected situations. Make the test fail if it encountered unexpected
54789         results.
54790
54791 2007-03-24  Bruno Haible  <bruno@clisp.org>
54792
54793         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
54794         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
54795
54796 2007-03-24  Bruno Haible  <bruno@clisp.org>
54797
54798         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
54799
54800 2007-03-24  Bruno Haible  <bruno@clisp.org>
54801
54802         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
54803         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
54804
54805         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
54806         * modules/utf8-ucs4: Turn into a symbolic link to module
54807         unistr/u8-mbtouc.
54808
54809         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
54810         utf8-ucs4-unsafe.
54811         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
54812         unistr/u8-mbtouc-unsafe.
54813
54814         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
54815         * modules/utf16-ucs4: Turn into a symbolic link to module
54816         unistr/u16-mbtouc.
54817
54818         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
54819         utf16-ucs4-unsafe.
54820         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
54821         unistr/u16-mbtouc-unsafe.
54822
54823         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
54824         * modules/ucs4-utf8: Turn into a symbolic link to module
54825         unistr/u8-ubtomb.
54826
54827         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
54828         * modules/ucs4-utf16: Turn into a symbolic link to module
54829         unistr/u16-ubtomb.
54830
54831 2007-03-24  Bruno Haible  <bruno@clisp.org>
54832
54833         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
54834         Enable the function only if HAVE_INLINE.
54835         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
54836         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
54837         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
54838         Enable the function only if HAVE_INLINE.
54839         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
54840         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
54841         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
54842         Enable the function only if HAVE_INLINE.
54843         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
54844         Enable the function only if HAVE_INLINE.
54845         * modules/utf8-ucs4: Update.
54846         * modules/utf8-ucs4-unsafe: Update.
54847         * modules/utf16-ucs4: Update.
54848         * modules/utf16-ucs4-unsafe: Update.
54849         * modules/ucs4-utf8: Update.
54850         * modules/ucs4-utf16: Update.
54851
54852 2007-03-24  Bruno Haible  <bruno@clisp.org>
54853
54854         * lib/utf8-ucs4.h: Remove file.
54855         * lib/utf8-ucs4-unsafe.h: Remove file.
54856         * lib/utf16-ucs4.h: Remove file.
54857         * lib/utf16-ucs4-unsafe.h: Remove file.
54858         * lib/ucs4-utf8.h: Remove file.
54859         * lib/ucs4-utf16.h: Remove file.
54860         * lib/unistr.h: Include their previous contents.
54861         * m4/utf-ucs4.m4: Remove file.
54862         * m4/ucs4-utf.m4: Remove file.
54863         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
54864         (Depends-on): Add unistr/base.
54865         (configure.ac): Remove gl_UTF_UCS4.
54866         (Makefile.am): Update.
54867         (Include): Change to unistr.h.
54868         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
54869         (Depends-on): Add unistr/base.
54870         (configure.ac): Remove gl_UTF_UCS4.
54871         (Makefile.am): Update.
54872         (Include): Change to unistr.h.
54873         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
54874         (Depends-on): Add unistr/base.
54875         (configure.ac): Remove gl_UTF_UCS4.
54876         (Makefile.am): Update.
54877         (Include): Change to unistr.h.
54878         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
54879         (Depends-on): Add unistr/base.
54880         (configure.ac): Remove gl_UTF_UCS4.
54881         (Makefile.am): Update.
54882         (Include): Change to unistr.h.
54883         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
54884         (Depends-on): Add unistr/base.
54885         (configure.ac): Remove gl_UCS4_UTF.
54886         (Makefile.am): Update.
54887         (Include): Change to unistr.h.
54888         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
54889         (Depends-on): Add unistr/base.
54890         (configure.ac): Remove gl_UCS4_UTF.
54891         (Makefile.am): Update.
54892         (Include): Change to unistr.h.
54893         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
54894         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
54895         utf8-ucs4-unsafe.h.
54896         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
54897         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
54898         utf16-ucs4-unsafe.h.
54899         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
54900         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
54901         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
54902         * lib/unistr/u8-strchr.c: Likewise.
54903         * lib/unistr/u8-strrchr.c: Likewise.
54904         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
54905         * lib/unistr/u16-strchr.c: Likewise.
54906         * lib/unistr/u16-strrchr.c: Likewise.
54907         * lib/striconveh.c: Update.
54908         * lib/linebreak.c: Update.
54909
54910 2007-03-24  Bruno Haible  <bruno@clisp.org>
54911
54912         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
54913         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
54914
54915 2007-03-22  Bruno Haible  <bruno@clisp.org>
54916
54917         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
54918
54919 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
54920
54921         * MODULES.html.sh (File system functions): New module write-any-file.
54922         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
54923         * m4/write-any-file.m4: New files.
54924
54925 2007-03-23  Eric Blake  <ebb9@byu.net>
54926
54927         * gnulib-tool: Rearrange space-tab sequences, since some editors
54928         like to eat them.
54929
54930 2007-03-23  Eric Blake  <ebb9@byu.net>
54931
54932         * lib/version-etc.c (version_etc_va): Update license wording to
54933         be more concise.  Recommended by Richard Stallman.
54934
54935 2007-03-22  Bruno Haible  <bruno@clisp.org>
54936
54937         * lib/poll.c (MSG_PEEK): New fallback definition.
54938
54939 2007-03-22  Bruno Haible  <bruno@clisp.org>
54940
54941         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
54942         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
54943         (main): Update.
54944         Fixes a compilation error on BeOS.
54945
54946 2007-03-22  Bruno Haible  <bruno@clisp.org>
54947
54948         * modules/frexpl-tests: New file.
54949         * tests/test-frexpl.c: New file.
54950
54951         * modules/frexpl: New file.
54952         * m4/frexpl.m4: New file.
54953         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
54954         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
54955         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
54956         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
54957         (Depends-on): Add frexpl. Remove isnanl-nolibm.
54958         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
54959
54960 2007-03-22  Bruno Haible  <bruno@clisp.org>
54961
54962         * lib/frexpl.c: Share code with lib/frexp.c.
54963         * modules/mathl (Files): Add lib/frexp.c.
54964         (Depends-on): Add isnanl-nolibm.
54965
54966 2007-03-22  Bruno Haible  <bruno@clisp.org>
54967
54968         * modules/printf-frexp (Files): Add m4/frexp.m4.
54969         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
54970         only if the found frexp function actually works.
54971
54972 2007-03-22  Bruno Haible  <bruno@clisp.org>
54973
54974         * lib/frexp.c: Remove older implementation that uses divisions.
54975
54976 2007-03-21  Bruno Haible  <bruno@clisp.org>
54977
54978         * modules/frexp-tests: New file.
54979         * tests/test-frexp.c: New file.
54980
54981         * modules/frexp: New file.
54982         * lib/frexp.c: New file.
54983         * m4/frexp.m4: New file.
54984         * lib/math_.h (frexp): New declaration.
54985         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
54986         REPLACE_FREXP.
54987         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
54988
54989 2007-03-21  Bruno Haible  <bruno@clisp.org>
54990
54991         * modules/isnanl-tests: New file.
54992         * tests/test-isnanl.c: New file.
54993
54994         * modules/isnanl: New file.
54995         * lib/isnanl.h: New file.
54996         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
54997         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
54998         gl_FUNC_ISNANL_WORKS.
54999         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
55000         New macros.
55001
55002 2007-03-21  Bruno Haible  <bruno@clisp.org>
55003
55004         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
55005         lib/isnanl.h.
55006         (Include): Update.
55007         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
55008         * lib/vasnprintf.c: Update.
55009         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
55010         tests/test-isnanl.h, remove tests/test-isnanl.c.
55011         (Makefile.am): Update.
55012         * tests/test-isnanl-nolibm.c: New file.
55013         * tests/test-isnanl.h: New file.
55014         * tests/test-isnanl.c: Remove file.
55015
55016 2007-03-21  Jim Meyering  <jim@meyering.net>
55017
55018         When trying to open ".", treat ESTALE like EACCES.
55019         * lib/savewd.c (savewd_save): Resort to forking not just upon
55020         failure with EACCES, but also when errno is ESTALE.
55021
55022 2007-03-20  Bruno Haible  <bruno@clisp.org>
55023
55024         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
55025         Needed on AIX 5.1. Reported by Matthew Woehlke.
55026
55027 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55028
55029         Suggestions by Bruno Haible:
55030         * lib/acl-internal.h: Include "gettext.h" rather than rolling
55031         our own.
55032         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
55033         * modules/acl (Depends-on): Add gettext.
55034
55035 2007-03-19  Bruno Haible  <bruno@clisp.org>
55036
55037         * modules/iconvme: Remove file.
55038         * lib/iconvme.h: Remove file.
55039         * lib/iconvme.c: Remove file.
55040         * m4/iconvme.m4: Remove file.
55041
55042 2007-03-19  Bruno Haible  <bruno@clisp.org>
55043
55044         * doc/relocatable-maint.texi: Break long shell script line.
55045         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55046
55047 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55048
55049         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
55050         handle file_has_acl.
55051         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
55052         * lib/acl.c: Move header inclusions and related macro defns into
55053         lib/acl-internal.h.
55054         (S_ISLNK): Remove defn, since that's now done for us.
55055         (file_has_acl): Move to lib/file-has-acl.c.
55056         Call acl_trivial if available.  This is the crucial part of the fix.
55057         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
55058         shared within the library.  Rewrite a bit, partly to make it compatible
55059         with the GNU coding style.
55060         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
55061         Remove unnecessary double-quotes.
55062         Don't test for acl_to_text; the build will catch that.
55063         Replace acl_entries if it doesn't exist and it is needed.
55064         Check for -lsec and acl_trivial (as used on Solaris 10).
55065         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
55066         lib/file-has-acl.c.
55067         (Depends-on): Add sys_stat, for S_ISLNK.
55068
55069 2007-03-19  Ben Pfaff  <blp@gnu.org>
55070
55071         * doc/gnulib.texi: Fix typos.
55072         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
55073
55074 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55075
55076         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
55077         If size is zero here, buf must be zero.
55078
55079 2007-03-19  Simon Josefsson  <simon@josefsson.org>
55080
55081         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
55082         <bruno@clisp.org>.
55083
55084 2007-03-18  Bruno Haible  <bruno@clisp.org>
55085
55086         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
55087         Suggested by Eric Blake.
55088
55089 2007-03-18  Ben Pfaff  <blp@gnu.org>
55090
55091         * doc/relocatable.texi: Recommend using as prefix a directory
55092         that does not exist and will never be created.  Based on
55093         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
55094         and others.
55095
55096 2007-03-17  Bruno Haible  <bruno@clisp.org>
55097
55098         * lib/fchownat.c: Include lchown.h.
55099
55100 2007-03-17  Bruno Haible  <bruno@clisp.org>
55101
55102         Fix endless loop when the given allocated size was > INT_MAX.
55103         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
55104         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
55105         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
55106         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
55107         * lib/sprintf.c (sprintf): Likewise.
55108
55109 2007-03-17  Bruno Haible  <bruno@clisp.org>
55110
55111         * tests/test-argp-2.sh (func_compare): Output a context diff.
55112
55113 2007-03-17  Bruno Haible  <bruno@clisp.org>
55114
55115         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
55116         locale's decimal-point character.
55117
55118 2007-03-17  Bruno Haible  <bruno@clisp.org>
55119
55120         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
55121         before comparing it. Needed because on some platforms (e.g. x86) a
55122         'long double' occupies less bytes than sizeof (long double).
55123
55124 2007-03-17  Bruno Haible  <bruno@clisp.org>
55125
55126         * tests/test-crc.c (main): Make printf statements 64-bit clean.
55127         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
55128         * tests/test-getaddrinfo.c (simple): Likewise.
55129         * tests/test-read-file.c (main): Likewise.
55130
55131 2007-03-17  Bruno Haible  <bruno@clisp.org>
55132
55133         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
55134
55135 2007-03-17  Bruno Haible  <bruno@clisp.org>
55136
55137         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
55138         unused variable.
55139
55140 2007-03-17  Bruno Haible  <bruno@clisp.org>
55141
55142         * tests/test-c-strcasecmp.c: Include c-strcase.h.
55143         * tests/test-c-strncasecmp.c: Likewise.
55144
55145 2007-03-17  Bruno Haible  <bruno@clisp.org>
55146
55147         * modules/stdlib (Depends-on): Add unistd.
55148         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
55149         Needed for MacOS X 10.3.
55150
55151 2007-03-17  Bruno Haible  <bruno@clisp.org>
55152
55153         * lib/unistr/u-strdup.h: Include <stdlib.h>.
55154
55155 2007-03-17  Bruno Haible  <bruno@clisp.org>
55156
55157         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
55158
55159 2007-03-17  Bruno Haible  <bruno@clisp.org>
55160
55161         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
55162         to reflect files copied from gnulib (with or without modifications).
55163         Suggested by Jim Meyering.
55164
55165 2007-03-17  Eric Blake  <ebb9@byu.net>
55166
55167         * NEWS: Document stdlib change from 2007-02-18.
55168
55169 2007-03-17  Jim Meyering  <jim@meyering.net>
55170
55171         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
55172         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
55173         someone uses a name containing shell meta-characters.
55174         Reported by Alfred M. Szmidt.
55175
55176         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
55177
55178 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
55179
55180         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
55181         and copy gettext configuration files only if configure.ac contains
55182         a use of AM_GNU_GETTEXT_VERSION.
55183
55184 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
55185
55186         * build-aux/bootstrap (gnulib_name): New variable.
55187         (gnulib_tool_options): Use it.
55188
55189 2007-03-13  Simon Josefsson  <simon@josefsson.org>
55190
55191         * tests/test-des.c: Use new namespace.
55192
55193 2007-03-15  Bruno Haible  <bruno@clisp.org>
55194
55195         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
55196         Reported by James Youngman <jay@gnu.org>.
55197
55198 2007-03-15  Bruno Haible  <bruno@clisp.org>
55199
55200         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
55201         declared prototype. Needed with cc on OSF/1 5.1.
55202
55203 2007-03-15  Bruno Haible  <bruno@clisp.org>
55204
55205         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
55206         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
55207         (struct gl_list_implementation): Add dispose_fn argument to the
55208         'create_empty', 'create' methods.
55209         (struct gl_list_impl_base): Add field 'dispose_fn'.
55210         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
55211         argument.
55212         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
55213         dispose_fn argument.
55214         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
55215         dispose_fn on the dropped values.
55216         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
55217         dispose_fn argument.
55218         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
55219         dropped values.
55220         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
55221         (gl_tree_remove_node): Call dispose_fn on the dropped value.
55222         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
55223         (gl_tree_remove_node): Call dispose_fn on the dropped value.
55224         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
55225         argument.
55226         (gl_tree_list_free): Call dispose_fn on the dropped values.
55227         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
55228         the dropped values.
55229         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
55230         Add dispose_fn argument.
55231         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
55232         Call dispose_fn on the dropped values.
55233         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
55234         Add dispose_fn argument.
55235         (gl_sublist_create): Initialize the 'dispose_fn' field.
55236         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
55237         * tests/test-array_list.c (main): Update.
55238         * tests/test-carray_list.c (main): Update.
55239         * tests/test-avltree_list.c (main): Update.
55240         * tests/test-rbtree_list.c (main): Update.
55241         * tests/test-avltreehash_list.c (main): Update.
55242         * tests/test-rbtreehash_list.c (main): Update.
55243         * tests/test-linked_list.c (main): Update.
55244         * tests/test-linkedhash_list.c (main): Update.
55245         * tests/test-array_oset.c (main): Update.
55246
55247 2007-03-15  Bruno Haible  <bruno@clisp.org>
55248
55249         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
55250         (gl_oset_create_empty): Add dispose_fn argument.
55251         (struct gl_oset_implementation): Add dispose_fn argument to
55252         'create_empty' method.
55253         (struct gl_oset_impl_base): Add dispose_fn field.
55254         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
55255         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
55256         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
55257         values.
55258         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
55259         (gl_tree_oset_free): Call dispose_fn on the dropped values.
55260         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
55261         dropped value.
55262         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
55263         dropped value.
55264         * tests/test-array_oset.c (main): Update.
55265         * tests/test-avltree_oset.c (main): Update.
55266         * tests/test-rbtree_oset.c (main): Update.
55267         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
55268
55269 2007-03-13  Bruno Haible  <bruno@clisp.org>
55270
55271         * tests/test-stdbool.c (i): Update after last patch.
55272
55273 2007-03-12  Bruno Haible  <bruno@clisp.org>
55274
55275         * lib/quotearg.c: Include <wctype.h> early, before the definition of
55276         the iswprint macro. Needed on Solaris 2.5.1.
55277
55278 2007-03-12  Bruno Haible  <bruno@clisp.org>
55279
55280         * tests/test-printf-frexp.c (main): Declare x as volatile.
55281
55282 2007-03-12  Simon Josefsson  <simon@josefsson.org>
55283
55284         * doc/gnulib.texi (Build robot for gnulib): New section.
55285
55286 2007-03-12  Jim Meyering  <jim@meyering.net>
55287
55288         * build-aux/bootstrap: New file.
55289         * build-aux/bootstrap.conf: New file, from coreutils.
55290
55291 2007-03-11  Bruno Haible  <bruno@clisp.org>
55292
55293         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
55294
55295 2007-03-12  Simon Josefsson  <simon@josefsson.org>
55296
55297         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
55298         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
55299         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
55300
55301 2007-03-11  Bruno Haible  <bruno@clisp.org>
55302
55303         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
55304         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
55305
55306 2007-03-11  Bruno Haible  <bruno@clisp.org>
55307
55308         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
55309         formula. Needed for SunPRO C 5.0.
55310
55311 2007-03-11  Bruno Haible  <bruno@clisp.org>
55312
55313         * modules/long-options (Depends-on): Add getopt.
55314
55315 2007-03-11  Bruno Haible  <bruno@clisp.org>
55316
55317         * modules/modechange (Depends-on): Add stdbool.
55318
55319 2007-03-11  Bruno Haible  <bruno@clisp.org>
55320
55321         * modules/i-ring (Depends-on): Add stdbool.
55322
55323 2007-03-11  Bruno Haible  <bruno@clisp.org>
55324
55325         * modules/gc-des (Depends-on): Add stdbool.
55326
55327 2007-03-11  Bruno Haible  <bruno@clisp.org>
55328
55329         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
55330
55331 2007-03-11  Bruno Haible  <bruno@clisp.org>
55332
55333         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
55334
55335 2007-03-11  Bruno Haible  <bruno@clisp.org>
55336
55337         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
55338
55339 2007-03-11  Bruno Haible  <bruno@clisp.org>
55340
55341         * lib/vasnprintf.c (sprintf): Undefine.
55342
55343 2007-03-11  Bruno Haible  <bruno@clisp.org>
55344
55345         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
55346         initializers in SunPRO C and Compaq C compilers.
55347
55348 2007-03-11  Bruno Haible  <bruno@clisp.org>
55349
55350         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
55351         decrementing code ANSI C compliant.
55352
55353 2007-03-11  Bruno Haible  <bruno@clisp.org>
55354
55355         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
55356         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
55357
55358 2007-03-11  Bruno Haible  <bruno@clisp.org>
55359
55360         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
55361         <stdbool.h> substitute doesn't pass.
55362
55363 2007-03-11  Bruno Haible  <bruno@clisp.org>
55364
55365         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
55366
55367 2007-03-11  Bruno Haible  <bruno@clisp.org>
55368
55369         * gnulib-tool (func_create_megatestdir): Create also an autobuild
55370         script, for submission to autobuild.josefsson.org.
55371
55372 2007-03-10  Bruno Haible  <bruno@clisp.org>
55373
55374         * modules/canonicalize-lgpl-tests: New file.
55375         * tests/test-canonicalize-lgpl.sh: New file.
55376         * tests/test-canonicalize-lgpl.c: New file.
55377
55378         * modules/c-strcase-tests: New file.
55379         * tests/test-c-strcase.sh: New file.
55380         * tests/test-c-strcasecmp.c: New file.
55381         * tests/test-c-strncasecmp.c: New file.
55382
55383         * modules/atexit-tests: New file.
55384         * tests/test-atexit.sh: New file.
55385         * tests/test-atexit.c: New file.
55386
55387 2007-03-10  Bruno Haible  <bruno@clisp.org>
55388
55389         * tests/test-binary-io.sh: Use temporary filenames that are not so
55390         likely to clash with those of other tests (in a parallel make).
55391         * tests/test-binary-io.c: Likewise.
55392
55393 2007-03-10  Bruno Haible  <bruno@clisp.org>
55394
55395         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
55396         fallback; use #error instead.
55397         Suggested by Simon Josefsson.
55398
55399 2007-03-10  Bruno Haible  <bruno@clisp.org>
55400
55401         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
55402         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
55403         first and the last.
55404
55405 2007-03-10  Bruno Haible  <bruno@clisp.org>
55406
55407         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
55408
55409 2007-03-10  Bruno Haible  <bruno@clisp.org>
55410
55411         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
55412         "make distcheck".
55413         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
55414         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
55415         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
55416
55417 2007-03-10  Bruno Haible  <bruno@clisp.org>
55418
55419         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
55420         variable.
55421         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
55422         variable.
55423
55424 2007-03-09  Eric Blake  <ebb9@byu.net>
55425         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
55426
55427         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
55428         types are not being provided by gnulib.
55429         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
55430         types are supported.
55431
55432 2007-03-10  Bruno Haible  <bruno@clisp.org>
55433
55434         * lib/stdio_.h (__attribute__): New macro.
55435         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
55436         vsprintf): Specify __attribute__ __format__ for GCC.
55437         Suggested by Eric Blake.
55438
55439 2007-03-09  Bruno Haible  <bruno@clisp.org>
55440
55441         * modules/printf-posix-tests: New file.
55442         * tests/test-printf-posix.sh: New file.
55443         * tests/test-printf-posix.c: New file.
55444
55445         * modules/printf-posix: New file.
55446         * lib/printf.c: New file.
55447         * m4/printf-posix-rpl.m4: New file.
55448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
55449         REPLACE_PRINTF.
55450         * lib/stdio_.h (printf): New declaration.
55451         (format, __format__, ____printf____, ____scanf____, ____strftime____,
55452         ____strfmon____): New macros.
55453         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
55454         REPLACE_PRINTF.
55455
55456 2007-03-09  Bruno Haible  <bruno@clisp.org>
55457
55458         * tests/test-vasnprintf-posix2.sh: New file.
55459         * tests/test-vasnprintf-posix2.c: New file.
55460         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
55461         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
55462         (Makefile.am): Activate test-vasnprintf-posix2.sh.
55463
55464         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
55465         a locale dependent decimal point, rather than always '.'.
55466
55467 2007-03-09  Eric Blake  <ebb9@byu.net>
55468
55469         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
55470         spite of platforms like Tandem/NSK that define it to -1.
55471
55472 2007-03-08  Bruno Haible  <bruno@clisp.org>
55473
55474         * modules/vprintf-posix-tests: New file.
55475         * tests/test-vprintf-posix.sh: New file.
55476         * tests/test-vprintf-posix.c: New file.
55477         * tests/test-printf-posix.h: New file.
55478
55479         * modules/vprintf-posix: New file.
55480         * lib/vprintf.c: New file.
55481         * m4/vprintf-posix.m4: New file.
55482         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
55483         REPLACE_VPRINTF.
55484         * lib/stdio_.h (vprintf): New declaration.
55485         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
55486         REPLACE_VPRINTF.
55487
55488 2007-03-08  Bruno Haible  <bruno@clisp.org>
55489
55490         * modules/fprintf-posix-tests: New file.
55491         * tests/test-fprintf-posix.sh: New file.
55492         * tests/test-fprintf-posix.c: New file.
55493
55494         * modules/fprintf-posix: New file.
55495         * lib/fprintf.c: New file.
55496         * m4/fprintf-posix.m4: New file.
55497         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
55498         REPLACE_FPRINTF.
55499         * lib/stdio_.h (fprintf): New declaration.
55500         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
55501         REPLACE_FPRINTF.
55502
55503 2007-03-08  Bruno Haible  <bruno@clisp.org>
55504
55505         * modules/vfprintf-posix-tests: New file.
55506         * tests/test-vfprintf-posix.sh: New file.
55507         * tests/test-vfprintf-posix.c: New file.
55508         * tests/test-fprintf-posix.h: New file.
55509         * tests/test-fprintf-posix.out: New file.
55510
55511         * modules/vfprintf-posix: New file.
55512         * lib/vfprintf.c: New file.
55513         * m4/vfprintf-posix.m4: New file.
55514         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
55515         REPLACE_VFPRINTF.
55516         * lib/stdio_.h (vfprintf): New declaration.
55517         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
55518         REPLACE_VFPRINTF.
55519
55520 2007-03-08  Bruno Haible  <bruno@clisp.org>
55521
55522         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
55523
55524 2007-03-08  Bruno Haible  <bruno@clisp.org>
55525
55526         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
55527         instead of 'expr' invocations.
55528         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55529         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55530         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55531         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55532         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55533         Suggested by Paul Eggert.
55534
55535 2007-03-08  Bruno Haible  <bruno@clisp.org>
55536
55537         * modules/fseterr-tests: New file.
55538         * tests/test-fseterr.c: New file.
55539
55540         * modules/fseterr: New file.
55541         * lib/fseterr.h: New file.
55542         * lib/fseterr.c: New file.
55543
55544 2007-03-08  Bruno Haible  <bruno@clisp.org>
55545
55546         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
55547         * lib/getopt_.h: Likewise.
55548         * lib/mbswidth.h: Likewise.
55549         * lib/setenv.h: Likewise.
55550         * lib/vasnprintf.h: Likewise.
55551         * lib/vasprintf.h: Likewise.
55552         * lib/verror.h: Likewise.
55553         * lib/xsetenv.h: Likewise.
55554         * lib/xvasprintf.h: Likewise.
55555
55556 2007-03-08  Jim Meyering  <jim@meyering.net>
55557
55558         * users.txt: Add parted.
55559
55560         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
55561
55562 2007-03-07  Bruno Haible  <bruno@clisp.org>
55563
55564         * m4/printf.m4: Make the shell script snippets copy&pastable.
55565
55566 2007-03-02  Bruno Haible  <bruno@clisp.org>
55567
55568         * lib/netinet_in_.h: New file.
55569         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
55570         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
55571         * modules/netinet_in (Files): Add lib/netinet_in_.h.
55572         (Depends-on): Add absolute-header.
55573         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
55574         into netinet/in.h.
55575
55576 2007-03-03  Bruno Haible  <bruno@clisp.org>
55577
55578         * lib/sys_select_.h: New file.
55579         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
55580         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
55581         * modules/sys_select (Files): Add lib/sys_select_.h.
55582         (Depends-on): Add absolute-header.
55583         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
55584         into sys/select.h.
55585
55586 2007-03-02  Bruno Haible  <bruno@clisp.org>
55587
55588         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
55589         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
55590         values.
55591         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
55592         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
55593         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
55594         * modules/sys_socket (Depends-on): Add absolute-header.
55595         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
55596         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
55597         (Include): Remove requirement of inclusion of <sys/types.h>.
55598
55599 2007-03-02  Bruno Haible  <bruno@clisp.org>
55600
55601         * lib/byteswap_.h (bswap_32): Fix formula.
55602
55603 2007-03-06  Bruno Haible  <bruno@clisp.org>
55604
55605         * modules/sprintf-posix-tests: New file.
55606         * tests/test-sprintf-posix.c: New file.
55607
55608         * modules/sprintf-posix: New file.
55609         * lib/sprintf.c: New file.
55610         * m4/sprintf-posix.m4: New file.
55611         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
55612         REPLACE_SPRINTF.
55613         * lib/stdio_.h (sprintf): New declaration.
55614         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
55615         REPLACE_SPRINTF.
55616
55617 2007-03-06  Bruno Haible  <bruno@clisp.org>
55618
55619         * modules/vsprintf-posix-tests: New file.
55620         * tests/test-vsprintf-posix.c: New file.
55621         * tests/test-sprintf-posix.h: New file.
55622
55623         * modules/vsprintf-posix: New file.
55624         * lib/vsprintf.c: New file.
55625         * m4/vsprintf-posix.m4: New file.
55626         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
55627         REPLACE_VSPRINTF.
55628         * lib/stdio_.h (vsprintf): New declaration.
55629         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
55630         REPLACE_VSPRINTF.
55631
55632 2007-03-06  Bruno Haible  <bruno@clisp.org>
55633
55634         * modules/vsnprintf (Depend-on): Remove minmax.
55635
55636 2007-03-06  Bruno Haible  <bruno@clisp.org>
55637
55638         * modules/snprintf-posix-tests: New file.
55639         * tests/test-snprintf-posix.c: New file.
55640
55641         * modules/snprintf-posix: New file.
55642         * m4/snprintf-posix.m4: New file.
55643         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
55644         gl_FUNC_SNPRINTF.
55645         (gl_FUNC_SNPRINTF): Invoke it.
55646         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
55647         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
55648         is set.
55649         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
55650
55651 2007-03-06  Bruno Haible  <bruno@clisp.org>
55652
55653         * modules/vsnprintf-posix-tests: New file.
55654         * tests/test-vsnprintf-posix.c: New file.
55655         * tests/test-snprintf-posix.h: New file.
55656
55657         * modules/vsnprintf-posix: New file.
55658         * m4/vsnprintf-posix.m4: New file.
55659         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
55660         gl_FUNC_VSNPRINTF.
55661         (gl_FUNC_VSNPRINTF): Invoke it.
55662         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
55663         * lib/stdio_.h (vsnprintf): Define as a replacement if
55664         REPLACE_VSNPRINTF is set.
55665         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
55666
55667 2007-03-06  Bruno Haible  <bruno@clisp.org>
55668
55669         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
55670         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
55671
55672 2007-03-06  Bruno Haible  <bruno@clisp.org>
55673
55674         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
55675         (asinl): Declare also if HAVE_DECL_ASINL is set.
55676         (atanl): Declare also if HAVE_DECL_ATANL is set.
55677         (ceill): Declare also if HAVE_DECL_CEILL is set.
55678         (cosl): Declare also if HAVE_DECL_COSL is set.
55679         (expl): Declare also if HAVE_DECL_EXPL is set.
55680         (floorl): Declare also if HAVE_DECL_FLOORL is set.
55681         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
55682         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
55683         (logl): Declare also if HAVE_DECL_LOGL is set.
55684         (sinl): Declare also if HAVE_DECL_SINL is set.
55685         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
55686         (tanl): Declare also if HAVE_DECL_TANL is set.
55687         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
55688         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
55689         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
55690         declaration of frexpl, ldexpl.
55691         * modules/printf-frexpl (Depends-on): Add math.
55692         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
55693
55694 2007-03-05  Bruno Haible  <bruno@clisp.org>
55695
55696         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
55697         frexpl and ldexpl are declared.
55698         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
55699
55700 2007-03-05  Bruno Haible  <bruno@clisp.org>
55701
55702         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
55703         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
55704
55705 2007-03-05  Bruno Haible  <bruno@clisp.org>
55706
55707         * lib/stdio_.h: Include <stddef.h>.
55708
55709 2007-03-05  Bruno Haible  <bruno@clisp.org>
55710
55711         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
55712
55713 2007-03-05  Bruno Haible  <bruno@clisp.org>
55714
55715         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
55716         NetBSD 4, from Ralf Wildenhues.
55717
55718 2007-03-04  Bruno Haible  <bruno@clisp.org>
55719
55720         * lib/vasprintf.h: Update #if logic for the case when the functions
55721         exist but are overridden.
55722
55723 2007-03-04  Bruno Haible  <bruno@clisp.org>
55724
55725         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
55726         implementations: glibc-2.4 and MacOS X 10.3.
55727         * tests/test-vasnprintf-posix.c (test_function): Test also the case
55728         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
55729         * tests/test-vasprintf-posix.c (test_function): Likewise.
55730
55731 2007-03-04  Bruno Haible  <bruno@clisp.org>
55732
55733         * modules/vasprintf-posix-tests: New file.
55734         * tests/test-vasprintf-posix.c: New file.
55735
55736         * modules/vasprintf-posix: New file.
55737         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
55738         defined.
55739         * m4/vasprintf-posix.m4: New file.
55740         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
55741         gl_FUNC_VASPRINTF.
55742         (gl_FUNC_VASPRINTF): Invoke it.
55743         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
55744         here.
55745         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
55746
55747 2007-03-04  Bruno Haible  <bruno@clisp.org>
55748
55749         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
55750         REPLACE_GETTIMEOFDAY.
55751         * modules/sys_time (Makefile.am): Likewise.
55752         * m4/sys_time_h.m4: Likewise.
55753         * m4/gettimeofday.m4: Likewise.
55754
55755 2007-03-04  Bruno Haible  <bruno@clisp.org>
55756
55757         * modules/vasnprintf-posix-tests: New file.
55758         * tests/test-vasnprintf-posix.c: New file.
55759
55760         * modules/vasnprintf-posix: New file.
55761         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
55762         printf-frexpl.h.
55763         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
55764         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
55765         REPLACE_VASNPRINTF is defined.
55766         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
55767         gl_FUNC_VASNPRINTF.
55768         (gl_FUNC_VASNPRINTF): Invoke it.
55769         * m4/vasnprintf-posix.m4: New file.
55770         * m4/printf.m4: New file.
55771
55772 2007-03-04  Bruno Haible  <bruno@clisp.org>
55773
55774         Compile progreloc.c only if --enable-relocatable is specified.
55775         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
55776         if --enable-relocatable was specified.
55777         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
55778         lib_SOURCES.
55779
55780 2007-03-04  Jim Meyering  <jim@meyering.net>
55781
55782         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
55783         Use it consistently, rather than enumerating errno constants.
55784
55785 2007-03-04  Bruno Haible  <bruno@clisp.org>
55786
55787         * modules/xvasprintf-tests: New file.
55788         * tests/test-xvasprintf.c: New file.
55789
55790         * modules/vasprintf-tests: New file.
55791         * tests/test-vasprintf.c: New file.
55792
55793         * modules/vasnprintf-tests: New file.
55794         * tests/test-vasnprintf.c: New file.
55795
55796         * modules/vsnprintf-tests: New file.
55797         * tests/test-vsnprintf.c: New file.
55798
55799         * modules/snprintf-tests: New file.
55800         * tests/test-snprintf.c: New file.
55801
55802 2007-03-04  Bruno Haible  <bruno@clisp.org>
55803
55804         Compile relocatable.c only if --enable-relocatable is specified.
55805         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
55806         gl_RELOCATABLE_LIBRARY.
55807         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
55808         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
55809         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
55810         gl_RELOCATABLE_LIBRARY.
55811         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
55812         (Makefile.am): Remove lib_SOURCES.
55813         * modules/relocatable-lib-lgpl (configure.ac): Invoke
55814         gl_RELOCATABLE_LIBRARY.
55815         (Makefile.am): Remove lib_SOURCES.
55816         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
55817         always.
55818         * modules/relocatable-prog-wrapper (configure.ac): Invoke
55819         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
55820
55821 2007-03-04  Bruno Haible  <bruno@clisp.org>
55822
55823         * modules/argmatch-tests: New file.
55824         * tests/test-argmatch.c: New file.
55825
55826         * tests/test-allocsa.c (main): Halve the number of loop runs.
55827
55828         * modules/alloca-opt-tests: New file.
55829         * tests/test-alloca-opt.c: New file.
55830
55831 2007-03-04  Jim Meyering  <jim@meyering.net>
55832
55833         Work around difference between Linux ACLs and Solaris 10 ZFS.
55834         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
55835         for EINVAL.
55836
55837 2007-03-03  Bruno Haible  <bruno@clisp.org>
55838
55839         * modules/relocatable-prog (Depends-on): Add back progreloc's
55840         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
55841
55842 2007-03-03  Bruno Haible  <bruno@clisp.org>
55843
55844         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
55845         * modules/relocatable-lib: New file.
55846
55847 2007-03-03  Bruno Haible  <bruno@clisp.org>
55848
55849         * modules/relocatable-prog: Renamed from modules/relocatable.
55850         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
55851
55852 2007-03-03  Bruno Haible  <bruno@clisp.org>
55853
55854         * modules/relocatable-script (Files): Add doc/relocatable.texi,
55855         m4/relocatable-lib.m4.
55856         (Depends-on): Remove 'relocatable'.
55857         (configure.ac): Add gl_RELOCATABLE_NOP.
55858
55859 2007-03-03  Bruno Haible  <bruno@clisp.org>
55860
55861         * modules/relocatable-prog-wrapper: New file.
55862         * modules/relocatable (Depends-on): Add it. Remove all other
55863         dependencies except progname.
55864         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
55865
55866         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
55867         (gl_FUNC_STRERROR): Nop.
55868         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
55869
55870         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
55871         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
55872
55873         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
55874         (gl_FUNC_READLINK): Update.
55875
55876         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
55877
55878 2007-03-03  Bruno Haible  <bruno@clisp.org>
55879
55880         * lib/xreadlink.c: Include <unistd.h> unconditionally.
55881         * modules/xreadlink (Depends-on): Add unistd.
55882         * modules/xreadlink-with-size (Depends-on): Likewise.
55883
55884 2007-03-03  Bruno Haible  <bruno@clisp.org>
55885
55886         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
55887         extracted from gt_FUNC_SETENV.
55888         (gt_FUNC_SETENV): Remove macro.
55889         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
55890         remove gt_FUNC_SETENV.
55891
55892 2007-03-03  Bruno Haible  <bruno@clisp.org>
55893
55894         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
55895         ENABLE_RELOCATABLE here.
55896         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
55897
55898 2007-03-03  Bruno Haible  <bruno@clisp.org>
55899
55900         * modules/rbtreehash-list-tests (Depends-on): Add progname.
55901         * tests/test-rbtreehash_list.c: Include progname.h.
55902         (main): Call set_program_name.
55903
55904         * modules/rbtree-oset-tests (Depends-on): Add progname.
55905         * tests/test-rbtree_oset.c: Include progname.h.
55906         (main): Call set_program_name.
55907
55908         * modules/rbtree-list-tests (Depends-on): Add progname.
55909         * tests/test-rbtree_list.c: Include progname.h.
55910         (main): Call set_program_name.
55911
55912         * modules/linked-list-tests (Depends-on): Add progname.
55913         * tests/test-linked_list.c: Include progname.h.
55914         (main): Call set_program_name.
55915
55916 2007-03-03  Bruno Haible  <bruno@clisp.org>
55917
55918         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
55919         All uses of __restrict changed to _Restrict_.
55920         * lib/glob_.h (__restrict): Remove macro.
55921
55922 2007-03-02  Bruno Haible  <bruno@clisp.org>
55923
55924         * modules/gettext (configure.ac): Require gettext infrastructure
55925         from version 0.16.1.
55926
55927 2007-03-02  Bruno Haible  <bruno@clisp.org>
55928
55929         * modules/linkedhash-list-tests (Depends-on): Add progname.
55930         * tests/test-linkedhash_list.c: Include progname.h.
55931         (main): Call set_program_name.
55932
55933         * modules/carray-list-tests (Depends-on): Add progname.
55934         * tests/test-carray_list.c: Include progname.h.
55935         (main): Call set_program_name.
55936
55937         * modules/avltreehash-list-tests (Depends-on): Add progname.
55938         * tests/test-avltreehash_list.c: Include progname.h.
55939         (main): Call set_program_name.
55940
55941         * modules/avltree-oset-tests (Depends-on): Add progname.
55942         * tests/test-avltree_oset.c: Include progname.h.
55943         (main): Call set_program_name.
55944
55945         * modules/avltree-list-tests (Depends-on): Add progname.
55946         * tests/test-avltree_list.c: Include progname.h.
55947         (main): Call set_program_name.
55948
55949         * modules/array-oset-tests (Depends-on): Add progname.
55950         * tests/test-array_oset.c: Include progname.h.
55951         (main): Call set_program_name.
55952
55953         * modules/array-list-tests (Depends-on): Add progname.
55954         * tests/test-array_list.c: Include progname.h.
55955         (main): Call set_program_name.
55956
55957         * modules/argp-tests (Depends-on): Add progname.
55958         * tests/test-argp.c: Include argp.h first. Include progname.h.
55959         (main): Call set_program_name.
55960
55961 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
55962
55963         * doc/gnulib-tool.texi (Initial import): Reword description of
55964         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
55965         limited effect even if defined after the first system include.
55966
55967 2007-03-01  Bruno Haible  <bruno@clisp.org>
55968
55969         * build-aux/config.libpath: Update to libtool-1.5.22.
55970         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55971
55972 2007-03-01  Bruno Haible  <bruno@clisp.org>
55973
55974         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
55975         foo_CFLAGS.
55976         Reported by Ralf Wildenhues.
55977
55978 2007-03-01  Bruno Haible  <bruno@clisp.org>
55979
55980         * build-aux/install-reloc: Remove object files left over by some
55981         compilers.
55982         Reported by Ralf Wildenhues.
55983
55984 2007-03-01  Bruno Haible  <bruno@clisp.org>
55985
55986         * build-aux/install-reloc: Break long lines.
55987
55988 2007-03-01  Bruno Haible  <bruno@clisp.org>
55989
55990         * doc/relocatable.texi: Document that it may not work on OpenBSD.
55991         Reported by Ralf Wildenhues.
55992
55993 2007-03-01  Bruno Haible  <bruno@clisp.org>
55994
55995         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
55996         include ordering constraints.
55997
55998 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55999
56000         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
56001         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
56002         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
56003         as another example.
56004         * lib/time_.h: Fix misspelling.
56005         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
56006         Require gl_HEADER_TIME_H_DEFAULTS.
56007         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
56008         * m4/time_r.m4 (gl_TIME_R): Likewise.
56009         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
56010
56011 2007-03-01  Bruno Haible  <bruno@clisp.org>
56012
56013         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
56014         * m4/utimens.m4 (gl_UTIMENS): Likewise.
56015
56016 2007-03-01  Jim Meyering  <jim@meyering.net>
56017
56018         * modules/xreadlink (Maintainer): Add my name.
56019         * modules/xreadlink-with-size (Depends-on): Alphabetize.
56020
56021 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
56022             Bruno Haible  <bruno@clisp.org>
56023
56024         * build-aux/install-reloc: Compile also c-ctype.c.
56025         * build-aux/relocatable.sh.in: New file.
56026         * doc/relocatable.texi: New file.
56027         * doc/relocatable-maint.texi: New file.
56028         * doc/gnulib.texi: Include relocatable-maint.texi.
56029         * lib/progreloc.c: Include unistd.h unconditionally.
56030         * lib/relocwrapper.c: Include unistd.h unconditionally.
56031         Include c-ctype.h.
56032         (add_dotbin): Use c_tolower.
56033         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
56034         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
56035         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
56036         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
56037         to m4/relocatable-lib.m4.
56038         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
56039         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
56040         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
56041         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
56042         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
56043         * modules/relocatable: New file.
56044         * modules/relocatable-lib: New file.
56045         * modules/relocatable-script: New file.
56046
56047 2007-02-28  Bruno Haible  <bruno@clisp.org>
56048
56049         Import --enable-relocatable infrastructure.
56050         * build-aux/config.libpath: New file, from GNU gettext.
56051         * build-aux/install-reloc: New file, from GNU gettext.
56052         * build-aux/reloc-ldflags: New file, from GNU gettext.
56053         * lib/relocatable.h: New file, from GNU gettext.
56054         * lib/relocatable.c: New file, from GNU gettext.
56055         * lib/relocwrapper.c: New file, from GNU gettext.
56056         * m4/relocatable.m4: New file, from GNU gettext.
56057
56058 2007-02-28  Bruno Haible  <bruno@clisp.org>
56059
56060         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
56061
56062         * modules/xreadlink: New file, from GNU gettext with modifications.
56063         * lib/xreadlink.c: New file, from GNU gettext.
56064         * lib/xreadlink.h: Add comments.
56065         (xreadlink): New declaration.
56066
56067         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
56068         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
56069         lib/xreadlink-with-size.c.
56070         (configure.ac): Remove gl_XREADLINK invocation.
56071         (Makefile.am): Augment lib_SOURCES.
56072         * m4/xreadlink.m4: Remove file.
56073         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
56074         (xreadlink_with_size): Renamed from xreadink.
56075         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
56076         * modules/canonicalize (Depends-on): Replace xreadlink with
56077         xreadlink-with-size.
56078         * lib/canonicalize.c (canonicalize_filename_mode): Update.
56079
56080 2007-02-25  Jim Meyering  <jim@meyering.net>
56081
56082         * build-aux/announce-gen: When complaining about excess arguments,
56083         list them.
56084
56085 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56086
56087         * README: Document signed integer overflow situation more
56088         accurately.
56089
56090 2007-02-25  Bruno Haible  <bruno@clisp.org>
56091
56092         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
56093         'a' or 'A' conversion.
56094
56095 2007-02-25  Bruno Haible  <bruno@clisp.org>
56096
56097         * modules/filename: Renamed from modules/pathname.
56098         (Files): Replace lib/pathname.h with lib/filename.h. Replace
56099         lib/concatpath.c with lib/concat-filename.c.
56100         (Makefile.am): Update.
56101         (Include): Replace pathname.h with filename.h.
56102         * lib/filename.h: Renamed from lib/pathname.h.
56103         (concatenated_filename): Renamed from concatenated_pathname.
56104         * lib/concat-filename.c: Renamed from lib/concatpath.c.
56105         (concatenated_filename): Renamed from concatenated_pathname.
56106         * lib/findprog.c: Include filename.h instead of pathname.h.
56107         (find_in_path): Update.
56108         * lib/javacomp.c: Include filename.h instead of pathname.h.
56109         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56110         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56111         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56112         is_oldgcj_14_13_usable, is_javac_usable): Update.
56113         * lib/javaexec.c: Include filename.h instead of pathname.h.
56114         (execute_java_class): Update.
56115         * modules/findprog: Update.
56116         * modules/javacomp: Update.
56117         * modules/javaexec: Update.
56118         * MODULES.html.sh (File system functions): Add 'filename', remove
56119         'pathname'.
56120
56121 2007-02-25  Bruno Haible  <bruno@clisp.org>
56122
56123         * modules/printf-frexpl-tests: New file.
56124         * tests/test-printf-frexpl.c: New file.
56125
56126         * modules/printf-frexpl: New file.
56127         * lib/printf-frexpl.h: New file.
56128         * lib/printf-frexpl.c: New file.
56129         * m4/printf-frexpl.m4: New file.
56130
56131 2007-02-25  Bruno Haible  <bruno@clisp.org>
56132
56133         * modules/printf-frexp-tests: New file.
56134         * tests/test-printf-frexp.c: New file.
56135
56136         * modules/printf-frexp: New file.
56137         * lib/printf-frexp.h: New file.
56138         * lib/printf-frexp.c: New file.
56139         * m4/printf-frexp.m4: New file.
56140
56141 2007-02-25  Bruno Haible  <bruno@clisp.org>
56142
56143         Assume automake >= 1.10 for the tests.
56144         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
56145         * modules/arctwo-tests: Likewise.
56146         * modules/argp-tests: Likewise.
56147         * modules/avltree-list-tests: Likewise.
56148         * modules/avltree-oset-tests: Likewise.
56149         * modules/avltreehash-list-tests: Likewise.
56150         * modules/carray-list-tests: Likewise.
56151         * modules/crc-tests: Likewise.
56152         * modules/des-tests: Likewise.
56153         * modules/gc-arcfour-tests: Likewise.
56154         * modules/gc-arctwo-tests: Likewise.
56155         * modules/gc-des-tests: Likewise.
56156         * modules/gc-hmac-md5-tests: Likewise.
56157         * modules/gc-hmac-sha1-tests: Likewise.
56158         * modules/gc-md2-tests: Likewise.
56159         * modules/gc-md4-tests: Likewise.
56160         * modules/gc-md5-tests: Likewise.
56161         * modules/gc-pbkdf2-sha1-tests: Likewise.
56162         * modules/gc-rijndael-tests: Likewise.
56163         * modules/gc-sha1-tests: Likewise.
56164         * modules/gc-tests: Likewise.
56165         * modules/getaddrinfo-tests: Likewise.
56166         * modules/hmac-md5-tests: Likewise.
56167         * modules/hmac-sha1-tests: Likewise.
56168         * modules/linked-list-tests: Likewise.
56169         * modules/linkedhash-list-tests: Likewise.
56170         * modules/lock-tests: Likewise.
56171         * modules/md2-tests: Likewise.
56172         * modules/md4-tests: Likewise.
56173         * modules/md5-tests: Likewise.
56174         * modules/rbtree-list-tests: Likewise.
56175         * modules/rbtree-oset-tests: Likewise.
56176         * modules/rbtreehash-list-tests: Likewise.
56177         * modules/read-file-tests: Likewise.
56178         * modules/rijndael-tests: Likewise.
56179         * modules/stdint-tests: Likewise.
56180         * modules/tls-tests: Likewise.
56181
56182 2007-02-24  Bruno Haible  <bruno@clisp.org>
56183
56184         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
56185         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
56186         function; instead check whether isnan with a double argument links.
56187         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
56188         function; instead check whether isnan with a 'long double' argument
56189         links.
56190         Reported by Eric Blake <ebb9@byu.net>.
56191
56192 2007-02-24  Bruno Haible  <bruno@clisp.org>
56193
56194         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
56195         defined.
56196         * lib/isnanl.c: Remove all code. Just include isnan.c.
56197         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
56198
56199 2007-02-25  Jim Meyering  <jim@meyering.net>
56200
56201         Avoid conflicting types for 'unsetenv' on FreeBSD.
56202         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
56203         conflicting with FreeBSD's (5.0 and 6.1) function declaration
56204         in stdlib.h.
56205
56206 2007-02-24  Bruno Haible  <bruno@clisp.org>
56207
56208         * modules/isnanl-nolibm-tests: New file.
56209         * tests/test-isnanl.c: New file.
56210
56211         * modules/isnanl-nolibm: New file.
56212         * lib/isnanl.h: New file.
56213         * lib/isnanl.c: New file.
56214         * m4/isnanl.m4: New file.
56215
56216 2007-02-24  Bruno Haible  <bruno@clisp.org>
56217
56218         * modules/isnan-nolibm-tests: New file.
56219         * tests/test-isnan.c: New file.
56220
56221         * modules/isnan-nolibm: New file.
56222         * lib/isnan.h: New file.
56223         * lib/isnan.c: New file.
56224         * m4/isnan.m4: New file.
56225
56226 2007-02-24  Bruno Haible  <bruno@clisp.org>
56227
56228         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
56229         assume that an exponent fits in 20 bits.
56230
56231 2007-02-24  Jim Meyering  <jim@meyering.net>
56232
56233         * m4/regex.m4: Update the description of the configure-time option,
56234         --without-included-regex, to state accurately what the defaults are,
56235         and perhaps to give people an idea why using this option is risky.
56236
56237 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
56238
56239         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
56240         loops on small arguments.  This attempts to avoid the problem
56241         Bruno Haible reported for AIX 4.3.2 in
56242         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
56243
56244 2007-02-23  Bruno Haible  <bruno@clisp.org>
56245
56246         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
56247         Needed for help2man.
56248
56249 2007-02-23  Karl Berry  <karl@gnu.org>
56250
56251         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
56252         exists, foo.h should be cvs-ignored, not committed.
56253
56254 2007-02-23  Eric Blake  <ebb9@byu.net>
56255
56256         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
56257         * lib/stat-time.h (includes): Likewise.
56258         * lib/utimecmp.c (includes): Likewise.
56259         * lib/utimens.h (includes): Likewise.
56260         * lib/getdate.y (includes): Also include "timespec.h" for use
56261         internal to the module.
56262         * modules/utimens (Depends-on): Revert yesterday's patch.
56263         * modules/nanosleep (Depends-on): Add missing dependency.
56264
56265 2007-02-22  Bruno Haible  <bruno@clisp.org>
56266
56267         * lib/glob.c: Don't include getlogin_r.h.
56268
56269 2007-02-22  Jim Meyering  <jim@meyering.net>
56270
56271         * modules/utimens (Depends-on): Add timespec, required for
56272         utimens.h's inclusion of timespec.h.
56273
56274 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
56275
56276         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
56277         long unreadable paths in GNU/Linux.  Problem reported by Andreas
56278         Schwab in
56279         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
56280         I'll try to think of a better way to fix the Solaris problem.
56281
56282         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
56283         like glibc; on Solaris 10, it fails with errno == EINVAL.
56284         POSIX says the behavior is unspecified if the first argument is NULL,
56285         so play it safe and never pass NULL to the system getcwd.
56286
56287 2007-02-21  Jim Meyering  <jim@meyering.net>
56288
56289         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
56290         of gettimeofday.  It would conflict with the one now always
56291         provided via sys_time_.h.  Reported by Matthew Woehlke, as
56292         an IRIX 6.5 build failure.
56293
56294 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
56295
56296         Minor fixups to port to Solaris 10 with Sun C 5.8.
56297         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
56298         * modules/getcwd (Depends-on): Add dirfd.
56299         * lib/putenv.c (putenv): #undef it.
56300         (rpl_putenv): New decl.
56301         (malloc, free): Include <stdlib.h> rather than prototyping separately.
56302
56303 2007-02-20  Bruno Haible  <bruno@clisp.org>
56304
56305         * modules/stdio-tests: New file.
56306         * tests/test-stdio.c: New file.
56307
56308         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
56309         (Depends-on): Add stdio.
56310         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
56311         (Include): Use <stdio.h> instead of vsnprintf.h.
56312         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
56313         HAVE_DECL_VSNPRINTF.
56314         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
56315
56316         * modules/snprintf (Files): Remove lib/snprintf.h.
56317         (Depends-on): Add stdio.
56318         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
56319         (Include): Use <stdio.h> instead of snprintf.h.
56320         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
56321         HAVE_DECL_SNPRINTF.
56322         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
56323         * lib/getaddrinfo.c: Likewise.
56324
56325         * modules/stdio: New file.
56326         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
56327         * lib/snprintf.h: Remove file.
56328         * lib/vsnprintf.h: Remove file.
56329         * lib/.cppi-disable: Remove snprintf.h.
56330         * m4/stdio_h.m4: New file.
56331         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
56332
56333 2007-02-20  Jim Meyering  <jim@meyering.net>
56334
56335         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
56336         used by e.g., mingw.  From Bruno Haible.
56337
56338 2007-02-19  Bruno Haible  <bruno@clisp.org>
56339
56340         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
56341         warnings.
56342         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56343
56344 2007-02-19  Bruno Haible  <bruno@clisp.org>
56345
56346         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
56347         from mingw users.
56348
56349 2007-02-19  Bruno Haible  <bruno@clisp.org>
56350
56351         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
56352         warnings.
56353         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
56354
56355 2007-02-19  Jim Meyering  <jim@meyering.net>
56356
56357         Don't use FD after a successful "fdopendir (fd)".
56358         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
56359         Reset it by calling dirfd on the just-obtained DIR*.
56360
56361         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
56362         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
56363
56364 2007-02-18  Bruno Haible  <bruno@clisp.org>
56365
56366         * lib/readlink.c: Include <unistd.h>.
56367         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
56368         HAVE_READLINK.
56369         * modules/readlink (Depends-on): Add unistd.
56370         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56371         (Include): Add <unistd.h>.
56372
56373         * lib/getlogin_r.h: Remove file.
56374         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
56375         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
56376         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
56377         HAVE_DECL_GETLOGIN_R.
56378         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
56379         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56380         (Include): Use <unistd.h> instead of getlogin_r.h.
56381
56382         * lib/getcwd.h: Remove file.
56383         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
56384         * lib/xgetcwd.c: Likewise.
56385         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
56386         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
56387         * modules/getcwd (Files): Remove lib/getcwd.h.
56388         (Depends-on): Add unistd.
56389         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56390         (Include): Use <unistd.h> instad of getcwd.h.
56391
56392         * lib/ftruncate.c: Include <unistd.h> first.
56393         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
56394         Set HAVE_FTRUNCATE.
56395         * modules/ftruncate (Depends-on): Add unistd.
56396         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56397
56398         * lib/fchdir.c: Include <unistd.h> first.
56399         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
56400         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
56401         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
56402         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56403         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
56404
56405         * lib/dup2.c: Include <unistd.h> first.
56406         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
56407         HAVE_DUP2.
56408         * modules/dup2 (Depends-on): Add unistd.
56409         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56410
56411         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
56412         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
56413         REPLACE_CHOWN. Don't define chown as a macro here.
56414         * modules/chown (Depends-on): Add unistd.
56415         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56416
56417         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
56418         Add definition for GL_LINK_WARNING.
56419         (chown, dup2): New declarations.
56420         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
56421         link warning.
56422         (ftruncate): New declaration.
56423         (getcwd): New declaration, taken from old getcwd.h.
56424         (getlogin_r): New declaration, taken from old getlogin_r.h.
56425         (readlink): New declaration.
56426         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
56427         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
56428         (gl_PREREQ_UNISTD): Remove macro.
56429         (gl_UNISTD_MODULE_INDICATOR): New macro.
56430         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
56431         many new variables. Don't set UNISTD_H.
56432         * modules/unistd (Description): Change.
56433         (Depends-on): Add link-warning.
56434         (configure.ac): Update.
56435         (Makefile.am): Create unistd.h always. Substitute many new variables
56436         into it.
56437
56438 2007-02-18  Bruno Haible  <bruno@clisp.org>
56439
56440         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
56441         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
56442         HAVE_GETSUBOPT.
56443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
56444         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
56445         * lib/getsubopt.h: Remove file.
56446         * modules/getsubopt (Files): Remove lib/getsubopt.h.
56447         (Depends-on): Add stdlib.
56448         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56449         (Includes): Use <stdlib.h> instead of getsubopt.h.
56450         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
56451         Set HAVE_GETSUBOPT.
56452         * lib/getsubopt.c: Don't include getsubopt.h.
56453
56454 2007-02-18  Bruno Haible  <bruno@clisp.org>
56455
56456         * modules/fchdir (Depends-on): Add dup2.
56457
56458 2007-02-18  Bruno Haible  <bruno@clisp.org>
56459
56460         * lib/stdlib_.h: Handle glibc's special invocation convention
56461         specially.
56462
56463 2007-02-18  Bruno Haible  <bruno@clisp.org>
56464
56465         * modules/stdlib-tests: New file.
56466         * tests/test-stdlib.c: New file.
56467
56468         * modules/mkstemp (Files): Remove lib/mkstemp.h.
56469         (Depends-on): Add stdlib.
56470         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56471         (Includes): Use <stdlib.h> instead of mkstemp.h.
56472         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
56473         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
56474         * lib/mkstemp.c: Don't include mkstemp.h.
56475         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
56476         * lib/stdlib--.h: Don't include mkstemp.h.
56477
56478         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
56479         (Depends-on): Add stdlib.
56480         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56481         (Includes): Use <stdlib.h> instead of mkdtemp.h.
56482         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
56483         HAVE_MKDTEMP.
56484         * lib/mkdtemp.c: Don't include mkdtemp.h.
56485         * lib/clean-temp.c: Don't include mkdtemp.h.
56486
56487         * modules/exit (Files): Remove lib/exit.h.
56488         (Depends-on): Add stdlib.
56489         (Makefile.am): Remove lib_SOURCES.
56490         (Include): Use <stdlib.h> instead of exit.h.
56491         * lib/argmatch.c: Don't include exit.h.
56492         * lib/execute.c: Likewise.
56493         * lib/pagealign_alloc.c: Likewise.
56494         * lib/pipe.c: Likewise.
56495         * lib/wait-process.c: Likewise.
56496         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
56497         * lib/exitfail.c: Likewise.
56498         * lib/savewd.c: Likewise.
56499         * lib/xsetenv.c: Likewise.
56500
56501         * modules/stdlib: New file.
56502         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
56503         and extra comments about mkstemp().
56504         * lib/exit.h: Remove file.
56505         * lib/mkdtemp.h: Remove file.
56506         * lib/mkstemp.h: Remove file.
56507         * m4/stdlib_h.m4: New file.
56508         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
56509
56510 2007-02-18  Bruno Haible  <bruno@clisp.org>
56511
56512         * modules/math-tests: New file.
56513         * tests/test-math.c: New file.
56514
56515         * modules/math: New file.
56516         * modules/mathl (Files): Remove lib/mathl.h.
56517         (Depends-on): Add math.
56518         (Makefile.am): Don't mention mathl.h.
56519         (Include): Use <math.h> instead of mathl.h.
56520         * lib/math_.h: New file.
56521         * lib/mathl.h: Remove file.
56522         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
56523         mathl.h.
56524         * lib/asinl.c: Likewise.
56525         * lib/atanl.c: Likewise.
56526         * lib/ceill.c: Likewise.
56527         * lib/cosl.c: Likewise.
56528         * lib/expl.c: Likewise.
56529         * lib/floorl.c: Likewise.
56530         * lib/frexpl.c: Likewise.
56531         * lib/ldexpl.c: Likewise.
56532         * lib/logl.c: Likewise.
56533         * lib/sincosl.c: Likewise.
56534         * lib/sinl.c: Likewise.
56535         * lib/sqrtl.c: Likewise.
56536         * lib/tanl.c: Likewise.
56537         * lib/trigl.c: Likewise.
56538         * m4/math_h.m4: New file.
56539         * MODULES.html.sh (Mathematics): Add math.
56540
56541 2007-02-17  Bruno Haible  <bruno@clisp.org>
56542
56543         * modules/wctype-tests: New file.
56544         * tests/test-wctype.c: New file.
56545
56546         * modules/wchar-tests: New file.
56547         * tests/test-wchar.c: New file.
56548
56549         * modules/unistd-tests: New file.
56550         * tests/test-unistd.c: New file.
56551
56552         * modules/time-tests: New file.
56553         * tests/test-time.c: New file.
56554
56555         * modules/sysexits-tests: New file.
56556         * tests/test-sysexits.c: New file.
56557
56558         * modules/sys_time-tests: New file.
56559         * tests/test-sys_time.c: New file.
56560
56561         * modules/sys_stat-tests: New file.
56562         * tests/test-sys_stat.c: New file.
56563
56564         * modules/sys_socket-tests: New file.
56565         * tests/test-sys_socket.c: New file.
56566
56567         * modules/sys_select-tests: New file.
56568         * tests/test-sys_select.c: New file.
56569
56570         * modules/string-tests: New file.
56571         * tests/test-string.c: New file.
56572
56573         * modules/stdbool-tests: New file.
56574         * tests/test-stdbool.c: New file.
56575
56576         * modules/netinet_in-tests: New file.
56577         * tests/test-netinet_in.c: New file.
56578
56579         * modules/inttypes-tests: New file.
56580         * tests/test-inttypes.c: New file.
56581
56582         * modules/fcntl-tests: New file.
56583         * tests/test-fcntl.c: New file.
56584
56585         * modules/byteswap-tests: New file.
56586         * tests/test-byteswap.c: New file.
56587
56588         * modules/arpa_inet-tests: New file.
56589         * tests/test-arpa_inet.c: New file.
56590
56591 2007-02-17  Bruno Haible  <bruno@clisp.org>
56592
56593         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
56594         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
56595         if the corresponding module is not enabled. Emit link warnings if
56596         the function is used nevertheless.
56597         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
56598         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
56599         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
56600         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
56601         * modules/inttypes (Depends-on): Add link-warning.
56602         (Makefile.am): Copy the contents of build-aux/link-warning.h into
56603         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
56604         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
56605         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
56606         * modules/imaxdiv (configure.ac): Likewise.
56607         * modules/strtoimax (configure.ac): Likewise.
56608         * modules/strtoumax (configure.ac): Likewise.
56609
56610 2007-02-17  Bruno Haible  <bruno@clisp.org>
56611
56612         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
56613         gl_STRING_MODULE_INDICATOR_DEFAULTS.
56614         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
56615         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
56616
56617 2007-02-17  Bruno Haible  <bruno@clisp.org>
56618
56619         * modules/link-warning: New file.
56620         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
56621         * lib/string_.h (GL_LINK_WARNING): Remove definition.
56622         * modules/string (Depends-on): Add link-warning.
56623         (Makefile.am): Copy the contents of build-aux/link-warning.h into
56624         string.h.
56625         * MODULES.html.sh (Support for building libraries and executables): Add
56626         link-warning.
56627
56628 2007-02-17  Bruno Haible  <bruno@clisp.org>
56629
56630         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
56631         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
56632         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
56633         long lines.
56634
56635 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
56636             Bruno Haible  <bruno@clisp.org>
56637
56638         * modules/tmpfile: New file.
56639         * lib/tmpfile.c: New file.
56640         * m4/tmpfile.m4: New file.
56641         * MODULES.html.sh (func_all_modules): New section "Input/output".
56642
56643 2007-02-15  Bruno Haible  <bruno@clisp.org>
56644
56645         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
56646         (supports_delete_on_close): New function.
56647         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
56648
56649 2007-02-14  Bruno Haible  <bruno@clisp.org>
56650
56651         * modules/mbspcasecmp-tests: New file.
56652         * tests/test-mbspcasecmp.sh: New file.
56653         * tests/test-mbspcasecmp.c: New file.
56654
56655         New module mbspcasecmp.
56656         * modules/mbspcasecmp: New file.
56657         * lib/mbspcasecmp.c: New file.
56658         * lib/string_.h (strncasecmp): Change warning message.
56659         (mbspcasecmp): New declaration.
56660         * m4/mbspcasecmp.m4: New file.
56661         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56662         GNULIB_MBSPCASECMP.
56663         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
56664         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
56665
56666 2007-02-14  Bruno Haible  <bruno@clisp.org>
56667
56668         * modules/mbsncasecmp-tests: New file.
56669         * tests/test-mbsncasecmp.sh: New file.
56670         * tests/test-mbsncasecmp.c: New file.
56671
56672         New module mbsncasecmp.
56673         * modules/mbsncasecmp: New file.
56674         * lib/mbsncasecmp.c: New file.
56675         * lib/string_.h (mbsncasecmp): New declaration.
56676         * m4/mbsncasecmp.m4: New file.
56677         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56678         GNULIB_MBSNCASECMP.
56679         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
56680         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
56681
56682 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
56683
56684         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
56685         Verify that it doesn't overlap with our flags.
56686         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
56687         do not have the desired effect in multibyte locales; instead, use
56688         mbscasecmp.
56689         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
56690         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
56691         we don't require GNU fnmatch ourselves (if our users require it, they
56692         should do so explicitly).
56693
56694         Fix regex code so it doesn't rely on strcasecmp.
56695         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
56696         Otherwise, include gnulib's langinfo.h.
56697         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
56698         undesirable behavior in non-C locales.  Instead, rely on localecharset.
56699         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
56700         * modules/regex (FILES): Remove m4/codeset.m4.
56701         (Depends-on): Add localcharset.  Remove strcase.
56702
56703 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56704
56705         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
56706         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
56707
56708 2007-02-13  Bruno Haible  <bruno@clisp.org>
56709
56710         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
56711         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56712
56713 2007-02-12  Bruno Haible  <bruno@clisp.org>
56714
56715         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56716         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
56717         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
56718         time warning rather than a link error.
56719
56720 2007-02-12  Bruno Haible  <bruno@clisp.org>
56721
56722         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
56723         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56724         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56725
56726 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56727
56728         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
56729         args, not 2.
56730
56731 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
56732
56733         New module 'time', so that apps can include <time.h> as per
56734         POSIX and GNU instead of separate include files like time_r.h
56735         and timegm.h.  This implementation tries out a simpler approach
56736         for replacing decls in standard include files (as compared to
56737         the string module), somewhat as an experiment.
56738
56739         * config/srclist.txt: Comment out mktime.c for now.
56740         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
56741         since it doesn't apply any more.  Use generic wording instead.
56742         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
56743         'time'.
56744         * lib/time_.h, m4/time_h.m4, modules/time: New files.
56745         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
56746         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
56747         Don't include <sys/types.h>; no longer needed since we assume C89.
56748         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
56749         * lib/strftime.c: Likewise.
56750         * lib/time_r.c: Likewise.
56751         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
56752         * lib/nanosleep.c: Include <time.h> first, to check interface.
56753         * lib/strptime.c: Likewise.
56754         * lib/time_r.c: Likewise.
56755         * lib/timegm.c: Likewise.
56756         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
56757         needed.
56758         * lib/timegm.c: Don't include timegm.h; no longer needed.
56759         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
56760         time.h now handles any problems in that area.
56761         (struct timespec, nanosleep): Remove; time.h now arranges for these.
56762         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
56763         that time.h defines struct timespec.
56764         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
56765         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
56766         handles that.
56767         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
56768         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
56769         needed.  Set REPLACE_LOCALTIME.
56770         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
56771         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
56772         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
56773         nanosleep; time_h.m4 now does that.  Don't require
56774         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
56775         module handles this now.
56776         * modules/getdate (Depends-on): Remove timespec.  Add time.
56777         * modules/nanosleep (Depends-on): Likewise.
56778         * modules/stat-time (Depends-on): Likewise.
56779         * modules/nanosleep (Include): Include time.h, not timespec.h.
56780         * modules/strptime (Files): Remove lib/strptime.h.
56781         (Depends-on): Add extensions, time.
56782         (Include): Include time.h, not strptime.h.
56783         * modules/time_r (Files): Remove lib/time_r.h.
56784         (Depends-on): Add time.
56785         (Include): Include time.h, not time_r.h.
56786         * modules/timegm: Likewise.
56787         * modules/timespec (Description): Now does timespec-related decls
56788         of our own, instead of struct timespec itself.
56789         (Depends-on): Add time; remove extensions.
56790         (Maintainer): Add self.
56791         * modules/utimecmp (Depends-on): Add time; remove timespec.
56792         * modules/utimens (Depends-on): Likewise.
56793         * modules/xnanosleep (Depends-on): Likewise.
56794
56795 2007-02-11  Bruno Haible  <bruno@clisp.org>
56796
56797         * lib/c-strstr.c: Include allocsa.h.
56798         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56799         * lib/c-strcasestr.c: Include allocsa.h.
56800         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56801         * lib/strcasestr.c: Include allocsa.h.
56802         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
56803         * lib/mbsstr.c: Include allocsa.h.
56804         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
56805         allocsa/freesa instead of malloc/free.
56806         * lib/mbscasestr.c: Include allocsa.h.
56807         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
56808         allocsa/freesa instead of malloc/free.
56809         * modules/c-strstr (Depends-on): Add allocsa.
56810         * modules/c-strcasestr (Depends-on): Likewise.
56811         * modules/strcasestr (Depends-on): Likewise.
56812         * modules/mbsstr (Depends-on): Likewise.
56813         * modules/mbscasestr (Depends-on): Likewise.
56814
56815 2007-02-11  Bruno Haible  <bruno@clisp.org>
56816
56817         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
56818
56819         * modules/mbsspn-tests: New file.
56820         * tests/test-mbsspn.sh: New file.
56821         * tests/test-mbsspn.c: New file.
56822
56823 2007-02-11  Bruno Haible  <bruno@clisp.org>
56824
56825         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
56826
56827         * modules/mbspbrk-tests: New file.
56828         * tests/test-mbspbrk.sh: New file.
56829         * tests/test-mbspbrk.c: New file.
56830
56831 2007-02-11  Bruno Haible  <bruno@clisp.org>
56832
56833         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
56834         unneeded cast.
56835
56836         * modules/mbscspn-tests: New file.
56837         * tests/test-mbscspn.sh: New file.
56838         * tests/test-mbscspn.c: New file.
56839
56840 2007-02-11  Bruno Haible  <bruno@clisp.org>
56841
56842         * modules/mbscasecmp-tests: New file.
56843         * tests/test-mbscasecmp.sh: New file.
56844         * tests/test-mbscasecmp.c: New file.
56845
56846 2007-02-11  Bruno Haible  <bruno@clisp.org>
56847
56848         Ensure O(n) worst-case complexity of mbscasestr.
56849         * lib/mbscasestr.c: Include stdbool.h.
56850         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
56851         functions.
56852         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
56853         the bookkeeping indicates that it's worth it.
56854         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
56855
56856         * modules/mbscasestr-tests: New file.
56857         * tests/test-mbscasestr1.c: New file.
56858         * tests/test-mbscasestr2.sh: New file.
56859         * tests/test-mbscasestr2.c: New file.
56860         * tests/test-mbscasestr3.sh: New file.
56861         * tests/test-mbscasestr3.c: New file.
56862         * tests/test-mbscasestr4.sh: New file.
56863         * tests/test-mbscasestr4.c: New file.
56864         * m4/locale-tr.m4: New file.
56865
56866 2007-02-11  Bruno Haible  <bruno@clisp.org>
56867
56868         Ensure O(n) worst-case complexity of mbsstr.
56869         * lib/mbsstr.c: Include stdbool.h.
56870         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
56871         functions.
56872         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
56873         bookkeeping indicates that it's worth it.
56874         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
56875
56876         * modules/mbsstr-tests: New file.
56877         * tests/test-mbsstr1.c: New file.
56878         * tests/test-mbsstr2.sh: New file.
56879         * tests/test-mbsstr2.c: New file.
56880         * tests/test-mbsstr3.sh: New file.
56881         * tests/test-mbsstr3.c: New file.
56882         * m4/locale-fr.m4: New file.
56883
56884 2007-02-11  Bruno Haible  <bruno@clisp.org>
56885
56886         * lib/mbsrchr.c (mbsrchr): Fix bug.
56887
56888         * modules/mbsrchr-tests: New file.
56889         * tests/test-mbsrchr.sh: New file.
56890         * tests/test-mbsrchr.c: New file.
56891
56892 2007-02-11  Bruno Haible  <bruno@clisp.org>
56893
56894         * lib/mbschr.c (mbschr): Fix bug.
56895
56896         * modules/mbschr-tests: New file.
56897         * tests/test-mbschr.sh: New file.
56898         * tests/test-mbschr.c: New file.
56899         * m4/locale-zh.m4: New file.
56900
56901 2007-02-11  Bruno Haible  <bruno@clisp.org>
56902
56903         Support for copying multibyte string iterators.
56904         * lib/mbiter.h: Include <string.h>.
56905         (mbiter_multi_copy): New function.
56906         (mbi_copy): New macro.
56907         * lib/mbuiter.h: Include <string.h>.
56908         (mbuiter_multi_copy): New function.
56909         (mbui_copy): New macro.
56910
56911 2007-02-11  Bruno Haible  <bruno@clisp.org>
56912
56913         New module mbslen.
56914         * modules/mbslen: New file.
56915         * lib/mbslen.c: New file.
56916         * lib/string_.h (mbslen): New declaration.
56917         * m4/mbslen.m4: New file.
56918         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56919         GNULIB_MBSLEN.
56920         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
56921         * MODULES.html.sh (Internationalization functions): Add mbslen.
56922
56923 2007-02-11  Bruno Haible  <bruno@clisp.org>
56924
56925         Ensure O(n) worst-case complexity of strcasestr substitute.
56926         * lib/strcasestr.c: Include stdbool.h.
56927         (knuth_morris_pratt): New function.
56928         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
56929         bookkeeping indicates that it's worth it.
56930         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
56931
56932         * modules/strcasestr-tests: New file.
56933         * tests/test-strcasestr.c: New file.
56934
56935 2007-02-11  Bruno Haible  <bruno@clisp.org>
56936
56937         Ensure O(n) worst-case complexity of c_strcasestr.
56938         * lib/c-strcasestr.c: Include stdbool.h, string.h.
56939         (knuth_morris_pratt): New function.
56940         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
56941         the bookkeeping indicates that it's worth it.
56942         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
56943
56944         * modules/c-strcasestr-tests: New file.
56945         * tests/test-c-strcasestr.c: New file.
56946
56947 2007-02-11  Bruno Haible  <bruno@clisp.org>
56948
56949         Ensure O(n) worst-case complexity of c_strstr.
56950         * lib/c-strstr.c: Include stdbool.h, string.h.
56951         (knuth_morris_pratt): New function.
56952         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
56953         bookkeeping indicates that it's worth it.
56954         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
56955
56956         * lib/c-strstr.c: Complete rewrite for maintainability.
56957
56958         * modules/c-strstr-tests: New file.
56959         * tests/test-c-strstr.c: New file.
56960
56961 2007-02-11  Bruno Haible  <bruno@clisp.org>
56962
56963         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
56964         5.2.1 and earlier, whereby \055 was treated just like the range
56965         delimiter '-'.
56966         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56967
56968 2007-02-08  Bruno Haible  <bruno@clisp.org>
56969
56970         * modules/regex (Depends-on): Add stdbool.
56971         Reported by Dalibor Topic <robilad@kaffe.org>.
56972
56973 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
56974
56975         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
56976         Prefer returning from main to exiting from it.
56977         Remove unnecessary parens after sizeof.
56978
56979 2007-02-05  Bruno Haible  <bruno@clisp.org>
56980
56981         New module mbssep.
56982         * modules/mbssep: New file.
56983         * lib/mbssep.c: New file.
56984         * lib/string_.h (strsep): Add a conditional link warning.
56985         (mbssep): New declaration.
56986         * m4/mbssep.m4: New file.
56987         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56988         GNULIB_MBSSEP.
56989         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
56990         * MODULES.html.sh (Internationalization functions): Add mbssep.
56991
56992 2007-02-05  Bruno Haible  <bruno@clisp.org>
56993
56994         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
56995         Optimize search in case of 1 delimiter.
56996
56997 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56998
56999         * lib/acl.h: Include sys/types.h before sys/acl.h.
57000
57001 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
57002
57003         Merge upstream fix for glibc bugzilla #3957:
57004
57005         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
57006
57007         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
57008         bit for RE_HAT_LISTS_NOT_NEWLINE.
57009         (build_charclass_op): Remove bogus comment.
57010
57011 2007-02-05  Simon Josefsson  <simon@josefsson.org>
57012
57013         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
57014
57015 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
57016
57017         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
57018         * lib/memmem.c [!defined _LIBC]: Include config.h.
57019
57020 2007-02-04  Bruno Haible  <bruno@clisp.org>
57021
57022         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
57023         warning message.
57024
57025 2007-02-04  Bruno Haible  <bruno@clisp.org>
57026
57027         New module mbstok_r.
57028         * modules/mbstok_r: New file.
57029         * lib/mbstok_r.c: New file.
57030         * lib/string_.h (strtok_r): Change argument names to match the
57031         comments. Add a conditional link warning.
57032         (mbstok_r): New declaration.
57033         * m4/mbstok_r.m4: New file.
57034         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57035         GNULIB_MBSTOK_R.
57036         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
57037         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
57038
57039 2007-02-04  Bruno Haible  <bruno@clisp.org>
57040
57041         New module mbsspn.
57042         * modules/mbsspn: New file.
57043         * lib/mbsspn.c: New file.
57044         * lib/string_.h (strspn): Add a conditional link warning.
57045         (mbsspn): New declaration.
57046         * m4/mbsspn.m4: New file.
57047         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57048         GNULIB_MBSSPN.
57049         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
57050         * MODULES.html.sh (Internationalization functions): Add mbsspn.
57051
57052 2007-02-04  Bruno Haible  <bruno@clisp.org>
57053
57054         New module mbspbrk.
57055         * modules/mbspbrk: New file.
57056         * lib/mbspbrk.c: New file.
57057         * lib/string_.h (strpbrk): Add a conditional link warning.
57058         (mbspbrk): New declaration.
57059         * m4/mbspbrk.m4: New file.
57060         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57061         GNULIB_MBSPBRK.
57062         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
57063         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
57064
57065 2007-02-04  Bruno Haible  <bruno@clisp.org>
57066
57067         New module mbscspn.
57068         * modules/mbscspn: New file.
57069         * lib/mbscspn.c: New file.
57070         * lib/string_.h (strcspn): Add a conditional link warning.
57071         (mbscspn): New declaration.
57072         * m4/mbscspn.m4: New file.
57073         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57074         GNULIB_MBSCSPN.
57075         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
57076         * MODULES.html.sh (Internationalization functions): Add mbscspn.
57077
57078 2007-02-04  Bruno Haible  <bruno@clisp.org>
57079
57080         New module mbscasestr, reduced goal of strcasestr.
57081         * modules/mbscasestr: New file.
57082         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
57083         (mbscasestr): Renamed from strcasestr.
57084         * lib/strcasestr.c: Don't include mbuiter.h.
57085         (strcasestr): Remove support for multibyte locales.
57086         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
57087         Change the conditional link warning.
57088         (mbscasestr): New declaration.
57089         * m4/mbscasestr.m4: New file.
57090         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
57091         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
57092         REPLACE_STRCASESTR.
57093         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
57094         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57095         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57096         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
57097         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
57098         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
57099         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
57100         (Depends-on): Remove mbuiter.
57101         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
57102
57103 2007-02-04  Bruno Haible  <bruno@clisp.org>
57104
57105         Simplify handling of strncasecmp.
57106         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
57107         the conditional link warning.
57108         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57109         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
57110         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
57111         * modules/strcase (configure.ac): Don't invoke
57112         gl_STRING_MODULE_INDICATOR.
57113         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
57114
57115 2007-02-04  Bruno Haible  <bruno@clisp.org>
57116
57117         New module mbscasecmp, reduced goal of strcasecmp.
57118         * modules/mbscasecmp: New file.
57119         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
57120         (mbscasecmp): Renamed from strcasecmp.
57121         * lib/strcasecmp.c: Don't include mbuiter.h.
57122         (strcasecmp): Remove support for multibyte locales.
57123         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
57124         Change the conditional link warning.
57125         (mbscasecmp): New declaration.
57126         * m4/mbscasecmp.m4: New file.
57127         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
57128         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
57129         REPLACE_STRCASECMP.
57130         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
57131         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57132         GNULIB_MBSCASECMP.
57133         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
57134         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
57135         * modules/strcase (Files): Remove m4/mbrtowc.m4.
57136         (Depends-on): Remove mbuiter.
57137         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
57138
57139 2007-02-04  Bruno Haible  <bruno@clisp.org>
57140
57141         New module mbsstr. Remove module strstr.
57142         * modules/mbsstr: New file.
57143         * modules/strstr: Remove file.
57144         * lib/mbsstr.c: Renamed from lib/strstr.c.
57145         (mbsstr): Renamed from strstr.
57146         * lib/string_.h (strstr): Remove declaration. Change the conditional
57147         link warning.
57148         (mbsstr): New declaration.
57149         * m4/mbsstr.m4: New file.
57150         * m4/strstr.m4: Remove file.
57151         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
57152         REPLACE_STRSTR.
57153         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
57154         Don't initialize GNULIB_STRSTR.
57155         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
57156         substitute GNULIB_STRSTR and REPLACE_STRSTR.
57157         * MODULES.html.sh (Internationalization functions): Add mbsstr.
57158         (Support for systems lacking ANSI C 89): Remove strstr.
57159
57160 2007-02-04  Bruno Haible  <bruno@clisp.org>
57161
57162         New module mbsrchr.
57163         * modules/mbsrchr: New file.
57164         * lib/mbsrchr.c: New file.
57165         * lib/string_.h (strrchr): Add a conditional link warning.
57166         (mbsrchr): New declaration.
57167         * m4/mbsrchr.m4: New file.
57168         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57169         GNULIB_MBSRCHR.
57170         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
57171         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
57172
57173 2007-02-04  Bruno Haible  <bruno@clisp.org>
57174
57175         New module mbschr.
57176         * modules/mbschr: New file.
57177         * lib/mbschr.c: New file.
57178         * lib/string_.h (strchr): Add a conditional link warning.
57179         (mbschr): New declaration.
57180         * m4/mbschr.m4: New file.
57181         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
57182         GNULIB_MBSCHR.
57183         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
57184         * MODULES.html.sh (Internationalization functions): Add mbschr.
57185
57186 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
57187
57188         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
57189
57190         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
57191
57192 2007-02-04  Bruno Haible  <bruno@clisp.org>
57193
57194         New module description section 'configure.ac-early'.
57195         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
57196         (func_get_autoconf_early_snippet): New function.
57197         (func_import, func_create_testdir): Use it. Remove special cases for
57198         modules 'extensions' and 'lock'.
57199         * modules/extensions (configure.ac-early): Require
57200         gl_USE_SYSTEM_EXTENSIONS.
57201         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
57202
57203 2007-02-04  Bruno Haible  <bruno@clisp.org>
57204
57205         Make use of gcj-4.3's -fsource and -ftarget option.
57206         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
57207         and if so try the options -fsource and -ftarget.
57208         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
57209         source_version, ftarget_option, target_version arguments.
57210         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
57211         (is_envjavac_oldgcj_14_14_usable): Renamed from
57212         is_envjavac_gcj_14_14_usable.
57213         (is_envjavac_oldgcj_14_13_usable): Renamed from
57214         is_envjavac_gcj_14_13_usable.
57215         (is_gcj_present): Update.
57216         (is_gcj_43, is_gcj43_usable): New functions.
57217         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
57218         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
57219         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
57220         try the options -fsource and -ftarget.
57221
57222 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
57223
57224         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
57225         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
57226         larger value.
57227
57228 2007-02-03  Jim Meyering  <jim@meyering.net>
57229
57230         Give tools a better chance to allocate space for very large buffers.
57231         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
57232
57233         Make pwd and readlink work also when run with an unreadable parent dir
57234         on systems with openat support.
57235         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
57236         provided getcwd function, even when we have openat support.
57237         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
57238
57239 2007-02-02  Bruno Haible  <bruno@clisp.org>
57240
57241         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
57242         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
57243         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
57244         portability problems if one of these functions is only used on specific
57245         platforms.
57246         Reported by Paul Eggert.
57247
57248 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
57249
57250         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
57251         is causing more trouble than it's curing.
57252         * lib/regex_internal.h (__mempcpy): Remove.
57253         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
57254         (and make the code a tad smaller to boot).
57255         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
57256
57257 2007-02-02  Jim Meyering  <jim@meyering.net>
57258
57259         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
57260         section, not in the Makefile.am: one.
57261
57262 2007-02-02  Eric Blake  <ebb9@byu.net>
57263
57264         * lib/strchrnul.c: Always include config.h first.
57265
57266         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
57267         gnulib strstr is not necessary here.
57268
57269 2007-02-02  Simon Josefsson  <simon@josefsson.org>
57270
57271         * m4/socklen.m4: Fix typo.
57272
57273 2007-02-02  Eric Blake  <ebb9@byu.net>
57274
57275         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
57276         * modules/netinet_in (Makefile.am): Likewise.
57277
57278 2007-02-01  Bruno Haible  <bruno@clisp.org>
57279
57280         * lib/string_.h (GL_LINK_WARNING): New macro.
57281         (strcasecmp, strstr, strcasestr): If provided by the system,
57282         conditionally define as a macro that leads to a warning instead of to
57283         an error.
57284         (strncasecmp): Conditionally define as a macro that leads to a warning.
57285
57286 2007-02-01  Karl Berry  <karl@gnu.org>
57287
57288         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
57289
57290 2007-02-01  Bruno Haible  <bruno@clisp.org>
57291
57292         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
57293         renamings.
57294
57295 2007-02-01  Eric Blake  <ebb9@byu.net>
57296
57297         * modules/regex (Depends-on): Revert dependence on mempcpy.
57298         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
57299         module's definition of mempcpy.
57300         Reported by Paul Eggert.
57301
57302 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
57303
57304         * lib/string_.h: If the gnulib module XYZ is not present, undefine
57305         the symbol XYZ before redefining it.  This fixes a problem with
57306         programs that don't use XYZ, when compiled on systems that define
57307         XYZ to something else.
57308
57309 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
57310
57311         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
57312         occurs when "mkdir -m foo" creates a setgid directory that is (1)
57313         writeable to group or other and (2) is intended to have a special
57314         mode bit that is set or cleared.  In such a case, the directory
57315         should be neither group- nor other-writeable until the special
57316         mode bits are right.
57317
57318 2007-01-31  Eric Blake  <ebb9@byu.net>
57319
57320         * modules/mountlist (Depends-on): Add strstr.
57321
57322         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
57323         bug.
57324         * modules/string (Makefile.am): Remove redundant replacement.
57325         * modules/regex (Depends-on): Add mempcpy.
57326
57327 2007-01-31  Bruno Haible  <bruno@clisp.org>
57328
57329         New module description field 'Link'.
57330         * gnulib-tool (func_usage): Document --extract-link-directive.
57331         (sed_extract_prog): Recognize 'Link' directive.
57332         (func_get_link_directive): New function.
57333         (func_import): Show summary of link directives.
57334         Handle --extract-link-directive option.
57335         * modules/acl (Link): New section.
57336         * modules/clock-time (Link): New section.
57337         * modules/euidaccess (Link): New section.
57338         * modules/gettext (Link): New section.
57339         * modules/iconv (Link): New section.
57340         * modules/lock (Link): New section.
57341         * modules/nanosleep (Link): New section.
57342         * modules/readline (Link): New section.
57343
57344 2007-01-27  Bruno Haible  <bruno@clisp.org>
57345
57346         Enforce the use of gnulib modules for unportable <string.h> functions.
57347         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
57348         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
57349         (gl_HEADER_STRING_H_BODY): Require it.
57350         * lib/string_.h: If the gnulib module XYZ is not present, redefine
57351         the symbol XYZ to one that gives a link error.
57352         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
57353         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
57354         * modules/mempcpy (configure.ac): Likewise.
57355         * modules/memrchr (configure.ac): Likewise.
57356         * modules/stpcpy (configure.ac): Likewise.
57357         * modules/stpncpy (configure.ac): Likewise.
57358         * modules/strcase (configure.ac): Likewise.
57359         * modules/strcasestr (configure.ac): Likewise.
57360         * modules/strchrnul (configure.ac): Likewise.
57361         * modules/strdup (configure.ac): Likewise.
57362         * modules/strndup (configure.ac): Likewise.
57363         * modules/strnlen (configure.ac): Likewise.
57364         * modules/strpbrk (configure.ac): Likewise.
57365         * modules/strsep (configure.ac): Likewise.
57366         * modules/strstr (configure.ac): Likewise.
57367         * modules/strtok_r (configure.ac): Likewise.
57368
57369 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
57370
57371         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
57372
57373 2007-01-30  Jim Meyering  <jim@meyering.net>
57374
57375         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
57376
57377 2007-01-29  Bruno Haible  <bruno@clisp.org>
57378
57379         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
57380         * lib/execute.c: Likewise.
57381         * lib/pipe.c: Likewise.
57382         * lib/printf-args.h: Likewise.
57383         * lib/printf-args.c: Likewise.
57384         * lib/printf-parse.c: Likewise.
57385         * lib/vasnprintf.c: Likewise.
57386
57387 2007-01-29  Eric Blake  <ebb9@byu.net>
57388
57389         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
57390         declaration.
57391
57392 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
57393
57394         * lib/strptime.h (strptime): Use 'restrict' for args where
57395         POSIX requires this.
57396         * lib/strptime.c (strptime): Likewise.
57397         Change license notice from LGPL to GPL, since gnulib-tool will
57398         change this as needed.
57399         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
57400         defined.
57401         Include "strptime.h" first, to check interface.
57402         Do not #undef _LIBC and _NL_CURRENT.
57403         Do not include <stdlib.h>; no longer needed.
57404         Include "time_r.h" and declare ptime_locale_status
57405         only if _LIBC is not defined.
57406         (__P): Remove unused macro.
57407         (match_string): Bring back glibc version, but use it only if _LIBC
57408         is defined.
57409         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
57410         Remove unnecessary assertion and abort() call.
57411         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
57412         * m4/strptime.m4: Fix serial number comment.
57413         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
57414         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
57415         (Depends-on): Add time_r.
57416
57417 2007-01-29  Bruno Haible  <bruno@clisp.org>
57418
57419         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57420         strptime.
57421         * modules/strptime (Depends-on): Add stdbool.
57422         * lib/strptime.h: Include <time.h> always. Add comments.
57423
57424 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
57425
57426         * modules/strptime: New file.
57427         * lib/strptime.h: New file.
57428         * lib/strptime.c: New file.
57429         * m4/strptime.m4: New file.
57430
57431 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
57432
57433         * MODULES.html.sh: New module mpsort.
57434         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
57435
57436         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
57437         a circularity problem with HP-UX ia64 reported by Bob Proulx in
57438         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
57439         All uses changed.
57440         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
57441         All uses changed.
57442         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
57443         to _Restrict_.
57444         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
57445         the parameter matches the prototype.
57446
57447 2007-01-28  Jim Meyering  <jim@meyering.net>
57448
57449         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
57450         sys/time.h here, reverting that part of the previous patch:
57451         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
57452
57453 2007-01-28  Bruno Haible  <bruno@clisp.org>
57454
57455         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
57456         value of $(SYS_TIME_H).
57457         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
57458         remove it conditionally, too. [added by Jim Meyering]
57459         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
57460         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
57461         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
57462         GETTIMEOFDAY_REPLACEMENT to 1.
57463
57464 2007-01-28  Bruno Haible  <bruno@clisp.org>
57465
57466         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
57467         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
57468         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
57469         Set UNISTD_H instead of UNISTD_H2.
57470         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
57471
57472 2007-01-28  Bruno Haible  <bruno@clisp.org>
57473
57474         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
57475         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
57476
57477 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57478
57479         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
57480         (func_create_testdir): Ensure C locale for `grep' and `tr'
57481         character ranges.
57482         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
57483         ACLOCAL_AMFLAGS parsing state machine.
57484
57485 2007-01-27  Bruno Haible  <bruno@clisp.org>
57486
57487         * modules/unistr/base: Update.
57488
57489 2007-01-27  Bruno Haible  <bruno@clisp.org>
57490
57491         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
57492         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
57493         * modules/unistr/u32-mbtouc-unsafe: Renamed from
57494         modules/unistr/u32-mbtouc.
57495         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
57496         * lib/unistr.h: Update.
57497         * lib/linebreak.c: Update.
57498         * modules/unistr/u32-mbtouc: Renamed from
57499         modules/unistr/u32-mbtouc-safe.
57500         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
57501         * lib/unistr.h: Update.
57502         * lib/unistr/u32-to-u8.c: Update.
57503         * lib/unistr/u32-to-u16.c: Update.
57504
57505 2007-01-27  Bruno Haible  <bruno@clisp.org>
57506
57507         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
57508         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
57509         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
57510         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
57511         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
57512         * modules/unistr/u16-mbtouc-unsafe: Renamed from
57513         modules/unistr/u16-mbtouc.
57514         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
57515         * lib/unistr.h: Update.
57516         * lib/linebreak.c: Update.
57517         * modules/linebreak: Update.
57518         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
57519         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
57520         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
57521         * modules/unistr/u16-mbtouc: Renamed from
57522         modules/unistr/u16-mbtouc-safe.
57523         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
57524         * lib/unistr.h: Update.
57525         * lib/unistr/u16-to-u8.c: Update.
57526         * modules/unistr/u16-to-u8: Update.
57527         * lib/unistr/u16-to-u32.c: Update.
57528         * modules/unistr/u16-to-u32: Update.
57529
57530 2007-01-27  Bruno Haible  <bruno@clisp.org>
57531
57532         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
57533         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
57534         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
57535         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
57536         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
57537         * modules/unistr/u8-mbtouc-unsafe: Renamed from
57538         modules/unistr/u8-mbtouc.
57539         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
57540         * lib/unistr.h: Update.
57541         * lib/striconveh.c: Update.
57542         * modules/striconveh: Update.
57543         * lib/linebreak.c: Update.
57544         * modules/linebreak: Update.
57545         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
57546         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
57547         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
57548         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
57549         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
57550         * lib/unistr.h: Update.
57551         * lib/striconveh.c: Update.
57552         * modules/striconveh: Update.
57553         * lib/unistr/u8-to-u16.c: Update.
57554         * modules/unistr/u8-to-u16: Update.
57555         * lib/unistr/u8-to-u32.c: Update.
57556         * modules/unistr/u8-to-u32: Update.
57557
57558 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57559
57560         Sync from Libtool.
57561         * lib/argz.c: Do not include strings.h nor memory.h, include
57562         string.h unconditionally.  Patch by Simon Josefsson.
57563
57564 2007-01-27  Bruno Haible  <bruno@clisp.org>
57565
57566         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
57567         from gl_HEADER_STRING_H_BODY.
57568         (gl_HEADER_STRING_H_BODY): Require it.
57569         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
57570         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57571         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57572         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57573         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57574         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
57575         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57576         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57577         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
57578         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57579         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57580         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
57581         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57582         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57583         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
57584
57585 2007-01-27  Bruno Haible  <bruno@clisp.org>
57586
57587         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
57588         check_PROGRAMS into noinst_PROGRAMS.
57589         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
57590         check_PROGRAMS in this case.
57591         (func_import): Set for_test to false.
57592         (func_create_testdir): Set for_test to true.
57593
57594 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
57595             Bruno Haible  <bruno@clisp.org>
57596
57597         * modules/strcasestr (Files): Remove lib/strcasestr.h.
57598         (Depends-on): Add string.
57599         (Includes): Use <string.h> instead of strcasestr.h.
57600         * modules/string (Makefile.am): Also substitute the value of
57601         REPLACE_STRCASESTR.
57602         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
57603         assume strcasestr is declared in <string.h> not <strings.h>. Also
57604         set REPLACE_STRCASESTR.
57605         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
57606         REPLACE_STRCASESTR.
57607         * lib/strcasestr.h: Remove file.
57608         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
57609         * lib/string_.h (strcasestr): New declaration.
57610
57611 2007-01-27  Bruno Haible  <bruno@clisp.org>
57612
57613         * lib/string_.h: Use 'extern'.
57614
57615 2007-01-27  Jim Meyering  <jim@meyering.net>
57616
57617         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
57618         of set-but-not-used local, "q".
57619
57620         * lib/mempcpy.c: Include <config.h> before <string.h>.
57621         This fixes a compilation error on HP-UX, due to the system's
57622         "restrict"-using mempcpy prototype.
57623
57624 2007-01-26  Bruno Haible  <bruno@clisp.org>
57625
57626         Small optimization.
57627         * lib/javacomp.c: Include c-strstr.h.
57628          (is_envjavac_gcj): Use c_strstr instead of strstr.
57629         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
57630
57631 2007-01-26  Bruno Haible  <bruno@clisp.org>
57632
57633         * MODULES.html.sh (Unicode string functions): Add the new modules.
57634
57635         * modules/uniconv/u32-strconv-to-locale: New file.
57636         * lib/uniconv/u32-strconv-to-locale.c: New file.
57637
57638         * modules/uniconv/u16-strconv-to-locale: New file.
57639         * lib/uniconv/u16-strconv-to-locale.c: New file.
57640
57641         * modules/uniconv/u8-strconv-to-locale: New file.
57642         * lib/uniconv/u8-strconv-to-locale.c: New file.
57643
57644         * modules/uniconv/u32-strconv-from-locale: New file.
57645         * lib/uniconv/u32-strconv-from-locale.c: New file.
57646
57647         * modules/uniconv/u16-strconv-from-locale: New file.
57648         * lib/uniconv/u16-strconv-from-locale.c: New file.
57649
57650         * modules/uniconv/u8-strconv-from-locale: New file.
57651         * lib/uniconv/u8-strconv-from-locale.c: New file.
57652
57653         * modules/uniconv/u32-strconv-to-enc: New file.
57654         * lib/uniconv/u32-strconv-to-enc.c: New file.
57655         * modules/uniconv/u32-strconv-to-enc-tests: New file.
57656         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
57657
57658         * modules/uniconv/u16-strconv-to-enc: New file.
57659         * lib/uniconv/u16-strconv-to-enc.c: New file.
57660         * lib/uniconv/u-strconv-to-enc.h: New file.
57661         * modules/uniconv/u16-strconv-to-enc-tests: New file.
57662         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
57663
57664         * modules/uniconv/u8-strconv-to-enc: New file.
57665         * lib/uniconv/u8-strconv-to-enc.c: New file.
57666         * modules/uniconv/u8-strconv-to-enc-tests: New file.
57667         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
57668
57669         * modules/uniconv/u32-strconv-from-enc: New file.
57670         * lib/uniconv/u32-strconv-from-enc.c: New file.
57671         * modules/uniconv/u32-strconv-from-enc-tests: New file.
57672         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
57673
57674         * modules/uniconv/u16-strconv-from-enc: New file.
57675         * lib/uniconv/u16-strconv-from-enc.c: New file.
57676         * modules/uniconv/u16-strconv-from-enc-tests: New file.
57677         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
57678
57679         * modules/uniconv/u8-strconv-from-enc: New file.
57680         * lib/uniconv/u8-strconv-from-enc.c: New file.
57681         * lib/uniconv/u-strconv-from-enc.h: New file.
57682         * modules/uniconv/u8-strconv-from-enc-tests: New file.
57683         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
57684
57685         * modules/uniconv/u32-conv-from-enc: New file.
57686         * lib/uniconv/u32-conv-from-enc.c: New file.
57687         * modules/uniconv/u32-conv-from-enc-tests: New file.
57688         * tests/uniconv/test-u32-conv-from-enc.c: New file.
57689
57690         * modules/uniconv/u16-conv-from-enc: New file.
57691         * lib/uniconv/u16-conv-from-enc.c: New file.
57692         * lib/uniconv/u-conv-from-enc.h: New file.
57693         * modules/uniconv/u16-conv-from-enc-tests: New file.
57694         * tests/uniconv/test-u16-conv-from-enc.c: New file.
57695
57696         * modules/uniconv/u8-conv-from-enc: New file.
57697         * lib/uniconv/u8-conv-from-enc.c: New file.
57698         * modules/uniconv/u8-conv-from-enc-tests: New file.
57699         * tests/uniconv/test-u8-conv-from-enc.c: New file.
57700
57701         * modules/uniconv/base: New file.
57702         * lib/uniconv.h: New file.
57703
57704 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
57705
57706         * doc/gnulib-tool.texi (Initial import): Update to match current
57707         behavior with strdup module.
57708         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
57709         * lib/memmem.h: Remove; all uses removed.  This is now done
57710         by <string.h>.
57711         * lib/mempcpy.h: Likewise.
57712         * lib/memrchr.h: Likewise.
57713         * lib/stpcpy.h: Likewise.
57714         * lib/stpncpy.h: Likewise.
57715         * lib/strcase.h: Likewise.
57716         * lib/strchrnul.h: Likewise.
57717         * lib/strdup.h: Likewise.
57718         * lib/strndup.h: Likewise.
57719         * lib/strnlen.h: Likewise.
57720         * lib/strpbrk.h: Likewise.
57721         * lib/strsep.h: Likewise.
57722         * lib/strstr.h: Likewise.
57723         * lib/strtok_r.h: Likewise.
57724         * lib/string_.h: New file.
57725         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
57726         Rely on <string.h> instead.
57727         * lib/canon-host.c: Likewise.
57728         * lib/chdir-long.c: Likewise.
57729         * lib/concatpath.c: Likewise.
57730         * lib/exclude.c: Likewise.
57731         * lib/fchdir.c: Likewise.
57732         * lib/getaddrinfo.c: Likewise.
57733         * lib/getcwd.c: Likewise.
57734         * lib/getsubopt.c: Likewise.
57735         * lib/glob.c: Likewise.
57736         * lib/hard-locale.c: Likewise.
57737         * lib/iconvme.c: Likewise.
57738         * lib/javacomp.c: Likewise.
57739         * lib/mempcpy.c: Likewise.
57740         * lib/memrchr.c: Likewise.
57741         * lib/regex_internal.h: Likewise.
57742         * lib/stpncpy.c: Likewise.
57743         * lib/strcasecmp.c: Likewise.
57744         * lib/strchrnul.c: Likewise.
57745         * lib/strdup.c: Likewise.
57746         * lib/striconv.c: Likewise.
57747         * lib/striconveh.c: Likewise.
57748         * lib/striconveha.c: Likewise.
57749         * lib/strncasecmp.c: Likewise.
57750         * lib/strndup.c: Likewise.
57751         * lib/strnlen.c: Likewise.
57752         * lib/strsep.c: Likewise.
57753         * lib/strstr.c: Likewise.
57754         * lib/strtok_r.c: Likewise.
57755         * lib/userspec.c: Likewise.
57756         * lib/w32spawn.h: Likewise.
57757         * lib/xstrndup.c: Likewise.
57758         * lib/mountlist.c (strstr): Remove decl.
57759         * m4/string_h.m4: New file.
57760         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
57761         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
57762         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
57763         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
57764         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
57765         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
57766         Set REPLACE_STRCASECMP if necessary.
57767         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
57768         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
57769         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
57770         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
57771         HAVE_DECL_STRDUP if necessary.
57772         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
57773         since gl_FUNC_STRNDUP does that now.
57774         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
57775         Check for decl here...
57776         (gl_PREREQ_STRNLEN): ... not here.
57777         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
57778         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
57779         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
57780         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
57781         necessary.
57782         * modules/string: New file.
57783         * modules/memmem (Files): Remove special-purpose include file.
57784         (Depends-on): Add string.
57785         (Include): Include <string.h>, not the removed file.
57786         * modules/mempcpy: Likewise.
57787         * modules/memrchr: Likewise.
57788         * modules/stpcpy: Likewise.
57789         * modules/stpncpy: Likewise.
57790         * modules/strcase: Likewise.
57791         * modules/strchrnul: Likewise.
57792         * modules/strdup: Likewise.
57793         * modules/strndup: Likewise.
57794         * modules/strnlen: Likewise.
57795         * modules/strpbrk: Likewise.
57796         * modules/strsep: Likewise.
57797         * modules/strstr: Likewise.
57798         * modules/strtok_r: Likewise.
57799         * tests/test-dirname.c: Don't include "strdup.h", since
57800         <string.h> now suffices.
57801         * tests/test-memmem.c: Don't include "memmem.h", since
57802         <string.h> now suffices.
57803
57804 2007-01-25  Bruno Haible  <bruno@clisp.org>
57805
57806         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
57807         *resultp is 0.
57808
57809         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
57810         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
57811         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
57812         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
57813
57814         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
57815         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
57816         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
57817         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
57818         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
57819         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
57820
57821 2007-01-24  Bruno Haible  <bruno@clisp.org>
57822
57823         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
57824         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
57825         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
57826         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
57827         gl_FUNC_FTS_CORE.
57828         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
57829         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
57830         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57831         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
57832         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
57833         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
57834         gl_FUNC_FCHOWNAT.
57835         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
57836         gl_FUNC_STRFTIME.
57837         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
57838         Reported by Ralf Wildenhues.
57839
57840 2007-01-24  Bruno Haible  <bruno@clisp.org>
57841
57842         Drop AC_REQUIRE calls that are redundant with the module dependencies.
57843         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
57844         gl_GETADDRINFO.
57845         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
57846         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
57847         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
57848
57849 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
57850
57851         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
57852         Don't use 'exit'; just return from 'main'.
57853         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
57854
57855         * lib/fnmatch_.h: Readjust white space and comments to match
57856         glibc, to avoid spurious diffs.
57857
57858 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57859
57860         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
57861         2004-12-01 change by Jakub Jelinek, since this code won't compile
57862         if !LIBC.  Problem reported by Bob Proulx.
57863
57864 2007-01-23  Bruno Haible  <bruno@clisp.org>
57865
57866         * lib/striconveh.c: Include c-strcaseeq.h.
57867         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
57868         * modules/striconveh (Depends-on): Add c-strcaseeq.
57869
57870 2007-01-23  Bruno Haible  <bruno@clisp.org>
57871
57872         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
57873
57874         * modules/c-strcaseeq: New file.
57875         * lib/c-strcaseeq.h: New file.
57876
57877         * modules/streq: New file.
57878         * lib/streq.h: New file.
57879
57880 2007-01-23  Bruno Haible  <bruno@clisp.org>
57881
57882         * modules/striconveha-tests: New file.
57883         * tests/test-striconveha.c: New file.
57884
57885         * lib/striconveha.h: Include <stdbool.h>.
57886         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
57887         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
57888         (mem_iconveha_notranslit): Renamed from mem_iconveha.
57889         (mem_iconveha): New function.
57890         (str_iconveha_notranslit): Renamed from str_iconveha.
57891         (str_iconveha): New function.
57892         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
57893         c-strcase.
57894
57895 2007-01-23  Bruno Haible  <bruno@clisp.org>
57896
57897         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
57898         encodings without forgiving before trying any encoding with handler.
57899         (str_iconveha): Try all encodings without forgiving before trying any
57900         encoding with handler.
57901
57902 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57903
57904         Import the following changes from libc.
57905
57906         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
57907
57908         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
57909
57910         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
57911
57912         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
57913         normal_bracket label.
57914
57915         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
57916
57917         [BZ #361]
57918         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
57919         to normal_bracket after fetching the next character.
57920
57921 2007-01-22  Bruno Haible  <bruno@clisp.org>
57922
57923         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
57924         argument.
57925         * lib/striconveh.c (iconv_carefully_1): New function.
57926         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
57927         argument.
57928         (str_cd_iconveh): Update.
57929         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
57930         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
57931         * tests/test-striconveh.c (MAGIC): New macro.
57932         (new_offsets): New function.
57933         (main): Test call with and without offsets.
57934
57935 2007-01-22  Bruno Haible  <bruno@clisp.org>
57936
57937         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
57938         * modules/sys_select (Makefile.am): Likewise.
57939         * modules/sys_socket (Makefile.am): Likewise.
57940         * modules/sys_time (Makefile.am): Likewise.
57941
57942 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
57943
57944         * modules/gettimeofday (License): Change from GPL to LGPL, since
57945         gettimeofday is a library function.
57946
57947 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57948
57949         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
57950
57951 2007-01-21  Bruno Haible  <bruno@clisp.org>
57952
57953         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
57954
57955 2007-01-21  Bruno Haible  <bruno@clisp.org>
57956
57957         * modules/striconveha: New file.
57958         * lib/striconveha.h: New file.
57959         * lib/striconveha.c: New file.
57960         * MODULES.html.sh (Internationalization functions): Add striconveha.
57961         * lib/striconv.c (str_iconv): Optimize the case of an empty input
57962         string.
57963         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
57964
57965 2007-01-21  Bruno Haible  <bruno@clisp.org>
57966
57967         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
57968         * lib/striconveh.c (str_iconveh): Likewise.
57969
57970 2007-01-21  Bruno Haible  <bruno@clisp.org>
57971
57972         * lib/striconveh.h (mem_iconveh): New declaration.
57973         * lib/striconveh.c (mem_iconveh): New function.
57974         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
57975
57976 2007-01-21  Bruno Haible  <bruno@clisp.org>
57977
57978         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
57979
57980         * lib/striconveh.h (mem_cd_iconveh): Change specification.
57981         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
57982         original result buffer.
57983         (str_cd_iconveh): Update.
57984         * tests/test-striconveh.c (main): Update.
57985
57986         * lib/striconv.h (mem_cd_iconv): Change specification.
57987         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
57988         result buffer.
57989         (str_cd_iconv): Update.
57990         * tests/test-striconv.c (main): Update.
57991
57992 2007-01-21  Bruno Haible  <bruno@clisp.org>
57993
57994         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
57995
57996 2007-01-20  Jim Meyering  <jim@meyering.net>
57997
57998         * lib/userspec.c (parse_with_separator): If a user or group string
57999         starts with "+", skip the corresponding name-to-ID look-up, since
58000         such a look-up must fail: user and group names may not include "+".
58001
58002 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58003
58004         * lib/poll.c: Include sys/time.h and time.h unconditionally,
58005         since we now assume the sys_time module.
58006         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
58007         check for sys/time.h; no longer needed.
58008         * modules/poll (Depends-on): Depend on sys_time.
58009
58010 2007-01-18  Bruno Haible  <bruno@clisp.org>
58011
58012         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
58013         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58014
58015         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
58016         gettimeofday.
58017
58018         * tests/test-gettimeofday.c: Include <time.h>.
58019         (dummy): Remove variable.
58020
58021         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
58022         gl_HEADER_SYS_TIME_H.
58023         (gl_HEADER_SYS_TIME_H): New macro.
58024
58025         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
58026         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58027         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
58028         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
58029         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58030         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
58031         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
58032         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58033         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
58034         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
58035         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58036
58037         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
58038         last change; it caused a compilation error when cross-compiling to
58039         Cygwin.
58040
58041 2007-01-18  Jim Meyering  <jim@meyering.net>
58042
58043         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
58044         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
58045         than the race-prone "test -d sys || mkdir sys".
58046         (configure.ac): Use AC_PROG_MKDIR_P.
58047         * modules/sys_select: Likewise.
58048         * modules/sys_socket: Likewise.
58049         * modules/sys_time: Likewise.
58050
58051 2007-01-18  Eric Blake  <ebb9@byu.net>
58052
58053         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
58054         replace gettimeofday.
58055         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
58056         name, to avoid infinite recursion.
58057
58058 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
58059
58060         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
58061         module sys_time.
58062         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
58063         assume timespec.h defines struct timeval.
58064         * lib/settime.c: Likewise.
58065         * lib/utimens.c: Likewise.
58066         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
58067         since we now assume the gettimeofday module.
58068         * lib/tempname.c (__gen_tempname): Likewise.
58069         * lib/gettimeofday.h: Remove.
58070         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
58071         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
58072         Include <time.h>, for 'time()'.
58073         (localtime_buffer_addr): Also use this workaround if
58074         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
58075         to simplify the uses.  All uses changed.
58076         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
58077         that #undef is inside {}, and 'const' follows type name consistently.
58078         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
58079         (gettimeofday): Do not use the maximum possible value for
58080         tv->tv_usec, since that might break usages other than ls.c.
58081         Instead, we'll leave ls.c alone.  This undoes today's patch
58082         by Bruno.  Add a compile-time warning for 1s-clock resolution;
58083         we've never observed the problem but might as well keep the
58084         canary.
58085         * lib/nanosleep.c: Include timespec.h first, for interface check.
58086         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
58087         now assume the sys_time module.
58088         * lib/tempname.c: Likewise.
58089         * lib/timespec.h: Likewise.
58090         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
58091         needed.
58092         * lib/strftime.c: Likewise.
58093         * lib/timespec.h: Likewise.
58094         * lib/posixtm.c: Include posixtm.h first, for interface check.
58095         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
58096         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
58097         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
58098         * lib/sys_time_.h: New file.
58099         * lib/timespec.h (struct timespec): Use long int, not long.
58100         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
58101         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
58102         Remove obsolescent call to AC_HEADER_TIME.
58103         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
58104         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58105         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
58106         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
58107         Likewise.
58108         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
58109         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
58110         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
58111         into the sys_time module.  Check for gettimeofday just once.
58112         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
58113         for gettimeofday signature to just check the signature.  Merely
58114         compile it, since linking doesn't test signature.  Improve test for
58115         whether gettimeofday.o is actually needed.
58116         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
58117         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
58118         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
58119         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58120         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
58121         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
58122         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
58123         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
58124         than worrying about sys/time.h.
58125         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58126         Don't bother worrying about TIME_WITH_SYS_TIME.
58127         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
58128         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
58129         * m4/sys_time_h.m4: New file.
58130         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
58131         Don't include sys/time.h.  Return from main rather than exiting.
58132         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
58133         all uses changed.
58134         * modules/gethrxtime (Depends-on): Add sys_time.
58135         * modules/gettime (Depends-on): Likewise.
58136         * modules/gettimeofday (Depends-on): Likewise.
58137         * modules/nanosleep (Depends-on): Likewise.
58138         * modules/settime (Depends-on): Likewise.
58139         * modules/tempname (Depends-on): Likewise.
58140         * modules/utimens (Depends-on): Likewise.
58141         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
58142         (Include): Change back to <sys/time.h>.
58143         (Maintainer): Add self.
58144         * modules/sys_time: New file.
58145         * modules/tempname (Depends-on): Add gettimeofday.
58146         * tests/test-gettimeofday.c: Include <sys/time.h>
58147         rather than gettimeofday.h.
58148
58149 2007-01-17  Bruno Haible  <bruno@clisp.org>
58150
58151         * gnulib-tool (func_get_license): Revert last patch. Instead, let
58152         the license default to GPL.
58153         (func_create_testdir): Don't complain if a module is LGPL and its
58154         tests module depends on GPLed modules.
58155
58156 2007-01-17  Bruno Haible  <bruno@clisp.org>
58157
58158         * lib/gettimeofday.c (gettimeofday): Add code for the case
58159         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
58160         maximum possible value for tv->tv_usec, rather than the minimum one.
58161
58162 2005-10-08  Martin Lambers  <marlam@marlam.de>
58163 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58164 2007-01-16  Bruno Haible  <bruno@clisp.org>
58165
58166         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
58167         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
58168         gl_FUNC_GETTIMEOFDAY.
58169         (Include): Add gettimeofday.h.
58170         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
58171         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
58172         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
58173         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
58174         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
58175         * lib/gettimeofday.h: New file.
58176         * lib/gettimeofday.c: Include <sys/timeb.h>.
58177         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
58178         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
58179         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
58180         fall back on time().
58181
58182         * tests/test-gettimeofday.c: New file.
58183         * modules/gettimeofday-tests: New file.
58184
58185 2007-01-16  Eric Blake  <ebb9@byu.net>
58186
58187         * modules/fnmatch (Depends-on): Depend on wchar.
58188         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
58189         * m4/fnmatch.m4: Likewise.
58190         * modules/mbchar (Makefile.am): Assume <wchar.h>.
58191         * m4/mbchar.m4: Likewise.
58192         * modules/mbswidth (Depends-on): Depend on wchar.
58193         * lib/mbswidth.c: Assume <wchar.h>.
58194         * m4/mbswidth.m4: Likewise.
58195         * modules/quotearg (Depends-on): Depend on wchar.
58196         * lib/quotearg.c: Assume <wchar.h>.
58197         * m4/quotearg.m4: Likewise.
58198         * modules/regex (Depends-on): Depend on wchar.
58199         * lib/regex_internal.h: Assume <wchar.h>.
58200         * m4/regex.m4: Likewise.
58201         * modules/stdint (Depends-on): Depend on wchar.
58202         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
58203         * m4/stdint.m4: Likewise.
58204         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
58205         * modules/strftime (Depends-on): Depend on wchar.
58206         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
58207         * modules/strtol (Depends-on): Depend on wchar.
58208         * lib/strtol.c: Assume <wchar.h>.
58209         * modules/wcwidth (Depends-on): Depend on wchar.
58210         * lib/wcwidth.h: Assume <wchar.h>.
58211         * m4/wcwidth.m4: Likewise.
58212
58213 2007-01-16  Bruno Haible  <bruno@clisp.org>
58214
58215         * modules/csharpexec-script: New, created from...
58216         * modules/csharpexec: ... this.
58217
58218 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58219
58220         * modules/javaexec-script: New, created from...
58221         * modules/javaexec: ... this.
58222
58223 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58224
58225         * modules/poll (Dependencies): Add sys_select.
58226
58227 2007-01-15  Jim Meyering  <jim@meyering.net>
58228
58229         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
58230         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
58231         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
58232         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
58233
58234 2007-01-15  Bruno Haible  <bruno@clisp.org>
58235
58236         * modules/striconveh: New file.
58237         * lib/striconveh.h: New file.
58238         * lib/striconveh.c: New file.
58239         * MODULES.html.sh (Internationalization functions): Add striconveh.
58240
58241         * modules/striconveh-tests: New file.
58242         * tests/test-striconveh.c: New file.
58243
58244 2007-01-15  Bruno Haible  <bruno@clisp.org>
58245
58246         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
58247         not from GNU libiconv or GNU libc.
58248
58249 2007-01-15  Bruno Haible  <bruno@clisp.org>
58250
58251         * doc/gnulib-intro.texi (Copyright): Explain the different license
58252         terms for module descriptions, autoconf macros, tests, documentation.
58253
58254 2007-01-14  Bruno Haible  <bruno@clisp.org>
58255
58256         * modules/striconv-tests: New file.
58257         * tests/test-striconv.c: New file.
58258
58259 2007-01-14  Bruno Haible  <bruno@clisp.org>
58260
58261         * modules/iconv-tests: New file.
58262         * tests/test-iconv.c: New file.
58263
58264 2007-01-14  Bruno Haible  <bruno@clisp.org>
58265
58266         * gnulib-tool (func_get_license): For test modules, use the license of
58267         the main module.
58268
58269 2007-01-14  Bruno Haible  <bruno@clisp.org>
58270
58271         * modules/iconv (Include): Clarify that <iconv.h> can only be included
58272         if iconv is found to exist.
58273
58274 2007-01-14  Bruno Haible  <bruno@clisp.org>
58275
58276         * modules/c-ctype-tests: New file.
58277         * tests/test-c-ctype.c: New file.
58278
58279 2007-01-14  Bruno Haible  <bruno@clisp.org>
58280
58281         * modules/binary-io-tests: New file.
58282         * tests/test-binary-io.sh: New file.
58283         * tests/test-binary-io.c: New file.
58284
58285 2007-01-14  Bruno Haible  <bruno@clisp.org>
58286
58287         * modules/array-oset-tests: New file.
58288         * tests/test-array_oset.c: New file.
58289
58290 2007-01-14  Bruno Haible  <bruno@clisp.org>
58291
58292         * modules/array-list-tests: New file.
58293         * tests/test-array_list.c: New file.
58294
58295 2007-01-14  Bruno Haible  <bruno@clisp.org>
58296
58297         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
58298         and make.
58299         Reported by Simon Josefsson in
58300         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
58301
58302 2007-01-14  Bruno Haible  <bruno@clisp.org>
58303
58304         * modules/allocsa-tests: New file.
58305         * tests/test-allocsa.c: New file.
58306
58307 2007-01-14  Bruno Haible  <bruno@clisp.org>
58308
58309         * modules/fchdir (Depends-on): Add absolute-header.
58310         * modules/unistd (Depends-on): Likewise.
58311
58312 2006-12-30  Bruno Haible  <bruno@clisp.org>
58313
58314         * modules/fchdir: New file.
58315         * modules/unistd (Files): Add lib/unistd_.h.
58316         (Makefile.am): Generate unistd.h from unistd_.h.
58317         * lib/fchdir.c: New file.
58318         * lib/dirent_.h: New file.
58319         * lib/unistd_.h: New file.
58320         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
58321         * m4/fchdir.m4: New file.
58322         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
58323         (gl_HEADER_UNISTD): Invoke it.
58324         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
58325         function.
58326         * lib/backupfile.c (opendir, closedir): Undefine.
58327         * lib/chown.c (open, close): Undefine.
58328         * lib/clean-temp.c (open, close): Undefine.
58329         * lib/copy-file.c (open, close): Undefine.
58330         * lib/execute.c (open, close): Undefine.
58331         * lib/fsusage.c (open, close): Undefine.
58332         * lib/gc-gnulib.c (open, close): Undefine.
58333         * lib/getcwd.c (opendir, closedir): Undefine.
58334         * lib/glob.c (opendir, closedir): Undefine.
58335         * lib/javacomp.c (open, close): Undefine.
58336         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
58337         * lib/openat-proc.c (open, close): Undefine.
58338         * lib/pagealign_alloc.c (open, close): Undefine.
58339         * lib/pipe.c (open, close): Undefine.
58340         * lib/progreloc.c (open, close): Undefine.
58341         * lib/savedir.c (opendir, closedir): Undefine.
58342         * lib/utime.c (open, close): Undefine.
58343         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
58344
58345 2007-01-10  Bruno Haible  <bruno@clisp.org>
58346
58347         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
58348
58349 2007-01-12  Eric Blake  <ebb9@byu.net>
58350
58351         Provide a robust <wchar.h>.  Further simplifications are now
58352         possible in other modules, but not included here.
58353         * modules/wchar: New module.
58354         * m4/wchar.m4: New file.
58355         * lib/wchar_.h: Likewise.
58356         * modules/mbchar (Depends-on): Depend on wchar, as the first use
58357         of the new module.
58358         * MODULES.html.sh (Extended multibyte and wide character utilities):
58359         New section.
58360
58361 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
58362
58363         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
58364         to a reasonable default for memory allocation.
58365         (xreadlink): Don't allocate a huge buffer, to work around a buggy
58366         file system that reports garbage st_size values for symlinks.
58367         Problem reported by Liyang Hu.
58368
58369 2007-01-11  Simon Josefsson  <simon@josefsson.org>
58370
58371         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
58372         Emacs .#* auto-save files).
58373
58374 2007-01-11  Bruno Haible  <bruno@clisp.org>
58375
58376         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
58377         directory.
58378
58379 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
58380
58381         Use @...@ consistently in lib/wctype_.h.
58382         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
58383         on it being set to 1 or 0.
58384         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
58385         go back to AC_SUBSTing it.
58386         * modules/wctype (Makefile.am): Undo previous change.
58387
58388 2007-01-10  Eric Blake  <ebb9@byu.net>
58389
58390         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
58391         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
58392         * modules/wctype (Makefile.am): Likewise.
58393         Reported by Chris McGuire.
58394
58395 2007-01-10  Jim Meyering  <jim@meyering.net>
58396
58397         fts.c: a small readability/maintainability improvement
58398         * lib/fts.c (fts_read): Make this code slightly more readable and
58399         maintainable by hoisting the "sp->fts_cur = p" assignments to
58400         immediately follow the statements that set P.  Derived from
58401         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
58402
58403 2007-01-10  Eric Blake  <ebb9@byu.net>
58404
58405         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
58406         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
58407         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58408         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
58409         Reported by Chris McGuire.
58410
58411 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58412
58413         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
58414         in sed script.
58415
58416 2007-01-09  Bruno Haible  <bruno@clisp.org>
58417
58418         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
58419         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
58420         variables.
58421         (func_module): Use them.
58422
58423 2007-01-09  Bruno Haible  <bruno@clisp.org>
58424
58425         * modules/unistr/base: New file.
58426         * lib/unistr.h: New file.
58427
58428         * modules/unistr/u8-to-u16: New file.
58429         * lib/unistr/u8-to-u16.c: New file.
58430
58431         * modules/unistr/u8-to-u32: New file.
58432         * lib/unistr/u8-to-u32.c: New file.
58433
58434         * modules/unistr/u16-to-u8: New file.
58435         * lib/unistr/u16-to-u8.c: New file.
58436
58437         * modules/unistr/u16-to-u32: New file.
58438         * lib/unistr/u16-to-u32.c: New file.
58439
58440         * modules/unistr/u32-to-u8: New file.
58441         * lib/unistr/u32-to-u8.c: New file.
58442
58443         * modules/unistr/u32-to-u16: New file.
58444         * lib/unistr/u32-to-u16.c: New file.
58445
58446         * modules/unistr/u8-check: New file.
58447         * modules/unistr/u16-check: New file.
58448         * modules/unistr/u32-check: New file.
58449         * lib/unistr/u8-check.c: New file.
58450         * lib/unistr/u16-check.c: New file.
58451         * lib/unistr/u32-check.c: New file.
58452
58453         * modules/unistr/u8-chr: New file.
58454         * modules/unistr/u16-chr: New file.
58455         * modules/unistr/u32-chr: New file.
58456         * lib/unistr/u8-chr.c: New file.
58457         * lib/unistr/u16-chr.c: New file.
58458         * lib/unistr/u32-chr.c: New file.
58459
58460         * modules/unistr/u8-cmp: New file.
58461         * modules/unistr/u16-cmp: New file.
58462         * modules/unistr/u32-cmp: New file.
58463         * lib/unistr/u8-cmp.c: New file.
58464         * lib/unistr/u16-cmp.c: New file.
58465         * lib/unistr/u32-cmp.c: New file.
58466
58467         * modules/unistr/u8-cpy: New file.
58468         * modules/unistr/u16-cpy: New file.
58469         * modules/unistr/u32-cpy: New file.
58470         * lib/unistr/u8-cpy.c: New file.
58471         * lib/unistr/u16-cpy.c: New file.
58472         * lib/unistr/u32-cpy.c: New file.
58473         * lib/unistr/u-cpy.h: New file.
58474
58475         * modules/unistr/u8-cpy-alloc: New file.
58476         * modules/unistr/u16-cpy-alloc: New file.
58477         * modules/unistr/u32-cpy-alloc: New file.
58478         * lib/unistr/u8-cpy-alloc.c: New file.
58479         * lib/unistr/u16-cpy-alloc.c: New file.
58480         * lib/unistr/u32-cpy-alloc.c: New file.
58481         * lib/unistr/u-cpy-alloc.h: New file.
58482
58483         * modules/unistr/u8-endswith: New file.
58484         * modules/unistr/u16-endswith: New file.
58485         * modules/unistr/u32-endswith: New file.
58486         * lib/unistr/u8-endswith.c: New file.
58487         * lib/unistr/u16-endswith.c: New file.
58488         * lib/unistr/u32-endswith.c: New file.
58489         * lib/unistr/u-endswith.h: New file.
58490
58491         * modules/unistr/u8-mblen: New file.
58492         * modules/unistr/u16-mblen: New file.
58493         * modules/unistr/u32-mblen: New file.
58494         * lib/unistr/u8-mblen.c: New file.
58495         * lib/unistr/u16-mblen.c: New file.
58496         * lib/unistr/u32-mblen.c: New file.
58497
58498         * modules/unistr/u8-mbtouc: New file.
58499         * modules/unistr/u16-mbtouc: New file.
58500         * modules/unistr/u32-mbtouc: New file.
58501         * lib/unistr/u8-mbtouc.c: New file.
58502         * lib/unistr/u16-mbtouc.c: New file.
58503         * lib/unistr/u32-mbtouc.c: New file.
58504
58505         * modules/unistr/u8-mbtouc-safe: New file.
58506         * modules/unistr/u16-mbtouc-safe: New file.
58507         * modules/unistr/u32-mbtouc-safe: New file.
58508         * lib/unistr/u8-mbtouc-safe.c: New file.
58509         * lib/unistr/u16-mbtouc-safe.c: New file.
58510         * lib/unistr/u32-mbtouc-safe.c: New file.
58511
58512         * modules/unistr/u8-move: New file.
58513         * modules/unistr/u16-move: New file.
58514         * modules/unistr/u32-move: New file.
58515         * lib/unistr/u8-move.c: New file.
58516         * lib/unistr/u16-move.c: New file.
58517         * lib/unistr/u32-move.c: New file.
58518         * lib/unistr/u-move.h: New file.
58519
58520         * modules/unistr/u8-next: New file.
58521         * modules/unistr/u16-next: New file.
58522         * modules/unistr/u32-next: New file.
58523         * lib/unistr/u8-next.c: New file.
58524         * lib/unistr/u16-next.c: New file.
58525         * lib/unistr/u32-next.c: New file.
58526
58527         * modules/unistr/u8-prev: New file.
58528         * modules/unistr/u16-prev: New file.
58529         * modules/unistr/u32-prev: New file.
58530         * lib/unistr/u8-prev.c: New file.
58531         * lib/unistr/u16-prev.c: New file.
58532         * lib/unistr/u32-prev.c: New file.
58533
58534         * modules/unistr/u8-set: New file.
58535         * modules/unistr/u16-set: New file.
58536         * modules/unistr/u32-set: New file.
58537         * lib/unistr/u8-set.c: New file.
58538         * lib/unistr/u16-set.c: New file.
58539         * lib/unistr/u32-set.c: New file.
58540         * lib/unistr/u-set.h: New file.
58541
58542         * modules/unistr/u8-startswith: New file.
58543         * modules/unistr/u16-startswith: New file.
58544         * modules/unistr/u32-startswith: New file.
58545         * lib/unistr/u8-startswith.c: New file.
58546         * lib/unistr/u16-startswith.c: New file.
58547         * lib/unistr/u32-startswith.c: New file.
58548         * lib/unistr/u-startswith.h: New file.
58549
58550         * modules/unistr/u8-stpcpy: New file.
58551         * modules/unistr/u16-stpcpy: New file.
58552         * modules/unistr/u32-stpcpy: New file.
58553         * lib/unistr/u8-stpcpy.c: New file.
58554         * lib/unistr/u16-stpcpy.c: New file.
58555         * lib/unistr/u32-stpcpy.c: New file.
58556         * lib/unistr/u-stpcpy.h: New file.
58557
58558         * modules/unistr/u8-stpncpy: New file.
58559         * modules/unistr/u16-stpncpy: New file.
58560         * modules/unistr/u32-stpncpy: New file.
58561         * lib/unistr/u8-stpncpy.c: New file.
58562         * lib/unistr/u16-stpncpy.c: New file.
58563         * lib/unistr/u32-stpncpy.c: New file.
58564         * lib/unistr/u-stpncpy.h: New file.
58565
58566         * modules/unistr/u8-strcat: New file.
58567         * modules/unistr/u16-strcat: New file.
58568         * modules/unistr/u32-strcat: New file.
58569         * lib/unistr/u8-strcat.c: New file.
58570         * lib/unistr/u16-strcat.c: New file.
58571         * lib/unistr/u32-strcat.c: New file.
58572         * lib/unistr/u-strcat.h: New file.
58573
58574         * modules/unistr/u8-strchr: New file.
58575         * modules/unistr/u16-strchr: New file.
58576         * modules/unistr/u32-strchr: New file.
58577         * lib/unistr/u8-strchr.c: New file.
58578         * lib/unistr/u16-strchr.c: New file.
58579         * lib/unistr/u32-strchr.c: New file.
58580
58581         * modules/unistr/u8-strcmp: New file.
58582         * modules/unistr/u16-strcmp: New file.
58583         * modules/unistr/u32-strcmp: New file.
58584         * lib/unistr/u8-strcmp.c: New file.
58585         * lib/unistr/u16-strcmp.c: New file.
58586         * lib/unistr/u32-strcmp.c: New file.
58587
58588         * modules/unistr/u8-strcpy: New file.
58589         * modules/unistr/u16-strcpy: New file.
58590         * modules/unistr/u32-strcpy: New file.
58591         * lib/unistr/u8-strcpy.c: New file.
58592         * lib/unistr/u16-strcpy.c: New file.
58593         * lib/unistr/u32-strcpy.c: New file.
58594         * lib/unistr/u-strcpy.h: New file.
58595
58596         * modules/unistr/u8-strcspn: New file.
58597         * modules/unistr/u16-strcspn: New file.
58598         * modules/unistr/u32-strcspn: New file.
58599         * lib/unistr/u8-strcspn.c: New file.
58600         * lib/unistr/u16-strcspn.c: New file.
58601         * lib/unistr/u32-strcspn.c: New file.
58602         * lib/unistr/u-strcspn.h: New file.
58603
58604         * modules/unistr/u8-strdup: New file.
58605         * modules/unistr/u16-strdup: New file.
58606         * modules/unistr/u32-strdup: New file.
58607         * lib/unistr/u8-strdup.c: New file.
58608         * lib/unistr/u16-strdup.c: New file.
58609         * lib/unistr/u32-strdup.c: New file.
58610         * lib/unistr/u-strdup.h: New file.
58611
58612         * modules/unistr/u8-strlen: New file.
58613         * modules/unistr/u16-strlen: New file.
58614         * modules/unistr/u32-strlen: New file.
58615         * lib/unistr/u8-strlen.c: New file.
58616         * lib/unistr/u16-strlen.c: New file.
58617         * lib/unistr/u32-strlen.c: New file.
58618         * lib/unistr/u-strlen.h: New file.
58619
58620         * modules/unistr/u8-strmblen: New file.
58621         * modules/unistr/u16-strmblen: New file.
58622         * modules/unistr/u32-strmblen: New file.
58623         * lib/unistr/u8-strmblen.c: New file.
58624         * lib/unistr/u16-strmblen.c: New file.
58625         * lib/unistr/u32-strmblen.c: New file.
58626
58627         * modules/unistr/u8-strmbtouc: New file.
58628         * modules/unistr/u16-strmbtouc: New file.
58629         * modules/unistr/u32-strmbtouc: New file.
58630         * lib/unistr/u8-strmbtouc.c: New file.
58631         * lib/unistr/u16-strmbtouc.c: New file.
58632         * lib/unistr/u32-strmbtouc.c: New file.
58633
58634         * modules/unistr/u8-strncat: New file.
58635         * modules/unistr/u16-strncat: New file.
58636         * modules/unistr/u32-strncat: New file.
58637         * lib/unistr/u8-strncat.c: New file.
58638         * lib/unistr/u16-strncat.c: New file.
58639         * lib/unistr/u32-strncat.c: New file.
58640         * lib/unistr/u-strncat.h: New file.
58641
58642         * modules/unistr/u8-strncmp: New file.
58643         * modules/unistr/u16-strncmp: New file.
58644         * modules/unistr/u32-strncmp: New file.
58645         * lib/unistr/u8-strncmp.c: New file.
58646         * lib/unistr/u16-strncmp.c: New file.
58647         * lib/unistr/u32-strncmp.c: New file.
58648
58649         * modules/unistr/u8-strncpy: New file.
58650         * modules/unistr/u16-strncpy: New file.
58651         * modules/unistr/u32-strncpy: New file.
58652         * lib/unistr/u8-strncpy.c: New file.
58653         * lib/unistr/u16-strncpy.c: New file.
58654         * lib/unistr/u32-strncpy.c: New file.
58655         * lib/unistr/u-strncpy.h: New file.
58656
58657         * modules/unistr/u8-strnlen: New file.
58658         * modules/unistr/u16-strnlen: New file.
58659         * modules/unistr/u32-strnlen: New file.
58660         * lib/unistr/u8-strnlen.c: New file.
58661         * lib/unistr/u16-strnlen.c: New file.
58662         * lib/unistr/u32-strnlen.c: New file.
58663         * lib/unistr/u-strnlen.h: New file.
58664
58665         * modules/unistr/u8-strpbrk: New file.
58666         * modules/unistr/u16-strpbrk: New file.
58667         * modules/unistr/u32-strpbrk: New file.
58668         * lib/unistr/u8-strpbrk.c: New file.
58669         * lib/unistr/u16-strpbrk.c: New file.
58670         * lib/unistr/u32-strpbrk.c: New file.
58671         * lib/unistr/u-strpbrk.h: New file.
58672
58673         * modules/unistr/u8-strrchr: New file.
58674         * modules/unistr/u16-strrchr: New file.
58675         * modules/unistr/u32-strrchr: New file.
58676         * lib/unistr/u8-strrchr.c: New file.
58677         * lib/unistr/u16-strrchr.c: New file.
58678         * lib/unistr/u32-strrchr.c: New file.
58679
58680         * modules/unistr/u8-strspn: New file.
58681         * modules/unistr/u16-strspn: New file.
58682         * modules/unistr/u32-strspn: New file.
58683         * lib/unistr/u8-strspn.c: New file.
58684         * lib/unistr/u16-strspn.c: New file.
58685         * lib/unistr/u32-strspn.c: New file.
58686         * lib/unistr/u-strspn.h: New file.
58687
58688         * modules/unistr/u8-strstr: New file.
58689         * modules/unistr/u16-strstr: New file.
58690         * modules/unistr/u32-strstr: New file.
58691         * lib/unistr/u8-strstr.c: New file.
58692         * lib/unistr/u16-strstr.c: New file.
58693         * lib/unistr/u32-strstr.c: New file.
58694         * lib/unistr/u-strstr.h: New file.
58695
58696         * modules/unistr/u8-strtok: New file.
58697         * modules/unistr/u16-strtok: New file.
58698         * modules/unistr/u32-strtok: New file.
58699         * lib/unistr/u8-strtok.c: New file.
58700         * lib/unistr/u16-strtok.c: New file.
58701         * lib/unistr/u32-strtok.c: New file.
58702         * lib/unistr/u-strtok.h: New file.
58703
58704         * modules/unistr/u8-uctomb: New file.
58705         * modules/unistr/u16-uctomb: New file.
58706         * modules/unistr/u32-uctomb: New file.
58707         * lib/unistr/u8-uctomb.c: New file.
58708         * lib/unistr/u16-uctomb.c: New file.
58709         * lib/unistr/u32-uctomb.c: New file.
58710
58711         * MODULES.html.sh (Unicode string functions): Add the new modules.
58712
58713 2007-01-08  Bruno Haible  <bruno@clisp.org>
58714
58715         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
58716         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
58717         subdirectories.
58718
58719 2007-01-08  Karl Berry  <karl@gnu.org>
58720
58721         * doc/error.texi: mention that main() fns must set program_name
58722         when progname is used.
58723
58724 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
58725
58726         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
58727         WCTYPE_H is empty, for the benefit of builds from non-distclean
58728         directories.  Problem reported by Eric Blake in
58729         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
58730
58731 2007-01-08  Bruno Haible  <bruno@clisp.org>
58732
58733         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
58734         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
58735         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
58736         PROVIDE_CANONICALIZE_FILENAME_MODE.
58737         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
58738
58739 2007-01-08  Bruno Haible  <bruno@clisp.org>
58740
58741         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
58742         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
58743         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
58744         * lib/fts.c: Likewise.
58745         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
58746
58747 2006-12-25  Bruno Haible  <bruno@clisp.org>
58748
58749         * modules/utf8-ucs4-safe: New file.
58750         * lib/utf8-ucs4-safe.h: New file.
58751         * lib/unistr/utf8-ucs4-safe.c: New file.
58752
58753         * modules/utf16-ucs4-safe: New file.
58754         * lib/utf16-ucs4-safe.h: New file.
58755         * lib/unistr/utf16-ucs4-safe.c: New file.
58756
58757         * MODULES.html.sh (Unicode string functions): Add the new modules.
58758
58759 2007-01-08  Bruno Haible  <bruno@clisp.org>
58760
58761         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
58762         (Depends-on): Add unitypes.
58763         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
58764         (u8_mbtouc_aux): Move out to separate file.
58765         (u8_mbtouc): Use ucs4_t, uint8_t types.
58766         * lib/unistr/utf8-ucs4.c: New file.
58767
58768         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
58769         (Depends-on): Add unitypes.
58770         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
58771         (u16_mbtouc_aux): Move out to separate file.
58772         (u16_mbtouc): Use ucs4_t, uint16_t types.
58773         * lib/unistr/utf16-ucs4.c: New file.
58774
58775         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
58776         (Depends-on): Add unitypes.
58777         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
58778         (u8_uctomb_aux): Move out to separate file.
58779         (u8_uctomb): Use ucs4_t, uint8_t types.
58780         * lib/unistr/ucs4-utf8.c: New file.
58781
58782         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
58783         (Depends-on): Add unitypes.
58784         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
58785         (u16_uctomb_aux): Move out to separate file.
58786         (u16_uctomb): Use ucs4_t, uint16_t types.
58787         * lib/unistr/ucs4-utf16.c: New file.
58788
58789 2006-12-25  Bruno Haible  <bruno@clisp.org>
58790
58791         * modules/unitypes: New file.
58792         * lib/unitypes.h: New file.
58793         * MODULES.html.sh (func_all_modules): New section "Unicode string
58794         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
58795         this section. Add unitypes.
58796
58797 2007-01-08  Bruno Haible  <bruno@clisp.org>
58798
58799         Avoid variable names that conflict with those from libtool.
58800         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
58801         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
58802         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
58803         library_names_spec to acl_library_names_spec, hardcode_* to
58804         acl_hardcode_*.
58805         Reported by Ralf Wildenhues.
58806
58807 2007-01-08  Bruno Haible  <bruno@clisp.org>
58808
58809         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
58810         definition.
58811         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
58812         definition.
58813         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
58814         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
58815         definition.
58816         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
58817         definition.
58818         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
58819         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
58820         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
58821         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
58822         definition.
58823         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
58824         definition.
58825         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
58826         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
58827         GC_USE_<algorithm>.
58828         * lib/gc-libgcrypt.c: Likewise.
58829         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
58830         * modules/gc-arctwo (configure.ac): Likewise.
58831         * modules/gc-des (configure.ac): Likewise.
58832         * modules/gc-hmac-md5 (configure.ac): Likewise.
58833         * modules/gc-hmac-sha1 (configure.ac): Likewise.
58834         * modules/gc-md2 (configure.ac): Likewise.
58835         * modules/gc-md4 (configure.ac): Likewise.
58836         * modules/gc-md5 (configure.ac): Likewise.
58837         * modules/gc-random (configure.ac): Likewise.
58838         * modules/gc-rijndael (configure.ac): Likewise.
58839         * modules/gc-sha1 (configure.ac): Likewise.
58840
58841 2007-01-08  Bruno Haible  <bruno@clisp.org>
58842
58843         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
58844         macro definition.
58845         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
58846         definition.
58847         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
58848         definition.
58849         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
58850         * modules/fcntl-safer (configure.ac): Likewise.
58851         * modules/fopen-safer (configure.ac): Likewise.
58852         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
58853         GNULIB_FWRITEERROR macro definition.
58854
58855 2007-01-08  Bruno Haible  <bruno@clisp.org>
58856
58857         * m4/gnulib-common.m4: New file.
58858         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
58859         (func_get_filelist): Add m4/gnulib-common.m4.
58860
58861 2007-01-08  Bruno Haible  <bruno@clisp.org>
58862
58863         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
58864         command.
58865
58866 2007-01-08  Jim Meyering  <jim@meyering.net>
58867
58868         Use a more robust test for a "can't happen" condition.
58869         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
58870         narrowed the st_size value.  Presuming the "can't happen" condition
58871         is true, that narrowing could conceivably convert an invalid st_size
58872         value into a valid one.  Instead, use a change based on Matthew
58873         Woehlke's original patch.
58874
58875         Slight readability improvement: use an assert-like macro
58876         in place of literal "abort ()" uses.
58877         * lib/fts.c (fts_assert): Define.
58878         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
58879         Use this macro instead of a bare 'abort'.
58880
58881 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
58882
58883         Don't worry about using IRIX 5.3's wctype.h broken definitions;
58884         simply work around them.
58885         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
58886         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
58887         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
58888         declaring.
58889         Don't bother to define as macros, since the standard doesn't require it.
58890         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
58891         longer worry about IRIX 5.3.
58892         (HAVE_WCTYPE_CTMP_BUG): Remove.
58893
58894 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58895
58896         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
58897         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
58898         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58899         Problems reported by Georg Schwarz for IRIX 5.3.
58900
58901         * gnulib-tool (autoconf_minversion): Take the maximum version number
58902         found, not the minimum.  Problem reported by James Youngman.
58903
58904 2007-01-03  Karl Berry  <karl@gnu.org>
58905
58906         * doc/error.texi: new file, explaining interaction with progname.
58907         * doc/gnulib.texi: include it.  Update copyright.
58908
58909 2007-01-03  Simon Josefsson  <simon@josefsson.org>
58910
58911         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
58912         AC_CANONICAL_HOST, to improve autobuild outputs.
58913
58914 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
58915             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
58916
58917         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
58918         sockets, server sockets, and other file descriptors.  Count errors
58919         to compute the return value.  Reorder the code a bit to be easier
58920         to follow.  Don't set event bits that were not requested (except
58921         POLLERR and POLLHUP).
58922
58923 2007-01-01  Bruno Haible  <bruno@clisp.org>
58924
58925         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
58926
58927 2007-01-03  Jim Meyering  <jim@meyering.net>
58928
58929         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
58930
58931 2007-01-02  Bruno Haible  <bruno@clisp.org>
58932
58933         * modules/settime (Include): Require timespec.h.
58934         * modules/nanosleep (Include): Likewise.
58935
58936 2007-01-01  Bruno Haible  <bruno@clisp.org>
58937
58938         * gnulib-tool (func_emit_copyright_notice): Bump year.
58939         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
58940
58941 2007-01-01  Bruno Haible  <bruno@clisp.org>
58942
58943         Improve support for OpenBSD.
58944         * build-aux/config.rpath (libname_spec): Export.
58945         (library_names_spec): New variable. Export.
58946         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
58947         library_names_spec from the config.rpath output. Locate shared library
58948         through the name pattern in library_names_spec.
58949
58950 2007-01-01  Eric Blake  <ebb9@byu.net>
58951
58952         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
58953
58954 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
58955
58956         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
58957         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
58958         assume the C locale, and avoid an "eval" that could cause trouble.
58959         Problem with SORT reported by Bob Proulx.
58960
58961         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
58962         Define.  Trivial patch from Henning Nielsen Lund, originally
58963         sent to bug-grep@gnu.org today.
58964
58965 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58966
58967         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
58968         struct stat.  Problem reported by Henning Nielsen Lund.
58969         * lib/acl.c: Include acl.h first, to check interface.  Don't
58970         bother to include sys/types.h and sys/stat.h again.
58971
58972 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58973
58974         Import the following change from libc; problem reported by
58975         Sven Verdoolaege.
58976
58977         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
58978
58979         [BZ #1373]
58980         * lib/argp.h: Remove __NTH for __argp_usage inline function.
58981
58982 2006-12-28  Jim Meyering  <jim@meyering.net>
58983
58984         * build-aux/announce-gen: Do not assume that the package
58985         builds any of tar.gz, tar.bz2, and .xdelta files.
58986         Suggestion from Simon Josefsson.
58987
58988 2006-12-28  Simon Josefsson  <simon@josefsson.org>
58989
58990         * modules/announce-gen: New file.
58991
58992 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58993
58994         * lib/mbchar.h: Just include <wctype.h>; the wctype module
58995         handles its gotchas now.
58996         * lib/mbswidth.c: Likewise.
58997         * lib/wcwidth.h: Likewise.
58998         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
58999         and iswcntrl; the wctype module does this stuff now.
59000         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59001         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59002         * modules/mbchar (Depends-on): Add wctype.
59003         * modules/mbswidth (Depends-on): Likewise.
59004         * modules/wcwidth (Depends-on): Likewise.
59005
59006 2006-12-27  Eric Blake  <ebb9@byu.net>
59007
59008         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
59009         module uses more than what <wctype.h> is required to provide.
59010
59011 2006-12-26  Eric Blake  <ebb9@byu.net>
59012
59013         * gnulib-tool (sed_extract_prog): Avoid space-tab.
59014
59015 2006-12-26  Eric Blake  <ebb9@byu.net>
59016
59017         * modules/absolute-header: New module.
59018         * modules/fcntl (Depends-on): Depend on it.
59019         * modules/inttypes (Depends-on): Likewise.
59020         * modules/stdint (Depends-on): Likewise.
59021         * modules/sys_stat (Depends-on): Likewise.
59022         * modules/wctype (Depends-on): Likewise.
59023         * MODULES.html.sh (Support for building libraries and
59024         executables): Document it.
59025
59026 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59027
59028         * gnulib-tool (SED): Remove, undoing previous change.
59029         The problem was that it broke coreutils on Solaris, because
59030         "sed --posix" leaked into a makefile.
59031         (sed): New alias, if 'alias' and GNU sed.
59032
59033 2006-12-24  Jim Meyering  <jim@meyering.net>
59034
59035         Work around an fchownat bug in glibc-2.4:
59036         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
59037         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
59038         in spite of the -P option.
59039         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
59040         New macros.
59041         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
59042         * modules/openat (Files): Add lib/fchownat.c.
59043         * lib/openat.c (fchownat): Don't define here.  Move to...
59044         * lib/fchownat.c: ...this new file.
59045
59046 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59047
59048         Fix bug reported by Bruno Haible in
59049         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
59050         where quotearg.c didn't compile on Mac OS X 10.2 because it
59051         lacks <wchar.h> and wint_t.
59052         * lib/wctype_.h (__wctype_wint_t): New type.
59053         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
59054         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
59055         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
59056         Arg is now of type __wctype_wint_t, not wint_t.
59057         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
59058         substitute HAVE_WINT_T.
59059         * modules/wctype (Files): Add m4/wint_t.m4.
59060         (wctype.h): Substitute HAVE_WINT_T.
59061
59062 2006-12-23  Bruno Haible  <bruno@clisp.org>
59063
59064         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
59065
59066 2006-12-23  Bruno Haible  <bruno@clisp.org>
59067
59068         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
59069         S_ISLNK.
59070         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
59071         mingw.
59072
59073 2006-12-22  Bruno Haible  <bruno@clisp.org>
59074
59075         * lib/copy-file.c: Include acl.h.
59076         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
59077         Close the file descriptors only after being done with copy_acl.
59078         * modules/copy-file (Depends-on): Add acl.
59079
59080 2006-12-22  Bruno Haible  <bruno@clisp.org>
59081
59082         * gnulib-tool (SED): New variable.
59083         Use $SED instead of sed everywhere.
59084
59085 2006-12-22  Bruno Haible  <bruno@clisp.org>
59086
59087         * modules/no-c++: New file.
59088         * m4/no-c++.m4: New file.
59089         * MODULES.html.sh (Support for building libraries and executables):
59090         Add no-c++.
59091
59092 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
59093
59094         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59095         Include <limits.h>, and use its INT_MAX to rewrite the
59096         j loop so that it does not overflow 'int'.  Problem reported by
59097         Ralf Wildenhues in
59098         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
59099         Play it safe by shifting left by 1 rather than multiplying by 2,
59100         as GCC is less likely to optimize this away when the value
59101         is signed (when it assumes overflow leads to undefined behavior).
59102         Also, don't assume time_t uses two's complement.
59103
59104 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
59105
59106         * MODULES.html.sh: New module wctype.
59107         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
59108         * lib/fnmatch.c: Don't bother to include <wchar.h> before
59109         <wctype.h>, since the new wctype module should fix this.
59110         * lib/quotearg.c: Include <wctype.h> unconditionally, since
59111         the wctype module should arrange for it.
59112         * lib/regex_internal.h: Likewise.
59113         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
59114         since the wctype module should handle this now.
59115         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
59116         * modules/fnmatch (Depends-on): Add wctype.
59117         * modules/quotearg (Depends-on): Likewise.
59118         * modules/regex (Depends-on): Likewise.
59119
59120 2006-12-19  Bruno Haible  <bruno@clisp.org>
59121
59122         * lib/strdup.h [C++]: Wrap definitions in extern "C".
59123         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
59124
59125 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59126
59127         * modules/savewd (Depends-on): Fix dependency on fcntl.
59128
59129 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59130
59131         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
59132         conforms to C99, rather than relying on the user's environment
59133         setting of STDINT_H.
59134
59135 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59136         and Eric Blake  <ebb9@byu.net>
59137
59138         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
59139         This is more consistent with the other defines here.
59140         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
59141         Port to z/OS.  Problem reported by Paul Gilmartin.
59142         Change local vars to use gl_ prefix rather than ac_.
59143         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
59144         with other defines.
59145         * modules/double-slash-root: New module.
59146         * modules/dirname (Files): Remove m4/double-slash-root.m4.
59147         (Depends-on): Add double-slash-root.
59148         * MODULES.html.sh (File system functions): Mention new module.
59149
59150 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
59151
59152         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
59153         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
59154         This is for the benefit of gzip, which doesn't do i18n.
59155
59156 2006-12-12  Jim Meyering  <jim@meyering.net>
59157
59158         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
59159         Reported by Andreas Schwab <schwab@suse.de>.
59160
59161 2006-12-12  Bruno Haible  <bruno@clisp.org>
59162
59163         Merge these changes.
59164         2006-09-05  Bruno Haible  <bruno@clisp.org>
59165         * lib/iconvme.c (iconv_string): No need to save and restore errno when
59166         iconv_alloc succeeded.
59167         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
59168         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
59169         test for " && dest " at the end - dest is always != NULL there. Call
59170         iconv with 4xNULL arguments initially, to reset the state. Call iconv
59171         with 2xNULL arguments, also to flush the state storage. Handle the
59172         IRIX iconv behaviour. Realloc the final result, to throw away unused
59173         memory.
59174
59175 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
59176
59177         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
59178         and fchmodat unconditionally, since glibc 2.4 has them.
59179         Problem reported by Arkadiusz Miskiewicz.
59180
59181 2006-12-10  Bruno Haible  <bruno@clisp.org>
59182
59183         * gnulib-tool (func_import): Show the include files only for those
59184         modules that are copied and specified.
59185         Reported by Karl Berry.
59186
59187 2006-12-08  Jim Meyering  <jim@meyering.net>
59188
59189         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
59190         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
59191
59192         * build-aux/announce-gen: Add two new options, both optional:
59193         --bootstrap-tools=TOOL_LIST
59194               a comma-separated list of tools, e.g.,
59195               autoconf,automake,bison,gnulib
59196         --gnulib-snapshot-date=DATE
59197               if gnulib is in the bootstrap tool list,
59198               then report this as the snapshot date.
59199               If not specified, use the current date/time.
59200               If you specify a date here, be sure it's UTC.
59201
59202 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59203
59204         * tests/test-argp-2.sh: Fix test to match actual output.
59205         (func_compare): Fix sed script to be portable.
59206
59207 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
59208
59209         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
59210         workaround for this case.  It is not autoconfigured now; offhand
59211         it's hard to see how to autoconfigure it.
59212
59213 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59214
59215         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
59216         a directory that is about to be chowned.  Such a directory's
59217         initial file permissions should permit the owner only and this
59218         should not be changed until after the chown, since the group and
59219         other bits would be incorrect if they granted permission before
59220         the chown.
59221
59222         Fix porting problem for iswctype reported by Georg Schwarz in:
59223         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
59224         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
59225         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
59226         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
59227         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59228
59229 2006-12-03  Jim Meyering  <jim@meyering.net>
59230
59231         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
59232         p->fts_statp may not yet be defined.
59233         (fts_read): Instead, set it in the caller, once p->fts_statp is
59234         sure to be defined, and corresponds to a top-level directory.
59235         This bug made du -x fail.  Here's the coreutils test case:
59236         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
59237         Reported by Mike Frysinger.
59238
59239 2006-12-01  Jim Meyering  <jim@meyering.net>
59240
59241         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
59242         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
59243         Reported by Simon Josefsson.
59244
59245 2006-11-30  Jim Meyering  <jim@meyering.net>
59246
59247         * m4/warning.m4: Use the all-permissive copyright notice
59248         recommended by RMS (rather than LGPL).
59249         * m4/vararrays.m4: Likewise.
59250         * m4/flexmember.m4: Likewise.
59251
59252 2006-11-29  Bruno Haible  <bruno@clisp.org>
59253
59254         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59255         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
59256         using +=.
59257         Reported by Simon Josefsson <simon@josefsson.org>.
59258
59259 2006-11-28  James Youngman <jay@gnu.org>
59260
59261         * README: Advise users that they might find the bug-gnulib@gnu.org
59262         and autotools-announce@gnu.org mailing lists useful.
59263
59264 2006-11-28  Bruno Haible  <bruno@clisp.org>
59265
59266         * m4/ptrdiff_max.m4: Remove file.
59267
59268 2006-11-21  Bruno Haible  <bruno@clisp.org>
59269
59270         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
59271         _AC_COMPUTE_INT.
59272         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59273         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
59274         _AC_COMPUTE_INT.
59275         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59276         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
59277         _AC_COMPUTE_INT.
59278         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59279
59280 2006-11-28  Jim Meyering  <jim@meyering.net>
59281
59282         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
59283         warning from "gcc -Wshadow" about shadowing the builtin.
59284
59285 2006-11-27  Bruno Haible  <bruno@clisp.org>
59286
59287         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
59288         _AC_COMPUTE_INT.
59289         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
59290
59291 2006-11-27  Bruno Haible  <bruno@clisp.org>
59292             Paul Eggert  <eggert@cs.ucla.edu>
59293
59294         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
59295
59296 2006-11-26  Bruno Haible  <bruno@clisp.org>
59297
59298         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59299         noinst_LTLIBRARIES.
59300
59301 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
59302             Bruno Haible  <bruno@clisp.org>
59303
59304         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
59305         if compiling with "gcc -ansi".
59306
59307 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
59308
59309         Fix some incompatibilities with gcc -ansi -pedantic.
59310         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
59311         if compiling pedantically with GCC, unless it's C99 or later.
59312         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
59313         it mishandles gcc -ansi -pedantic as well.
59314         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
59315         if gcc -pedantic.
59316         * lib/regexec.c (check_node_accept_bytes): Don't use auto
59317         initializers for struct if -pedantic, unless it's C99 or later.
59318
59319 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
59320
59321         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
59322         Don't close an fd more than once. Identical atimes indicate
59323         success, not failure.
59324
59325 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
59326
59327         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
59328
59329 2006-11-23  Jim Meyering  <jim@meyering.net>
59330
59331         * build-aux/announce-gen: New file.  From coreutils.
59332
59333 2006-11-22  Jim Meyering  <jim@meyering.net>
59334
59335         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
59336         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
59337         (fts_read): Use a temporary to narrow the overused st_size member
59338         before using it in a switch statement.  Reported by Matthew Woehlke.
59339
59340         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
59341         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
59342
59343 2006-11-20  Bruno Haible  <bruno@clisp.org>
59344
59345         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
59346         changequote instead of pairs of brackets.
59347         Reported by Andreas Schwab <schwab@suse.de>.
59348
59349 2006-11-21  Jim Meyering  <jim@meyering.net>
59350
59351         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
59352         so as to remain compatible with older compilers.
59353         Patch from Michael Deutschmann.
59354
59355 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
59356
59357         * MODULES.html.sh (File system functions): Add openat.
59358
59359         * lib/openat.h (rpl_fstatat): New macro, if
59360         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
59361         (fstatat): Define to rpl_fstatat under the same conditions,
59362         unless COMPILING_FSTATAT.
59363         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
59364         seems to have the bug.
59365         * lib/fstatat.c: New file.
59366         * modules/openat (Files): Add it.
59367
59368 2006-11-20  Bruno Haible  <bruno@clisp.org>
59369
59370         * Makefile: New file.
59371
59372 2006-11-20  Jim Meyering  <jim@meyering.net>
59373
59374         The beginnings of syntax-related checks for gnulib.
59375         * lib/Makefile: New file.
59376         * lib/t-idcache: New script.  Ensure that the two halves of
59377         idcache.c stay in sync.
59378
59379         * lib/idcache.c: Adjust comments in user- and group- portions to
59380         be more accurate, and to be consistent with one another.
59381
59382 2006-11-20  Jim Meyering  <jim@meyering.net>
59383
59384         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
59385         continue using the flexible array member (thus, this module performs
59386         half as many malloc calls), with the addition that...
59387         (getgroup, getuser): Consistently record a non-match via an empty
59388         "name" string, and map an empty string match to a NULL return value.
59389         * modules/idcache (Depends-on): Re-add flexmember.
59390
59391         * lib/idcache.c (getuser): Remove all uses of the register keyword.
59392         (getuidbyname, getgroup, getgidbyname): Likewise.
59393
59394         Use cleaner syntax: NULL rather than 0.
59395         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
59396
59397 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
59398
59399         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
59400         It mishandled the case where the group was missing.
59401         Problem reported by Greg Schafer.
59402         * modules/idcache: Likewise.
59403
59404 2006-11-18  Jim Meyering  <jim@meyering.net>
59405
59406         * check-module (%exempt_header): Add exception for some
59407         conditionally-included headers.
59408
59409         * modules/i-ring (Depends-on): Add verify.
59410         (License): Change to LGPL.
59411
59412 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59413
59414         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
59415         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
59416         and inttostr.h.  Use snprintf rather than uinttostr, so that
59417         LGPLed code doesn't depend on GPLed.
59418
59419 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59420
59421         * modules/inline (License): Change from GPL to LGPL.
59422
59423 2006-11-17  Jim Meyering  <jim@meyering.net>
59424
59425         * modules/d-type (License): Switch to LGPL.
59426
59427 2006-11-15  Bruno Haible  <bruno@clisp.org>
59428
59429         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
59430
59431 2006-11-15  Eric Blake  <ebb9@byu.net>
59432
59433         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
59434         the module dependency.
59435
59436 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59437             Bruno Haible  <bruno@clisp.org>
59438
59439         * gnulib-tool (func_create_testdir): Add license consistency check.
59440
59441 2006-11-15  Eric Blake  <ebb9@byu.net>
59442
59443         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
59444         random "(cached)" in configure output.
59445
59446 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59447
59448         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
59449         test for conforming inttypes.h is both announced and cached.
59450
59451         * MODULES.html.sh (seen_modules, seen_files): New variables.
59452         (func_module): Rewrite to use a few less gnulib-tool and sed
59453         invocations.  Avoid a couple of quadratic algorithms for ...
59454         (missed_modules, missed_files): ... these, with ...
59455         (func_append, func_tmpdir): ... these new functions, from
59456         gnulib-tool.  Analogously, install traps for cleanup.
59457
59458         * tests/test-gc.c (main): Remove unused variables.
59459         * tests/test-read-file.c: Include stdlib.h, for 'free'.
59460
59461 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
59462
59463         * modules/inttostr (License): Change to LGPL.
59464
59465 2006-11-14  Eric Blake  <ebb9@byu.net>
59466
59467         * modules/tempname (License): Change to LGPL.
59468
59469 2006-11-14  Eric Blake  <ebb9@byu.net>
59470
59471         * doc/functions.texi (Function Portability): *printf functions on
59472         Cygwin now understand all POSIX size specifiers.
59473
59474 2006-11-14  Bruno Haible  <bruno@clisp.org>
59475
59476         * modules/c-ctype (License): Change to LGPL.
59477
59478 2006-11-12  Bruno Haible  <bruno@clisp.org>
59479
59480         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
59481         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
59482         for GNOME libraries, for which the include files are installed in
59483         subdirectories of $prefix/include.
59484
59485 2006-11-12  Bruno Haible  <bruno@clisp.org>
59486
59487         * m4/lib-link.m4: Require at least autoconf-2.54.
59488         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
59489         name to underscores for the --with option.
59490
59491 2006-11-13  Bruno Haible  <bruno@clisp.org>
59492
59493         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
59494         the tests directory.
59495         Reported by Ralf Wildenhues.
59496
59497 2006-11-13  Bruno Haible  <bruno@clisp.org>
59498
59499         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
59500         (func_emit_initmacro_end): Undo the override here.
59501         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
59502         Works around the famous automake error in coreutils.
59503
59504 2006-11-13  Eric Blake  <ebb9@byu.net>
59505
59506         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
59507         element, not its node.
59508
59509 2006-11-12  Bruno Haible  <bruno@clisp.org>
59510
59511         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
59512         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
59513
59514 2006-11-12  Bruno Haible  <bruno@clisp.org>
59515
59516         * gnulib-tool: New option --local-symlink.
59517         (func_usage): Document it.
59518         (lsymbolic): New variable.
59519         (func_import, func_create_testdir): If --symlink was not specified,
59520         test whether --local-symlink was specified and the file comes from
59521         the local_gnulib_dir.
59522
59523 2006-11-12  Bruno Haible  <bruno@clisp.org>
59524
59525         * gnulib-tool (func_ln): New function.
59526         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
59527
59528 2006-11-12  Bruno Haible  <bruno@clisp.org>
59529
59530         Finish support for source files in subdirectories.
59531         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
59532         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
59533         AUTOMAKE_OPTIONS.
59534         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
59535
59536 2006-11-12  Bruno Haible  <bruno@clisp.org>
59537
59538         * gnulib-tool (func_get_automake_snippet): Synthesize also an
59539         EXTRA_lib_SOURCES augmentation.
59540         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
59541
59542 2006-11-12  Jim Meyering  <jim@meyering.net>
59543
59544         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
59545         file descriptors.  This also averts a failure on systems with
59546         native openat support when a traversed directory lacks "x" access.
59547         * lib/fts_.h: Include "i-ring.h"
59548         (struct FTS) [fts_fd_ring]: New member.
59549         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
59550         (FCHDIR): Add parentheses.
59551         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
59552         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
59553         When descending, rather than simply closing the previous
59554         fts_cwd_fd value, push that file descriptor onto the ring.
59555         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
59556         (fts_open): Initialize the new fd_ring member.
59557         (fts_close): Clear the ring.
59558         (fts_safe_changedir): When possible, use our new fd_ring to skip
59559         the diropen and fstat and dev/ino comparison that would normally
59560         accompany a virtual `chdir ("..")'.
59561
59562         * modules/fts (Depends-on): Add i-ring.
59563         * modules/i-ring: New module.
59564         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
59565         * m4/i-ring.m4: New file.
59566
59567 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59568
59569         * gnulib-tool (func_create_testdir): Fix replacement of
59570         `build-aux' in configure.ac.  Run autotools in gltests
59571         subdirectory.
59572         (func_create_testdir, func_create_megatestdir, test): There is
59573         no need for '--force' in most autotool invocations in a new
59574         tree.  Actually fail the whole test if any of the tools, or the
59575         configure or make stages fail.
59576
59577         Sync from Automake.
59578         * build-aux/gnupload: Revert last change.  Add pointer to upload
59579         instructions of the GNU Maintenance Instructions.
59580         Suggestion by Karl Berry.
59581
59582 2006-11-10  Jim Meyering  <jim@meyering.net>
59583
59584         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
59585
59586 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59587
59588         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
59589         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
59590         (bind_textdomain_codeset) [! ENABLE_NLS]:
59591         Evaluate all the arguments.  That way, callers get compatible behavior
59592         if the arguments have side effects.  Also, it avoids some GCC
59593         diagnostics in some cases; Joel E. Denny reported problems when Bison
59594         was configured with --enable-gcc-warnigs.
59595
59596 2006-11-10  Jim Meyering  <jim@meyering.net>
59597
59598         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
59599         relevant options in CFLAGS (like -O, -fno-inline) are taken into
59600         account.
59601
59602 2006-11-10  Jim Meyering  <jim@meyering.net>
59603
59604         * modules/inline: New file/module.
59605         * modules/xalloc (Files): Remove m4/inline.m4.
59606         (Depends-on): Add inline, instead.
59607         * modules/oset: Likewise.
59608         * modules/list: Likewise.
59609
59610 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59611
59612         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
59613         Problem reported by Matthew Woehlke.
59614
59615 2006-11-09  Bruno Haible  <bruno@clisp.org>
59616
59617         * lib/tempname.c (gen_tempname): Remove variant that invokes
59618         __gen_tempname.
59619         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
59620         __gen_tempname.
59621
59622 2006-11-08  Bruno Haible  <bruno@clisp.org>
59623
59624         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
59625         to 'yes' instead of 'cross-compiling'.
59626
59627 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
59628
59629         * lib/quotearg.h (quotearg_free): New decl.
59630         * lib/quotearg.c (quotearg_free): New function.
59631         (slot0, nslots, slotvec0, slotvec):
59632         Now file-scope so that quotearg_free can get at them.
59633
59634 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59635
59636         Sync from Automake.
59637         * build-aux/gnupload: Add missing 'gnu' to example URL.
59638         Report by Karl Berry.
59639
59640 2006-11-08  Bruno Haible  <bruno@clisp.org>
59641
59642         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
59643         Suggested by Paul Eggert.
59644
59645 2006-11-08  Jim Meyering  <jim@meyering.net>
59646
59647         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
59648         It's already included if !_LIBC.
59649         (fts_safe_changedir): Add a comment.
59650
59651 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59652
59653         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
59654         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
59655         Matthew Woehlke.
59656
59657         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
59658         definitions up, to avoid colliding with change below.
59659         (static_inline) [HAVE_INLINE]: New macro.
59660         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
59661         Provide extern decls when !HAVE_INLINE.  Do not define unless
59662         static_inline is defined, either by us or by xmalloc.c.  Use
59663         static_inline rather than static inline.
59664         (XCALLOC): Optimize sizeof(T) = 1 case.
59665         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
59666
59667 2006-11-07  Bruno Haible  <bruno@clisp.org>
59668
59669         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
59670         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
59671         AC_C_INLINE.
59672         * modules/xalloc (Files): Add m4/inline.m4.
59673
59674 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59675
59676         * README: Fix typo.
59677         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
59678         (Miscellanous Notes): ...from this.
59679
59680 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59681
59682         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
59683         Mention that offsetof should be used instead of sizeof.
59684         From Bruno Haible.
59685
59686 2006-11-07  Bruno Haible  <bruno@clisp.org>
59687
59688         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
59689
59690 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
59691
59692         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
59693         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
59694         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
59695         (gl_tree_add_before, gl_tree_add_after):
59696         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
59697         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
59698         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
59699         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
59700         (gl_linked_add_after, gl_linked_add_at): Likewise.
59701         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
59702         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
59703         (gl_tree_add_before, gl_tree_add_after): Likewise.
59704         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
59705         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
59706         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
59707
59708 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59709
59710         * lib/gl_oset.h: Use C comment style, not C++ comment style.
59711
59712 2006-11-06  Bruno Haible  <bruno@clisp.org>
59713
59714         * m4/inline.m4: New file.
59715         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
59716         * modules/list (Files): Add m4/inline.m4.
59717         * modules/oset (Files): Likewise.
59718
59719 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
59720
59721         * lib/idcache.c: Include <stddef.h>, for offsetof.
59722         (struct userid.name): Change from char * to a flexible array member.
59723         All uses changed.
59724         * modules/idcache (Depends-on): Add flexmember.
59725
59726         * MODULES.html.sh (Core language properties): New module flexmember.
59727         * modules/flexmember, m4/flexmember.m4: New files.
59728
59729         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
59730         inline functions that are identical with the old xnmalloc_inline,
59731         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
59732         that we can avoid some unnecessary integer multiplications and
59733         divisions in the common case where the element size is known at
59734         compile time.
59735         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
59736         needed.
59737         (xnboundedmalloc): Remove.
59738         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
59739         arguments, for consistency with rest of this header.
59740         (xcharalloc): Rewrite using XNMALLOC.
59741         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
59742         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
59743         versions have been moved to lib/xalloc.h and renamed to be the
59744         non-*_inline versions.
59745         (xmalloc, xrealloc): Implement without reference to the xnmalloc
59746         and xnrealloc functions, since those functions are now inline and
59747         now call us.
59748         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
59749         renaming described above.
59750         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
59751         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
59752         captures the dependency in AC_C_INLINE.
59753
59754         New module canonicalize-lgpl, proposed by Charles Wilson in
59755         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
59756         with a few small changes afterwards.
59757         * MODULES.html.sh (File system functions): New module
59758         canonicalize-lgpl.
59759         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
59760         and canonicalize_file_name.
59761         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
59762         * modules/canonicalize-lgpl: New files.
59763
59764 2006-11-05  Bruno Haible  <bruno@clisp.org>
59765
59766         * gnulib-tool (func_import, func_create_testdir): Create directories
59767         also for files in subdirectories of lib/.
59768
59769 2006-11-05  Bruno Haible  <bruno@clisp.org>
59770
59771         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
59772         ANSI C compliant.
59773
59774 2006-11-03  Bruno Haible  <bruno@clisp.org>
59775
59776         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
59777         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
59778         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
59779         (xnboundedmalloc): New inline function.
59780         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
59781         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
59782         xmalloc.
59783         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
59784         xmalloc.
59785         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
59786         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
59787         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
59788         xmalloc.
59789         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
59790         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
59791         xmalloc.
59792         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
59793         gl_tree_add_after): Use XMALLOC instead of xmalloc.
59794         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
59795         xmalloc.
59796         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
59797         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
59798         gl_tree_add_after): Use XMALLOC instead of xmalloc.
59799         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
59800         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
59801         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
59802         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
59803
59804 2006-11-03  Bruno Haible  <bruno@clisp.org>
59805
59806         * lib/c-ctype.h [C++]: Define functions without name mangling.
59807         * lib/fwriteerror.h [C++]: Likewise.
59808         * lib/gcd.h [C++]: Likewise.
59809         * lib/linebreak.h [C++]: Likewise.
59810
59811 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
59812
59813         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
59814         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
59815         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
59816         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59817         Check for functions and headers just once.
59818         Check for declaration of canonicalize_file_name.
59819         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
59820
59821 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59822
59823         * gnulib-tool (func_import): Fix typo in actioncmd.
59824
59825 2006-11-02  Bruno Haible  <bruno@clisp.org>
59826
59827         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
59828         newline sequence in the Makefile.am snippet as a space, like "make"
59829         does.
59830         Reported by Roger Persson <perrog@gmail.com>.
59831
59832 2006-11-01  Bruno Haible  <bruno@clisp.org>
59833
59834         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
59835         already declared in <string.h>.
59836         * lib/strcase.h (strncasecmp): Don't declare it if yes.
59837
59838 2006-11-01  Bruno Haible  <bruno@clisp.org>
59839
59840         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
59841         * lib/strcase.h: Include <string.h>.
59842         (strcasecmp): Define to rpl_strcasecmp here.
59843
59844 2006-11-01  Bruno Haible  <bruno@clisp.org>
59845
59846         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
59847
59848 2006-11-01  Eric Blake  <ebb9@byu.net>
59849
59850         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
59851
59852         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
59853
59854 2006-10-29  Bruno Haible  <bruno@clisp.org>
59855
59856         Make it compile in C++ mode.
59857         * lib/full-write.c (full_rw): Add a cast.
59858
59859 2006-11-01  Bruno Haible  <bruno@clisp.org>
59860
59861         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
59862         be POSIX compliant.
59863         Reported by Roger Persson <perrog@gmail.com>.
59864
59865 2006-11-01  Eric Blake  <ebb9@byu.net>
59866
59867         * lib/getopt_.h: Fix comments.
59868
59869 2006-10-31  Eric Blake  <ebb9@byu.net>
59870
59871         * modules/tmpdir (Depends-on): Add sys_stat.
59872         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
59873         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
59874         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
59875         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
59876         tempname.
59877
59878 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
59879
59880         Avoid some C++ diagnostics reported by Bruno Haible.
59881         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
59882         xmalloc.
59883         (quotearg_alloc): Use xcharalloc rather than xmalloc.
59884         (struct slotvec): Move to top level.
59885         (quotearg_n_options): Rewrite to avoid xmalloc.
59886         * lib/xalloc.h (xcharalloc): New function.
59887         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
59888         [defined __cplusplus]: Add function template that provides result
59889         type propagation.  This part of the change is from Bruno Haible.
59890
59891 2006-10-29  Bruno Haible  <bruno@clisp.org>
59892
59893         Make it compile in C++ mode.
59894         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
59895         * lib/strnlen1.c (strnlen1): Cast memchr result.
59896         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
59897         * lib/clean-temp.c (string_equals, string_hash): Add casts.
59898         (create_temp_dir): Rename local variable 'template'.
59899         (compile_csharp_using_sscli): Add cast.
59900         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
59901         * lib/findprog.c (find_in_path): Likewise.
59902         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
59903         * lib/wait-process.c (register_slave_subprocess): Likewise.
59904
59905 2006-10-22  Bruno Haible  <bruno@clisp.org>
59906
59907         * modules/tsearch: New file.
59908         * lib/tsearch.h: New file.
59909         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
59910         * m4/tsearch.m4: New file.
59911         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
59912
59913 2006-10-29  Eric Blake  <ebb9@byu.net>
59914
59915         * lib/arcfour.c: Assume config.h.
59916         * lib/arctwo.c: Likewise.
59917         * lib/base64.c: Likewise.
59918         * lib/check-version.c: Likewise.
59919         * lib/crc.c: Likewise.
59920         * lib/des.c: Likewise.
59921         * lib/gc-gnulib.c: Likewise.
59922         * lib/gc-libgcrypt.c: Likewise.
59923         * lib/gc-pbkdf2-sha1.c: Likewise.
59924         * lib/getaddrinfo.c: Likewise.
59925         * lib/getdelim.c: Likewise.
59926         * lib/getline.c: Likewise.
59927         * lib/hmac-md5.c: Likewise.
59928         * lib/hmac-sha1.c: Likewise.
59929         * lib/iconvme.c: Likewise.
59930         * lib/md2.c: Likewise.
59931         * lib/md4.c: Likewise.
59932         * lib/memxor.c: Likewise.
59933         * lib/read-file.c: Likewise.
59934         * lib/readline.c: Likewise.
59935         * lib/rijndael-alg-fst.c: Likewise.
59936         * lib/rijndael-api-fst.c: Likewise.
59937         * lib/xgetdomainname.c: Likewise.
59938
59939 2006-10-28  Eric Blake  <ebb9@byu.net>
59940
59941         * lib/xstrndup.c: Assume config.h.
59942
59943 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
59944
59945         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
59946         stat-macros.h is now for our own macros, whereas stat_h is for
59947         macros in the <sys/stat.h> name space.
59948         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
59949         (STAT_MACROS_H): Remove.
59950         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
59951         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
59952         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
59953         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
59954         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
59955         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
59956         Move these macros to ...
59957         * lib/stat_.h: here.  Don't include stat-macros.h.
59958         * lib/canonicalize.c: Don't include stat-macros.h.
59959         * lib/chown.c: Likewise.
59960         * lib/euidaccess.c: Likewise.
59961         * lib/file-type.c: Likewise.
59962         * lib/filemode.c: Likewise.
59963         * lib/glob.c: Likewise.
59964         * lib/isapipe.c: Likewise.
59965         * lib/lchown.c: Likewise.
59966         * lib/lstat.c: Likewise.
59967         * lib/mkdir-p.c: Likewise.
59968         * lib/rmdir.c: Likewise.
59969         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
59970         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
59971         unless mkdir isn't declared, to speed up 'configure'.
59972         Always create sys/stat.h, since it's unlikely any real sys/stat.h
59973         would define all the S_* symbols.
59974         * modules/canonicalize (Depends-on):
59975         Depend on sys_stat, not stat-macros.
59976         * modules/chown: Likewise.
59977         * modules/euidaccess: Likewise.
59978         * modules/filemode: Likewise.
59979         * modules/file-type: Likewise.
59980         * modules/glob: Likewise.
59981         * modules/isapipe: Likewise.
59982         * modules/lchown: Likewise.
59983         * modules/lstat: Likewise.
59984         * modules/mkancesdirs: Likewise.
59985         * modules/rmdir: Likewise.
59986         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
59987         * modules/modechange: Likewise.
59988         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
59989         (configure.ac): Remove gl_STAT_MACROS.
59990         * modules/sys_stat (Depends-on): Remove stat-macros.
59991
59992 2006-10-27  Bruno Haible  <bruno@clisp.org>
59993
59994         * m4/signed.m4: Remove file.
59995         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
59996         invocation.
59997         * modules/vasnprintf (Files): Remove m4/signed.m4.
59998
59999 2006-10-27  Bruno Haible  <bruno@clisp.org>
60000
60001         Update to GNU gettext 0.16.
60002         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
60003         m4/inttypes-h.m4, m4/signed.m4.
60004         * m4/gettext.m4: Update to GNU gettext 0.16.
60005         * m4/intl.m4: New file, from GNU gettext.
60006         * m4/intldir.m4: New file, from GNU gettext.
60007         * config/srclist.txt: Update
60008
60009 2006-10-27  Eric Blake  <ebb9@byu.net>
60010
60011         * MODULES.html.sh: Document tempname.
60012         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
60013         dependencies.
60014         (Files): Move lib/tempname.c...
60015         * modules/tempname: ...to this new module.
60016         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
60017         (gl_PREREQ_TEMPNAME): Move...
60018         * m4/tempname.m4: ...to this new file.
60019         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
60020         * modules/sys_stat (Depends-on): Add stat-macros.
60021         * lib/stat_.h (includes): Pick up stat macros.
60022         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
60023         if stat macros are broken.
60024         * lib/tempname.c (includes): No need to include "stat-macros.h".
60025         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
60026         (direxists, __path_search) [!_LIBC]: Don't compile these in
60027         gnulib; the tmpdir module covers that.
60028         * lib/tempname.h: New file.
60029
60030 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
60031
60032         * COPYING: Explain how gnulib-tool converts licence headers.
60033         Almost all wording by Eric Blake.
60034
60035 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
60036
60037         * lib/mbchar.h (is_basic_table): Make read-only.
60038         * lib/mbchar.c (is_basic_table): Likewise.
60039         Reported by John Darrington.
60040
60041 2006-10-25  Bruno Haible  <bruno@clisp.org>
60042
60043         * lib/progname.h (set_program_name): Undefine before defining.
60044
60045 2006-10-25  Bruno Haible  <bruno@clisp.org>
60046
60047         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
60048         false for non-gcc C++ compilers.
60049         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60050
60051 2006-10-24  Bruno Haible  <bruno@clisp.org>
60052
60053         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
60054         iconv implementations like Irix iconv.
60055
60056 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60057
60058         * modules/vararrays: New file.
60059         * m4/vararrays.m4: New file, taken from diffutils.
60060         * MODULES.html.sh: New module vararrays.
60061
60062 2006-10-24  Karl Berry  <karl@gnu.org>
60063
60064         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
60065         Don't call GNU Unix.
60066
60067 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60068
60069         * users.txt: Add Libtool.
60070
60071         Sync from Libtool:
60072
60073         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60074
60075         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
60076         to gnulib's policy of including config.h unconditionally.
60077
60078 2006-10-24  Bruno Haible  <bruno@clisp.org>
60079
60080         * modules/wcwidth (Files): Add m4/wint_t.m4.
60081         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
60082         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
60083
60084 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60085
60086         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
60087         to pacify GCC with some -W flags enabled.  Problem reported by
60088         Bruno Haible.
60089
60090 2006-10-24  Jim Meyering  <jim@meyering.net>
60091
60092         * MODULES.html.sh: Remove uinttostr.  It's not a module.
60093         Reported by Karl Berry.
60094
60095 2006-10-23  Bruno Haible  <bruno@clisp.org>
60096
60097         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
60098
60099 2006-10-24  Bruno Haible  <bruno@clisp.org>
60100
60101         * lib/gl_list.h: Use C comment style, not C++ comment style.
60102
60103 2006-10-23  Eric Blake  <ebb9@byu.net>
60104
60105         * lib/getaddrinfo.c (includes): Add missing include.
60106
60107 2006-10-23  Bruno Haible  <bruno@clisp.org>
60108             Paul Eggert  <eggert@cs.ucla.edu>
60109
60110         Ability to rename obstack_free.
60111         * lib/obstack.h (__obstack_free): New macro. Declare instead of
60112         obstack_free.
60113         (obstack_free): Invoke the __obstack_free macro.
60114         * lib/obstack.c (obstack_free): Use __obstack_free macro.
60115
60116 2006-10-23  Bruno Haible  <bruno@clisp.org>
60117             Paul Eggert  <eggert@cs.ucla.edu>
60118
60119         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
60120         __argc, __argv from the declaration. (They are defined as macros on
60121         mingw.)
60122
60123 2006-10-22  Bruno Haible  <bruno@clisp.org>
60124
60125         * doc/gnulib-intro.texi: New file.
60126         * doc/gnulib.texi: Include it.
60127
60128 2006-10-21  Bruno Haible  <bruno@clisp.org>
60129
60130         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
60131         "Introduction", "Miscellanous Notes", "Particular Modules".
60132
60133 2006-10-21  Bruno Haible  <bruno@clisp.org>
60134
60135         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60136         Change mostlyclean-local rule to avoid sh syntax error from bash
60137         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
60138
60139 2006-10-23  Jim Meyering  <jim@meyering.net>
60140
60141         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
60142         in place of snprintf.
60143
60144         * modules/inttostr (Files): Add lib/uinttostr.c.
60145         * lib/uinttostr.c (inttostr): New file/function.
60146         * lib/inttostr.h (uinttostr): Declare.
60147         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
60148         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
60149         Add uinttostr.
60150         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
60151
60152 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
60153
60154         * lib/canonicalize.c (ELOOP): Define if not already defined.
60155         Problem reported by Bruno Haible in
60156         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
60157
60158 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
60159
60160         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
60161         Problem reported by Perry Smith and Ville Laurikari.
60162
60163         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
60164         uses.
60165
60166 2006-10-19  Bruno Haible  <bruno@clisp.org>
60167
60168         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
60169         for mingw.
60170
60171 2006-10-19  Bruno Haible  <bruno@clisp.org>
60172
60173         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
60174         Needed for mingw.
60175
60176 2006-10-19  Bruno Haible  <bruno@clisp.org>
60177
60178         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
60179
60180 2006-10-19  Bruno Haible  <bruno@clisp.org>
60181
60182         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
60183         it.
60184
60185 2006-10-19  Bruno Haible  <bruno@clisp.org>
60186
60187         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
60188         invocation.
60189
60190 2006-10-19  Bruno Haible  <bruno@clisp.org>
60191
60192         * gnulib-tool (func_create_testdir): Don't include ftruncate and
60193         mountlist by default.
60194
60195 2006-10-16  Bruno Haible  <bruno@clisp.org>
60196
60197         * lib/c-strstr.c: Include c-strstr.h.
60198
60199 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60200
60201         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
60202         in a slash.
60203
60204 2006-10-18  Bruno Haible  <bruno@clisp.org>
60205
60206         * lib/lock.h [C++]: Wrap definitions in extern "C".
60207
60208 2006-10-18  Bruno Haible  <bruno@clisp.org>
60209
60210         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
60211         gl_LIBOBJS list.
60212
60213 2006-10-18  Bruno Haible  <bruno@clisp.org>
60214
60215         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
60216
60217 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
60218
60219         * lib/xstrtol.h: Include gettext.h.
60220         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
60221         Problem reported by Eric Blake.
60222         * modules/xstrtol (Depends-on): Add gettext-h.
60223
60224 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
60225
60226         * lib/strftime.c (advance): New macro.
60227         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
60228         incomplete type, so you can't add 0 to it.  Problem and patch
60229         reported by Eelco Dolstra for dietlibc.
60230
60231 2006-10-18  Jim Meyering  <jim@meyering.net>
60232
60233         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
60234         type for a local, and rename it: s/up/user_proc/.
60235
60236 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
60237
60238         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
60239         READ_UTMP_USER_PROCESS.
60240         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
60241
60242 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60243
60244         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
60245         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
60246
60247 2006-10-17  Eric Blake  <ebb9@byu.net>
60248
60249         * lib/sigprocmask.c (sigprocmask): Fix typo.
60250
60251         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
60252
60253         * modules/clean-temp (Makefile.am): Don't add to make output...
60254         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
60255         config.h.
60256
60257 2006-10-17  Bruno Haible  <bruno@clisp.org>
60258
60259         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
60260         differently if DEFAULT_TEXT_DOMAIN is set.
60261
60262 2006-10-16  Bruno Haible  <bruno@clisp.org>
60263
60264         * lib/clean-temp.c: Include fwriteerror.h.
60265
60266 2006-10-16  Bruno Haible  <bruno@clisp.org>
60267
60268         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
60269
60270 2006-10-16  Bruno Haible  <bruno@clisp.org>
60271
60272         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
60273         * lib/sigprocmask.h: Include <sys/types.h>.
60274         (sigset_t): Use the system's definition if present.
60275
60276 2006-10-17  Eric Blake  <ebb9@byu.net>
60277
60278         * lib/xvasprintf.c (includes): Assume config.h.
60279         * lib/xasprintf.c (includes): Likewise.
60280
60281 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60282
60283         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
60284         at least as wide as intmax_t.
60285
60286 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
60287
60288         (Imported from Automake.)
60289         * build-aux/gnupload: Update to version 1.1 of directive file.
60290
60291 2006-10-16  Eric Blake  <ebb9@byu.net>
60292
60293         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
60294         match Automake 1.10a.
60295
60296 2006-10-14  Bruno Haible  <bruno@clisp.org>
60297
60298         * modules/sigprocmask: New file.
60299         * lib/sigprocmask.h: New file.
60300         * lib/sigprocmask.c: New file.
60301         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
60302         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
60303         request sigprocmask.o.
60304         (gl_PREREQ_SIGPROCMASK): New macro.
60305         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
60306         (Depends-on): Add sigprocmask.
60307         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
60308         gt_SIGNALBLOCKING. Test for 'raise' only once.
60309         * lib/fatal-signal.c: Include sigprocmask.h.
60310         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
60311         unblock_fatal_signals): Define always.
60312         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60313         sigprocmask.
60314
60315 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
60316
60317         Sync from Automake.
60318         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
60319         which incorrectly sets the mode of an existing destination
60320         directory.  In some cases the unpatched install-sh could do the
60321         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
60322         system.  We hope this is rare in practice, but it's clearly worth
60323         fixing.  Problem reported by Alex Unleashed in
60324         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
60325         Also, don't bother to check for -m bugs unless we're using -m;
60326         suggested by Stepan Kasal.
60327
60328 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60329
60330         Sync from Automake.
60331         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
60332         `-c' flag, so they appear at the same position as in %FASTDEP%
60333         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
60334         which ignores unknown options only after the first non-option.
60335         Bug report against M4 by Nelson H. F. Beebe.
60336
60337 2006-10-13  Jim Meyering  <jim@meyering.net>
60338
60339         Fix a bug in yesterday's change.
60340         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
60341         p->fts_statp->st_dev would be used uninitialized.
60342         Ensures that we always call fts_stat on the very first entry.
60343         Miklos Szeredi reported that find -xdev stopped working.
60344
60345 2006-10-12  Bruno Haible  <bruno@clisp.org>
60346
60347         * gnulib-tool (func_get_automake_snippet): Append an automatically
60348         computed EXTRA_DIST augmentation.
60349         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
60350         * modules/alloca-opt (Makefile.am): Likewise.
60351         * modules/allocsa (Makefile.am): Likewise.
60352         * modules/arcfour (Makefile.am): Likewise.
60353         * modules/arctwo (Makefile.am): Likewise.
60354         * modules/argmatch (Makefile.am): Likewise.
60355         * modules/argz (Makefile.am): Likewise.
60356         * modules/atexit (Makefile.am): Likewise.
60357         * modules/backupfile (Makefile.am): Likewise.
60358         * modules/byteswap (Makefile.am): Likewise.
60359         * modules/c-strtod (Makefile.am): Likewise.
60360         * modules/c-strtold (Makefile.am): Likewise.
60361         * modules/calloc (Makefile.am): Likewise.
60362         * modules/canon-host (Makefile.am): Likewise.
60363         * modules/canonicalize (Makefile.am): Likewise.
60364         * modules/chdir-long (Makefile.am): Likewise.
60365         * modules/chdir-safer (Makefile.am): Likewise.
60366         * modules/check-version (Makefile.am): Likewise.
60367         * modules/chown (Makefile.am): Likewise.
60368         * modules/cloexec (Makefile.am): Likewise.
60369         * modules/close-stream (Makefile.am): Likewise.
60370         * modules/closeout (Makefile.am): Likewise.
60371         * modules/crc (Makefile.am): Likewise.
60372         * modules/csharpexec (Makefile.am): Likewise.
60373         * modules/cycle-check (Makefile.am): Likewise.
60374         * modules/des (Makefile.am): Likewise.
60375         * modules/dev-ino (Makefile.am): Likewise.
60376         * modules/dirfd (Makefile.am): Likewise.
60377         * modules/dirname (Makefile.am): Likewise.
60378         * modules/dup2 (Makefile.am): Likewise.
60379         * modules/eealloc (Makefile.am): Likewise.
60380         * modules/error (Makefile.am): Likewise.
60381         * modules/euidaccess (Makefile.am): Likewise.
60382         * modules/exclude (Makefile.am): Likewise.
60383         * modules/exitfail (Makefile.am): Likewise.
60384         * modules/fcntl-safer (Makefile.am): Likewise.
60385         * modules/fcntl (Makefile.am): Likewise.
60386         * modules/file-type (Makefile.am): Likewise.
60387         * modules/fileblocks (Makefile.am): Likewise.
60388         * modules/filemode (Makefile.am): Likewise.
60389         * modules/filenamecat (Makefile.am): Likewise.
60390         * modules/fnmatch (Makefile.am): Likewise.
60391         * modules/fopen-safer (Makefile.am): Likewise.
60392         * modules/fpending (Makefile.am): Likewise.
60393         * modules/fprintftime (Makefile.am): Likewise.
60394         * modules/free (Makefile.am): Likewise.
60395         * modules/fsusage (Makefile.am): Likewise.
60396         * modules/ftruncate (Makefile.am): Likewise.
60397         * modules/fts (Makefile.am): Likewise.
60398         * modules/gc-arcfour (Makefile.am): Likewise.
60399         * modules/gc-des (Makefile.am): Likewise.
60400         * modules/gc-hmac-md5 (Makefile.am): Likewise.
60401         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
60402         * modules/gc-md4 (Makefile.am): Likewise.
60403         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
60404         * modules/gc-sha1 (Makefile.am): Likewise.
60405         * modules/gc (Makefile.am): Likewise.
60406         * modules/getaddrinfo (Makefile.am): Likewise.
60407         * modules/getcwd (Makefile.am): Likewise.
60408         * modules/getdelim (Makefile.am): Likewise.
60409         * modules/getdomainname (Makefile.am): Likewise.
60410         * modules/getgroups (Makefile.am): Likewise.
60411         * modules/gethostname (Makefile.am): Likewise.
60412         * modules/gethrxtime (Makefile.am): Likewise.
60413         * modules/getline (Makefile.am): Likewise.
60414         * modules/getloadavg (Makefile.am): Likewise.
60415         * modules/getlogin_r (Makefile.am): Likewise.
60416         * modules/getndelim2 (Makefile.am): Likewise.
60417         * modules/getopt (Makefile.am): Likewise.
60418         * modules/getpagesize (Makefile.am): Likewise.
60419         * modules/getpass-gnu (Makefile.am): Likewise.
60420         * modules/getpass (Makefile.am): Likewise.
60421         * modules/getsubopt (Makefile.am): Likewise.
60422         * modules/gettime (Makefile.am): Likewise.
60423         * modules/gettimeofday (Makefile.am): Likewise.
60424         * modules/getugroups (Makefile.am): Likewise.
60425         * modules/getusershell (Makefile.am): Likewise.
60426         * modules/glob (Makefile.am): Likewise.
60427         * modules/group-member (Makefile.am): Likewise.
60428         * modules/hard-locale (Makefile.am): Likewise.
60429         * modules/hash (Makefile.am): Likewise.
60430         * modules/hmac-md5 (Makefile.am): Likewise.
60431         * modules/hmac-sha1 (Makefile.am): Likewise.
60432         * modules/human (Makefile.am): Likewise.
60433         * modules/idcache (Makefile.am): Likewise.
60434         * modules/imaxabs (Makefile.am): Likewise.
60435         * modules/imaxdiv (Makefile.am): Likewise.
60436         * modules/inet_ntop (Makefile.am): Likewise.
60437         * modules/inet_pton (Makefile.am): Likewise.
60438         * modules/intprops (Makefile.am): Likewise.
60439         * modules/inttostr (Makefile.am): Likewise.
60440         * modules/inttypes (Makefile.am): Likewise.
60441         * modules/isapipe (Makefile.am): Likewise.
60442         * modules/javaversion (Makefile.am): Likewise.
60443         * modules/lchmod (Makefile.am): Likewise.
60444         * modules/lchown (Makefile.am): Likewise.
60445         * modules/localcharset (Makefile.am): Likewise.
60446         * modules/long-options (Makefile.am): Likewise.
60447         * modules/lstat (Makefile.am): Likewise.
60448         * modules/malloc (Makefile.am): Likewise.
60449         * modules/mathl (Makefile.am): Likewise.
60450         * modules/mbchar (Makefile.am): Likewise.
60451         * modules/md2 (Makefile.am): Likewise.
60452         * modules/md4 (Makefile.am): Likewise.
60453         * modules/md5 (Makefile.am): Likewise.
60454         * modules/memcasecmp (Makefile.am): Likewise.
60455         * modules/memchr (Makefile.am): Likewise.
60456         * modules/memcmp (Makefile.am): Likewise.
60457         * modules/memcoll (Makefile.am): Likewise.
60458         * modules/memcpy (Makefile.am): Likewise.
60459         * modules/memmem (Makefile.am): Likewise.
60460         * modules/memmove (Makefile.am): Likewise.
60461         * modules/mempcpy (Makefile.am): Likewise.
60462         * modules/memrchr (Makefile.am): Likewise.
60463         * modules/memset (Makefile.am): Likewise.
60464         * modules/memxor (Makefile.am): Likewise.
60465         * modules/mkancesdirs (Makefile.am): Likewise.
60466         * modules/mkdir-p (Makefile.am): Likewise.
60467         * modules/mkdir (Makefile.am): Likewise.
60468         * modules/mkdtemp (Makefile.am): Likewise.
60469         * modules/mkstemp (Makefile.am): Likewise.
60470         * modules/mktime (Makefile.am): Likewise.
60471         * modules/modechange (Makefile.am): Likewise.
60472         * modules/mountlist (Makefile.am): Likewise.
60473         * modules/nanosleep (Makefile.am): Likewise.
60474         * modules/obstack (Makefile.am): Likewise.
60475         * modules/openat (Makefile.am): Likewise.
60476         * modules/pagealign_alloc (Makefile.am): Likewise.
60477         * modules/pathmax (Makefile.am): Likewise.
60478         * modules/physmem (Makefile.am): Likewise.
60479         * modules/poll (Makefile.am): Likewise.
60480         * modules/posixtm (Makefile.am): Likewise.
60481         * modules/posixver (Makefile.am): Likewise.
60482         * modules/putenv (Makefile.am): Likewise.
60483         * modules/quote (Makefile.am): Likewise.
60484         * modules/quotearg (Makefile.am): Likewise.
60485         * modules/raise (Makefile.am): Likewise.
60486         * modules/read-file (Makefile.am): Likewise.
60487         * modules/readline (Makefile.am): Likewise.
60488         * modules/readlink (Makefile.am): Likewise.
60489         * modules/readtokens (Makefile.am): Likewise.
60490         * modules/readutmp (Makefile.am): Likewise.
60491         * modules/realloc (Makefile.am): Likewise.
60492         * modules/regex (Makefile.am): Likewise.
60493         * modules/rename-dest-slash (Makefile.am): Likewise.
60494         * modules/rename (Makefile.am): Likewise.
60495         * modules/rijndael (Makefile.am): Likewise.
60496         * modules/rmdir (Makefile.am): Likewise.
60497         * modules/rpmatch (Makefile.am): Likewise.
60498         * modules/safe-read (Makefile.am): Likewise.
60499         * modules/safe-write (Makefile.am): Likewise.
60500         * modules/same-inode (Makefile.am): Likewise.
60501         * modules/same (Makefile.am): Likewise.
60502         * modules/save-cwd (Makefile.am): Likewise.
60503         * modules/savedir (Makefile.am): Likewise.
60504         * modules/setenv (Makefile.am): Likewise.
60505         * modules/settime (Makefile.am): Likewise.
60506         * modules/sha1 (Makefile.am): Likewise.
60507         * modules/sig2str (Makefile.am): Likewise.
60508         * modules/snprintf (Makefile.am): Likewise.
60509         * modules/stat-macros (Makefile.am): Likewise.
60510         * modules/stat-time (Makefile.am): Likewise.
60511         * modules/stdbool (Makefile.am): Likewise.
60512         * modules/stdint (Makefile.am): Likewise.
60513         * modules/stdlib-safer (Makefile.am): Likewise.
60514         * modules/stpcpy (Makefile.am): Likewise.
60515         * modules/stpncpy (Makefile.am): Likewise.
60516         * modules/strcase (Makefile.am): Likewise.
60517         * modules/strcasestr (Makefile.am): Likewise.
60518         * modules/strchrnul (Makefile.am): Likewise.
60519         * modules/strcspn (Makefile.am): Likewise.
60520         * modules/strdup (Makefile.am): Likewise.
60521         * modules/strerror (Makefile.am): Likewise.
60522         * modules/strftime (Makefile.am): Likewise.
60523         * modules/strndup (Makefile.am): Likewise.
60524         * modules/strnlen (Makefile.am): Likewise.
60525         * modules/strpbrk (Makefile.am): Likewise.
60526         * modules/strsep (Makefile.am): Likewise.
60527         * modules/strstr (Makefile.am): Likewise.
60528         * modules/strtod (Makefile.am): Likewise.
60529         * modules/strtoimax (Makefile.am): Likewise.
60530         * modules/strtok_r (Makefile.am): Likewise.
60531         * modules/strtol (Makefile.am): Likewise.
60532         * modules/strtoll (Makefile.am): Likewise.
60533         * modules/strtoul (Makefile.am): Likewise.
60534         * modules/strtoull (Makefile.am): Likewise.
60535         * modules/strtoumax (Makefile.am): Likewise.
60536         * modules/strverscmp (Makefile.am): Likewise.
60537         * modules/sys_socket (Makefile.am): Likewise.
60538         * modules/sys_stat (Makefile.am): Likewise.
60539         * modules/sysexits (Makefile.am): Likewise.
60540         * modules/time_r (Makefile.am): Likewise.
60541         * modules/timegm (Makefile.am): Likewise.
60542         * modules/timespec (Makefile.am): Likewise.
60543         * modules/tmpfile-safer (Makefile.am): Likewise.
60544         * modules/trim (Makefile.am): Likewise.
60545         * modules/unistd-safer (Makefile.am): Likewise.
60546         * modules/unlinkdir (Makefile.am): Likewise.
60547         * modules/unlocked-io (Makefile.am): Likewise.
60548         * modules/userspec (Makefile.am): Likewise.
60549         * modules/utime (Makefile.am): Likewise.
60550         * modules/utimecmp (Makefile.am): Likewise.
60551         * modules/utimens (Makefile.am): Likewise.
60552         * modules/vasnprintf (Makefile.am): Likewise.
60553         * modules/vasprintf (Makefile.am): Likewise.
60554         * modules/vsnprintf (Makefile.am): Likewise.
60555         * modules/xalloc (Makefile.am): Likewise.
60556         * modules/xgetcwd (Makefile.am): Likewise.
60557         * modules/xnanosleep (Makefile.am): Likewise.
60558         * modules/xreadlink (Makefile.am): Likewise.
60559         * modules/xstrtod (Makefile.am): Likewise.
60560         * modules/xstrtol (Makefile.am): Likewise.
60561         * modules/xstrtold (Makefile.am): Likewise.
60562         * modules/yesno (Makefile.am): Likewise.
60563         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
60564
60565 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60566
60567         * modules/error (Makefile.am): Distribute files through
60568         EXTRA_DIST, not lib_SOURCES.
60569
60570 2006-10-12  Eric Blake  <ebb9@byu.net>
60571
60572         * modules/error (Makefile.am): Distribute files in /lib.
60573         * modules/obstack (Makefile.am): Likewise.
60574
60575 2006-10-12  Bruno Haible  <bruno@clisp.org>
60576
60577         * modules/acl (Makefile.am): Distribute all files in lib/ through
60578         EXTRA_DIST.
60579         * modules/arcfour (Makefile.am): Likewise.
60580         * modules/arctwo (Makefile.am): Likewise.
60581         * modules/argmatch (Makefile.am): Likewise.
60582         * modules/argz (Makefile.am): Likewise.
60583         * modules/atexit (Makefile.am): Likewise.
60584         * modules/backupfile (Makefile.am): Likewise.
60585         * modules/c-strtod (Makefile.am): Likewise.
60586         * modules/c-strtold (Makefile.am): Likewise.
60587         * modules/calloc (Makefile.am): Likewise.
60588         * modules/canon-host (Makefile.am): Likewise.
60589         * modules/canonicalize (Makefile.am): Likewise.
60590         * modules/chdir-long (Makefile.am): Likewise.
60591         * modules/chdir-safer (Makefile.am): Likewise.
60592         * modules/check-version (Makefile.am): Likewise.
60593         * modules/chown (Makefile.am): Likewise.
60594         * modules/cloexec (Makefile.am): Likewise.
60595         * modules/close-stream (Makefile.am): Likewise.
60596         * modules/closeout (Makefile.am): Likewise.
60597         * modules/crc (Makefile.am): Likewise.
60598         * modules/cycle-check (Makefile.am): Likewise.
60599         * modules/des (Makefile.am): Likewise.
60600         * modules/dirfd (Makefile.am): Likewise.
60601         * modules/dirname (Makefile.am): Likewise.
60602         * modules/dup2 (Makefile.am): Likewise.
60603         * modules/euidaccess (Makefile.am): Likewise.
60604         * modules/exclude (Makefile.am): Likewise.
60605         * modules/exitfail (Makefile.am): Likewise.
60606         * modules/fcntl-safer (Makefile.am): Likewise.
60607         * modules/file-type (Makefile.am): Likewise.
60608         * modules/fileblocks (Makefile.am): Likewise.
60609         * modules/filemode (Makefile.am): Likewise.
60610         * modules/filenamecat (Makefile.am): Likewise.
60611         * modules/fnmatch (Makefile.am): Likewise.
60612         * modules/fopen-safer (Makefile.am): Likewise.
60613         * modules/fpending (Makefile.am): Likewise.
60614         * modules/fprintftime (Makefile.am): Likewise.
60615         * modules/free (Makefile.am): Likewise.
60616         * modules/fsusage (Makefile.am): Likewise.
60617         * modules/ftruncate (Makefile.am): Likewise.
60618         * modules/fts (Makefile.am): Likewise.
60619         * modules/gc (Makefile.am): Likewise.
60620         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
60621         * modules/getaddrinfo (Makefile.am): Likewise.
60622         * modules/getcwd (Makefile.am): Likewise.
60623         * modules/getdelim (Makefile.am): Likewise.
60624         * modules/getdomainname (Makefile.am): Likewise.
60625         * modules/getgroups (Makefile.am): Likewise.
60626         * modules/gethostname (Makefile.am): Likewise.
60627         * modules/gethrxtime (Makefile.am): Likewise.
60628         * modules/getline (Makefile.am): Likewise.
60629         * modules/getloadavg (Makefile.am): Likewise.
60630         * modules/getlogin_r (Makefile.am): Likewise.
60631         * modules/getopt (Makefile.am): Likewise.
60632         * modules/getpass (Makefile.am): Likewise.
60633         * modules/getpass-gnu (Makefile.am): Likewise.
60634         * modules/getsubopt (Makefile.am): Likewise.
60635         * modules/gettime (Makefile.am): Likewise.
60636         * modules/gettimeofday (Makefile.am): Likewise.
60637         * modules/getugroups (Makefile.am): Likewise.
60638         * modules/getusershell (Makefile.am): Likewise.
60639         * modules/glob (Makefile.am): Likewise.
60640         * modules/group-member (Makefile.am): Likewise.
60641         * modules/hard-locale (Makefile.am): Likewise.
60642         * modules/hash (Makefile.am): Likewise.
60643         * modules/hmac-md5 (Makefile.am): Likewise.
60644         * modules/hmac-sha1 (Makefile.am): Likewise.
60645         * modules/human (Makefile.am): Likewise.
60646         * modules/idcache (Makefile.am): Likewise.
60647         * modules/imaxabs (Makefile.am): Likewise.
60648         * modules/imaxdiv (Makefile.am): Likewise.
60649         * modules/inet_ntop (Makefile.am): Likewise.
60650         * modules/inet_pton (Makefile.am): Likewise.
60651         * modules/inttostr (Makefile.am): Likewise.
60652         * modules/isapipe (Makefile.am): Likewise.
60653         * modules/lchown (Makefile.am): Likewise.
60654         * modules/long-options (Makefile.am): Likewise.
60655         * modules/lstat (Makefile.am): Likewise.
60656         * modules/malloc (Makefile.am): Likewise.
60657         * modules/mathl (Makefile.am): Likewise.
60658         * modules/mbchar (Makefile.am): Likewise.
60659         * modules/md2 (Makefile.am): Likewise.
60660         * modules/md4 (Makefile.am): Likewise.
60661         * modules/md5 (Makefile.am): Likewise.
60662         * modules/memcasecmp (Makefile.am): Likewise.
60663         * modules/memchr (Makefile.am): Likewise.
60664         * modules/memcmp (Makefile.am): Likewise.
60665         * modules/memcoll (Makefile.am): Likewise.
60666         * modules/memcpy (Makefile.am): Likewise.
60667         * modules/memmem (Makefile.am): Likewise.
60668         * modules/memmove (Makefile.am): Likewise.
60669         * modules/mempcpy (Makefile.am): Likewise.
60670         * modules/memrchr (Makefile.am): Likewise.
60671         * modules/memset (Makefile.am): Likewise.
60672         * modules/memxor (Makefile.am): Likewise.
60673         * modules/mkancesdirs (Makefile.am): Likewise.
60674         * modules/mkdir (Makefile.am): Likewise.
60675         * modules/mkdir-p (Makefile.am): Likewise.
60676         * modules/mkdtemp (Makefile.am): Likewise.
60677         * modules/mkstemp (Makefile.am): Likewise.
60678         * modules/mktime (Makefile.am): Likewise.
60679         * modules/modechange (Makefile.am): Likewise.
60680         * modules/mountlist (Makefile.am): Likewise.
60681         * modules/nanosleep (Makefile.am): Likewise.
60682         * modules/openat (Makefile.am): Likewise.
60683         * modules/pagealign_alloc (Makefile.am): Likewise.
60684         * modules/physmem (Makefile.am): Likewise.
60685         * modules/poll (Makefile.am): Likewise.
60686         * modules/posixtm (Makefile.am): Likewise.
60687         * modules/posixver (Makefile.am): Likewise.
60688         * modules/putenv (Makefile.am): Likewise.
60689         * modules/quote (Makefile.am): Likewise.
60690         * modules/quotearg (Makefile.am): Likewise.
60691         * modules/raise (Makefile.am): Likewise.
60692         * modules/read-file (Makefile.am): Likewise.
60693         * modules/readline (Makefile.am): Likewise.
60694         * modules/readlink (Makefile.am): Likewise.
60695         * modules/readtokens (Makefile.am): Likewise.
60696         * modules/readutmp (Makefile.am): Likewise.
60697         * modules/realloc (Makefile.am): Likewise.
60698         * modules/regex (Makefile.am): Likewise.
60699         * modules/rename (Makefile.am): Likewise.
60700         * modules/rename-dest-slash (Makefile.am): Likewise.
60701         * modules/rijndael (Makefile.am): Likewise.
60702         * modules/rmdir (Makefile.am): Likewise.
60703         * modules/rpmatch (Makefile.am): Likewise.
60704         * modules/safe-read (Makefile.am): Likewise.
60705         * modules/safe-write (Makefile.am): Likewise.
60706         * modules/same (Makefile.am): Likewise.
60707         * modules/save-cwd (Makefile.am): Likewise.
60708         * modules/savedir (Makefile.am): Likewise.
60709         * modules/setenv (Makefile.am): Likewise.
60710         * modules/settime (Makefile.am): Likewise.
60711         * modules/sha1 (Makefile.am): Likewise.
60712         * modules/sig2str (Makefile.am): Likewise.
60713         * modules/snprintf (Makefile.am): Likewise.
60714         * modules/stdlib-safer (Makefile.am): Likewise.
60715         * modules/stpcpy (Makefile.am): Likewise.
60716         * modules/stpncpy (Makefile.am): Likewise.
60717         * modules/strcase (Makefile.am): Likewise.
60718         * modules/strcasestr (Makefile.am): Likewise.
60719         * modules/strchrnul (Makefile.am): Likewise.
60720         * modules/strcspn (Makefile.am): Likewise.
60721         * modules/strdup (Makefile.am): Likewise.
60722         * modules/strerror (Makefile.am): Likewise.
60723         * modules/strftime (Makefile.am): Likewise.
60724         * modules/strndup (Makefile.am): Likewise.
60725         * modules/strnlen (Makefile.am): Likewise.
60726         * modules/strpbrk (Makefile.am): Likewise.
60727         * modules/strsep (Makefile.am): Likewise.
60728         * modules/strstr (Makefile.am): Likewise.
60729         * modules/strtod (Makefile.am): Likewise.
60730         * modules/strtoimax (Makefile.am): Likewise.
60731         * modules/strtok_r (Makefile.am): Likewise.
60732         * modules/strtol (Makefile.am): Likewise.
60733         * modules/strtoll (Makefile.am): Likewise.
60734         * modules/strtoul (Makefile.am): Likewise.
60735         * modules/strtoull (Makefile.am): Likewise.
60736         * modules/strtoumax (Makefile.am): Likewise.
60737         * modules/strverscmp (Makefile.am): Likewise.
60738         * modules/time_r (Makefile.am): Likewise.
60739         * modules/timegm (Makefile.am): Likewise.
60740         * modules/tmpfile-safer (Makefile.am): Likewise.
60741         * modules/unistd-safer (Makefile.am): Likewise.
60742         * modules/unlinkdir (Makefile.am): Likewise.
60743         * modules/userspec (Makefile.am): Likewise.
60744         * modules/utime (Makefile.am): Likewise.
60745         * modules/utimecmp (Makefile.am): Likewise.
60746         * modules/utimens (Makefile.am): Likewise.
60747         * modules/vasnprintf (Makefile.am): Likewise.
60748         * modules/vasprintf (Makefile.am): Likewise.
60749         * modules/vsnprintf (Makefile.am): Likewise.
60750         * modules/xalloc (Makefile.am): Likewise.
60751         * modules/xgetcwd (Makefile.am): Likewise.
60752         * modules/xnanosleep (Makefile.am): Likewise.
60753         * modules/xreadlink (Makefile.am): Likewise.
60754         * modules/xstrtod (Makefile.am): Likewise.
60755         * modules/xstrtol (Makefile.am): Likewise.
60756         * modules/xstrtold (Makefile.am): Likewise.
60757         * modules/yesno (Makefile.am): Likewise.
60758
60759 2006-10-12  Jim Meyering  <jim@meyering.net>
60760
60761         * m4/getloadavg.m4: Revert the change below.
60762
60763         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
60764         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
60765         fail with a symlink, which is what coreutils' ./bootstrap now
60766         creates by default.
60767
60768 2006-10-12  Bruno Haible  <bruno@clisp.org>
60769
60770         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
60771         mingw.
60772         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
60773         MSVC and mingw explicitly.
60774
60775 2006-10-11  Simon Josefsson  <jas@extundo.com>
60776             Bruno Haible  <bruno@clisp.org>
60777
60778         Add support for multiple gnulib-tool invocations in the scope of a
60779         single configure.ac file.
60780         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
60781         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
60782         with the same contents as the _LIBADD variable.
60783         (func_emit_initmacro_start, func_emit_initmacro_end,
60784         func_emit_initmacro_done): New functions.
60785         (func_import, func_create_testdir): Invoke them. Allow the identifiers
60786         gl_LIBOBJS and gl_LTLIBOBJS.
60787
60788 2006-10-11  Bruno Haible  <bruno@clisp.org>
60789
60790         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
60791         (func_create_testdir): Don't create po/Makefile.am, don't invoke
60792         autoreconf. Instead, invoke autopoint explicitly but move back the
60793         *.m4 files from gnulib.
60794
60795 2006-10-11  Bruno Haible  <bruno@clisp.org>
60796
60797         * gnulib-tool (func_usage): Make module names after --create-testdir
60798         optional.
60799         (func_create_testdir): If no module was specified, use nearly all
60800         modules.
60801
60802 2006-10-12  Jim Meyering  <jim@meyering.net>
60803
60804         Big performance improvement for fts-based tools that use FTS_NOSTAT.
60805         Avoid spurious inode-mismatch problems on non-POSIX file systems.
60806         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
60807         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
60808         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
60809         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
60810         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
60811         (fts_set_stat_required): New function.
60812         (fts_open): Defer the calls to fts_stat, if possible or requested.
60813         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
60814         into fts_stat itself.
60815         (fts_read): Perform any required (deferred) fts_stat call.
60816         (fts_build): Likewise, for the directory we're about to open and read.
60817         In the readdir loop, carefully decide whether each entry will require
60818         an eventual call to fts_stat, using dirent.d_type info if available.
60819         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
60820         a command line argument into this function.  Update all callers.
60821         Map a return value of FTS_DOT to FTS_D for a command line argument.
60822         * modules/fts (Depends-on): Add d-type.  Alphabetize.
60823         Thanks to Miklos Szeredi for his tenacity and for the initial
60824         bug report about "find" failing on a FUSE-based file system.
60825
60826         * lib/fts.c (fts_open): Use consistent indentation.
60827
60828 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60829
60830         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
60831         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
60832         reported by Jim Meyering.  All uses of cache variables renamed
60833         to match Autoconf's.
60834         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
60835         the other one.
60836
60837         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
60838         Fix misspelling in diagnostic.
60839
60840 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60841
60842         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
60843         defined.  Problem reported by Matthew Woehlke.
60844
60845         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
60846         Add support for Tandem NonStop R series.
60847         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
60848         Use new macro.
60849
60850         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
60851         (has_trailing_slash): Omit size arg; all callers changed.
60852         Omit 'inline', since it doesn't help performance and we'd
60853         need to configure it.
60854         Don't count //, ///, etc. as having a trailing slash.
60855         As a side effect, this removes a C99ism reported by Matthew Woehlke.
60856         (rpl_rename_dest_slash): On failure, use rename's errno rather
60857         than (in some cases) an incorrect or junk errno.
60858         Simplify code by removing need to compute length; this does
60859         cause it to make two passes instead of one over the file name,
60860         but it's worth it.
60861
60862         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
60863         change, since Autoconf's version may no longer be appropriate now
60864         that we are using CVS Autoconf's version.  Add support for Tandem.
60865
60866 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60867             Bruno Haible  <bruno@clisp.org>
60868
60869         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
60870         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
60871         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
60872         gl_AC_TYPE_LONG_LONG.
60873
60874         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
60875         instead of HAVE_LONG_LONG.
60876         * lib/printf-args.c (printf_fetchargs): Likewise.
60877         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
60878         * lib/vasnprintf.c (VASNPRINTF): Likewise.
60879         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
60880         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
60881         gl_AC_TYPE_LONG_LONG.
60882
60883 2006-10-11  Bruno Haible  <bruno@clisp.org>
60884
60885         * m4/longlong.m4: Add comments.
60886         * m4/ulonglong.m4: Likewise.
60887
60888 2006-10-10  Bruno Haible  <bruno@clisp.org>
60889
60890         Make it possible to #define stpcpy, strdup to aliases.
60891         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
60892         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
60893
60894 2006-10-10  Bruno Haible  <bruno@clisp.org>
60895
60896         Make it possible to #define gcd to an alias.
60897         * lib/gcd.c: Include config.h.
60898
60899 2006-10-10  Bruno Haible  <bruno@clisp.org>
60900
60901         Make it possible to #define c_isascii to an alias.
60902         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
60903         defined. Undefine the macros before defining them, to avoid gcc
60904         warnings.
60905         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
60906         define NO_C_CTYPE_MACROS early.
60907
60908 2006-10-10  Bruno Haible  <bruno@clisp.org>
60909
60910         Make it possible to #define set_program_name to an alias.
60911         * lib/progname.c: Don't undefine set_program_name; instead, undefine
60912         ENABLE_RELOCATABLE early.
60913
60914 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60915
60916         Port to Tandem NSK OSS, which has 64-bit signed int but at most
60917         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
60918         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
60919         More generally, don't assume that 64-bit signed int is available
60920         if unsigned int is, and vice versa.
60921         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
60922         unsigned symbols, not on their signed counterparts.
60923         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
60924         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
60925         (UINT64_C, UINTMAX_C):
60926         Likewise.
60927         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
60928         unsigned counterparts.
60929         (Have_long_long, Unsigned): New macros.
60930         (Int): Renamed from INT.
60931         (strtoimax): Use the new macros.
60932         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
60933         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
60934         * modules/inttypes (inttypes.h): Substitute
60935         HAVE_UNSIGNED_LONG_LONG_INT.
60936         * modules/stdint (stdint.h): Likewise.
60937         (Files): Add m4/ulonglong.m4.
60938
60939 2006-10-10  Bruno Haible  <bruno@clisp.org>
60940
60941         Fix a gcc -Wshadow warning.
60942         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
60943         to 'bucket'.
60944         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
60945         gl_linked_indexof_from_to): Likewise.
60946         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
60947         Likewise.
60948         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
60949         Likewise.
60950         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
60951         Reported by Eric Blake.
60952
60953 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
60954
60955         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
60956         for NetBSD.  Problem reported by Bruno Haible.
60957
60958 2006-10-09  Jim Meyering  <jim@meyering.net>
60959
60960         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
60961         Patch from Bruno Haible.
60962
60963 2006-10-09  Jim Meyering  <jim@meyering.net>
60964
60965         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
60966         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
60967         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
60968
60969 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60970
60971         Don't include <config.h> twice; this doesn't work in some cases,
60972         e.g., when config.h has "#define intmax_t long long int" and
60973         we include <config.h>, <inttypes.h>, <config.h> in that order.
60974         Problem reported by Matthew Woehlke in:
60975         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
60976         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
60977         * lib/fts-cycle.c: Don't include config.h.
60978         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
60979         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
60980         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
60981         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
60982         inttypes.h.
60983         * lib/xstrtoumax.c: Likewise.
60984         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
60985         __strtol and the like, so that this module is more like its siblings.
60986         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
60987         Remove; no longer needed now that we assume gnulib inttypes.h.
60988
60989 2006-10-08  Bruno Haible  <bruno@clisp.org>
60990
60991         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
60992         option.
60993
60994 2006-10-07  Jim Meyering  <jim@meyering.net>
60995
60996         * modules/inttypes (inttypes.h): Revert what seems to have been
60997         an inadvertent part of today's change: use "|", not "/" in the
60998         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
60999
61000 2006-10-07  Bruno Haible  <bruno@clisp.org>
61001
61002         * modules/sublist: New file.
61003
61004 2006-10-07  Bruno Haible  <bruno@clisp.org>
61005
61006         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
61007         * modules/argz (argz.h): Likewise.
61008         * modules/arpa_inet (arpa/inet.h): Likewise.
61009         * modules/byteswap (byteswap.h): Likewise.
61010         * modules/configmake (configmake.h): Likewise.
61011         * modules/fcntl (fcntl.h): Likewise.
61012         * modules/fnmatch (fnmatch.h): Likewise.
61013         * modules/getopt (getopt.h): Likewise.
61014         * modules/glob (glob.h): Likewise.
61015         * modules/inttypes (inttypes.h): Likewise.
61016         * modules/netinet_in (netinet/in.h): Likewise.
61017         * modules/poll (poll.h): Likewise.
61018         * modules/stdbool (stdbool.h): Likewise.
61019         * modules/stdint (stdint.h): Likewise.
61020         * modules/sys_select (sys/select.h): Likewise.
61021         * modules/sys_socket (sys/socket.h): Likewise.
61022         * modules/sys_stat (sys/stat.h): Likewise.
61023         * modules/sysexits (sysexits.h): Likewise.
61024         * modules/unistd (unistd.h): Likewise.
61025         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61026         Add a "DO NOT EDIT" comment to the generated file.
61027         (func_import): Likewise for gnulib-comp.m4.
61028
61029 2006-10-07  Bruno Haible  <bruno@clisp.org>
61030
61031         * lib/gl_sublist.h: New file.
61032         * lib/gl_sublist.c: New file.
61033
61034 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
61035
61036         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
61037         name (relative to the original working directory) and the file
61038         name component (relative to the temporary working directory).  All
61039         callers changed.
61040         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
61041         * lib/mkdir-p.c (make_dir_parents): Likewise.
61042         * lib/mkdir-p.h (make_dir_parents): Likewise.
61043
61044 2006-10-06  Eric Blake  <ebb9@byu.net>
61045
61046         Define several macros for use by the clean-temp module.
61047         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
61048         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
61049         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
61050
61051         * lib/clean-temp.h (close_stream_temp): New declaration.
61052         * lib/clean-temp.c (includes): Pull in headers according to what
61053         other modules are in use.
61054         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
61055
61056 2006-10-06  Bruno Haible  <bruno@clisp.org>
61057
61058         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
61059         instead of fopen, fwriteerror.
61060
61061 2006-10-06  Bruno Haible  <bruno@clisp.org>
61062
61063         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
61064         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
61065         int.
61066         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
61067         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
61068         Return an error indicator.
61069         Suggested by Eric Blake.
61070
61071 2006-10-06  Bruno Haible  <bruno@clisp.org>
61072
61073         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
61074         Reported by Eric Blake.
61075
61076 2006-10-06  Bruno Haible  <bruno@clisp.org>
61077
61078         * modules/closeout (Description): Mention stderr too.
61079
61080 2006-10-06  Bruno Haible  <bruno@clisp.org>
61081         and Paul Eggert  <eggert@cs.ucla.edu>
61082
61083         * lib/closeout.c (close_stdout): Also close stderr.
61084         * lib/closeout.h: Update comment.
61085
61086 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61087
61088         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
61089         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
61090         * lib/dirchownmod.c: Include lchown.h.
61091         * lib/lchown.c: Don't include files that lchown.h now includes.
61092         Don't declare chown, since lchown.h now does that.
61093         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
61094         (lchown): Define to rpl_chown if lchown is declared but
61095         does not exist.  Declare using a prototype if lchown is not
61096         declared.  Add a copyright notice.
61097         * lib/mkstemp.h: Include <unistd.h>.
61098         * lib/openat.c: Include lchown.h.
61099
61100         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
61101         we now test for that separately.
61102         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
61103         rather than O_NOFOLLOW, when testing whether it's possible to
61104         avoid a race condition reliably.
61105         * lib/savewd.c (savewd_chdir): Likewise.
61106
61107         Remove macros that are no longer needed now that stdint.h is
61108         reliable.
61109         * lib/fsusage.c (UINTMAX_MAX): Remove.
61110         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
61111         * lib/utimecmp.c (SIZE_MAX): Remove.
61112
61113         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
61114
61115         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
61116         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
61117         O_NOATIME works.
61118
61119 2006-10-05  Bruno Haible  <bruno@clisp.org>
61120
61121         * lib/gl_list.h (gl_sortedlist_search_from_to,
61122         gl_sortedlist_indexof_from_to): New declarations.
61123         (gl_list_implementation): New fields sortedlist_search_from_to,
61124         sortedlist_indexof_from_to.
61125         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
61126         inline functions.
61127         * lib/gl_list.c (gl_sortedlist_search_from_to,
61128         gl_sortedlist_indexof_from_to): New functions.
61129         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
61130         function.
61131         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
61132         (gl_array_sortedlist_search_from_to): New function.
61133         (gl_array_list_implementation): Update.
61134         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
61135         function.
61136         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
61137         (gl_carray_sortedlist_search_from_to): New function.
61138         (gl_carray_list_implementation): Update.
61139         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
61140         gl_linked_sortedlist_indexof_from_to): New functions.
61141         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61142         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61143         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
61144         gl_tree_sortedlist_indexof_from_to): New functions.
61145         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61146         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61147         Update.
61148         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61149         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
61150         Update.
61151
61152 2006-10-05  Bruno Haible  <bruno@clisp.org>
61153
61154         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
61155         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
61156         (struct gl_list_implementation): Add fields search_from_to,
61157         indexof_from_to. Remove fields search, indexof.
61158         (gl_list_search): Use the search_from_to method.
61159         (gl_list_search_from, gl_list_search_from_to): New functions.
61160         (gl_list_indexof): Use the indexof_from_to method.
61161         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
61162         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
61163         (gl_list_search_from, gl_list_search_from_to): New functions.
61164         (gl_list_indexof): Use the indexof_from_to method.
61165         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
61166         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
61167         gl_array_indexof. Add start_index, end_index arguments.
61168         (gl_array_search_from_to): Renamed from gl_array_search. Add
61169         start_index, end_index arguments.
61170         (gl_array_remove, gl_array_list_implementation): Update.
61171         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
61172         gl_carray_indexof. Add start_index, end_index arguments.
61173         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
61174         start_index, end_index arguments.
61175         (gl_carray_remove, gl_carray_list_implementation): Update.
61176         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
61177         gl_linked_search. Add start_index, end_index arguments.
61178         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
61179         start_index, end_index arguments.
61180         (gl_linked_remove): Update.
61181         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61182         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61183         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
61184         field to 'size_t'.
61185         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
61186         gl_tree_search. Add start_index, end_index arguments.
61187         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
61188         start_index, end_index arguments.
61189         (gl_tree_remove): Update.
61190         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61191         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61192         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
61193         function.
61194         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
61195         gl_tree_search. Add start_index, end_index arguments.
61196         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
61197         start_index, end_index arguments.
61198         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61199         Update.
61200         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
61201
61202 2006-10-05  Bruno Haible  <bruno@clisp.org>
61203
61204         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
61205
61206         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
61207         fwriteerror_temp): New declarations.
61208         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
61209         (descriptors): New variable.
61210         (cleanup): First, close the descriptors.
61211         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
61212         fclose_temp, fwriteerror_temp): New functions.
61213
61214 2006-10-04  Jim Meyering  <jim@meyering.net>
61215
61216         * lib/fts.c (fts_open): Tiny comment change.
61217
61218 2006-10-04  Bruno Haible  <bruno@clisp.org>
61219
61220         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
61221         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
61222         gl_LOCK_BODY.
61223         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
61224         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
61225         gl_LOCK_EARLY_BODY.
61226         (gl_LOCK): Require gl_LOCK_BODY.
61227
61228 2006-10-04  Bruno Haible  <bruno@clisp.org>
61229
61230         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
61231         (gl_oset_search_atleast): New declaration.
61232         (struct gl_oset_implementation): Add field 'search_atleast'.
61233         (gl_oset_search_atleast): New inline function.
61234         * lib/gl_oset.c (gl_oset_search_atleast): New function.
61235         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
61236         (gl_array_oset_implementation): Update.
61237         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
61238         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
61239         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
61240
61241 2006-10-04  Bruno Haible  <bruno@clisp.org>
61242
61243         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
61244
61245 2006-10-03  Bruno Haible  <bruno@clisp.org>
61246
61247         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
61248         from gl_avltreehash_list_implementation.
61249
61250 2006-10-03  Bruno Haible  <bruno@clisp.org>
61251
61252         * lib/gl_oset.c (gl_oset_add): Fix return type.
61253
61254 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
61255
61256         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
61257
61258 2006-10-02  Eric Blake  <ebb9@byu.net>
61259
61260         * modules/strnlen (Depends-on): Add extensions.
61261
61262 2006-10-02  Eric Blake  <ebb9@byu.net>
61263
61264         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
61265         definition in 2.60+.
61266
61267 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
61268
61269         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
61270         checks.
61271
61272 2006-10-02  Bruno Haible  <bruno@clisp.org>
61273
61274         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
61275         to the AUTOMAKE_OPTIONS.
61276         Reported by Jim Meyering.
61277
61278 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
61279
61280         Work around bug in Solaris 10 /proc file system:
61281         /proc/self/fd/NNN/.. isn't the parent directory of
61282         the directory whose file descriptor is NNN.  This needs to
61283         be worked around at run time, not compile time, since a
61284         program might be built on Solaris 8, where things work, and
61285         run on Solaris 10.
61286         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
61287         to use the following interface instead:
61288         (OPENAT_BUFFER_SIZE): New macro.
61289         (openat_proc_name): New function.
61290         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
61291         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
61292         Likewise.
61293         * lib/openat-proc.c: New file.
61294         * modules/openat (Files): Add lib/openat-proc.c.
61295         (Depends-on): Add same-inode, stdbool.
61296         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
61297
61298 2006-09-29  Bruno Haible  <bruno@clisp.org>
61299
61300         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
61301         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
61302         argument. Set stdout_closed before testing for ferror, not after.
61303         (fwriteerror, fwriteerror_no_ebadf): New functions.
61304
61305 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61306
61307         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
61308
61309 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
61310
61311         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
61312         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
61313
61314 2006-09-28  Jim Meyering  <jim@meyering.net>
61315
61316         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
61317         Include <unistd.h>.
61318
61319 2006-09-28  Bruno Haible  <bruno@clisp.org>
61320
61321         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
61322         * modules/linkedhash-list (Depends-on): Likewise.
61323         * modules/rbtreehash-list (Depends-on): Likewise.
61324
61325 2006-09-28  Bruno Haible  <bruno@clisp.org>
61326
61327         * lib/strndup.h: Simplify the redefinition of strndup.
61328         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
61329         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
61330
61331 2006-09-28  Bruno Haible  <bruno@clisp.org>
61332
61333         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
61334         * lib/gl_linkedhash_list.c: Likewise.
61335         * lib/gl_rbtreehash_list.c: Likewise.
61336
61337 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
61338
61339         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
61340         getaddrinfo.
61341
61342         * lib/__fpending.h: Don't include <stdio_ext.h> unless
61343         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
61344         it causes <stdio_ext.h> to cause a compile-time error.
61345         Problem reported by Nelson H. F. Beebe.
61346         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
61347         of HAVE_DECL___PENDING.
61348
61349         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
61350         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
61351         declaration.
61352
61353 2006-09-27  Jim Meyering  <jim@meyering.net>
61354
61355         This file could end up with a definition for a function
61356         named __strndup, rather than rpl_strndup on a system with
61357         incomplete weak_alias support.
61358         * lib/strndup.c (strndup): Rename from __strndup.
61359         Remove #defines that used to map __strndup to strndup.
61360         Don't use K&R prototypes.
61361         Remove LIBC-related code, since this file is not sync'd with glibc.
61362         * lib/strndup.h: Revamp, accordingly.
61363         * m4/strndup.m4: Modernize.
61364
61365 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
61366
61367         * modules/savewd (Depends-on): Add 'raise'.
61368         * lib/savewd.c: Include <signal.h>, for 'raise'.
61369
61370 2006-09-26  Jim Meyering  <jim@meyering.net>
61371
61372         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
61373         when we detect Darwin 8.7.0's acl_get_file bug.
61374         Rearrange to perform the new (below) run-test while $LIBS
61375         contains any acl-related library.  Set USE_ACL at the end.
61376         (gl_ACL_GET_FILE): New function.
61377
61378 2006-09-26  Eric Blake  <ebb9@byu.net>
61379
61380         * lib/verror.c: Include <config.h> unconditionally.
61381
61382 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
61383
61384         * modules/clock-time (Maintainer): Add self.
61385         * modules/getlogin_r (Depends-on): Add extensions.
61386
61387 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61388
61389         * modules/clock-time: New module.
61390         * modules/nanosleep (Depends-on): Add clock-time.
61391         * modules/gethrxtime (Depends-on): Likewise.
61392         * modules/gettime (Depends-on): Likewise.
61393         * modules/settime (Depends-on): Likewise.
61394
61395         * modules/fts-lgpl: Depend on openat.
61396         * modules/mkancesdirs: Depend on savewd.
61397         * modules/mkdir-p: Likewise.
61398
61399 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61400
61401         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
61402
61403         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
61404         `gl_have_arbitrary_file_name_length_limit' to
61405         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
61406         actually works between configure runs.
61407
61408 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61409             Bruno Haible  <bruno@clisp.org>
61410
61411         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
61412
61413 2006-09-25  Jim Meyering  <jim@meyering.net>
61414
61415         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
61416         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
61417
61418 2006-09-25  Eric Blake  <ebb9@byu.net>
61419
61420         * gnulib-tool (func_import, func_create_testdir): Fix typos in
61421         exec's in 2006-09-18 patch when shuffling fds.
61422
61423 2006-09-25  Bruno Haible  <bruno@clisp.org>
61424
61425         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
61426         Reported by Jim Meyering.
61427
61428 2006-09-24  Jim Meyering  <jim@meyering.net>
61429
61430         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
61431         compare a pointer against a literal "0".  That caused failures with
61432         at least HP-UX's hpcc.
61433
61434 2006-09-22  Simon Josefsson  <jas@extundo.com>
61435
61436         * modules/gc-sha1:
61437         * modules/gc-md4:
61438         * modules/gc-hmac-sha1:
61439         * modules/gc-hmac-md5:
61440         * modules/gc-des:
61441         * modules/gc-arcfour: Distribute more files.
61442
61443 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61444
61445         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
61446         (gl_linked_iterator_from_to): Initialize struct completely.
61447         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
61448         (gl_tree_iterator_from_to): Likewise
61449         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
61450         * lib/gl_array_list.c [lint] (gl_array_iterator)
61451         (gl_array_iterator_from_to): Likewise.
61452         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
61453         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
61454         (gl_carray_iterator_from_to): Likewise.
61455
61456         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
61457         * lib/md4.c (md4_process_block): Remove unused variable.
61458         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
61459         parentheses for clarity.
61460
61461 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61462
61463         * modules/bison-i18n (Depends-on): Add gettext.
61464
61465 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61466
61467         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
61468         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
61469         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
61470         also add missing comma that caused broken test.
61471         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
61472         stdlib.h, for `abort'.
61473         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
61474         variables.
61475         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
61476         include unistd.h if present, for `rmdir'.
61477         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
61478         variables.
61479         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
61480         in the process include standard headers for prototypes.
61481         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
61482         gets declared on GNU/Linux.
61483         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
61484         unistd.h, for `rmdir'.
61485         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
61486
61487         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
61488         always true.
61489         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
61490
61491         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
61492
61493 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61494
61495         * gnulib-tool (func_version): Create output all at once.  This
61496         may help avoid triggering unnecessary SIGPIPEs, and at any
61497         rate it doesn't hurt.
61498
61499 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61500             Bruno Haible  <bruno@clisp.org>
61501
61502         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
61503         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61504         * m4/signed.m4 (bh_C_SIGNED): Likewise.
61505
61506         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
61507         (gl_FUNC_VASPRINTF): Invoke it.
61508
61509 2006-09-22  Bruno Haible  <bruno@clisp.org>
61510
61511         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
61512         getloadavg.c as first argument.
61513
61514 2006-09-22  Bruno Haible  <bruno@clisp.org>
61515
61516         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
61517         at the beginning of the gl_INIT macro.
61518         * modules/getloadavg (configure.ac): Pass $gl_source_base to
61519         gl_GETLOADAVG.
61520
61521 2006-09-22  Bruno Haible  <bruno@clisp.org>
61522
61523         * gnulib-tool (func_create_megatestdir): Don't include the config-h
61524         module.
61525         Suggested by Ralf Wildenhues.
61526
61527 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61528
61529         Import this patch from libc:
61530
61531         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
61532
61533         * lib/regex_internal.c (re_string_reconstruct): Handle
61534         offset < pstr->valid_raw_len && pstr->offsets_needed case.
61535         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
61536         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
61537         re_string_context_at.
61538
61539         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
61540         now requires it.
61541         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
61542         gl_REGEX now does it for us.
61543         (gl_REGEX): Add test taken from
61544         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
61545
61546         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
61547         Check that large offsets work.  Modernize Autoconf usages.
61548         Prefer "yes" to mean a good thing rather than a bad.
61549         Don't put "#define mkstemp" in config.h, as this might interfere
61550         with standard system headers that "#define mkstemp mkstemp64".
61551
61552         * modules/mkstemp (Depends-on): Add extensions, so that
61553         mkstemp is visible on some platforms.
61554         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
61555         (Include): Change to "mkstemp.h" from <stdlib.h>.
61556         (Files): Add mkstemp.h.
61557
61558         * lib/mkstemp.h: New file, since some standard headers
61559         #define mkstemp.
61560         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
61561         Include "mkstemp.h".
61562         Make the _LIBC code resemble glibc original more,
61563         e.g., use K&R style.
61564         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
61565         (mkstemp): Remove, since mkstemp.h does this for us.
61566         * lib/stdlib--.h: Include mkstemp.h.
61567
61568         Import this patch from libc:
61569
61570         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
61571
61572         * lib/tempname.c (__gen_tempname): Change attempts_min
61573         into a macro.  Use preprocessor to decide how to initialize
61574         attempts [Coverity CID 67].
61575
61576 2006-09-20  Bruno Haible  <bruno@clisp.org>
61577
61578         * lib/mkdtemp.c: Import from libc.
61579         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
61580                 * sysdeps/posix/tempname.c (__gen_tempname): Change
61581                 attempts_min into a macro.  Use preprocessor to decide how to
61582                 initialize attempts [Coverity CID 67].
61583         2001-11-27  Paul Eggert  <eggert@twinsun.com>
61584                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
61585                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
61586
61587 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61588
61589         * gnulib-tool (func_exit): New function, to allow to pass the
61590         exit status portably through the trap.  Use everywhere.
61591         (--help, --version): Signal a write error.
61592         (trap): catch SIGPIPE, for write errors.
61593         Exit at the end of the trap, with the correct exit status.
61594
61595 2006-09-19  Karl Berry  <karl@gnu.org>
61596
61597         * doc/gnulib.texi: note about the license texinfo files.
61598
61599 2006-09-19  Eric Blake  <ebb9@byu.net>
61600
61601         * gnulib-tool: Avoid space-tab.
61602
61603 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
61604
61605         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
61606         that prevented coreutils 6.1 from building.  Problem reported
61607         by Petter Reinholdtsen.
61608
61609 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
61610
61611         * gnulib-tool (avoidlist): Fix typo that broke options like
61612         --avoid=lock that are used by coreutils bootstrap.
61613
61614 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
61615
61616         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
61617         more systematically.
61618
61619 2006-09-18  Jim Meyering  <jim@meyering.net>
61620
61621         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
61622
61623 2006-09-18  Bruno Haible  <bruno@clisp.org>
61624
61625         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
61626
61627 2006-09-18  Bruno Haible  <bruno@clisp.org>
61628
61629         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
61630         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
61631         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
61632         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
61633         * m4/gettext.m4: Require autoconf >= 2.52.
61634         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
61635         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
61636         of gl_cv_header_inttypes_h.
61637
61638 2006-09-18  Bruno Haible  <bruno@clisp.org>
61639
61640         * lib/javaversion.c: Include configmake.h.
61641
61642 2006-09-18  Bruno Haible  <bruno@clisp.org>
61643
61644         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
61645         avoid that the while loops be executed in a subshell.
61646
61647 2006-09-18  Bruno Haible  <bruno@clisp.org>
61648
61649         * MODULES.html.sh (func_module): Break long lines.
61650         Suggested by Bruce Korb <bkorb@gnu.org>.
61651
61652 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61653
61654         Speed up by a factor of 1.12.
61655         * gnulib-tool (nl): New variable.
61656         (func_import): Rewrite include directive extraction to only read each
61657         directive once.
61658
61659 2006-09-17  Bruno Haible  <bruno@clisp.org>
61660
61661         * modules/javaversion (Makefile.am): Remove DEFS setting.
61662         (Depends-on): Add configmake, for PKGDATADIR definition.
61663
61664 2006-09-17  Bruno Haible  <bruno@clisp.org>
61665
61666         * gnulib-tool (func_create_testdir): Rewrite all files at once.
61667
61668 2006-09-17  Bruno Haible  <bruno@clisp.org>
61669
61670         * gnulib-tool (func_append): New function, stolen from libtool.m4.
61671         (func_modules_transitive_closure, func_modules_add_dummy,
61672         func_modules_to_filelist, func_import, func_create_testdir,
61673         func_create_megatestdir, ...): Use it wherever possible.
61674         Suggested by Ralf Wildenhues.
61675
61676 2006-09-16  Karl Berry  <karl@gnu.org>
61677
61678         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
61679         to avoid sectioning errors.
61680         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
61681         [ifinfo]: blank line after @center-ed titles.
61682         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
61683         Spell FSF address consistently with others.
61684         (These changes approved by rms.)
61685
61686 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61687
61688         Speed up by a factor of 1.61.
61689         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
61690         already checked module names again.
61691
61692 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61693
61694         Speed up by a factor of 1.13.
61695         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
61696         for new_files, and the input to func_add_or_update.
61697
61698 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61699
61700         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
61701         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
61702
61703 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61704
61705         * modules/mkancesdirs (Depends-on): Add fcntl.
61706         * modules/savewd: New file.
61707         * MODULES.html.sh (File system functions): Add savewd.
61708
61709         * modules/configmake (Makefile.am): Add support for the
61710         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
61711
61712 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61713
61714         * m4/savewd.m4: New file.
61715
61716 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
61717
61718         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
61719         (dirchownmod): New arg FD.  All callers changed.
61720         Use FD rather than opening the directory ourself, as opening is
61721         now the caller's responsibility.
61722         * lib/dirchownmod.h: Likewise.
61723         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
61724         hosts that require <sys/types.h> before <sys/stat.h>.  Include
61725         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
61726         (test_dir): Remove.
61727         (mkancesdirs): Return length of prefix of FILE that has already
61728         been made, or -2 if there is a child doing the work.  Redo
61729         algorithm so that it is O(N) rather than O(N**2).  Optimize away
61730         ".", and treat ".." specially since it might stray back into
61731         already-created areas.  Use a subprocess if necessary.  New arg
61732         WD; all users changed.  MAKE_DIR function should now return 1
61733         if it creates a directory that is not readable.  Return -2 if
61734         a child process is spun off.
61735         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
61736         Adjust signature to match code.
61737         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
61738         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
61739         all users changed.
61740         * lib/savewd.c, lib/savewd.h: New files.
61741
61742 2006-09-15  Jim Meyering  <jim@meyering.net>
61743
61744         * modules/rename-dest-slash: New module.
61745         * MODULES.html.sh (posix_compat): Add it here.
61746
61747         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
61748
61749 2006-09-15  Jim Meyering  <jim@meyering.net>
61750
61751         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
61752         file.
61753
61754         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
61755
61756 2006-09-15  Jim Meyering  <jim@meyering.net>
61757
61758         * lib/rename-dest-slash.c (has_trailing_slash): Use
61759         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
61760         (rpl_rename_dest_slash): Perform the cheaper trailing slash
61761         test before testing whether SRC is a directory.
61762         Suggestions from Bruno Haible.
61763
61764         Avoid a warning about an unused variable.
61765         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
61766         into the #ifdef block where it's used.
61767
61768         * lib/rename-dest-slash.c: New file.
61769
61770 2006-09-14  Bruno Haible  <bruno@clisp.org>
61771
61772         * lib/allocsa.c: Include <config.h> unconditionally.
61773         * lib/asnprintf.c: Likewise.
61774         * lib/asprintf.c: Likewise.
61775         * lib/c-strcasecmp.c: Likewise.
61776         * lib/c-strcasestr.c: Likewise.
61777         * lib/c-strncasecmp.c: Likewise.
61778         * lib/c-strstr.c: Likewise.
61779         * lib/classpath.c: Likewise.
61780         * lib/clean-temp.c: Likewise.
61781         * lib/concatpath.c: Likewise.
61782         * lib/copy-file.c: Likewise.
61783         * lib/csharpcomp.c: Likewise.
61784         * lib/csharpexec.c: Likewise.
61785         * lib/execute.c: Likewise.
61786         * lib/fatal-signal.c: Likewise.
61787         * lib/findprog.c: Likewise.
61788         * lib/fwriteerror.c: Likewise.
61789         * lib/gl_array_list.c: Likewise.
61790         * lib/gl_array_oset.c: Likewise.
61791         * lib/gl_avltree_list.c: Likewise.
61792         * lib/gl_avltree_oset.c: Likewise.
61793         * lib/gl_avltreehash_list.c: Likewise.
61794         * lib/gl_carray_list.c: Likewise.
61795         * lib/gl_linked_list.c: Likewise.
61796         * lib/gl_linkedhash_list.c: Likewise.
61797         * lib/gl_list.c: Likewise.
61798         * lib/gl_oset.c: Likewise.
61799         * lib/gl_rbtree_list.c: Likewise.
61800         * lib/gl_rbtree_oset.c: Likewise.
61801         * lib/gl_rbtreehash_list.c: Likewise.
61802         * lib/imaxabs.c: Likewise.
61803         * lib/imaxdiv.c: Likewise.
61804         * lib/javacomp.c: Likewise.
61805         * lib/javaexec.c: Likewise.
61806         * lib/javaversion.c: Likewise.
61807         * lib/linebreak.c: Likewise.
61808         * lib/localcharset.c: Likewise.
61809         * lib/lock.c: Likewise.
61810         * lib/mbchar.c: Likewise.
61811         * lib/mbswidth.c: Likewise.
61812         * lib/mkdtemp.c: Likewise.
61813         * lib/pipe.c: Likewise.
61814         * lib/printf-args.c: Likewise.
61815         * lib/printf-parse.c: Likewise.
61816         * lib/progname.c: Likewise.
61817         * lib/progreloc.c: Likewise.
61818         * lib/readlink.c: Likewise.
61819         * lib/sh-quote.c: Likewise.
61820         * lib/stpcpy.c: Likewise.
61821         * lib/stpncpy.c: Likewise.
61822         * lib/strcasecmp.c: Likewise.
61823         * lib/strcasestr.c: Likewise.
61824         * lib/strcspn.c: Likewise.
61825         * lib/striconv.c: Likewise.
61826         * lib/strncasecmp.c: Likewise.
61827         * lib/strnlen1.c: Likewise.
61828         * lib/strstr.c: Likewise.
61829         * lib/strtok_r.c: Likewise.
61830         * lib/tls.c: Likewise.
61831         * lib/tmpdir.c: Likewise.
61832         * lib/unicodeio.c: Likewise.
61833         * lib/unsetenv.c: Likewise.
61834         * lib/vasnprintf.c: Likewise.
61835         * lib/vasprintf.c: Likewise.
61836         * lib/wait-process.c: Likewise.
61837         * lib/xallocsa.c: Likewise.
61838         * lib/xsetenv.c: Likewise.
61839         * lib/xstriconv.c: Likewise.
61840
61841 2006-09-13  Simon Josefsson  <jas@extundo.com>
61842
61843         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
61844         that internally, suggested by Ralf Wildenhues
61845         <Ralf.Wildenhues@gmx.de>.
61846
61847 2006-09-13  Simon Josefsson  <jas@extundo.com>
61848
61849         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
61850         @LIBOBJS@.
61851         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61852
61853 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61854
61855         * lib/_fpending.c: Include <config.h> unconditionally, since we no
61856         longer worry about uses that don't define HAVE_CONFIG_H.
61857         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
61858         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
61859         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
61860         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
61861         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
61862         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
61863         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
61864         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
61865         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
61866         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
61867         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
61868         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
61869         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
61870         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
61871         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
61872         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
61873         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
61874         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
61875         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
61876         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
61877         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
61878         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
61879         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
61880         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
61881         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
61882         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
61883         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
61884         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
61885         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
61886         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
61887         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
61888         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
61889         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
61890         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
61891         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
61892         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
61893         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
61894         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
61895         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
61896         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
61897         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
61898         Likewise.
61899
61900 2006-09-13  Eric Blake  <ebb9@byu.net>
61901
61902         * lib/getopt.c: Fix typo in last commit.
61903
61904 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61905
61906         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
61907         dgettext.
61908
61909 2006-09-12  Jim Meyering  <jim@meyering.net>
61910
61911         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
61912         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
61913         Reported by Nelson H. F. Beebe.
61914
61915 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
61916
61917         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
61918         program_invocation_name and program_invocation_short_name are
61919         initialized.
61920         * lib/argp-namefrob.h: Move declarations of program_invocation_name
61921         and program_invocation_short_name to argp.h, so they are visible
61922         to user programs.
61923         * lib/argp.h: Likewise
61924
61925 2006-09-10  Bruno Haible  <bruno@clisp.org>
61926
61927         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
61928         m4/inttypes_h.m4, m4/uintmax_t.m4.
61929
61930 2006-09-10  Bruno Haible  <bruno@clisp.org>
61931
61932         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
61933         gl_AC_TYPE_UINTMAX_T.
61934
61935 2006-09-10  Bruno Haible  <bruno@clisp.org>
61936
61937         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
61938
61939 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61940
61941         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
61942         convention.  Text proposed by Bruno Haible.
61943         (struct argp_option): Document the use of N_() wrappers.
61944
61945         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
61946         '\v', and translate the two parts separately, instead of feeding
61947         the whole string to gettext.  This allows to exclude
61948         '\v' from the strings visible to the translator by writing doc
61949         strings as N_("..") "\v" N_("..").
61950
61951 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
61952
61953         * config/srclist.txt: Undo latest change; the bug was fixed.
61954
61955 2006-09-09  Bruno Haible  <bruno@clisp.org>
61956
61957         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
61958         assignments if building a library without libtool.
61959         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
61960         in func_emit_lib_Makefile_am.
61961         (func_import): When building a static library libfoo.a, arrange to
61962         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
61963         (func_create_testdir): Likewise.
61964         * modules/gc (configure.ac, Makefile.am): If building statically,
61965         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
61966         * modules/iconvme (configure.ac, Makefile.am): Likewise.
61967         * modules/striconv (configure.ac, Makefile.am): Likewise.
61968         Based on a suggestion by Ralf Wildenhues.
61969
61970 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61971
61972         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61973         Check for unistd.h too, since Autoconf doesn't assume POSIX.
61974         Also:
61975
61976         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61977         Add year_2050_test to catch glibc bug 2821
61978         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61979
61980         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61981         Prefer #ifdef to #if.
61982
61983         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
61984         Return from 'main' instead of calling 'exit'.
61985
61986 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61987
61988         * lib/mktime.c (guess_time_tm): Fix bug where mktime
61989         returned the maximum time_t value rather than (time_t) -1.
61990         Problem originally reported by William Bardwell
61991         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61992
61993         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61994         Moved to here ...
61995         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61996         ... from here.
61997
61998 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61999
62000         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
62001         2821 is fixed.
62002
62003 2006-09-08  Jim Meyering  <jim@meyering.net>
62004
62005         Don't make generated files read-only.  That would bother too many
62006         people.  However, do retain the ability to work when targets are
62007         read-only: remove the destination and temporary files before writing
62008         them (when generated via sed or echo), or by using the -f option for
62009         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
62010         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62011         * modules/byteswap, modules/configmake, modules/fcntl:
62012         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62013         * modules/localcharset, modules/netinet_in, modules/poll:
62014         * modules/stdbool, modules/stdint, modules/sys_select:
62015         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62016
62017 2006-09-08  Jim Meyering  <jim@meyering.net>
62018
62019         Avoid new build failure on FreeBSD 6.0.
62020         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
62021         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
62022         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
62023
62024 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62025
62026         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
62027
62028 2006-09-07  Jim Meyering  <jim@meyering.net>
62029
62030         Fix global typo in last change: use chmod u-w, not chmod u-x.
62031         Spotted by Paul Eggert and Bruce Korb.
62032         * modules/alloca-opt, modules/argz, modules/arpa_inet:
62033         * modules/byteswap, modules/configmake, modules/fcntl:
62034         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
62035         * modules/localcharset, modules/netinet_in, modules/poll:
62036         * modules/stdbool, modules/stdint, modules/sys_select:
62037         * modules/sys_socket, modules/sys_stat, modules/sysexits:
62038
62039 2006-09-06  Jim Meyering  <jim@meyering.net>
62040
62041         Make generated files be read-only.
62042         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
62043         Ensure that each generated file is now read-only.
62044         * modules/argz: Likewise.
62045         * modules/arpa_inet: Likewise.
62046         * modules/byteswap: Likewise.
62047         * modules/configmake: Likewise.
62048         * modules/fcntl: Likewise.
62049         * modules/fnmatch: Likewise.
62050         * modules/getopt: Likewise.
62051         * modules/glob: Likewise.
62052         * modules/inttypes: Likewise.
62053         * modules/netinet_in: Likewise.
62054         * modules/poll: Likewise.
62055         * modules/stdbool: Likewise.
62056         * modules/stdint: Likewise.
62057         * modules/sys_select: Likewise.
62058         * modules/sys_socket: Likewise.
62059         * modules/sys_stat: Likewise.
62060         * modules/sysexits: Likewise.
62061         * modules/localcharset: Same as above, but continue using temporary
62062         file named "t-$@" (why different?) rather than the "$@-t" used
62063         everywhere else.
62064
62065         * modules/sysexits (Makefile.am): Replace literal occurrences
62066         of "sysexit.h" more readable, and more consistent, "$@".
62067
62068 2006-09-06  Bruno Haible  <bruno@clisp.org>
62069
62070         * modules/striconv: New file.
62071         * modules/xstriconv: New file.
62072         * MODULES.html.sh (Internationalization functions): Add striconv,
62073         xstriconv.
62074
62075 2006-09-06  Bruno Haible  <bruno@clisp.org>
62076
62077         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
62078         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
62079         not using libtool correctly.
62080
62081 2006-09-06  Bruno Haible  <bruno@clisp.org>
62082
62083         * lib/striconv.h: New file.
62084         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
62085         iconvstring.c.
62086         * lib/xstriconv.h: New file.
62087         * lib/xstriconv.c: New file.
62088
62089 2006-09-06  Bruno Haible  <bruno@clisp.org>
62090
62091         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62092         lib_..._LDFLAGS.
62093
62094 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62095
62096         * lib/argz_.h: Sync from Libtool.
62097
62098         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
62099                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62100
62101         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
62102
62103 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62104
62105         * modules/trim: New file.
62106
62107 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
62108
62109         * lib/trim.h: New file.
62110         * lib/trim.c: New file.
62111
62112 2006-09-05  Bruno Haible  <bruno@clisp.org>
62113
62114         * MODULES.html.sh (String handling): Add trim.
62115
62116 2006-09-04  Karl Berry  <karl@gnu.org>
62117
62118         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
62119         until next release.
62120
62121 2006-09-03  Bruno Haible  <bruno@clisp.org>
62122
62123         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
62124         correctly.
62125
62126 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62127
62128         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
62129         not gl_GETLOADAVG.  Omit unneeded semicolons.
62130         Problems reported by Ralf Wildenhues in
62131         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
62132         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
62133         at the end, which is the usual gnulib style.
62134
62135         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
62136         of doing all the work ourselves.
62137         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
62138         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
62139
62140 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62141
62142         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
62143         Problem reported by Ralf Wildenhues in
62144         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
62145
62146         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
62147         HAVE_STRUCT_STATFS_F_FSTYPENAME.
62148
62149 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62150
62151         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
62152         yesterday's patch by changing test -n to test -z.
62153
62154 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62155
62156         * modules/getloadavg (Files): Add m4/getloadavg.m4.
62157         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
62158         the former is now obsolescent.
62159
62160         * modules/chdir-long (Depends-on): Add fcntl.
62161
62162 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62163
62164         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
62165         obsolescent, and programs should use gnulib instead.
62166         * m4/getloadavg.m4: New file, with contents taken from Autoconf
62167         but with prefixes changed.
62168
62169 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
62170
62171         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
62172         or stdbool.h, because they might not exist while configuring.
62173
62174         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
62175         Don't include unistd.h or limits.h; not needed, since chdir-long.h
62176         does that for us.
62177         (O_DIRECTORY): Remove.
62178
62179 2006-08-31  Eric Blake  <ebb9@byu.net>
62180
62181         * gnulib-tool: Don't let emacs change spaces to TAB.
62182
62183 2006-08-31  Bruno Haible  <bruno@clisp.org>
62184
62185         * gnulib-tool: When calling func_import more than once, do it in a
62186         subshell.
62187         Reported by Eric Blake <ebb9@byu.net>.
62188
62189 2006-08-31  Bruno Haible  <bruno@clisp.org>
62190
62191         * gnulib-tool (nl): Remove variable.
62192         (sed_transform_lib_file): Use more robust test for config-h module.
62193         (func_import): Fix typo in 2006-08-25 patch.
62194
62195 2006-08-31  Bruno Haible  <bruno@clisp.org>
62196
62197         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
62198         specified, augment Makefile.am variables instead of assigning them.
62199
62200 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62201
62202         Work around a bug in both the Linux and SunOS 64-bit kernels:
62203         nanosleep mishandles sleeps for longer than 2**31 seconds.
62204         Problem reported by Frank v Waveren in
62205         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
62206         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
62207         Check for nanosleep bug.
62208         (LIB_NANOSLEEP): Append clock_gettime library if needed.
62209
62210 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62211
62212         Work around a bug in both the Linux and SunOS 64-bit kernels:
62213         nanosleep mishandles sleeps for longer than 2**31 seconds.
62214         Problem reported by Frank v Waveren in
62215         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
62216         * lib/nanosleep.c (BILLION): New constant.
62217         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
62218         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
62219         implementation.
62220
62221 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62222
62223         * modules/nanosleep (Depends-on): Add gettime.
62224
62225 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
62226         and Simon Josefsson  <jas@extundo.com>
62227         and Oskar Liljeblad  <oskar@osk.mine.nu>
62228
62229         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
62230         * gnulib-tool (func_import): New license type 'unmodifiable license
62231         text'.
62232         * modules/fdl: Use it.  Longer description.
62233         * module/gpl, module/lgpl: New files.
62234
62235 2006-08-30  Jim Meyering  <jim@meyering.net>
62236
62237         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
62238         shadowing the parameter.
62239
62240 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62241
62242         Sync from Libtool:
62243
62244         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62245
62246         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
62247         sharing with gnulib.  Report by Eric Blake.
62248
62249 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62250
62251         * modules/isapipe: New file.
62252         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
62253
62254 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62255
62256         * modules/configmake (Makefile.am): Add a comment, and omit
62257         the CONFIGMAKE_ prefix from generated macro names.  Suggested
62258         by Bruno Haible.
62259
62260 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62261
62262         * m4/isapipe.m4: New file.
62263
62264 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
62265
62266         * lib/isapipe.c, lib/isapipe.h: New files.
62267
62268 2006-08-29  Jim Meyering  <jim@meyering.net>
62269
62270         * modules/configmake (Makefile.am): Make configmake.h depend on
62271         Makefile.  Otherwise, a stale configmake.h could hang around.
62272
62273 2006-08-29  Eric Blake  <ebb9@byu.net>
62274
62275         * lib/error.c (error_at_line, print_errno_message): Match libc, after
62276         resolution of upstream bug 3044.
62277
62278 2006-08-29  Bruno Haible  <bruno@clisp.org>
62279
62280         * modules/localcharset (Depends-on): Add configmake.
62281         (Makefile.am): Remove setting of LIBDIR through DEFS.
62282
62283 2006-08-29  Bruno Haible  <bruno@clisp.org>
62284
62285         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
62286         defined.
62287
62288 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62289
62290         * modules/fcntl: New file.
62291         * modules/chdir-safer (Depends-on): Add fcntl.
62292         * modules/fts: Likewise.
62293         * modules/mkdir-p: Likewise.
62294
62295         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
62296         This undoes the most recent change, since we're now addressing the
62297         problem in a different way.
62298
62299         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
62300         into output, since the output might be called Makefile.am even
62301         if $makefile_name is something different.
62302         (func_import): Use $makefile_am rather than
62303         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
62304         empty.
62305
62306         * modules/inttypes (Files): Add m4/inttypes-h.m4.
62307
62308 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62309
62310         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
62311         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
62312         recent change to stdint.m4, since we're now addressing the problem in a
62313         different way.
62314
62315 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62316
62317         * m4/fcntl_h.m4: New file.
62318
62319 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
62320
62321         * lib/fcntl_.h: New file.
62322         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
62323         the fcntl module.
62324         * lib/dirchownmod.c: Likewise.
62325         * lib/fts.c: Likewise.
62326
62327         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
62328         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
62329         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
62330         just before including <inttypes.h>, to avoid circular inclusion.
62331
62332 2006-08-28  Jim Meyering  <jim@meyering.net>
62333
62334         * doc/visibility.texi: Actually read and correct the grammar of the
62335         sentence affected by yesterday's change.
62336
62337 2006-08-28  Eric Blake  <ebb9@byu.net>
62338
62339         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
62340         needs wrapper.
62341
62342 2006-08-28  Eric Blake  <ebb9@byu.net>
62343
62344         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
62345
62346 2006-08-28  Eric Blake  <ebb9@byu.net>
62347
62348         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
62349
62350 2006-08-28  Bruno Haible  <bruno@clisp.org>
62351
62352         * modules/c-strstr: New file, from GNU gettext.
62353         * MODULES.html.sh (String handling): Add c-strstr.
62354
62355 2006-08-28  Bruno Haible  <bruno@clisp.org>
62356
62357         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
62358         macros.
62359         Reported by Eric Blake.
62360
62361 2006-08-28  Bruno Haible  <bruno@clisp.org>
62362
62363         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
62364         (VASNPRINTF): Return a string of length > INT_MAX without failing.
62365         * lib/vasprintf.c: Include errno.h, limits.h.
62366         (EOVERFLOW): New fallback definition.
62367         (vasprintf): Test here whether the string length is > INT_MAX.
62368         * lib/vsnprintf.c: Include errno.h, limits.h.
62369         (EOVERFLOW): New fallback definition.
62370         (vsnprintf): Fix bug when generated string was too long for the buffer.
62371         Test here whether the string length is > INT_MAX.
62372
62373 2006-08-28  Bruno Haible  <bruno@clisp.org>
62374
62375         * lib/inttypes_.h (SCNX*): Remove definitions.
62376         Reported by Eric Blake.
62377
62378 2006-08-28  Bruno Haible  <bruno@clisp.org>
62379
62380         * lib/c-strstr.h: New file, from GNU gettext.
62381         * lib/c-strstr.c: New file, from GNU gettext.
62382
62383 2006-08-28  Bruno Haible  <bruno@clisp.org>
62384
62385         * gnulib-tool: Reorder some statements.
62386
62387 2006-08-28  Bruno Haible  <bruno@clisp.org>
62388
62389         * gnulib-tool: New option --makefile-name.
62390         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
62391         $makefile_name.
62392         (func_import): Write $makefile_name to the cache file, and read it from
62393         there unless explicitly specified. Use $makefile_name as file name
62394         instead of Makefile.am. Adjust the recommendations accordingly.
62395
62396 2006-08-28  Bruno Haible  <bruno@clisp.org>
62397
62398         * gnulib-tool (func_verify_module): Check against misapplying patch.
62399
62400 2006-08-28  Bruno Haible  <bruno@clisp.org>
62401
62402         * gnulib-tool (func_relativize, func_relconcat): New functions.
62403         Give an error if --local-dir is given with --update.
62404         Remove trailing slashes from $local_gnulib_dir.
62405         (func_import): Store the relativized $local_gnulib_dir in
62406         gnulib-cache.m4, and read it from there if not specified explicitly.
62407
62408 2006-08-28  Bruno Haible  <bruno@clisp.org>
62409
62410         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
62411         is the current directory. Respect also $local_gnulib_dir.
62412
62413 2006-08-28  Bruno Haible  <bruno@clisp.org>
62414             Simon Josefsson  <jas@extundo.com>
62415
62416         BeOS portability.
62417         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
62418
62419 2006-08-27  Jim Meyering  <jim@meyering.net>
62420
62421         * doc/visibility.texi: Remove duplicate word: "pointer".
62422
62423 2006-08-26  Bruno Haible  <bruno@clisp.org>
62424
62425         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
62426         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
62427         (Makefile.am): Create inttypes.h from inttypes_.h.
62428         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
62429
62430         * modules/imaxabs: New file.
62431
62432         * modules/imaxdiv: New file.
62433
62434 2006-08-26  Bruno Haible  <bruno@clisp.org>
62435
62436         * m4/inttypes.m4: New file.
62437         * m4/_inttypes_h.m4: Remove file.
62438         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
62439         PRI_MACROS_BROKEN.
62440         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
62441
62442         * m4/imaxabs.m4: New file.
62443
62444         * m4/imaxdiv.m4: New file.
62445
62446 2006-08-26  Bruno Haible  <bruno@clisp.org>
62447
62448         * lib/inttypes_.h: New file.
62449         * lib/inttypes.h: Remove file.
62450         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
62451
62452         * lib/imaxabs.c: New file.
62453
62454         * lib/imaxdiv.c: New file.
62455
62456 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62457
62458         New config-h module, so that "make" output needn't be cluttered
62459         by -DHAVE_CONFIG_H.
62460         * MODULES.html.sh (Support for building libraries and executables):
62461         Add config-h.
62462         * modules/config-h: New file.
62463         * gnulib-tool (nl, sed_transform_lib_file): New vars.
62464         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
62465         the config-h module is used.
62466
62467         New configmake module, so that "make" output needn't be cluttered
62468         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
62469         * MODULES.html.sh (Support for building libraries and executables):
62470         Add configmake.
62471         * modules/configmake: New file.
62472
62473 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
62474
62475         * m4/config-h.m4: New file.
62476
62477 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62478
62479         * config/srclist.txt: Add elisp-comp.
62480
62481 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62482
62483         * MODULES.html.sh (Support for building libraries and executables):
62484         Add elisp-comp.
62485         * build-aux/elisp-comp: New file.
62486         * modules/elisp-comp: New file.
62487
62488 2006-08-24  Bruno Haible  <bruno@clisp.org>
62489
62490         * gnulib-tool (func_create_testdir): Use non-default values of
62491         sourcebase and m4base.
62492
62493 2006-08-24  Bruno Haible  <bruno@clisp.org>
62494
62495         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
62496         HTML structure.
62497
62498 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62499
62500         * modules/openat (Depends-on): Add lchown.
62501
62502 2006-08-23  Bruno Haible  <bruno@clisp.org>
62503
62504         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
62505         of gl_LOCK_EARLY instead of gl_LOCK.
62506
62507 2006-08-23  Bruno Haible  <bruno@clisp.org>
62508
62509         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
62510         on OSF/1 to no.
62511         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
62512
62513 2006-08-23  Bruno Haible  <bruno@clisp.org>
62514
62515         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
62516         as unusable.
62517
62518         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
62519         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
62520         (gl_LOCK): New macro.
62521
62522 2006-08-22  Simon Josefsson  <jas@extundo.com>
62523
62524         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
62525         to md5 module.
62526
62527 2006-08-22  Simon Josefsson  <jas@extundo.com>
62528
62529         * MODULES.html.sh: Add "Support for maintaining and release
62530         projects".
62531
62532         * build-aux/gnupload: New file, from coreutils.
62533
62534 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62535
62536         Avoid the need for AC_LIBSOURCES in m4 macros.
62537         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
62538         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
62539         * modules/check-version (EXTRA_DIST): Add check-version.h.
62540         * modules/crc (EXTRA_DIST): Add crc.h.
62541         * modules/des (EXTRA_DIST): Add des.h.
62542         * modules/gc (EXTRA_DIST): Add gc.h.
62543         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
62544         * modules/getline (EXTRA_DIST): Add getline.h.
62545         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
62546         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
62547         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
62548         * modules/md2 (EXTRA_DIST): Add md2.h.
62549         * modules/md4 (EXTRA_DIST): Add md4.h.
62550         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
62551         * modules/read-file (EXTRA_DIST): Add read-file.h.
62552         * modules/readline (EXTRA_DIST): Add readline.h.
62553         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
62554         rijndael-api-fst.h.
62555
62556 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62557
62558         * m4/rijndael.m4 (gl_ARCFOUR):
62559         * m4/arctwo.m4 (gl_ARCTWO):
62560         * m4/check-version.m4 (gl_CHECK_VERSION):
62561         * m4/crc.m4 (gl_CRC):
62562         * m4/des.m4 (gl_DES):
62563         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
62564         * m4/gc.m4 (gl_GC):
62565         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
62566         * m4/getline.m4 (gl_FUNC_GETLINE):
62567         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
62568         * m4/hmac-md5.m4 (gl_HMAC_MD5):
62569         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
62570         * m4/md2.m4 (gl_MD2):
62571         * m4/md4.m4 (gl_MD4):
62572         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
62573         * m4/read-file.m4 (gl_FUNC_READ_FILE):
62574         * m4/readline.m4 (gl_FUNC_READLINE):
62575         * m4/rijndael.m4 (gl_RIJNDAEL):
62576         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
62577         to get the necessary .h files and whatnot.
62578
62579 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
62580
62581         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
62582         gnulib rather than the other way around.
62583         * config/srclistvars.sh (COREUTILS): Remove.
62584
62585 2006-08-22  Jim Meyering  <jim@meyering.net>
62586
62587         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
62588
62589         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
62590
62591 2006-08-22  Eric Blake  <ebb9@byu.net>
62592
62593         * modules/regexprops-generic: New file.
62594         * MODULES.html.sh (Support for building documentation): List it.
62595
62596 2006-08-22  Eric Blake  <ebb9@byu.net>
62597
62598         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
62599         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
62600         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
62601         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
62602
62603 2006-08-22  Bruno Haible  <bruno@clisp.org>
62604
62605         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
62606         and lib_LTLIBRARIES like the other lib_* variables.
62607
62608 2006-08-22  Bruno Haible  <bruno@clisp.org>
62609
62610         * build-aux/x-to-1.in: New file, from GNU gettext.
62611
62612 2006-08-22  Bruno Haible  <bruno@clisp.org>
62613
62614         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
62615         <utmpx.h> exists.
62616
62617 2006-08-22  Bruno Haible  <bruno@clisp.org>
62618
62619         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
62620         <utmpx.h> exists.
62621
62622 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62623
62624         BeOS portability.
62625         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
62626         exist.
62627         Problem reported by Bruno Haible.
62628
62629 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62630
62631         Avoid the need for AC_LIBSOURCES in m4 macros.
62632         * modules/acl (EXTRA_DIST): Add acl.h.
62633         * modules/argmatch (Files): Add m4/argmatch.m4.
62634         (configure.ac): Add gl_ARGMATCH.
62635         (EXTRA_DIST): Renamed from lib_SOURCES, for
62636         consistency with the other modules.  Remove argmatch.c.
62637         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
62638         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
62639         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
62640         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
62641         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
62642         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
62643         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
62644         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
62645         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
62646         * modules/closeout (EXTRA_DIST): Add closeout.h.
62647         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
62648         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
62649         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
62650         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
62651         dirname.h; remove basename.c and stripslash.c.
62652         * modules/exclude (EXTRA_DIST): Add exclude.h.
62653         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
62654         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
62655         * modules/file-type (EXTRA_DIST): Add file-type.h.
62656         * modules/filemode (EXTRA_DIST): Add filemode.h.
62657         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
62658         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
62659         * modules/fpending (EXTRA_DIST): Add __fpending.h.
62660         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
62661         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
62662         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
62663         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
62664         * modules/getdate (EXTRA_DIST): Add getdate.c.
62665         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
62666         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
62667         * modules/getpass (EXTRA_DIST): Add getpass.h.
62668         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
62669         * modules/group-member (EXTRA_DIST): Add group-member.h.
62670         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
62671         * modules/hash (EXTRA_DIST): Add hash.h.
62672         * modules/human (EXTRA_DIST): Add human.h.
62673         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
62674         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
62675         * modules/lchown (EXTRA_DIST): Add lchown.h.
62676         * modules/long-options (EXTRA_DIST): Add long-options.h.
62677         * modules/lstat (EXTRA_DIST): Add lstat.h.
62678         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
62679         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
62680         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
62681         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
62682         * modules/memxor (EXTRA_DIST): Add memxor.h.
62683         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
62684         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
62685         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
62686         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
62687         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
62688         * modules/physmem (EXTRA_DIST): Add physmem.h.
62689         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
62690         * modules/posixver (EXTRA_DIST): Add posixver.h.
62691         * modules/quote (EXTRA_DIST): Add quote.h.
62692         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
62693         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
62694         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
62695         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
62696         regex_internal.h regexec.c.
62697         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
62698         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
62699         * modules/same (EXTRA_DIST): Add same.h.
62700         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
62701         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
62702         * modules/savedir (EXTRA_DIST): Add savedir.h.
62703         * modules/sha1 (EXTRA_DIST): Add sha1.h.
62704         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
62705         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
62706         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
62707         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
62708         * modules/strdup (EXTRA_DIST): Add strdup.h.
62709         * modules/strftime (EXTRA_DIST): Add strftime.h.
62710         * modules/strndup (EXTRA_DIST): Add strndup.h.
62711         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
62712         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
62713         * modules/time_r (EXTRA_DIST): Add time_r.h.
62714         * modules/timespec (EXTRA_DIST): Add timespec.h.
62715         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
62716         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
62717         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
62718         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
62719         * modules/userspec (EXTRA_DIST): Add userspec.h.
62720         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
62721         * modules/utimens (EXTRA_DIST): Add utimens.h.
62722         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
62723         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
62724         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
62725         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
62726         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
62727         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
62728         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
62729         * modules/yesno (EXTRA_DIST): Add yesno.h.
62730
62731 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
62732
62733         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
62734
62735         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
62736         * m4/dev-ino.m4, same-inode.m4: Remove.
62737
62738         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
62739         * m4/acl.m4 (AC_FUNC_ACL):
62740         * m4/backupfile.m4 (gl_BACKUPFILE):
62741         * m4/c-strtod.m4 (gl_C99_STRTOLD):
62742         * m4/canon-host.m4 (gl_CANON_HOST):
62743         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62744         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
62745         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
62746         * m4/cloexec.m4 (gl_CLOEXEC):
62747         * m4/close-stream.m4 (gl_CLOSE_STREAM):
62748         * m4/closeout.m4 (gl_CLOSEOUT):
62749         * m4/dirfd.m4 (gl_FUNC_DIRFD):
62750         * m4/dirname.m4 (gl_DIRNAME):
62751         * m4/exclude.m4 (gl_EXCLUDE):
62752         * m4/exitfail.m4 (gl_EXITFAIL):
62753         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
62754         * m4/file-type.m4 (gl_FILE_TYPE):
62755         * m4/filemode.m4 (gl_FILEMODE):
62756         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
62757         * m4/fpending.m4 (gl_FUNC_FPENDING):
62758         * m4/fprintftime.m4 (gl_FPRINTFTIME):
62759         * m4/fts.m4 (gl_FUNC_FTS):
62760         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
62761         * m4/getdate.m4 (gl_GETDATE):
62762         * m4/gethrxtime.m4 (gl_GETHRXTIME):
62763         * m4/getpagesize.m4 (gl_GETPAGESIZE):
62764         * m4/getpass.m4 (gl_FUNC_GETPASS):
62765         * m4/gettime.m4 (gl_GETTIME):
62766         * m4/getugroups.m4 (gl_GETUGROUPS):
62767         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
62768         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
62769         * m4/hard-locale.m4 (gl_HARD_LOCALE):
62770         * m4/hash.m4 (gl_HASH):
62771         * m4/idcache.m4 (gl_IDCACHE):
62772         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
62773         * m4/lchown.m4 (gl_FUNC_LCHOWN):
62774         * m4/long-options.m4 (gl_LONG_OPTIONS):
62775         * m4/lstat.m4 (gl_FUNC_LSTAT):
62776         * m4/md5.m4 (gl_MD5):
62777         * m4/memcasecmp.m4 (gl_MEMCASECMP):
62778         * m4/memcoll.m4 (gl_MEMCOLL):
62779         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
62780         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
62781         * m4/memxor.m4 (gl_MEMXOR):
62782         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
62783         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
62784         * m4/modechange.m4 (gl_MODECHANGE):
62785         * m4/mountlist.m4 (gl_MOUNTLIST):
62786         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62787         * m4/openat.m4 (gl_FUNC_OPENAT):
62788         * m4/pathmax.m4 (gl_PATHMAX):
62789         * m4/physmem.m4 (gl_PHYSMEM):
62790         * m4/posixtm.m4 (gl_POSIXTM):
62791         * m4/posixver.m4 (gl_POSIXVER):
62792         * m4/quote.m4 (gl_QUOTE):
62793         * m4/quotearg.m4 (gl_QUOTEARG):
62794         * m4/readtokens.m4 (gl_READTOKENS):
62795         * m4/readutmp.m4 (gl_READUTMP):
62796         * m4/regex.m4 (gl_REGEX):
62797         * m4/safe-read.m4 (gl_SAFE_READ):
62798         * m4/safe-write.m4 (gl_SAFE_WRITE):
62799         * m4/same.m4 (gl_SAME):
62800         * m4/save-cwd.m4 (gl_SAVE_CWD):
62801         * m4/savedir.m4 (gl_SAVEDIR):
62802         * m4/settime.m4 (gl_SETTIME):
62803         * m4/sha1.m4 (gl_SHA1):
62804         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
62805         * m4/stat-macros.m4 (gl_STAT_MACROS):
62806         * m4/stat-time.m4 (gl_STAT_TIME):
62807         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
62808         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
62809         * m4/strdup.m4 (gl_FUNC_STRDUP):
62810         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
62811         * m4/strndup.m4 (gl_FUNC_STRNDUP):
62812         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
62813         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
62814         * m4/time_r.m4 (gl_TIME_R):
62815         * m4/timespec.m4 (gl_TIMESPEC):
62816         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
62817         * m4/unlinkdir.m4 (gl_UNLINKDIR):
62818         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
62819         * m4/userspec.m4 (gl_USERSPEC):
62820         * m4/utimecmp.m4 (gl_UTIMECMP):
62821         * m4/utimens.m4 (gl_UTIMENS):
62822         * m4/xalloc.m4 (gl_XALLOC):
62823         * m4/xgetcwd.m4 (gl_XGETCWD):
62824         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
62825         * m4/xreadlink.m4 (gl_XREADLINK):
62826         * m4/xstrtod.m4 (gl_XSTRTOD):
62827         * m4/yesno.m4 (gl_YESNO):
62828         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
62829         to get the necessary .h files and whatnot.
62830
62831 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
62832             Bruno Haible  <bruno@clisp.org>
62833
62834         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
62835         /bin/sh understanding of '!' conditional negation.
62836
62837 2006-08-21  Jim Meyering  <jim@meyering.net>
62838
62839         * modules/openat (Depends-on): Really alphabetize.
62840
62841         * modules/acl (Depends-on): Add error and quote.
62842
62843         * check-module (find_included_lib_files): Add at-func.c to the
62844         ok-to-include-more-than-once white list.
62845
62846         * modules/openat (Depends-on): Add lstat.  Alphabetize.
62847
62848 2006-08-21  Bruno Haible  <bruno@clisp.org>
62849
62850         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62851         Emit a pkgdata_DATA variable only if some snippets add contents to it.
62852         Reported by Martin Lambers <marlam@marlam.de>.
62853
62854 2006-08-21  Bruno Haible  <bruno@clisp.org>
62855
62856         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
62857         specify an installation location, don't emit a noinst_LIBRARIES or
62858         noinst_LTLIBRARIES assignment.
62859
62860 2006-08-21  Bruno Haible  <bruno@clisp.org>
62861
62862         BeOS portability.
62863         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
62864         BeOS has mbrtowc() but no <wctype.h>.
62865
62866 2006-08-21  Bruno Haible  <bruno@clisp.org>
62867
62868         BeOS portability.
62869         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
62870         exist.
62871
62872 2006-08-21  Bruno Haible  <bruno@clisp.org>
62873
62874         BeOS portability.
62875         * lib/mbchar.h: Include <wctype.h> only if it exists.
62876
62877 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62878
62879         Remove files that are no longer needed by their respective modules.
62880         * m4/obstack.m4: Remove.
62881         * m4/strerror_r.m4: Remove.
62882         * m4/uint32_t.m4: Remove.
62883         * m4/uintptr_t.m4: Remove.
62884         * m4/ullong_max.m4: Remove.
62885         * m4/xstrtoimax.m4: Remove.
62886         * m4/xstrtoumax.m4: Remove.
62887
62888         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
62889         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
62890         dependencies now capture this.
62891
62892         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
62893         Do not use AC_LIBSOURCES, since gnulib modules now do this.
62894         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
62895         * m4/human.m4 (gl_HUMAN): Likewise.
62896         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
62897         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
62898
62899         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
62900
62901         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
62902         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
62903         stdint.
62904         * m4/human.m4 (gl_HUMAN): Likewise.
62905         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
62906         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
62907         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
62908         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
62909         * m4/xstrtol (gl_XSTRTOL): Likewise.
62910
62911         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
62912         AC_TYPE_LONG_LONG_INT.
62913         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
62914         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
62915         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
62916         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
62917
62918         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
62919         on stdbool.
62920
62921         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
62922         (gl_PREREQ_XSTRTOUL): Remove.
62923
62924         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
62925
62926         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
62927         mode.
62928
62929 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62930
62931         Add and change modules to make it easier for coreutils to use
62932         gnulib-tool.
62933         * modules/backupfile (Files): Remove m4/d-ino.m4.
62934         (Depends-on): Add d-ino.
62935         * modules/cycle-check (Depends-on): Add stdint.
62936         (lib_SOURCES): Add cycle-check.h.
62937         * modules/d-ino: New module.
62938         * modules/d-type: New module.
62939         * modules/error (Files): Remove m4/strerror_r.m4.
62940         * modules/filemode (Files): Add m4/st_dm_mode.m4.
62941         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62942         m4/inttypes_h.m4, m4/uintmax_t.m4.
62943         (Depends-on): Add stdint.
62944         (lib_SOURCES): Add fsusage.h.
62945         * modules/getcwd (Files): Remove d-ino.m4.
62946         (Depends-on): Add d-ino.
62947         * modules/getndelim2 (Depends-on): Add stdint.
62948         * modules/glob (Files): Remove m4/d-type.m4.
62949         (Depends-on): Add d-type.
62950         * modules/host-os: New module.
62951         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
62952         m4/inttypes_h.m4, m4/uintmax_t.m4.
62953         * Depends-on: Add stdint.
62954         (lib_SOURCES): Add human.h.
62955         * modules/inttostr (Files): Remove m4/intmax_t.m4,
62956         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
62957         m4/uintmax_t.m4, m4/ulonglong.m4.
62958         (Depends-on): Add stdint.
62959         (EXTRA_DIST): Add inttostr.h.
62960         * modules/lchmod: New module.
62961         * modules/link-follow: New module.
62962         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
62963         (Depends-on): Add lchmod.
62964         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
62965         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
62966         (Depends-on): Add stdint.
62967         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
62968         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
62969         (Depends-on): Add stdint.
62970         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
62971         * modules/perl: New module.
62972         * modules/regex (Depends-on): Add stdint.
62973         * modules/rmdir-errno: New module.
62974         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62975         m4/intmax_t.m4.
62976         (Depends-on): Add stdint.
62977         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62978         m4/uintmax_t.m4.
62979         (Depends-on): Add stdint.
62980         * modules/unlink-busy: New module.
62981         * modules/utimecmp (Depends-on): Add stdint.
62982         * modules/uptime: New module.
62983         * modules/winsz-ioctl: New module.
62984         * modules/winsz-termios: New module.
62985         * modules/xnanosleep (Depends-on): Add nanosleep.
62986         * modules/ullong_max: Remove.
62987         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
62988         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
62989         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
62990         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
62991         (Depends-on): Add inttypes.
62992         (lib_SOURCES): Add xstrtol.h.
62993         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
62994         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
62995         * MODULES.html.sh: Move 'assert' into the assert section.
62996         Move 'dummy' into the linking section.
62997         Remove ullong_max.
62998         Add section for compatibility checks for POSIX:2001 functions,
62999         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
63000         winsz-ioctl, and winsz-termios into it.
63001         Add lchmod.
63002         Add top-level Misc section and put host-os, perl, and uptime
63003         into it.
63004
63005 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
63006
63007         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
63008         now assume the stdint module.  Do not include inttypes.h.
63009         * lib/fsusage.h: Likewise.
63010         * lib/getndelim2.c: Likewise.
63011         * lib/human.h: Likewise.
63012         * lib/inttostr.h: Likewise.
63013         * lib/obstack.c: Likewise.
63014         * lib/regex_internal.h: Likewise.
63015         * lib/tempname.c: Likewise.
63016         * lib/utimecmp.c: Likewise.
63017         * lib/xstrtol.h: Likewise.
63018
63019         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
63020
63021         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
63022         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
63023         * lib/xtime.h: Likewise.
63024
63025 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63026
63027         * modules/openat (Files): Add lib/fchmodat.c.
63028         Fixes problem reported by Jay Youngman.
63029
63030 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63031
63032         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
63033         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
63034
63035 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
63036             Bruno Haible  <bruno@clisp.org>
63037
63038         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
63039         and is a script that invokes bison. Tighten the code. Add comments.
63040
63041 2006-08-18  Jim Meyering  <jim@meyering.net>
63042
63043         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
63044         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
63045         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
63046         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
63047
63048 2006-08-18  Bruno Haible  <bruno@clisp.org>
63049
63050         * modules/bison-i18n: New file.
63051         * MODULES.html.sh (Internationalization functions): Add it.
63052
63053 2006-08-18  Bruno Haible  <bruno@clisp.org>
63054
63055         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
63056         sys/statvfs.h. When getmntinfo was found, check its declaration and
63057         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
63058
63059 2006-08-18  Bruno Haible  <bruno@clisp.org>
63060
63061         * m4/bison-i18n.m4: New file, from bison.
63062
63063 2006-08-18  Bruno Haible  <bruno@clisp.org>
63064
63065         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
63066         (ME_DUMMY): Treat "kernfs" as a dummy.
63067         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
63068
63069 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63070
63071         Update from coreutils.
63072
63073         2006-08-15  Jim Meyering  <jim@meyering.net>
63074
63075         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
63076
63077         2006-01-17  Jim Meyering  <jim@meyering.net>
63078
63079         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
63080
63081         2006-01-11  Jim Meyering  <jim@meyering.net>
63082
63083         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
63084         Check for the lchmod function.
63085
63086 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
63087
63088         Update from coreutils.
63089
63090         * lib/__fpending.h: Add copyright notice.
63091         * lib/fprintftime.h: Likewise.
63092         * lib/savedir.c: Use (C) in copyright notice.
63093         * lib/savedir.h: Likewise.
63094
63095         2006-08-15  Jim Meyering  <jim@meyering.net>
63096
63097         * lib/at-func.c: New file, with the logic of all emulated at-functions.
63098         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
63099         in support of the EXPECTED_ERRNO macro.
63100         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
63101         definitions.  Instead, define the appropriate symbols and include
63102         "at-func.c".
63103         * lib/mkdirat.c (mkdirat): Likewise.
63104         * lib/fchmodat.c (fchmodat): Likewise.
63105         (ENOSYS): Remove definition.
63106         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
63107         it.  Don't include "unistd--.h" -- it wasn't ever used.
63108
63109         2006-01-17  Jim Meyering  <jim@meyering.net>
63110
63111         Rewrite fts.c not to change the current working directory,
63112         by using openat, fstatat, fdopendir, etc..
63113
63114         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
63115         (HAVE_OPENAT_SUPPORT): Define.
63116         [_LIBC] (fchdir): Don't undef or define; no longer used.
63117         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
63118         Now, this `function' always succeeds, and consumes its file descriptor
63119         parameter -- so callers must not close such FDs.  Update callers.
63120         (diropen_fd, opendirat, cwd_advance_fd): New functions.
63121         (diropen): Add parameter, SP.  Adjust all callers.
63122         Implement using diropen_fd, rather than open.
63123         (fts_open): Initialize new member, fts_cwd_fd.
63124         Remove fts_rft-setting code.
63125         (fts_close): Close fts_cwd_fd, if necessary.
63126         (__opendir2): Define in terms of opendir or opendirat,
63127         depending on whether the FST_NOCHDIR flag is set.
63128         (fts_build): Since fts_safe_changedir consumes its FD, and since
63129         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
63130         and close the dup'd file descriptor upon failure.
63131         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
63132         (fts_safe_changedir): Tweak semantics to reflect that this function
63133         now calls cwd_advance_fd and hence consumes its FD argument.
63134         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
63135         [struct FTS] (fts_rft): Remove now-unused member.
63136         [struct FTS] (fts_cycle.state): Improve comment.
63137
63138         * lib/openat.c (openat_needs_fchdir): New function.
63139         * lib/openat.h (openat_needs_fchdir): Declare it.
63140
63141 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
63142
63143         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
63144         Problem and fix reported by Pádraig Brady in
63145         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
63146
63147 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63148
63149         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
63150
63151 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63152
63153         * lib/memcoll.c (memcoll): Optimize for the common case where the
63154         arguments are bytewise equal.
63155
63156 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63157
63158         * doc/regexprops-generic.texi: Add a copyright notice.
63159
63160 2006-08-15  Bruno Haible  <bruno@clisp.org>
63161
63162         * modules/tmpdir (License): Change to LGPL.
63163
63164 2006-08-15  Bruno Haible  <bruno@clisp.org>
63165
63166         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
63167         module.
63168
63169 2006-08-14  Simon Josefsson  <jas@extundo.com>
63170
63171         * config/srclist.txt: Add gnupload.
63172
63173 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63174
63175         Change copyright notice from LGPL 2 to GPL 2, since that's the
63176         standard form used in the gnulib repository.
63177         * tests/test-lock.c: Likewise.
63178         * tests/test-stdint.c: Likewise.
63179         * tests/test-tls.c: Likewise.
63180
63181         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
63182         prelude-manager.  User shorter URLs for GNU projects, without '?'.
63183         Add copyright notice.
63184
63185         * check-module: Add copyright notice.  Output a copyright
63186         notice if "--version" is specified.
63187         * modules/COPYING: New file.
63188         * tests/test-getaddrinfo.c: Add copyright notice.
63189         * tests/test-verify.c: Likewise.
63190
63191 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63192
63193         Change copyright notice from LGPL 2 to GPL 2, since that's the
63194         standard form used in the gnulib repository.
63195         * lib/lock.c: LGPL -> GPL.
63196         * lib/lock.h: Likewise.
63197         * lib/strnlen1.c: Likewise.
63198         * lib/strnlen1.h: Likewise.
63199         * lib/tls.c: Likewise.
63200         * lib/tls.h: Likewise.
63201         * lib/tmpdir.c: Likewise.
63202
63203         * lib/TODO: Remove; this belongs only in coreutils.
63204
63205 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63206
63207         Add copyright notices to long-enough files that lack them, since
63208         otherwise the files aren't clearly free.  Use the same notice that
63209         getdate.texi already uses.
63210         * doc/alloca-opt.texi: Add copyright notice.
63211         * doc/alloca.texi: Likewise.
63212         * doc/ctime.texi: Likewise.
63213         * doc/functions.texi: Likewise.
63214         * doc/gcd.texi: Likewise.
63215         * doc/gnulib-tool.texi: Likewise.
63216         * doc/inet_ntoa.texi: Likewise.
63217         * doc/visibility.texi: Likewise.
63218
63219         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
63220         * doc/quote.texi: Add copyright notice.
63221
63222         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
63223         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
63224         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
63225         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
63226         is now obsolete, and give a pointer to the Sun list.
63227         Add copyright notice.
63228
63229 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63230
63231         * config/srclistvars.sh: Add copyright notice.
63232
63233 2006-08-14  Eric Blake  <ebb9@byu.net>
63234
63235         Import the following change from libc:
63236
63237         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
63238
63239         Upstream bug 2997.
63240         * lib/misc/error.c: Add space between program name and message if file
63241         name is missing.
63242
63243 2006-08-12  Karl Berry  <karl@gnu.org>
63244
63245         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
63246         remove, these originate in gnulib now.
63247
63248 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63249
63250         * doc/Makefile (standards.info standards.html standards.dvi):
63251         Also depend on make-stds.texi.
63252
63253 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
63254
63255         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
63256         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
63257
63258         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
63259         in wchar_t.  Problem reported by Eric Blake.
63260
63261         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
63262         LEN is smaller than SIZE.  Suggested by Bruno Haible.
63263         Also, help the compiler to keep LEN in a register.
63264
63265 2006-08-11  Eric Blake  <ebb9@byu.net>
63266
63267         * users.txt: Sort.  Add tar.
63268
63269 2006-08-11  Bruno Haible  <bruno@clisp.org>
63270
63271         * users.txt: New file.
63272
63273 2006-08-11  Bruno Haible  <bruno@clisp.org>
63274
63275         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
63276         before <wchar.h>. Needed for OSF/1 and BSD/OS.
63277
63278 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63279
63280         * modules/snprintf (Depends-on): Remove minmax.
63281         (Maintainer): Add self and Bruno.
63282
63283 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63284
63285         * lib/.cppi-disable: Add snprintf.h, socket_.h.
63286         * lib/snprintf.c: Include <errno.h> and <limits.h>.
63287         (EOVERFLOW): Define if the system does not.
63288         Do not include "minmax.h"; it wasn't used.
63289         (snprintf): Don't assume size_t promotes to an unsigned type.
63290         Fix bug when generated string was too long for the buffer: the
63291         buffer's contents are supposed to be the initial prefix of the
63292         output.  Don't assume vasnprintf returns EOVERFLOW if the size
63293         exceeds INT_MAX; do the check ourselves.
63294
63295         Import the following changes from libc:
63296
63297         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
63298
63299         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
63300         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
63301         set wc to the byte which couldn't be converted.
63302         (re_string_reconstruct): Don't clear valid_raw_len before calling
63303         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
63304         tip_context using re_string_context_at.
63305
63306         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
63307
63308         * lib/posix/regex.h: g++ still cannot handled [restrict].
63309
63310         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
63311
63312         * lib/posix/regex.h: Remove special handling for VMS.
63313
63314 2006-08-10  Jim Meyering  <jim@meyering.net>
63315
63316         * modules/same-inode: New module.
63317         * modules/dev-ino: New module.
63318         * modules/cycle-check: Depend on these modules, rather than simply
63319         including their .h files.
63320         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
63321         required via m4/cycle-check.m4.
63322         * modules/same: Depend on new same-inode module, rather than
63323         including same-inode.h.
63324         * modules/chdir-safer: New file.
63325
63326         * modules/chown (Depends-on): Add stat-macros.
63327
63328 2006-08-10  Jim Meyering  <jim@meyering.net>
63329
63330         * m4/cycle-check.m4: New file.
63331         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
63332         * m4/dev-ino.m4, m4/same-inode.m4: New files.
63333
63334 2006-08-10  Eric Blake  <ebb9@byu.net>
63335
63336         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
63337         in from original proposal.
63338
63339 2006-08-10  Eric Blake  <ebb9@byu.net>
63340         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
63341
63342         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
63343         namespace.
63344
63345 2006-08-10  Bruno Haible  <bruno@clisp.org>
63346
63347         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
63348         as well.
63349
63350 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63351
63352         Sync from coreutils.
63353
63354         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
63355
63356         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
63357         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
63358
63359 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63360
63361         * modules/restrict: Remove; no longer needed now that we assume
63362         Autoconf 2.59 or later.
63363         * MODULES.html.sh: Remove 'restrict'.
63364         * modules/argp (Depends-on): Remove 'restrict'.
63365         * modules/base64 (Depends-on): Likewise.
63366         * modules/gc (Depends-on): Likewise.
63367         * modules/getaddrinfo (Depends-on): Likewise.
63368         * modules/glob (Depends-on): Likewise.
63369         * modules/inet_ntop (Depends-on): Likewise.
63370         * modules/inet_pton (Depends-on): Likewise.
63371         * modules/memxor (Depends-on): Likewise.
63372         * modules/regex (Depends-on): Likewise.
63373         * modules/strtok_r (Depends-on): Likewise.
63374         * modules/time_r (Depends-on): Likewise.
63375
63376 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
63377
63378         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
63379         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
63380         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63381         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
63382         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
63383         * m4/memxor.m4 (gl_MEMXOR): Likewise.
63384         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
63385         gl_C_RESTRICT replaced by AC_C_RESTRICT.
63386
63387         Merge from coreutils.
63388         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
63389         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
63390         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63391         * m4/time_r.m4 (gl_TIME_R): Likewise.
63392
63393 2006-08-09  Karl Berry  <karl@gnu.org>
63394
63395         * config/srclist.txt: no more gettext-tools, per Bruno.
63396
63397 2006-08-08  Eric Blake  <ebb9@byu.net>
63398
63399         * modules/verror: New module.
63400         * MODULES.html.sh: Document it.
63401
63402 2006-08-08  Eric Blake  <ebb9@byu.net>
63403
63404         * lib/verror.h, lib/verror.c: New files.
63405
63406 2006-08-08  Eric Blake  <ebb9@byu.net>
63407
63408         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
63409         verror_at_line output complies with GNU Coding Standards even when
63410         file is NULL.
63411
63412 2006-08-07  Bruno Haible  <bruno@clisp.org>
63413
63414         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
63415         versions of AIX.
63416         Reported by Ralf Wildenhues.
63417
63418 2006-08-07  Bruno Haible  <bruno@clisp.org>
63419
63420         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
63421         in an AC_DEFUN. Needed so that the autoconf snippets can use
63422         AC_REQUIRE.
63423
63424 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63425
63426         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63427         Initialize pkgdata_DATA.
63428         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
63429         overriding it.
63430
63431 2006-08-06  Eric Blake  <ebb9@byu.net>
63432
63433         * lib/error.h: Fold in some upstream changes from glibc.
63434         * lib/error.c: Likewise.
63435
63436 2006-08-04  Bruno Haible  <bruno@clisp.org>
63437
63438         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63439         Make the mostlyclean-local rule depend on mostlyclean-generic.
63440         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
63441
63442 2006-07-31  Bruno Haible  <bruno@clisp.org>
63443
63444         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
63445         <stdlib.h>, <string.h>.
63446
63447 2006-07-30  Bruno Haible  <bruno@clisp.org>
63448
63449         * modules/readlink (License): Change to LGPL.
63450
63451 2006-07-30  Bruno Haible  <bruno@clisp.org>
63452
63453         * modules/javaversion (Makefile.am): Distribute javaversion.java and
63454         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
63455         set PKGDATADIR to point to it.
63456
63457 2006-07-30  Bruno Haible  <bruno@clisp.org>
63458
63459         * modules/csharpexec (configure.ac): Comment out macro invocation.
63460         * modules/javaexec (configure.ac): Likewise.
63461         * modules/javacomp-script (configure.ac): Likewise.
63462
63463         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
63464
63465 2006-07-30  Bruno Haible  <bruno@clisp.org>
63466
63467         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
63468         linked-list.
63469
63470 2006-07-30  Bruno Haible  <bruno@clisp.org>
63471
63472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
63473
63474 2006-07-30  Bruno Haible  <bruno@clisp.org>
63475
63476         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63477         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
63478         get removed.
63479
63480 2006-07-29  Bruno Haible  <bruno@clisp.org>
63481
63482         Make it possible for gnulib-tool to work with locally modified or
63483         augmented gnulib repositories.
63484         * gnulib-tool (func_usage): Document --local-dir option.
63485         (local_gnulib_dir): New variable.
63486         Handle --local-dir option.
63487         (func_lookup_file): New function.
63488         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
63489         (func_get_description, func_get_filelist, func_get_description,
63490         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
63491         func_get_automake_snippet, func_get_include_directive,
63492         func_get_license, func_get_maintainer): Use func_lookup_file.
63493         (func_import, func_create_testdir): Use func_lookup_file.
63494
63495 2006-07-29  Bruno Haible  <bruno@clisp.org>
63496
63497         * modules/setenv (Depends-on): Add unistd.
63498
63499 2006-07-29  Bruno Haible  <bruno@clisp.org>
63500
63501         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
63502
63503 2006-07-29  Bruno Haible  <bruno@clisp.org>
63504
63505         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
63506
63507 2006-07-29  Bruno Haible  <bruno@clisp.org>
63508
63509         * gnulib-tool (import, update): If there is no Makefile.am, look at
63510         aclocal.m4, instead of bailing out.
63511
63512 2006-07-29  Bruno Haible  <bruno@clisp.org>
63513
63514         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
63515         Categorize the options by when they are useful.
63516
63517 2006-07-29  Bruno Haible  <bruno@clisp.org>
63518
63519         * gnulib-tool (func_usage): Document option --no-libtool.
63520         Handle option --no-libtool.
63521         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
63522         for changed semantics of $libtool variable.
63523         (func_import): Likewise. If libtool is not used, show this through
63524         an option --no-libtool.
63525         (func_create_testdir): Update.
63526
63527 2006-07-29  Bruno Haible  <bruno@clisp.org>
63528
63529         * gnulib-tool (func_import): Extend error message about missing
63530         --doc-base.
63531
63532 2006-07-29  Bruno Haible  <bruno@clisp.org>
63533
63534         * gnulib-tool (func_import): Don't create the $docbase directory if
63535         there is no file to store there.
63536
63537 2006-07-29  Bruno Haible  <bruno@clisp.org>
63538
63539         * gnulib-tool (autoconf_minversion): If a --dir option is given and
63540         relevant, look for configure.ac there, not in the current directory.
63541         Also use a simple search for AC_PREREQ, not "autoconf --trace".
63542
63543 2006-07-29  Bruno Haible  <bruno@clisp.org>
63544
63545         * gnulib-tool (SORT): New variable.
63546         (func_usage): Undocument --assume-autoconf option.
63547         Remove --assume-autoconf option handling.
63548         (autoconf_minversion): Determine from the contents of configure.ac.
63549         (func_import): Remove autoconf_minversion handling.
63550         Suggested by Eric Blake.
63551
63552 2006-07-29  Bruno Haible  <bruno@clisp.org>
63553
63554         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
63555
63556 2006-07-29  Bruno Haible  <bruno@clisp.org>
63557
63558         * config/srclist.txt (*setenv.[ch]): Remove rules.
63559
63560 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63561
63562         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
63563
63564 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63565
63566         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
63567         arpa/inet.h.
63568
63569 2006-07-28  Simon Josefsson  <jas@extundo.com>
63570
63571         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
63572         * modules/inet_pton (Depends-on): Likewise.
63573
63574 2006-07-28  Simon Josefsson  <jas@extundo.com>
63575
63576         * m4/netinet_in_h.m4: New file.
63577
63578 2006-07-28  Simon Josefsson  <jas@extundo.com>
63579
63580         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
63581         #include's.
63582
63583 2006-07-28  Simon Josefsson  <jas@extundo.com>
63584
63585         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
63586         #include's.
63587
63588 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
63589
63590         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
63591         setgid on directories only if they set these bits.
63592         * lib/modechange.h: Remove obsolete comment about masks.
63593
63594 2006-07-28  Eric Blake  <ebb9@byu.net>
63595
63596         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
63597         macro expansion.
63598
63599 2006-07-28  Bruno Haible  <bruno@clisp.org>
63600
63601         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
63602
63603 2006-07-28  Bruno Haible  <bruno@clisp.org>
63604
63605         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
63606
63607 2006-07-28  Bruno Haible  <bruno@clisp.org>
63608
63609         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
63610         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
63611         Define fallbacks.
63612         Avoids link error on FreeBSD 4.x.
63613         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63614
63615         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
63616         encoding.
63617         * lib/mbswidth.c (iswcntrl): Likewise.
63618
63619 2006-07-27  Bruno Haible  <bruno@clisp.org>
63620
63621         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
63622         test.
63623
63624 2006-07-27  Bruno Haible  <bruno@clisp.org>
63625
63626         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
63627         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
63628         defined.
63629
63630 2006-07-26  Eric Blake  <ebb9@byu.net>
63631
63632         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
63633
63634 2006-07-26  Eric Blake  <ebb9@byu.net>
63635
63636         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
63637         like mingw that lack mkstemp.
63638         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
63639         avoid compilation warning on mingw.
63640
63641 2006-07-26  Bruno Haible  <bruno@clisp.org>
63642
63643         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
63644         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
63645         INT_FAST*_MIN, INTPTR_MIN.
63646
63647 2006-07-25  Bruno Haible  <bruno@clisp.org>
63648
63649         * modules/version-etc (Depends-on): Add stdarg.
63650
63651 2006-07-25  Bruno Haible  <bruno@clisp.org>
63652
63653         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
63654         complex commands.
63655
63656 2006-07-25  Bruno Haible  <bruno@clisp.org>
63657
63658         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
63659         defined in <stdarg.h> or config.h.
63660
63661 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
63662
63663         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
63664         (gl_STDIO_SAFER): Remove.
63665
63666 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
63667
63668         * MODULES.html.sh (File stream based Input/Output):
63669         Add fopen-safer, tmpfile-safer; remove stdio-safer.
63670         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
63671         * modules/fopen-safer, modules/tmpfile-safer: New files.
63672         * modules/stdio-safer: Remove.
63673
63674 2006-07-24  Bruno Haible  <bruno@clisp.org>
63675
63676         * modules/tmpdir: New file.
63677         * MODULES.html.sh (File system functions): Add it.
63678
63679 2006-07-24  Bruno Haible  <bruno@clisp.org>
63680
63681         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
63682         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
63683
63684 2006-07-24  Bruno Haible  <bruno@clisp.org>
63685
63686         * modules/clean-temp: New file.
63687
63688 2006-07-24  Bruno Haible  <bruno@clisp.org>
63689
63690         * m4/tmpdir.m4: New file, from GNU gettext.
63691
63692 2006-07-24  Bruno Haible  <bruno@clisp.org>
63693
63694         * lib/tmpdir.h: New file, from GNU gettext.
63695         * lib/tmpdir.c: New file, from GNU gettext.
63696
63697 2006-07-24  Bruno Haible  <bruno@clisp.org>
63698
63699         * lib/clean-temp.h: New file, from GNU gettext.
63700         * lib/clean-temp.c: New file, from GNU gettext.
63701
63702 2006-07-23  Eric Blake  <ebb9@byu.net>
63703
63704         * modules/stdio-safer (Files): Add tmpfile-safer.c.
63705         (Depends-on): Add binary-io.
63706
63707 2006-07-23  Eric Blake  <ebb9@byu.net>
63708
63709         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
63710
63711 2006-07-23  Eric Blake  <ebb9@byu.net>
63712
63713         * lib/tmpfile-safer.c: New file.
63714         * lib/stdio-safer.h (fopen_safer): Add prototype.
63715         * lib/stdio--.h (tmpfile): Make safer.
63716
63717 2006-07-23  Bruno Haible  <bruno@clisp.org>
63718
63719         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
63720         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
63721         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
63722         gl_linked_remove_at): Use it.
63723
63724 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63725         and Simon Josefsson <jas@extundo.com>
63726
63727         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
63728
63729         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
63730
63731 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63732
63733         * modules/close-stream: New file.
63734         * modules/closeout (Description): Make it clear that it exits
63735         with a diagnostic on error.
63736         (Depends-on): Add close-stream.  Remove fpending, stdbool.
63737         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
63738
63739 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63740
63741         * m4/close-stream.m4: New file.
63742
63743 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63744
63745         * lib/close-stream.c, lib/close-stream.h: New files.
63746
63747 2006-07-22  Bruno Haible  <bruno@clisp.org>
63748
63749         Merge from GNU gettext 0.15.
63750
63751         2006-05-01  Bruno Haible  <bruno@clisp.org>
63752
63753                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
63754
63755         2006-07-22  Bruno Haible  <bruno@clisp.org>
63756
63757                 * modules/javaversion: New file.
63758                 * MODULES.html.sh (Java): Add javaversion.
63759
63760         2006-03-12  Bruno Haible  <bruno@clisp.org>
63761
63762                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
63763
63764         2005-12-04  Bruno Haible  <bruno@clisp.org>
63765
63766                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
63767                 (untested).
63768
63769         2006-06-21  Bruno Haible  <bruno@clisp.org>
63770
63771                 Avoid warnings from recent versions of mcs.
63772                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
63773                 -o, -L, -r any more. Use options documented since mcs-1.0
63774                 instead. Similarly for -g.
63775
63776         2005-12-04  Bruno Haible  <bruno@clisp.org>
63777
63778                 * build-aux/csharpcomp.sh.in: Suffix for resources is
63779                 .resources, not .resource.
63780
63781         2005-07-09  Bruno Haible  <bruno@clisp.org>
63782
63783                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
63784                 add a .dll suffix.
63785                 Reported by Mark Junker <mjscod@gmx.de>.
63786
63787         2006-07-22  Bruno Haible  <bruno@clisp.org>
63788
63789                 * modules/gettext: Upgrade to gettext-0.15.
63790                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
63791                 m4/visibility.m4.
63792                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
63793
63794 2006-07-22  Bruno Haible  <bruno@clisp.org>
63795
63796         Merge from GNU gettext 0.15.
63797
63798         2006-03-25  Bruno Haible  <bruno@clisp.org>
63799
63800                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
63801
63802         2006-07-21  Bruno Haible  <bruno@clisp.org>
63803
63804                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
63805                 "1.1".
63806
63807         2006-05-09  Bruno Haible  <bruno@clisp.org>
63808
63809                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
63810                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
63811                 for the conftestver execution.
63812
63813         2006-05-01  Bruno Haible  <bruno@clisp.org>
63814
63815                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
63816                 optional target-version argument. Verify that the compiler
63817                 groks source of the specified source-version, or add -source
63818                 option as necessary. Verify that the compiler produces
63819                 bytecode in the specified target-version, or add -target and
63820                 -source options as necessary. Make the result of the test
63821                 available as variable CONF_JAVAC. Also log error output in
63822                 config.log.
63823
63824         2006-03-11  Bruno Haible  <bruno@clisp.org>
63825
63826                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
63827
63828         2006-05-09  Bruno Haible  <bruno@clisp.org>
63829
63830                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
63831                 CLASSPATH_SEPARATOR to a semicolon.
63832
63833         2006-03-12  Bruno Haible  <bruno@clisp.org>
63834
63835                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
63836                 available as variable CONF_JAVA, for subsequent autoconf
63837                 tests. Also log error output in config.log.
63838
63839         2006-07-19  Bruno Haible  <bruno@clisp.org>
63840
63841                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
63842                 that getline works on glibc2 systems. Needed to avoid trouble
63843                 in relocatable.c.
63844                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
63845
63846         2005-12-04  Bruno Haible  <bruno@clisp.org>
63847
63848                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
63849                 launcher (untested).
63850
63851         2005-12-04  Bruno Haible  <bruno@clisp.org>
63852
63853                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
63854
63855         2006-07-22  Bruno Haible  <bruno@clisp.org>
63856
63857                 * gettext.m4: Update from GNU gettext-0.15.
63858                 * nls.m4: Likewise.
63859                 * po.m4: Likewise.
63860                 * inttypes-pri.m4: Likewise.
63861                 * inttypes-h.m4: Renamed from inttypes.m4.
63862                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
63863
63864 2006-07-22  Bruno Haible  <bruno@clisp.org>
63865
63866         Merge from GNU gettext 0.15.
63867
63868         2005-07-05  Bruno Haible  <bruno@clisp.org>
63869
63870                 * printf-args.c (printf_fetchargs): Work around broken
63871                 definition of wint_t on mingw.
63872
63873         2005-02-12  Bruno Haible  <bruno@clisp.org>
63874
63875                 * xallocsa.h: Add extern "C" for C++.
63876
63877         2006-05-17  Bruno Haible  <bruno@clisp.org>
63878
63879                 Cygwin portability.
63880                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
63881
63882         2006-04-30  Bruno Haible  <bruno@clisp.org>
63883
63884                 * progreloc.c: Include <mach-o/dyld.h> if available.
63885                 (find_executable): Use _NSGetExecutablePath when possible.
63886
63887         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63888
63889                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
63890                 function.
63891
63892         2005-12-29  Bruno Haible  <bruno@clisp.org>
63893
63894                 * progreloc.c (set_program_name_and_installdir): Fix
63895                 compilation error.
63896
63897         2005-12-04  Bruno Haible  <bruno@clisp.org>
63898
63899                 Cygwin portability.
63900                 * progreloc.c: Include <windows.h> also on Cygwin.
63901                 (find_executable): Add support for Cygwin.
63902                 (set_program_name_and_installdir): Handle also platforms with
63903                 nonempty EXEEXT.
63904
63905         2006-07-11  Bruno Haible  <bruno@clisp.org>
63906
63907                 * javacomp.c: Fix a comment.
63908                 Reported by Jim Meyering.
63909
63910         2006-04-30  Bruno Haible  <bruno@clisp.org>
63911
63912                 * javacomp.h (compile_java_class): Add source_version,
63913                 target_version arguments.
63914                 * javacomp.c: Rewritten to choose only a compiler that
63915                 respects the specified source_version and target_version.
63916
63917         2006-06-27  Bruno Haible  <bruno@clisp.org>
63918
63919                 Assume correct S_ISDIR macro.
63920                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
63921
63922         2006-07-22  Bruno Haible  <bruno@clisp.org>
63923
63924                 * javaversion.h: New file, from GNU gettext.
63925                 * javaversion.c: New file, from GNU gettext.
63926                 * javaversion.java: New file, from GNU gettext.
63927                 * javaversion.class: New file, from GNU gettext.
63928
63929         2006-05-17  Bruno Haible  <bruno@clisp.org>
63930
63931                 Cygwin portability.
63932                 * javaexec.c (execute_java_class): Test for jview program
63933                 also on Cygwin.
63934
63935         2006-04-09  Bruno Haible  <bruno@clisp.org>
63936
63937                 * fatal-signal.c: Don't include string.h.
63938                 (at_fatal_signal): Use a copying loop instead of memcpy.
63939
63940         2005-12-04  Bruno Haible  <bruno@clisp.org>
63941
63942                 * csharpexec.c: Add support for 'clix' launcher (untested).
63943                 (execute_csharp_using_sscli): New function.
63944                 (execute_csharp_program): Call it.
63945
63946         2006-06-21  Bruno Haible  <bruno@clisp.org>
63947
63948                 Avoid warnings from recent versions of mcs.
63949                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
63950                 -o, -L, -r any more. Use options documented since mcs-1.0
63951                 instead. Similarly for -g.
63952
63953         2005-07-09  Bruno Haible  <bruno@clisp.org>
63954
63955                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
63956                 add a .dll suffix.
63957                 Reported by Mark Junker <mjscod@gmx.de>.
63958
63959         2006-06-17  Bruno Haible  <bruno@clisp.org>
63960
63961                 * config.charset: Update for NetBSD 3.0.
63962
63963         2006-05-17  Bruno Haible  <bruno@clisp.org>
63964
63965                 Cygwin portability.
63966                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
63967
63968         2006-05-16  Bruno Haible  <bruno@clisp.org>
63969
63970                 * localcharset.c [CYGWIN]: Include <windows.h>.
63971                 (get_charset_aliases): For Cygwin, return the same CPxxx
63972                 aliases list as under WIN32.
63973                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
63974                 the environment variables. Fall back to GetACP().
63975
63976         2006-04-05  Bruno Haible  <bruno@clisp.org>
63977
63978                 * config.charset: Update Juan Manuel Guerrero's address.
63979
63980         2005-02-12  Bruno Haible  <bruno@clisp.org>
63981
63982                 * allocsa.h: Add extern "C" for C++.
63983
63984         2005-02-10  Bruno Haible  <bruno@clisp.org>
63985
63986                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
63987                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
63988
63989         2006-07-22  Bruno Haible  <bruno@clisp.org>
63990
63991                 * gettext.h: Update to GNU gettext-0.15.
63992
63993 2006-07-22  Bruno Haible  <bruno@clisp.org>
63994
63995         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
63996         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
63997         lib-prefix.m4, longdouble.m4, ssize_t.m4.
63998
63999 2006-07-21  Eric Blake  <ebb9@byu.net>
64000
64001         * modules/stdlib-safer: New file.
64002         * MODULES.html.sh (File stream based Input/Output): Add
64003         stdlib-safer.
64004
64005 2006-07-21  Eric Blake  <ebb9@byu.net>
64006
64007         * lib/stdlib-safer.h: New file from coreutils, required by
64008         stdlib--.h.
64009
64010 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
64011
64012         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
64013
64014 2006-07-20  Bruno Haible  <bruno@clisp.org>
64015
64016         * gnulib-tool: Recognize new option --assume-autoconf.
64017         (autoconf_minversion): New variable.
64018         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
64019
64020 2006-07-20  Bruno Haible  <bruno@clisp.org>
64021
64022         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
64023
64024 2006-07-19  Derek R. Price  <derek@ximbiot.com>
64025
64026         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
64027         Reindent and repaginate.
64028
64029 2006-07-19  Derek Price  <derek@ximbiot.com>
64030
64031         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
64032         Correct grammar.
64033
64034 2006-07-17  Bruno Haible  <bruno@clisp.org>
64035
64036         * modules/list: New file.
64037         * modules/array-list: New file.
64038         * modules/carray-list, modules/carray-list-tests: New files.
64039         * modules/linked-list, modules/linked-list-tests: New files.
64040         * modules/avltree-list, modules/avltree-list-tests: New files.
64041         * modules/rbtree-list, modules/rbtree-list-tests: New files.
64042         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
64043         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
64044         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
64045         * modules/oset: New file.
64046         * modules/array-oset: New file.
64047         * modules/avltree-oset, modules/avltree-oset-tests: New files.
64048         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
64049         * tests/test-carray_list.c: New file.
64050         * tests/test-linked_list.c: New file.
64051         * tests/test-avltree_list.c: New file.
64052         * tests/test-rbtree_list.c: New file.
64053         * tests/test-linkedhash_list.c: New file.
64054         * tests/test-avltreehash_list.c: New file.
64055         * tests/test-rbtreehash_list.c: New file.
64056         * tests/test-avltree_oset.c: New file.
64057         * tests/test-rbtree_oset.c: New file.
64058         * MODULES.html.sh (Container data structures): New section.
64059
64060 2006-07-17  Bruno Haible  <bruno@clisp.org>
64061
64062         * m4/gl_list.m4: New file.
64063
64064 2006-07-17  Bruno Haible  <bruno@clisp.org>
64065
64066         * lib/gl_list.h: New file.
64067         * lib/gl_list.c: New file.
64068         * lib/gl_array_list.h: New file.
64069         * lib/gl_array_list.c: New file.
64070         * lib/gl_carray_list.h: New file.
64071         * lib/gl_carray_list.c: New file.
64072         * lib/gl_linked_list.h: New file.
64073         * lib/gl_linked_list.c: New file.
64074         * lib/gl_anylinked_list1.h: New file.
64075         * lib/gl_anylinked_list2.h: New file.
64076         * lib/gl_avltree_list.h: New file.
64077         * lib/gl_avltree_list.c: New file.
64078         * lib/gl_anyavltree_list1.h: New file.
64079         * lib/gl_anyavltree_list2.h: New file.
64080         * lib/gl_rbtree_list.h: New file.
64081         * lib/gl_rbtree_list.c: New file.
64082         * lib/gl_anyrbtree_list1.h: New file.
64083         * lib/gl_anyrbtree_list2.h: New file.
64084         * lib/gl_anytree_list1.h: New file.
64085         * lib/gl_anytree_list2.h: New file.
64086         * lib/gl_linkedhash_list.h: New file.
64087         * lib/gl_linkedhash_list.c: New file.
64088         * lib/gl_anyhash_list1.h: New file.
64089         * lib/gl_anyhash_list2.h: New file.
64090         * lib/gl_avltreehash_list.h: New file.
64091         * lib/gl_avltreehash_list.c: New file.
64092         * lib/gl_rbtreehash_list.h: New file.
64093         * lib/gl_rbtreehash_list.c: New file.
64094         * lib/gl_anytreehash_list1.h: New file.
64095         * lib/gl_anytreehash_list2.h: New file.
64096
64097         * lib/gl_oset.h: New file.
64098         * lib/gl_oset.c: New file.
64099         * lib/gl_array_oset.h: New file.
64100         * lib/gl_array_oset.c: New file.
64101         * lib/gl_avltree_oset.h: New file.
64102         * lib/gl_avltree_oset.c: New file.
64103         * lib/gl_rbtree_oset.h: New file.
64104         * lib/gl_rbtree_oset.c: New file.
64105         * lib/gl_anytree_oset.h: New file.
64106
64107 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64108
64109         * m4/mkancesdirs.m4: New file.
64110         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
64111         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
64112         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
64113         it.
64114
64115 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64116
64117         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
64118         * lib/mkancesdirs.h: New files.
64119         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
64120         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
64121         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
64122         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
64123         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
64124         callers changed.  Revamp internals significantly, by not
64125         attempting to create directories that are temporarily more
64126         permissive than the final results.  Do not attempt to use
64127         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
64128         This removes some race conditions, fixes some bugs, and simplifies
64129         things.  Use new dirchownmod function to do owner and mode changes.
64130         * lib/mkdir-p.h: Likewise.
64131         * lib/modechange.c (octal_to_mode): New function.
64132         (struct mode_change): New member mentioned.
64133         (make_node_op_equals): New arg mentioned.  All callers changed.
64134         (mode_compile): Keep track of which mode bits the user has explicitly
64135         mentioned.
64136         (mode_adjust): New arg DIR, so that we implement the X op correctly.
64137         New arg PMODE_BITS, to keep track of which mode bits the user
64138         mentioned; it treats S_ISUID and S_ISGID speciall.
64139         All callers changed.
64140         * lib/modechange.h: Likewise.
64141
64142 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
64143
64144         * MODULES.html.sh: Add mkancestors.
64145         * modules/mkancesdirs: New module.
64146         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
64147         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
64148         The chdir-safer and afs files are now orphans; I'll remove them
64149         unless someone speaks up.
64150         Add lib/dirchownmod.c, lib/dirchownmod.h.
64151         (Depends-on): Remove alloca, chown, save-cwd, dirname.
64152         Add lchown, mkancesdirs.
64153         (Maintainer): Add self.
64154
64155 2006-07-15  Karl Berry  <karl@gnu.org>
64156
64157         * gnulib-tool: help message wording/arrangement.
64158
64159 2006-07-14  Simon Josefsson  <jas@extundo.com>
64160
64161         * doc/gnulib.texi (Libtool and Windows): New section.
64162
64163 2006-07-12  Simon Josefsson  <jas@extundo.com>
64164
64165         * modules/gendocs (License): Fix license, approved by Karl.
64166
64167 2006-07-12  Eric Blake  <ebb9@byu.net>
64168
64169         * MODULES.html.sh: Add gendocs.
64170
64171 2006-07-11  Eric Blake  <ebb9@byu.net>
64172
64173         * modules/fdl: New module, to install doc/fdl.texi.
64174         * MODULES.html.sh: Add new section for documentation modules.
64175         * gnulib-tool: Avoid space-tab.
64176         (--doc-base): New option, to manage files from doc.
64177
64178 2006-07-11  Eric Blake  <ebb9@byu.net>
64179
64180         * m4/absolute-header.m4: Fix comments to match recent change.
64181
64182 2006-07-11  Eric Blake  <ebb9@byu.net>
64183
64184         * gnulib-tool: List --doc-base before --tests-base.
64185
64186 2006-07-11  Derek R. Price  <derek@ximbiot.com>
64187
64188         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
64189
64190 2006-07-11  Bruno Haible  <bruno@clisp.org>
64191
64192         * README: Mention where to put documentation.
64193
64194 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64195
64196         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
64197
64198 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
64199
64200         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
64201         to stdint.m4.
64202
64203 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
64204
64205         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
64206         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
64207         "no/such/file/stdint.h" when there is no such file, so that
64208         the resulting C code can be parsed by dodgy compilers.
64209         Problems reported by Bob Proulx.
64210
64211 2006-07-10  Derek R. Price  <derek@ximbiot.com>
64212
64213         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
64214         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
64215         macros into the GNU _D_EXACT_NAMLEN.
64216         * lib/savedir.c:  Likewise.
64217         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
64218
64219 2006-07-10  Derek R. Price  <derek@ximbiot.com>
64220         and Paul Eggert  <eggert@cs.ucla.edu>
64221
64222         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
64223         * m4/savedir.m4:
64224         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
64225         macros into the GNU _D_EXACT_NAMLEN.
64226
64227 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64228
64229         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
64230         around the absolute name, to work around a problem with the HP-UX
64231         11.23 native C compiler, reported by Bob Proulx.
64232
64233 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64234
64235         * doc/maintain.texi, make-stds.texi: Sync from
64236         <http://savannah.gnu.org/projects/gnustandards>.
64237
64238 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
64239
64240         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
64241
64242 2006-07-09  Jim Meyering  <jim@meyering.net>
64243
64244         * m4/glob.m4: Remove a doubled word in a comment.
64245
64246 2006-07-09  Jim Meyering  <jim@meyering.net>
64247
64248         * lib/argp-pv.c: Remove a doubled word in a comment.
64249         * lib/check-version.c (check_version): Likewise.
64250         * lib/javacomp.c (compile_java_class): Likewise.
64251
64252 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
64253
64254         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
64255         for the benefit of people using Autoconf 2.60.  If you want to
64256         support older Autoconf versions you can copy m4/onceonly_2_57.m4
64257         (or m4/onceonly.m4, if pre-2.57) manually.
64258
64259 2006-07-08  Jim Meyering  <jim@meyering.net>
64260
64261         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
64262         comment.
64263         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
64264         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
64265         comment.
64266
64267 2006-07-08  Jim Meyering  <jim@meyering.net>
64268
64269         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
64270
64271 2006-07-07  Simon Josefsson  <jas@extundo.com>
64272
64273         * tests/test-crc.c: Change expected crc value, the test vector
64274         were probably computed using the old broken crc.c?
64275
64276 2006-07-06  Simon Josefsson  <jas@extundo.com>
64277
64278         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
64279         now the canonical place for the M4 file).
64280
64281         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
64282         from the sys_socket dependency now.
64283
64284         * modules/inet_pton (Files): Ditto.
64285
64286         * modules/inet_ntop (Files): Ditto.
64287
64288 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64289
64290         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
64291         not gl_PREREQ_GETUSERSHELL.
64292
64293 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64294
64295         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
64296         with only one argument, for Autoconf 2.60.
64297         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
64298         expand to nothing, so add a shell command to avoid syntax error.
64299         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
64300
64301 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64302
64303         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
64304
64305 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64306
64307         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
64308         no longer needed.  Check for isblank decl.
64309         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
64310         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
64311         of existence.
64312
64313 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64314
64315         * lib/getloadavg.c: Use __VMS, not VMS.
64316         * lib/getopt.c: Likewise.
64317         * lib/getpagesize.h: Likewise.
64318         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
64319         and probably does not work.
64320
64321 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
64322
64323         * lib/.cppi-disable: Add wcwidth.
64324         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
64325         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
64326         (ISGRAPH): Remove.  All uses changed to isgraph.
64327         (FOLD) [!defined _LIBC]: Remove special case.
64328         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
64329         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
64330         HAVE_ISBLANK.
64331         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
64332         case.
64333
64334 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
64335
64336         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
64337         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
64338         brackets.  Other minor changes to suppress some compiler
64339         warnings.
64340
64341 2006-07-06  Derek R. Price  <derek@ximbiot.com>
64342         and Paul Eggert  <eggert@cs.ucla.edu>
64343
64344         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
64345         of invoking obsolescent AC_HEADER_DIRENT macro.
64346         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
64347         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
64348         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
64349         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
64350         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
64351         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64352         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
64353         * m4/readdir.m4: Remove; no longer needed.
64354
64355 2006-07-06  Derek R. Price  <derek@ximbiot.com>
64356         and Paul Eggert  <eggert@cs.ucla.edu>
64357
64358         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
64359         Don't worry about this obsolete case any more.
64360         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
64361         directories.
64362         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
64363         worry about this obsolete case any more.
64364         * lib/fts.c: Likewise.
64365         * lib/getcwd.c: Likewise.
64366         * lib/glob.h: Likewise.
64367         * lib/savedir.c: Likewise.
64368
64369 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64370
64371         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
64372         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
64373         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
64374         needed.
64375         All uses removed.
64376         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64377         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
64378         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
64379         needed.
64380         * m4/getdate.m4 (gl_GETDATE): Likewise.
64381         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
64382         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
64383         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
64384         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64385         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
64386         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64387         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
64388         needed.
64389
64390 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
64391
64392         * lib/memcasecmp.c: Include <limits.h>.
64393         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
64394         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
64395         Don't assume isdigit succeeds only on '0' through '9'.
64396
64397 2006-07-05  Eric Blake  <ebb9@byu.net>
64398
64399         * modules/getaddrinfo (Depends-on): Add snprintf.
64400
64401 2006-07-05  Eric Blake  <ebb9@byu.net>
64402
64403         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
64404         to avoid 'header present but could not be compiled' on cygwin.
64405
64406 2006-07-05  Eric Blake  <ebb9@byu.net>
64407
64408         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
64409         missing from netdb.h.
64410         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
64411
64412 2006-07-05  Derek R. Price  <derek@ximbiot.com>
64413
64414         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
64415         no longer needed.
64416         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
64417         * m4/getdate.m4 (gl_GETDATE): Likewise.
64418         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
64419         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
64420         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
64421         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
64422         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64423
64424 2006-07-05  Derek R. Price  <derek@ximbiot.com>
64425
64426         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
64427         All uses of is_space replaced by isspace.
64428         * lib/exit.h: Don't talk about STDC_HEADERS.
64429         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
64430         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
64431         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
64432         replaced by isprint etc.
64433         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
64434         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
64435         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
64436         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
64437         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
64438         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
64439
64440 2006-07-05  Bruno Haible  <bruno@clisp.org>
64441
64442         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
64443         the function exists, before testing against AIX.
64444         Reported by Martin Lambers <marlam@marlam.de>.
64445
64446 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
64447
64448         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
64449         From Mark D. Baushke.
64450
64451 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
64452
64453         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
64454         to the absolute name, not just one, to bypass Sun C 5.8's
64455         "warning: #include of /usr/include/... may be non-portable".
64456
64457 2006-07-04  Eric Blake  <ebb9@byu.net>
64458
64459         * modules/dirname-tests: New test module.
64460         * tests/test-dirname.c: New file, replacing dirname.c
64461         TEST_DIRNAME section that was recently deleted.
64462
64463 2006-07-04  Bruno Haible  <bruno@clisp.org>
64464
64465         Assume ANSI C header files and <ctype.h> functions.
64466         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
64467         (mbsnwidth): Use isprint, iscntrl instead.
64468
64469 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64470
64471         Merge from coreutils.
64472         * MODULES.html.sh: Add xstrtold.
64473         * modules/xstrtold: New file.
64474         * modules/cycle-check (Files): Add lib/same-inode.h.
64475         * modules/dirname (Files): Add m4/double-slash-root.m4.
64476         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
64477         * modules/mkdir-p (Files): Add lib/same-inode.h.
64478         * modules/same (Files): Add lib/same-inode.h.
64479
64480 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64481
64482         * m4/absolute-header.m4: Renamed from full-header-path.m4.
64483         This is to keep the terminology clean; POSIX talks about
64484         "absolute pathnames", not "full pathnames", but the GNU
64485         Coding Standards say to use "path" for something else;
64486         so use "absolute" to keep both sides happy.
64487         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
64488         Set gl_absolute_header, not gl_full_header_path.
64489         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
64490         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
64491         All uses changed.
64492
64493         Merge from coreutils.
64494
64495         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
64496
64497         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
64498         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
64499         want to require the building of c-strtod.o.
64500         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
64501         needs -lm directly.
64502         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
64503
64504         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
64505
64506         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
64507         --as-needed option if available.  Problem reported by Albert Chin in
64508         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
64509         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
64510         cc merely issues a bunch of annoying warnings for --as-needed
64511         (this problem was reported by Bob Proulx).  Also, try linking with
64512         -lm to detect a bug in binutils 2.16 (this problem was reported
64513         by Ralf Wildenhues).
64514
64515         2006-06-18  Jim Meyering  <jim@meyering.net>
64516
64517         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
64518         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
64519         macro.
64520         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
64521         also check for glibc-2.4's abort-inducing bug.
64522
64523         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
64524         Low-probability clean-up should be to use rmdir to get rid of
64525         the just-created directory, not unlink.
64526
64527         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
64528         configure fail, and request a bug report to inform us about it.
64529         Add a comment that, barring reports to the contrary, in 2007 we'll
64530         assume ftruncate is universally available.
64531
64532         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
64533
64534         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
64535
64536         2006-03-12  Jim Meyering  <jim@meyering.net>
64537
64538         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
64539         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
64540         * m4/same.m4 (gl_SAME): Likewise.
64541         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
64542
64543         2006-03-11  Eric Blake  <ebb9@byu.net>
64544
64545         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
64546         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
64547         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
64548         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
64549
64550 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
64551
64552         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
64553         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
64554         reported by Mark D. Baushke, one in
64555         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
64556
64557         Merge from coreutils.
64558
64559         * lib/.cppi-disable: Add stdint_.h.
64560         * lib/.cvsignore: Add stdint.h.
64561
64562         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
64563
64564         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
64565         both double and long double versions.
64566         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
64567         * lib/xstrtold.c: New file.
64568         * lib/xstrtod.h (xstrtold): New decl.
64569
64570         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
64571
64572         * lib/filemode.c (setst): Remove.
64573         (strmode): Rewrite to avoid setst.  This makes the code shorter,
64574         (arguably) clearer, and the generated code is a bit smaller on my
64575         Debian GNU/Linux stable x86 host.
64576
64577         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
64578
64579         * lib/filemode.c: Include "filemode.h" first, to test the interface.
64580         Assume that filemode.h includes sys/types.h and sys/stat.h.
64581         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
64582         (ftypelet): Reorder to put common cases first, for efficiency.
64583         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
64584         to do 'M'.
64585         (strmode): Renamed from mode_string, and now stores 12 bytes instead
64586         of 10, for compatibility with FreeBSD.  All callers changed.
64587         (filemodestring): Now stores 12 bytes instead of 10, and sets file
64588         types that can't be deduced solely from st_mode.  First arg is now a
64589         const pointer.
64590         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
64591         (strmode): Renamed from mode_string.
64592         (filemodestring): New decl.
64593         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
64594         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
64595         needed.
64596         (S_ISPORT, S_ISWHT): New macros, if not already defined.
64597
64598         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
64599
64600         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
64601         fsusage.h now does that.  Include fsusage.h first, to test interface.
64602         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
64603         at most one method (the old code could have generated decls that
64604         didn't conform to C89, not that this was ever exercised).
64605         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
64606
64607         2006-03-19  Jim Meyering  <jim@meyering.net>
64608
64609         Work even in a chroot where d_ino values for entries in "/"
64610         don't match the stat.st_ino values for the same names.
64611         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
64612         number, iterate through all entries again, using lstat instead.
64613         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
64614         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
64615
64616         * lib/getcwd.c (__getcwd): Clarify a comment.
64617         Use memcpy in place of a call to strcpy.
64618
64619         2006-03-12  Jim Meyering  <jim@meyering.net>
64620
64621         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
64622         matches that of the current directory (which we're about to chdir ".."
64623         out of), then save the dev-ino of the parent, instead.
64624
64625         * lib/same-inode.h (SAME_INODE): New file/macro.
64626         * lib/chdir-safer.c (SAME_INODE): Remove definition.
64627         Include "same-inode.h", instead.
64628         * lib/same.c: Likewise.
64629         * lib/cycle-check.h: Include "same-inode.h".
64630         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
64631         * lib/cycle-check.c (SAME_INODE): Remove definition.
64632         * lib/root-dev-ino.h: Include "same-inode.h".
64633
64634         2006-03-11  Eric Blake  <ebb9@byu.net>
64635
64636         * lib/same.c (same_name): s/base_name/last_component/
64637         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
64638         * lib/filenamecat.c (file_name_concat): Likewise.
64639
64640         2006-03-11  Eric Blake  <ebb9@byu.net>,
64641                     Paul Eggert  <eggert@cs.ucla.edu>
64642
64643         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
64644         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
64645         drive prefix.
64646         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
64647         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
64648         (last_component): New method.
64649         * lib/dirname.c (dir_len): Determine when drive letters need a
64650         subsequent slash.  Preserve // when it is special.
64651         (dir_name): Don't append dot when drive letter is absolute.
64652         [TEST_DIRNAME]: Move into a full-blown gnulib test.
64653         * lib/basename.c (base_name): New semantics - malloc the result.
64654         Preserve // when it is special.  Preserve relative files that look
64655         like drive letters.
64656         (base_len): Preserve // when it is special.
64657         (last_component): New method, similar to old base_name semantics.
64658         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
64659         base_name.  Strip redundant slashes from ///.
64660
64661 2006-07-03  Jim Meyering  <jim@meyering.net>
64662
64663         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
64664         macro is used before the first cycle_check call.
64665
64666 2006-07-03  Eric Blake  <ebb9@byu.net>
64667
64668         * modules/dirname (Depends-on): Add xstrndup.
64669
64670 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64671
64672         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
64673         test cases, so that config.log is a bit easier to follow.
64674
64675 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64676
64677         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
64678         both are 64 bits, since this seems to be the tradition, and this
64679         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
64680         we ever run into a host that prefers long long to long in this
64681         case, we'll need another configure-time test.  Problem reported by
64682         Jim Meyering.
64683
64684 2006-07-02  Eric Blake  <ebb9@byu.net>
64685
64686         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
64687
64688 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64689
64690         * modules/inttypes (Depends-on): No longer depends on stdint.
64691         * modules/stdint (Description): Say more about assumptions.
64692         Say that the fast types might differ.  Say macros are used.
64693         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
64694         (Makefile.am): Revise list of substituted symbols to match
64695         new stdint.m4.
64696         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
64697         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
64698         * tests/test-stdint.c (verify_same_types)
64699         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
64700         the code conforms to C99/C89.
64701         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
64702         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
64703
64704 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64705
64706         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
64707         but fix a bug, by requiring at least 64 bits.
64708         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64709         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
64710         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
64711         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
64712
64713         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
64714         changes.  Make 2.59 a prerequisite.  Check and substitute for
64715         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
64716         inttypes.h.  Do not use special include files; just use the
64717         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
64718         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
64719         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
64720         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
64721         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
64722         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
64723         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
64724         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
64725         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
64726         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
64727         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
64728         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
64729         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
64730         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
64731         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
64732         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
64733         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
64734         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
64735         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
64736         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
64737         WINT_MAX.  Check for C99 conformance more strictly, by detecting
64738         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
64739         not check for things that C99 does not require, e.g., int8_t.  If
64740         a test isn't needed unless <stdint.h> isn't working, and is
64741         unlikely to be needed for any other reason, then don't do it
64742         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
64743         size_t, since we assume C89 freestanding at least.  Do not check
64744         for sig_atomic_t, wchar_t, or wint_t, since the code now does
64745         the right thing even if the types are not defined.  Instead use:
64746         (gl_STDINT_TYPE_PROPERTIES): New macro.
64747         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
64748         testing whether <sys/types.h> clashes, as Autoconf does this for
64749         us now.  All uses removed.
64750         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
64751         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
64752         (gl_CHECK_TYPE_SAME):
64753         Remove; no longer needed.
64754         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
64755         exists, since we'll return 0 anyway in that case.
64756         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
64757
64758 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
64759
64760         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
64761         possible collision with system files.
64762         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
64763         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
64764         WCHAR_MIN and WCHAR_MAX in this case.
64765         (<stddef.h>): Do not include; no longer needed.
64766         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
64767         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
64768         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
64769         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
64770         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
64771         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
64772         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
64773         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
64774         !defined(__c99))]: Include in this case too, since it's harmless
64775         now.
64776         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
64777         dangerous to do so.
64778         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
64779         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
64780         (_STDINT_MIN, _STDINT_MAX): New macros.
64781         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
64782         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
64783         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
64784         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
64785         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
64786         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
64787         macros, not typedefs; this simplifies things quite a bit.
64788         Use long int for all types narrower than int64_t.
64789         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
64790         Define in terms of long long int or int64_t or long int,
64791         not int64_t or int32_t.  This saves some compile-time testing.
64792         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
64793         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
64794         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
64795         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
64796         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
64797         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
64798         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
64799         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
64800         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
64801         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
64802         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
64803         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
64804         undef any previous version and define our own version, for
64805         simplicity and consistency with the new macros for types.
64806         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
64807         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
64808         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
64809         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
64810         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
64811         @WINT_T_SUFFIX@ to keep things simple here.
64812         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
64813         Simplify by assuming typical 8/16/32/64 host, since we're
64814         already doing that elsewhere anyway.
64815         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
64816         and assume long long int is 64 bits if available.  This
64817         speeds up 'configure'.
64818
64819 2006-07-01  Eric Blake  <ebb9@byu.net>
64820
64821         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
64822         Reported by Andreas Buening.
64823
64824 2006-07-01  Eric Blake  <ebb9@byu.net>
64825
64826         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
64827
64828 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
64829
64830         * lib/getaddrinfo.c: fixed typo
64831
64832 2006-06-29  Jim Meyering  <jim@meyering.net>
64833
64834         * modules/strftime (Maintainer): Add my name, since with the
64835         FPRINTFTIME changes strftime.c has forked from glibc.
64836
64837 2006-06-29  Eric Blake  <ebb9@byu.net>
64838
64839         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
64840
64841 2006-06-29  Eric Blake  <ebb9@byu.net>
64842
64843         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
64844
64845 2006-06-29  Eric Blake  <ebb9@byu.net>
64846
64847         * lib/stat_.h: New file.
64848
64849 2006-06-29  Eric Blake  <ebb9@byu.net>
64850
64851         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
64852         unused static function.
64853
64854 2006-06-29  Eric Blake  <ebb9@byu.net>
64855
64856         * doc/functions.texi (Function Portability): Document missing lstat
64857         on mingw.
64858
64859 2006-06-29  Eric Blake  <ebb9@byu.net>
64860
64861         * MODULES.html.sh: Add sys_stat.
64862         * modules/sys_stat: New module.
64863         * modules/mkstemp (Depends-on): Add sys_stat.
64864
64865 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64866
64867         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
64868
64869 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64870
64871         * m4/c-bs-a.m4: Removed.
64872
64873 2006-06-29  Derek R. Price  <derek@ximbiot.com>
64874
64875         * lib/strftime.c: Assume strftime() exists.
64876
64877 2006-06-29  Derek Price  <derek@ximbiot.com>
64878
64879         * modules/c-bs-a: Removed - \a is C89.
64880         * MODULES.html.sh: Remove c-bs-a.
64881
64882 2006-06-29  Bruno Haible  <bruno@clisp.org>
64883
64884         * modules/wcwidth (License): Change to LGPL.
64885
64886 2006-06-28  Simon Josefsson  <jas@extundo.com>
64887
64888         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
64889         on _WIN32.
64890
64891         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
64892         getnameinfo.
64893
64894 2006-06-28  Simon Josefsson  <jas@extundo.com>
64895
64896         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
64897
64898 2006-06-28  Simon Josefsson  <jas@extundo.com>
64899
64900         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
64901         functions there.  It will succeed on Windows XP, but on Windows
64902         2000 and (presumably) earlier, it will fail, and use the internal
64903         re-implementation.
64904         (use_win32_p): New function.
64905         (getaddrinfo): Use strtoul on servname, to support numeric ports.
64906         Support AI_NUMERICSERV to disable getservbyname.
64907         (getnameinfo): New function, only supports
64908         NI_NUMERICHOST|NI_NUMERICSERV for now.
64909
64910         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
64911         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
64912         getnameinfo.
64913
64914 2006-06-28  Eric Blake  <ebb9@byu.net>
64915
64916         * modules/wcwidth: New file.
64917         * modules/mbchar (Depends-on): Add wcwidth.
64918         * modules/mbswidth (Depends-on): Add wcwidth.
64919         * MODULES.html.sh: Add wcwidth.
64920
64921 2006-06-28  Eric Blake  <ebb9@byu.net>
64922
64923         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
64924         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
64925
64926 2006-06-28  Eric Blake  <ebb9@byu.net>
64927
64928         * lib/xvasprintf.h: Fix comments.
64929
64930 2006-06-28  Eric Blake  <ebb9@byu.net>
64931
64932         * lib/mbchar.h (wcwidth): Include wcwidth.h.
64933         * lib/mbswidth.c (wcwidth): Move from here...
64934         * lib/wcwidth.h: ...to this new file.
64935
64936 2006-06-28  Derek R. Price  <derek@ximbiot.com>
64937
64938         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
64939
64940         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
64941         it's obsolete.
64942         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
64943
64944 2006-06-28  Derek R. Price  <derek@ximbiot.com>
64945
64946         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
64947         Autoconf 2.60 says this stuff was obsolete.
64948
64949 2006-06-28  Bruno Haible  <bruno@clisp.org>
64950
64951         * modules/wcwidth (Files): Add m4/wchar_t.m4.
64952
64953 2006-06-28  Bruno Haible  <bruno@clisp.org>
64954
64955         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
64956         gt_TYPE_WCHAR_T.
64957
64958 2006-06-28  Bruno Haible  <bruno@clisp.org>
64959
64960         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
64961         declaration for wcwidth.
64962         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
64963
64964 2006-06-28  Bruno Haible  <bruno@clisp.org>
64965
64966         * lib/mkdtemp.c [MINGW]: Include <io.h>.
64967         (mkdir): Define using _mkdir.
64968
64969 2006-06-28  Bruno Haible  <bruno@clisp.org>
64970
64971         * lib/getaddrinfo.h: Fix POSIX URL.
64972         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
64973         _WIN32.
64974         (use_win32_p): Make static.
64975         (getaddrinfo): Reject service name if it is empty or does not consist
64976         solely of decimal digits, or if its value is > 65535.
64977         (getnameinfo): Remove useless casts.
64978
64979 2006-06-27  Simon Josefsson  <jas@extundo.com>
64980
64981         * modules/sys_select: New file, suggested by Bruno Haible, Paul
64982         Eggert and Martin Lambers.
64983
64984 2006-06-27  Simon Josefsson  <jas@extundo.com>
64985
64986         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
64987         Eggert and Martin Lambers.
64988
64989 2006-06-27  Bruno Haible  <bruno@clisp.org>
64990
64991         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
64992         result to 0, not to empty.
64993         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
64994
64995 2006-06-27  Bruno Haible  <bruno@clisp.org>
64996
64997         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
64998
64999 2006-06-26  Simon Josefsson  <jas@extundo.com>
65000
65001         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
65002         present.
65003
65004 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
65005
65006         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
65007         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
65008         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
65009
65010 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
65011
65012         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
65013
65014 2006-06-26  Bruno Haible  <bruno@clisp.org>
65015
65016         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
65017
65018 2006-06-26  Bruno Haible  <bruno@clisp.org>
65019
65020         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
65021
65022 2006-06-26  Bruno Haible  <bruno@clisp.org>
65023
65024         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
65025         SGI C compiler in pre-C99 mode.
65026         Suggested by Mark D. Baushke and Larry Jones.
65027
65028 2006-06-26  Bruno Haible  <bruno@clisp.org>
65029
65030         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
65031         WCHAR_MAX.
65032         Reported by Mark D. Baushke and Larry Jones.
65033
65034 2006-06-26  Bruno Haible  <bruno@clisp.org>
65035
65036         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
65037         in pre-C99 mode.
65038         Suggested by Mark D. Baushke and Larry Jones.
65039
65040 2006-06-23  Simon Josefsson  <jas@extundo.com>
65041             Bruno Haible  <bruno@clisp.org>
65042
65043         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
65044         Emit mostlyclean-local rule.
65045         (func_emit_tests_Makefile_am): Likewise.
65046         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
65047
65048 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
65049
65050         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
65051
65052 2006-06-23  Bruno Haible  <bruno@clisp.org>
65053
65054         * tests/test-stdint.c: Update to match ISO C 99 Technical
65055         Corrigendum 1.
65056
65057 2006-06-23  Bruno Haible  <bruno@clisp.org>
65058
65059         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
65060
65061 2006-06-23  Bruno Haible  <bruno@clisp.org>
65062
65063         * lib/stdint_.h: Treat IRIX like OpenBSD.
65064
65065 2006-06-23  Bruno Haible  <bruno@clisp.org>
65066
65067         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
65068         ISO C 99 Technical Corrigendum 1.
65069
65070 2006-06-22  Simon Josefsson  <jas@extundo.com>
65071
65072         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
65073         MinGW.
65074
65075 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
65076
65077         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
65078         needed.  Some compiler complained about some of them.  Problem reported
65079         by Larry Jones in
65080         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
65081
65082 2006-06-21  Simon Josefsson  <jas@extundo.com>
65083
65084         * tests/test-getaddrinfo.c: New file.
65085
65086         * modules/getaddrinfo-tests: New file.
65087
65088         * MODULES.html.sh: Add inet_pton.
65089
65090         * modules/inet_pton: New file.
65091
65092 2006-06-21  Simon Josefsson  <jas@extundo.com>
65093
65094         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
65095         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
65096         of using the (limited) gnulib implementation on Windows XP.
65097
65098         * m4/inet_pton.m4: New file.
65099
65100 2006-06-21  Simon Josefsson  <jas@extundo.com>
65101
65102         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
65103         variable.
65104
65105         * lib/socket_.h: Don't define WINVER.
65106
65107         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
65108         slightly modified to work in gnulib.
65109
65110 2006-06-21  Simon Josefsson  <jas@extundo.com>
65111
65112         * doc/gnulib.texi (Windows sockets): Add.
65113
65114 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65115
65116         * lib/read-file.c (fread_file): Start with buffer allocation of
65117         0 bytes rather than 1 byte; this simplifies the code.
65118         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
65119         code to free buffer and save/restore errno.
65120         (internal_read_file): Remove unused local.
65121
65122 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65123
65124         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
65125         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
65126         Problem reported by Denis Excoffier in
65127         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
65128
65129 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65130
65131         * modules/sys_socket, modules/socklen: Include sys/types since
65132         FreeBSD 4.x's sys/socket.h needs it.
65133
65134 2006-06-19  Simon Josefsson  <jas@extundo.com>
65135
65136         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
65137
65138 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
65139
65140         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
65141
65142 2006-06-19  Bruno Haible  <bruno@clisp.org>
65143
65144         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
65145         and FULL_PATH_INTTYPES_H in angle brackets.
65146         Reported by Mark D. Baushke <mdb@gnu.org>.
65147
65148 2006-06-17  Eric Blake  <ebb9@byu.net>
65149
65150         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
65151         errno.
65152
65153 2006-06-17  Bruno Haible  <bruno@clisp.org>
65154
65155         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
65156         <sys/inttypes.h>.
65157
65158 2006-06-17  Bruno Haible  <bruno@clisp.org>
65159
65160         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
65161         whether errno is declared. Assume <errno.h> declares errno.
65162
65163 2006-06-17  Bruno Haible  <bruno@clisp.org>
65164
65165         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
65166
65167 2006-06-17  Bruno Haible  <bruno@clisp.org>
65168
65169         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
65170         problem on Solaris 2.5.1.
65171
65172 2006-06-16  Eric Blake  <ebb9@byu.net>
65173
65174         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
65175         * lib/unicodeio.c [!defined errno]: Likewise.
65176         * lib/strtol.c [!defined errno]: Likewise.
65177         * lib/strtod.c [!defined errno]: Likewise.
65178
65179 2006-06-15  Eric Blake  <ebb9@byu.net>
65180
65181         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
65182
65183 2006-06-15  Eric Blake  <ebb9@byu.net>
65184
65185         * config/srclist.txt (ssize_t.m4): Lose sync.
65186
65187 2006-06-15  Bruno Haible  <bruno@clisp.org>
65188
65189         * modules/stdint (Files): Include m4/full-header-path.m4,
65190         m4/size_max.m4, m4/wchar_t.m4.
65191         (Makefile.am): Many more substitutions.
65192         * modules/stdint-tests: New file.
65193         * tests/test-stdint.c: New file.
65194
65195 2006-06-15  Bruno Haible  <bruno@clisp.org>
65196
65197         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
65198         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
65199         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
65200         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
65201         gl_CHECK_TYPE_SAME): New macros.
65202
65203 2006-06-15  Bruno Haible  <bruno@clisp.org>
65204
65205         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
65206
65207 2006-06-15  Bruno Haible  <bruno@clisp.org>
65208
65209         * lib/stdint_.h: Rewritten to be fully auto-configured.
65210         Fixes bug on HP-UX/IA64.
65211
65212 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
65213
65214         * lib/getdate.y (__attribute__): Don't define if already defined.
65215         Problem reported by Larry Jones.
65216         * lib/utimens.c (__attribute__): Likewise.
65217
65218 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
65219
65220         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
65221         reported by Andreas Schwab.
65222
65223 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65224             Bruno Haible  <bruno@clisp.org>
65225
65226         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
65227         check for the declaration of strnlen and a run test that exposes the
65228         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
65229         rpl_strndup.
65230
65231 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65232             Bruno Haible  <bruno@clisp.org>
65233
65234         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
65235
65236 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65237
65238         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
65239         compile test, for Tru64 4.0D.
65240
65241 2006-05-28  Karl Berry  <karl@gnu.org>
65242
65243         * config/srclist.txt (printf-args.c): lose sync.
65244
65245 2006-05-26  Martin Lambers  <marlam@marlam.de>
65246
65247         * lib/getpass.c: Updates the test for the native W32 API, and adds
65248         missing includes, thus fixing compilation warnings.
65249
65250 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65251
65252         * lib/exclude.c (exclude_fnmatch): New function.
65253         (excluded_file_name): Call exclude_fnmatch.
65254         * lib/exclude.h (excluded_file_name): New prototype
65255
65256 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
65257
65258         * lib/tempname.c (small_open, large_open): New macros.
65259         (__open, __open64) [!_LIBC]: Remove.
65260         (__gen_tempname): Use small_open and large_open instead of __open
65261         and __open64.  This fixes a portability bug on HP-UX 11.11i
65262         reported by Simon Wing-Tang in
65263         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
65264
65265 2006-05-24  Bruno Haible  <bruno@clisp.org>
65266
65267         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
65268         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
65269         Reported by Thorsten Maerz <torte@netztorte.de> via
65270         Aaron Stone <aaron@serendipity.cx>.
65271
65272 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
65273
65274         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
65275         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
65276         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
65277         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
65278         not really conditional on the cache.
65279         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
65280
65281 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
65282
65283         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
65284         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
65285         (my_usleep): Don't mishandle maximum value.
65286
65287 2006-05-19  Jim Meyering  <jim@meyering.net>
65288
65289         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
65290
65291 2006-05-17  Bruno Haible  <bruno@clisp.org>
65292
65293         Cygwin portability.
65294         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
65295
65296 2006-05-17  Bruno Haible  <bruno@clisp.org>
65297
65298         * lib/stdint_.h: Fix recognition of Cygwin.
65299
65300 2006-05-15  Bruno Haible  <bruno@clisp.org>
65301
65302         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
65303         on libtool patch by Ralf Wildenhues.
65304
65305 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
65306
65307         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
65308         test for C99 conformance; (bool) 0.5 is an integer constant
65309         expression, but (bool) -0.5 is not.  Problem reported by Fedor
65310         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
65311
65312 2006-05-11  Simon Josefsson  <jas@extundo.com>
65313
65314         * m4/xvasprintf.m4: Fix obvious typo.
65315
65316 2006-05-11  Jim Meyering  <jim@meyering.net>
65317
65318         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
65319         James Lemley.
65320
65321 2006-05-10  Simon Josefsson  <jas@extundo.com>
65322
65323         * lib/md4.c: Typo fix, update copyright years.
65324         (K1, K2): Don't use L because it turn computations into 64-bit on
65325         64-bit platforms.
65326
65327 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
65328
65329         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
65330         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
65331         unwanted sign propagation, e.g., on hosts with 64-bit int.
65332         There still are some problems with reeelly weird theoretical hosts
65333         (e.g., 33-bit int) but it's not worth worrying about now.
65334         * lib/sha1.c (rol): Likewise.
65335         (K1, K2, K3, K4): Remove unnecessary L suffix.
65336
65337 2006-05-10  Bruno Haible  <bruno@clisp.org>
65338
65339         * lib/des.c: Cast to avoid warnings.
65340
65341 2006-05-09  Bruno Haible  <bruno@clisp.org>
65342
65343         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
65344         (Depends-on): Depend also on xsize, stdarg.
65345         (configure.ac): Add gl_XVASPRINTF.
65346
65347 2006-05-09  Bruno Haible  <bruno@clisp.org>
65348
65349         * m4/xvasprintf.m4: New file.
65350
65351 2006-05-09  Bruno Haible  <bruno@clisp.org>
65352
65353         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
65354         (EOVERFLOW): Define fallback value.
65355         (xstrcat): New function.
65356         (xvasprintf): Recognize the special case of a string concatenation.
65357
65358 2006-05-08  Eric Blake  <ebb9@byu.net>
65359
65360         * gnulib-tool (func_version): Base copyright year on CVS date.
65361         (func_emit_copyright_notice): New function.
65362         (func_emit_lib_Makefile_am): Use it.
65363         (func_emit_tests_Makefile_am): Likewise.
65364         (func_import): Likewise.
65365
65366 2006-05-08  Bruno Haible  <bruno@clisp.org>
65367
65368         * modules/stdarg: New file.
65369         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
65370
65371 2006-05-08  Bruno Haible  <bruno@clisp.org>
65372
65373         * m4/stdarg.m4: New file, from GNU gettext.
65374
65375 2006-05-08  Bruno Haible  <bruno@clisp.org>
65376
65377         * config/srclist.txt (build-aux/config.rpath): different from latest
65378         release.
65379
65380 2006-05-08  Bruno Haible  <bruno@clisp.org>
65381
65382         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
65383
65384 2006-05-05  Jim Meyering  <jim@meyering.net>
65385
65386         * m4/warning.m4: New file, derived from bison's file by the same name.
65387
65388 2006-05-03  Bruno Haible  <bruno@clisp.org>
65389
65390         * lib/stdint_.h: Shorter URL.
65391         * lib/inttypes.h: Likewise.
65392
65393 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65394
65395         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
65396
65397 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65398
65399         * lib/verify.h: Document the internals better.  Most of this change
65400         was written by Bruno Haible.
65401
65402 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65403
65404         * doc/verify.texi: New file, partly based on a proposal by
65405         Bruno Haible.
65406
65407 2006-05-02  Bruno Haible  <bruno@clisp.org>
65408
65409         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
65410         test from here...
65411         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
65412
65413 2006-04-29  Bruno Haible  <bruno@clisp.org>
65414
65415         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
65416         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
65417
65418 2006-04-29  Bruno Haible  <bruno@clisp.org>
65419
65420         * gnulib-tool: Make --update option actually work.
65421
65422 2006-04-29  Bruno Haible  <bruno@clisp.org>
65423
65424         * doc/gcd.texi: New file.
65425         * doc/gnulib.texi: Include it.
65426
65427 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
65428
65429         * lib/getdate.y (get_date): When adding relative date, start with the
65430         initial time, not with the result of the first mktime call.
65431
65432 2006-04-25  Bruno Haible  <bruno@clisp.org>
65433
65434         * gnulib-tool (func_import): Output the include directives in three
65435         blocks, sorted separately.
65436         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65437
65438 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
65439
65440         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
65441         to define main with arguments, for C++.  Reported by Eric Blake.
65442         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
65443         Prefer 'int main ()' to 'int main (void)', for C++.
65444         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
65445         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
65446         for 'main', for C99 and C++.
65447
65448 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
65449
65450         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
65451         Don't assume that exit status -1 is valid.
65452         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65453         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
65454         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
65455         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
65456         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
65457         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
65458         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
65459         functions can be used without declaring them, or that you can
65460         exit with status -1.
65461         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
65462
65463 2006-04-24  Karl Berry  <karl@gnu.org>
65464
65465         * config/srclist.txt (longdouble.m4): sync lost.
65466
65467 2006-04-24  Eric Blake  <ebb9@byu.net>
65468
65469         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
65470
65471 2006-04-24  Bruno Haible  <bruno@clisp.org>
65472
65473         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
65474         poll() implementation in AIX.
65475         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65476
65477 2006-04-24  Bruno Haible  <bruno@clisp.org>
65478
65479         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
65480         assigned exactly once.
65481
65482 2006-04-23  Claudio Fontana  <claudio@gnu.org>
65483             Bruno Haible  <bruno@clisp.org>
65484
65485         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
65486         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
65487         for AM_CPPFLAGS.
65488
65489 2006-04-23  Bruno Haible  <bruno@clisp.org>
65490
65491         * modules/copy-file: Depend on unistd.
65492         * modules/execute: Likewise.
65493         * modules/fatal-signal: Likewise.
65494         * modules/findprog: Likewise.
65495         * modules/mkdtemp : Likewise.
65496         * modules/pipe: Likewise.
65497         * modules/wait-process: Likewise.
65498
65499 2006-04-23  Bruno Haible  <bruno@clisp.org>
65500
65501         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
65502         condition was already detected.
65503         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65504
65505 2006-04-23  Bruno Haible  <bruno@clisp.org>
65506
65507         * lib/copy-file.c: Include <unistd.h> unconditionally.
65508         * lib/execute.c: Likewise.
65509         * lib/fatal-signal.c: Likewise.
65510         * lib/findprog.c: Likewise.
65511         * lib/mkdtemp.c: Likewise.
65512         * lib/pipe.h: Likewise.
65513         * lib/pipe.c: Likewise.
65514         * lib/wait-process.h: Likewise.
65515
65516 2006-04-23  Bruno Haible  <bruno@clisp.org>
65517
65518         * gnulib-tool (func_usage): Fix --import description. Document
65519         --update.
65520         (func_import): Create temporary file in a temporary directory, if
65521         --dry-run is specified. Silence errors from 'grep' when there are no
65522         m4 files in $m4dir.
65523         (func_create_testdir): Silence errors from 'grep' when there are no
65524         m4 files in $m4dir.
65525         Reported by Karl Berry <karl@freefriends.org>.
65526
65527 2006-04-20  Bruno Haible  <bruno@clisp.org>
65528
65529         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
65530         one argument, so that the code will be portable to Autoconf 2.60.
65531         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
65532         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
65533         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
65534
65535 2006-04-19  Derek Price  <derek@ximbiot.com>
65536             Eric Blake  <ebb9@byu.net>
65537
65538         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
65539         rather than "/full/path.h".  Update comment to match.  Shorten &
65540         generalize m4_translit call via AS_TR_CPP.
65541
65542 2006-04-19  Derek Price  <derek@ximbiot.com>
65543             Eric Blake  <ebb9@byu.net>
65544
65545         * lib/inttypes.h: Correct grammar in comment.
65546
65547 2006-04-18  Derek Price  <derek@ximbiot.com>
65548             Paul Eggert  <eggert@cs.ucla.edu>
65549
65550         * modules/inttypes: New file.
65551         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
65552
65553 2006-04-18  Derek Price  <derek@ximbiot.com>
65554             Paul Eggert  <eggert@cs.ucla.edu>
65555
65556         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
65557         New files.
65558
65559 2006-04-18  Derek Price  <derek@ximbiot.com>
65560             Paul Eggert  <eggert@cs.ucla.edu>
65561
65562         * lib/inttypes.h: New file.
65563         * lib/strtoimax.c: Assume <inttypes.h>.
65564
65565 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
65566
65567         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
65568         isn't mounted.  Problem reported by Kir Kolyshkin.
65569
65570 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65571
65572         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
65573         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
65574         Derek R. Price.
65575         * lib/regex.h (RE_DUP_MAX): Update comment to match current
65576         implementation.
65577
65578 2006-04-12  Eric Blake  <ebb9@byu.net>
65579
65580         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
65581         is now done automatically by the corresponding Autoconf macro.
65582
65583 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
65584
65585         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
65586         time_r.h.
65587
65588 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65589
65590         Merge regex changes from libc, removing some of our
65591         POSIX-conformance changes that were rejected and redoing them in a
65592         less-intrusive way.
65593
65594         * lib/regcomp.c (re_compile_internal, init_dfa):
65595         Length arg is now size_t, not Idx.  All uses changed.
65596         (peek_token): Forward decl now says internal_function.
65597         (__re_error_msgid, __re_error_msgid_idx):
65598         Now static rather than extern with attribute_hidden.
65599         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
65600         For some reason libc prefers K&R style defns for external functions.
65601         (regerror) [!defined _LIBC]: Likewise.
65602         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
65603         (seek_collating_symbol_entry, lookup_collation_sequence_value):
65604         (build_range_exp, build_collating_symbol):
65605         Use K&R-style defn.
65606         (re_compile_fastmap): Use '\0' to memset, not 0.
65607         (utf8_sb_map): Make the calculations more obvious.
65608         (init_dfa, parse_bracket_exp, build_charclass_op):
65609         Call calloc and cast result, as glibc does.
65610         (init_word_char, fetch_token, peek_token, peek_token_bracket):
65611         (build_range_exp, build_collating_symbol):
65612         Now internal functions.
65613
65614         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
65615
65616         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
65617         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
65618         Don't depend on VMS; depend on __VMS instead, for POSIX
65619         namespace cleanness.
65620         (regoff_t): Define to ssize_t, not long int.
65621
65622         Remove the REG_ macros named below.  Instead, make the old names
65623         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
65624         __USE_GNU_REGEX.
65625         (REG_BACKSLASH_ESCAPE_IN_LISTS):
65626         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
65627         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
65628         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
65629         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
65630         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
65631         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
65632         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
65633         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
65634         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
65635         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
65636         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
65637         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
65638         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
65639         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
65640         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
65641         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
65642         (REG_NREGS):
65643         Remove.  All uses replaced by the old RE_* names.
65644         (RE_BACKSLASH_ESCAPE_IN_LISTS):
65645         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
65646         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
65647         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
65648         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
65649         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
65650         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
65651         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
65652         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
65653         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
65654         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
65655         Don't bother having these macros be independent of each others'
65656         values, since they no longer exist in the POSIX name space.
65657
65658         Rename the following member names back to their old names,
65659         unless !__USE_GNU_REGEX.  All uses changed back.
65660         (buffer): Renamed from re_buffer.
65661         (allocated): Renamed from re_allocated.
65662         (used): Renamed from re_used.
65663         (syntax): Renamed from re_syntax.
65664         (fastmap): Renamed from re_fastmap.
65665         (translate): Renamed from re_translate.
65666         (can_be_null): Renamed from re_can_be_null.
65667         (regs_allocated): Renamed from re_regs_allocated.
65668         (fastmap_accurate): Renamed from re_fastmap_accurate.
65669         (no_sub): Renamed from re_no_sub.
65670         (not_bol): Renamed from re_not_bol.
65671         (not_eol): Renamed from re_not_eol.
65672         (newline_anchor): Renamed from re_newline_anchor.
65673         (num_regs): Renamed from rm_num_regs.
65674         (start): Renamed from rm_start.
65675         (end): Renamed from rm_end.
65676
65677         (free_state): Move up a bit.
65678
65679         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
65680         #define to be empty.
65681         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
65682         when that is what is intended.
65683         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
65684         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
65685         (MAX): New macro.
65686         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
65687         All uses changed back to re_malloc, etc.  It's now the caller's
65688         responsibility to check for overflow; all callers changed.
65689         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
65690         (re_x2nrealloc): Remove.
65691         (free_state): Remove decl.
65692
65693         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
65694         (re_set_registers, re_exec):
65695         Use K&R-style defn.
65696
65697         2006-01-31  Roland McGrath  <roland@redhat.com>
65698
65699         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
65700         Reported by Mike Frysinger <vapier@gentoo.org>.
65701
65702         2006-01-15  Andreas Jaeger  <aj@suse.de>
65703
65704         [BZ #1950]
65705         * lib/regex_internal.c (re_string_reconstruct): Adjust for
65706         build_wcs_upper_buffer change.
65707         (build_wcs_upper_buffer): Change return type.
65708
65709         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
65710
65711         * lib/regex_internal.h: Include <stdint.h> if available.
65712
65713         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
65714
65715         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
65716
65717         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65718
65719         * lib/regcomp.c: Adjust for changed secondary hash function.
65720
65721         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
65722
65723         * lib/regex.h: Pretty printing.
65724         Clean up namespace a bit.
65725
65726         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
65727
65728         * lib/regexec.c (update_cur_sifted_state, check_arrival,
65729         check_arrival_add_next_nodes): Avoid using uninitialized variable.
65730
65731         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65732                     Ulrich Drepper  <drepper@redhat.com>
65733
65734         [BZ #1302]
65735         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
65736         changed.
65737         (bitset_word_t): Renamed from bitset_word.  All uses changed.
65738
65739         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
65740
65741         [BZ #281]
65742         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
65743         * lib/regcomp.c: Remove unnecessary uses of
65744         unsigned RE_TRANSLATE_TYPE.
65745         * lib/regex_internal.h: Likewise.
65746         * lib/regex_internal.c: Likewise.
65747         * lib/regexec.c: Likewise.
65748         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
65749
65750         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
65751
65752         * lib/regexec.c (find_recover_state): Remove unnecessary
65753         initialization.
65754         (transit_state_bkref): Make DFA a const pointer.
65755         (get_subexp): Likewise.
65756         (check_arrival): Likewise.
65757         (update_cur_sifted_state): Likewise.
65758         (re_search_internal): Likewise.
65759         (prune_impossible_nodes): Likewise.
65760         (acquire_init_state_context): Likewise.
65761         (proceed_next_node): Likewise.
65762         (set_regs): Likewise.
65763         (free_fail_stack_return): Likewise.
65764         (check_arrival_expand_ecl): Mark DFA parameter as const.
65765         (check_arrival_expand_ecl_sub): Likewise.
65766         (check_subexp_limits): Likewise.
65767         (sub_epsilon_src_nodes):  Likewise.
65768         (add_epsilon_src_nodes):  Likewise.
65769         (merge_state_array): Likewise.
65770         (update_regs): Likewise.
65771         (build_trtable): Likewise.
65772         (sift_states_backward): Mark MCTX parameter as const.
65773         (build_sifted_states): Likewise.
65774         (update_cur_sifted_state): Likewise.
65775         (sift_states_mkref): Likewise.
65776         (check_arrival_expand_ecl): Mark eclosure as const.
65777         (check_dst_limits_calc_pos_1): Likewise.
65778         * lib/regex_internal.h (re_match_context_t): Make dfa a const
65779         pointer.
65780
65781         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
65782
65783         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
65784         (transit_state_sb): Likewise.
65785         (transit_state_mb): Likewise.
65786         (sift_states_iter_mb): Likewise.
65787         (check_arrival_add_next_nodes): Likewise.
65788         (check_node_accept_bytes): Change first parameter to pointer-to-const.
65789         [_LIBC] (re_search_2_stub): Use mempcpy.
65790
65791         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
65792         mbrtowc for very simple UTF-8 case.
65793
65794         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
65795         a pointer-to-const.
65796         (re_acquire_state_context): Likewise.
65797         * lib/regex_internal.h: Adjust prototypes.
65798
65799         * lib/regex.c: Prevent using C++ compilers.
65800
65801         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
65802         (re_acquire_state_context): Likewise.
65803
65804 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65805
65806         * modules/regex (Depends-on): Add ssize_t.
65807
65808 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65809
65810         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
65811         translation table.
65812
65813 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
65814
65815         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
65816
65817 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
65818             Bruno Haible  <bruno@clisp.org>
65819
65820         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
65821         <sys/types.h> and <inttypes.h>.
65822
65823 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65824
65825         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
65826         `__error_t_defined', so argp.h will not typedef the former.
65827
65828 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
65829
65830         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
65831         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
65832         glibc names.  Even if glibc is changed to conform to POSIX, the
65833         traditional names will be available anyway, since regex depends on
65834         the extensions module.  Also, fix a longstanding typo in the
65835         implementation of Spencer ERE test #75 from grep 2.3.  Problems
65836         reported by Emanuele Giaquinta.  Also, change sense of cached
65837         variable, so that the message makes sense.
65838
65839 2006-03-24  Simon Josefsson  <jas@extundo.com>
65840
65841         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
65842         including some doc fixes.
65843         (base64_encode_alloc): Fix +1 bug on allocation failures.
65844
65845 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65846
65847         * lib/base64.c (base64_encode): Do not read past end of array with
65848         unsanitized input on systems with CHAR_BIT > 8.
65849
65850 2006-03-24  Eric Blake  <ebb9@byu.net>
65851
65852         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
65853
65854 2006-03-22  Karl Berry  <karl@gnu.org>
65855
65856         * config/srclist.txt (*setenv.[ch]): get from coreutils.
65857         * config/srclistvars.sh (COREUTILS): new var.
65858
65859 2006-03-17  Jim Meyering  <jim@meyering.net>
65860
65861         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
65862         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
65863
65864 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
65865
65866         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
65867         no longer needs it.  Instead, check that regoff_t is as least
65868         as wide as ptrdiff_t.
65869
65870         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
65871         so that our regex.h stays compatible with the installed regex.
65872         This is helpful for installers who configure --without-included-regex.
65873         Problem reported by Emanuele Giaquinta.
65874
65875 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
65876
65877         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
65878         Typedef to long int, not to off_, as POSIX will likely change
65879         in that direction.
65880
65881 2006-03-15  Eric Blake  <ebb9@byu.net>
65882
65883         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
65884
65885 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65886
65887         * lib/argp-help.c (validate_uparams): Fix typo
65888         * lib/argp-parse.c (argp_default_options): Consistently begin help
65889         messages with a lowercase letter.
65890
65891 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
65892
65893         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
65894         overrun buffers and shouldn't be used (much as gets shouldn't be
65895         used).
65896         * lib/time_r.c (asctime_r, ctime_r): Likewise.
65897
65898 2006-03-08  Simon Josefsson  <jas@extundo.com>
65899
65900         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
65901         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65902
65903 2006-03-08  Simon Josefsson  <jas@extundo.com>
65904
65905         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
65906         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65907
65908 2006-03-08  Simon Josefsson  <jas@extundo.com>
65909
65910         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
65911         signal that configure disabled the device.
65912
65913 2006-03-08  Simon Josefsson  <jas@extundo.com>
65914
65915         * build-aux/maint.mk: Fix refresh-po, to handle no translated
65916         languages.
65917
65918 2006-03-07  Simon Josefsson  <jas@extundo.com>
65919
65920         * modules/getopt (Depends-on): Add unistd.
65921
65922         * modules/unistd: New file.
65923
65924 2006-03-07  Simon Josefsson  <jas@extundo.com>
65925
65926         * modules/gc-random: New file.
65927
65928 2006-03-07  Simon Josefsson  <jas@extundo.com>
65929
65930         * m4/unistd_h.m4: New file.
65931
65932 2006-03-07  Simon Josefsson  <jas@extundo.com>
65933
65934         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
65935         test to be side-effect free by storing the result in the cache
65936         variable gl_cv_lib_readline, and moving the assignment of
65937         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
65938         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65939
65940 2006-03-07  Simon Josefsson  <jas@extundo.com>
65941
65942         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
65943         error on missing devices (the functions will return an error).
65944
65945         * m4/gc.m4: Move random stuff to gc-random.m4
65946
65947 2006-03-07  Simon Josefsson  <jas@extundo.com>
65948
65949         * lib/unistd_.h: New file.
65950
65951 2006-03-07  Simon Josefsson  <jas@extundo.com>
65952
65953         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
65954
65955 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65956
65957         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
65958         Problem reported by Juan Manuel Guerrero.
65959
65960 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65961
65962         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
65963         the unistd module.
65964         * lib/getlogin_r.c: Likewise.
65965         * lib/getlogin_r.h: Likewise.
65966         * lib/glob.c: Likewise.
65967         * lib/pagealign_alloc.c: Likewise.
65968         * lib/unistd_.h: Remove; no longer needed.
65969
65970 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65971
65972         * MODULES.html.sh (Support for systems lacking POSIX:2001):
65973         Add unistd.
65974         * modules/c-stack (Depends-on): Add unistd.
65975         * modules/getlogin_r: Likewise.
65976         * modules/glob: Likewise.
65977         * modules/pagealign_alloc: Likewise.
65978         * modules/unistd (Files): Remove lib/unistd_.h.
65979         (EXTRA_DIST): Remove.
65980         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
65981         need unistd_.h.
65982         (MOSTLYCLEANFILES): Remove unistd.h-t.
65983
65984 2006-03-03  Simon Josefsson  <jas@extundo.com>
65985
65986         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
65987
65988 2006-03-03  Simon Josefsson  <jas@extundo.com>
65989
65990         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
65991         libidn and bison.
65992
65993 2006-03-03  Simon Josefsson  <jas@extundo.com>
65994
65995         * build-aux/maint.mk: Add indent target.
65996
65997 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
65998
65999         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
66000         our replacement poll.h in any case, to avoid a differing
66001         declaration from a system header.  Seen on AIX.
66002
66003 2006-03-01  Simon Josefsson  <jas@extundo.com>
66004
66005         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
66006         <kasal@ucw.cz>.
66007
66008 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66009
66010         * modules/gettime (Depends-on): Add extensions module.
66011         * modules/nanosleep (Depends-on): Likewise.
66012         * modules/settime (Depends-on): Likewise.
66013
66014 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66015
66016         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
66017         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
66018         pedantically.
66019         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66020         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
66021
66022         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
66023         not "==".  Reported by Ralf Wildenhues.
66024
66025 2006-03-01  Karl Berry  <karl@gnu.org>
66026
66027         * doc/Copyright/request-*: new files, synced from gnuorg.
66028
66029 2006-03-01  Karl Berry  <karl@gnu.org>
66030
66031         * config/srclist.txt (Copyright/*): new entries.
66032
66033 2006-02-28  Simon Josefsson  <jas@extundo.com>
66034
66035         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
66036
66037 2006-02-27  Simon Josefsson  <jas@extundo.com>
66038
66039         * lib/base64.h: Indent #define's.  From Jim Meyering
66040         <jim@meyering.net>.
66041
66042 2006-02-27  Jim Meyering  <jim@meyering.net>
66043
66044         Revert the change of 2006-02-24, so these files can continue
66045         to be sync'd from gettext.
66046         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
66047         of `config.h'.
66048
66049 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
66050
66051         * modules/intprops: New file.
66052         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66053         Add intprops.
66054         * modules/getloadavg (Files): Remove lib/intprops.h.
66055         (Depends-on): Add intprops.
66056         * modules/human: Likewise.
66057         * modules/inttostr: Likewise.
66058         * modules/openat: Likewise.
66059         * modules/sig2str: Likewise.
66060         * modules/userspec: Likewise.
66061         * modules/utimecmp: Likewise.
66062         * modules/xnanosleep: Likewise.
66063         * modules/xstrtol: Likewise.
66064
66065 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
66066
66067         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
66068         * modules/lock-tests (TESTS): Use $(EXEEXT).
66069         * modules/tls-tests: Likewise.
66070         * modules/argp-tests: Likewise.
66071         (check_PROGRAMS): New var, replacing...
66072         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
66073
66074 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66075
66076         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
66077         `config.h'.
66078
66079 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
66080
66081         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
66082
66083 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66084
66085         Sync from coreutils.
66086         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
66087         gl_CHDIR_SAFER.
66088
66089 2006-02-22  Jim Meyering  <jim@meyering.net>
66090
66091         Sync from coreutils.
66092         * m4/chdir-safer.m4: New file.
66093
66094 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
66095
66096         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
66097         AT_FDCWD exceeds INT_MAX.
66098         * lib/openat.h (AT_FDCWD): Likewise.
66099
66100 2006-02-17  Eric Blake  <address@hidden>
66101
66102         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
66103
66104 2006-02-16  Simon Josefsson  <jas@extundo.com>
66105
66106         * modules/getaddrinfo (Depends-on): Add sys_socket.
66107
66108 2006-02-15  Simon Josefsson  <jas@extundo.com>
66109
66110         * build-aux/maint.mk: Add dsyntax-check rule.
66111
66112 2006-02-15  Eric Blake  <ebb9@byu.net>
66113
66114         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
66115         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
66116         'present but cannot compile' warnings on cygwin.
66117         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
66118         use ws2tcpip.h if sys/socket.h works.
66119         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
66120         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
66121
66122 2006-02-14  Simon Josefsson  <jas@extundo.com>
66123
66124         * modules/maintainer-makefile (Files): Rename.
66125
66126         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
66127         and (the local) Makefile.cfg to maint-cfg.mk.
66128
66129         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
66130         to the latter.
66131
66132         * modules/maintainer-makefile: New module.
66133
66134         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
66135         severaly stripped to make it possible to build it up from scratch
66136         with reliable tests.
66137
66138         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
66139         fixes to permit overriding the default actions when configure and
66140         makefile are not available.
66141
66142 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
66143
66144         Sync from coreutils.
66145         * modules/lstat (Depends-on): Don't depend on xalloc.
66146         (License): Change from GPL to LGPL, since this is now simply a
66147         replacement for a libc function.
66148
66149 2006-02-14  Jim Meyering  <jim@meyering.net>
66150
66151         Sync from coreutils.
66152
66153         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
66154         failure on deficient systems, and simplify gnulib lgpl dependencies.
66155         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
66156         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
66157
66158         * lib/xalloc-die.c: Remove unused definition of N_.
66159
66160 2006-02-14  Jim Meyering  <jim@meyering.net>
66161
66162         Sync from coreutils.
66163         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
66164         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
66165         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
66166         double-quote uses of that variable, to accommodate the rare case in
66167         which getmntent is available in none of the libraries checked.  This
66168         happens at least on FreeBSD 5.0.
66169
66170 2006-02-13  Simon Josefsson  <jas@extundo.com>
66171
66172         * gnulib-tool (Usage): Fix --import, from
66173         karl@freefriends.org (Karl Berry).
66174
66175 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
66176
66177         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
66178
66179 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
66180
66181         * lib/argp-namefrob.h: Restore changes accidentally lost during the
66182         "autoupdate" on 2005-12-12.
66183
66184 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
66185
66186         * modules/closeout (Depends-on): Remove atexit.
66187
66188 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
66189
66190         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
66191         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
66192
66193 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
66194
66195         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
66196         __EXTENSIONS__ if this causes compilation to fail.  Problem
66197         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
66198         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
66199
66200 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
66201
66202         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
66203         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
66204         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
66205         All uses changed.
66206
66207 2006-01-26  Simon Josefsson  <jas@extundo.com>
66208
66209         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
66210         prototype is visible on mingw32.
66211
66212         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
66213         for mingw32.
66214
66215         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
66216         mingw32).
66217
66218 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
66219
66220         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
66221         attempt to open for write; this always fails, at least on POSIX
66222         hosts.  This reinstates the 2006-01-09 change, which was
66223         inadvertently removed.
66224
66225 2006-01-26  Bruno Haible  <bruno@clisp.org>
66226
66227         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
66228         Reported by Paul Eggert.
66229
66230 2006-01-26  Bruno Haible  <bruno@clisp.org>
66231             Paul Eggert  <eggert@cs.ucla.edu>
66232
66233         * lib/stdbool_.h (_Bool)
66234         [(! (defined __cplusplus || defined __BEOS__)
66235           && !defined __GNUC__
66236           && !(defined __HP_cc || defined __xlc__
66237                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
66238                || defined __sgi))]:
66239         #define to signed char in these cases too; this simplifies
66240         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
66241         etc., separately) and makes it more conservative.
66242
66243 2006-01-25  Simon Josefsson  <jas@extundo.com>
66244
66245         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
66246         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
66247         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
66248
66249 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
66250
66251         * lib/argp-namefrob.h: Bugfix. Remove stray #
66252
66253 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
66254
66255         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
66256         so that we test the test.
66257         Check for yet another HP-UX cc bug involving *bool |= bool.
66258
66259 2006-01-25  Karl Berry  <karl@gnu.org>
66260
66261         * config/srclist.txt (vasnprintf.c): sync lost.
66262
66263 2006-01-25  Jim Meyering  <jim@meyering.net>
66264
66265         Sync from the stable (b5) branch of coreutils:
66266
66267         * lib/fts.c (fts_children): Don't let close() clobber errno from
66268         failed fchdir().
66269
66270         * lib/fts.c (fts_stat): When following a symlink-to-directory,
66271         don't necessarily interpret stat-fails+lstat-succeeds as indicating
66272         a dangling symlink.  That can also happen at least for ELOOP.
66273         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
66274         FYI, this bug predates the inclusion of fts.c in coreutils.
66275
66276         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
66277         in their own block, so pre-c99 compilers don't object.
66278
66279         Avoid the double-free (first in fts_read, second in fts_close) that
66280         would occur when an `active' directory is made inaccessible (e.g.,
66281         via chmod a-x) during a traversal.
66282         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
66283         before returning.  Reproduce this failure by
66284         mkdir -p a/b; cd a; chmod a-x . b
66285         Reported by Stavros Passas.
66286
66287 2006-01-25  Jim Meyering  <jim@meyering.net>
66288
66289         * lib/fileblocks.c: Remove more useless parentheses.
66290         * lib/readutmp.h: Likewise.
66291
66292 2006-01-25  Bruno Haible  <bruno@clisp.org>
66293
66294         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
66295         warnings.
66296         Reported by Paul Eggert.
66297
66298 2006-01-25  Bruno Haible  <bruno@clisp.org>
66299
66300         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
66301         rid of a trap command. For Solaris sh.
66302         Reported by Mark D. Baushke <mdb@gnu.org>.
66303
66304 2006-01-24  Simon Josefsson  <jas@extundo.com>
66305
66306         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
66307         Bruno.
66308
66309 2006-01-24  Karl Berry  <karl@gnu.org>
66310
66311         * config/srclist.txt (argp-namefrob.h): sync lost.
66312
66313 2006-01-24  Jim Meyering  <jim@meyering.net>
66314
66315         * modules/openat (Files): Add lib/intprops.h.
66316         From Mark D. Baushke.
66317
66318 2006-01-24  Jim Meyering  <jim@meyering.net>
66319
66320         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
66321         Reported by Mark D. Baushke.
66322
66323 2006-01-24  Jim Meyering  <jim@meyering.net>
66324
66325         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
66326
66327 2006-01-24  Bruno Haible  <bruno@clisp.org>
66328
66329         * modules/strnlen (Maintainer): Change from glibc to all.
66330
66331 2006-01-24  Bruno Haible  <bruno@clisp.org>
66332
66333         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
66334         Patch by Paul Eggert.
66335
66336 2006-01-24  Bruno Haible  <bruno@clisp.org>
66337
66338         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
66339         already has it.
66340         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
66341         2005-11-26.
66342
66343         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
66344         'signed char' to avoid problems with the built-in _Bool type.
66345         Reported by Paul Eggert on 2005-11-26.
66346
66347 2006-01-24  Bruno Haible  <bruno@clisp.org>
66348
66349         * gnulib-tool (func_import): Avoid constructing complicated sed
66350         expressions inside backquote.
66351         Report and solution by Mark D. Baushke <mdb@gnu.org>.
66352
66353 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
66354
66355         These changes imported from libc.
66356         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
66357         test and two separate function calls.
66358         * lib/strndup.c (__strndup): Add libc_hidden_def.
66359
66360 2006-01-23  Simon Josefsson  <jas@extundo.com>
66361
66362         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
66363         Remove the test_*_SOURCES variable: automake infers it by default.
66364         * modules/tls-tests: Likewise.
66365
66366 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66367
66368         Work around porting bugs reported by Dieter in
66369         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
66370         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
66371         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
66372         Include "getopt.h" first, to check interface.
66373         (getenv): Declare only if defined HAVE_DECL_GETENV &&
66374         !HAVE_DECL_GETENV.
66375         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
66376         (__strndup): Revert to K&R-style function dfns, the glibc style.
66377         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
66378         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
66379         Include strnlen.h first, to get prototype properly.
66380         (strnlen): Renamed from __strnlen.
66381         Remove weak alias.
66382
66383 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66384
66385         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
66386
66387 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66388
66389         * config/srclist.txt: Adjust to reflect glibc reorganization.
66390         This affects only comments.
66391
66392 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66393
66394          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
66395          Reported by Bruce Korb <bkorb@gnu.org>.
66396
66397 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
66398
66399         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
66400         to pacify gcc -Wswitch-default.
66401
66402 2006-01-22  Bruno Haible  <bruno@clisp.org>
66403
66404         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
66405         temporary buffer for sprintf, take into account the precision also
66406         for 'd', 'i', 'u', 'o', 'x', 'X'.
66407
66408 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
66409
66410         * modules/argp-tests: New module
66411         * tests/test-argp.c: New file
66412         * tests/test-argp-2.sh: New file
66413
66414 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
66415
66416         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
66417         (__argp_base_name): Removed
66418         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
66419         typo.
66420         (__argp_base_name): Provide macro definition or extern declaration
66421         depending on the configuration
66422
66423 2006-01-20  Simon Josefsson  <jas@extundo.com>
66424
66425         * modules/inet_ntop (Depends-on): Depend on sys_socket.
66426
66427 2006-01-20  Simon Josefsson  <jas@extundo.com>
66428
66429         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
66430
66431 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
66432
66433         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
66434         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
66435         Suggested by Bruno Haible.
66436
66437 2006-01-20  Karl Berry  <karl@gnu.org>
66438
66439         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
66440         until changes propagate, I guess.
66441
66442 2006-01-19  Simon Josefsson  <jas@extundo.com>
66443
66444         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
66445
66446 2006-01-19  Simon Josefsson  <jas@extundo.com>
66447
66448         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
66449
66450 2006-01-19  Simon Josefsson  <jas@extundo.com>
66451
66452         * gnulib-tool: Set check_PROGRAMS.
66453
66454         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
66455         modules/des-tests, modules/gc-arcfour-tests,
66456         modules/gc-arctwo-tests, modules/gc-des-tests,
66457         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
66458         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
66459         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
66460         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
66461         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
66462         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
66463         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
66464         test_*_SOURCES.
66465
66466 2006-01-18  Simon Josefsson  <jas@extundo.com>
66467
66468         * modules/socklen (Depends-on): Depend on sys_socket.
66469
66470 2006-01-18  Simon Josefsson  <jas@extundo.com>
66471
66472         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
66473         modules/des-tests, modules/gc-arcfour-tests,
66474         modules/gc-arctwo-tests, modules/gc-des-tests,
66475         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
66476         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
66477         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
66478         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
66479         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
66480         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
66481         $(EXEEXT) to automake TESTS variable, for mingw32.
66482
66483 2006-01-17  Simon Josefsson  <jas@extundo.com>
66484
66485         * modules/socklen (Include): Need sys/socket.h.
66486
66487 2006-01-17  Bruno Haible  <bruno@clisp.org>
66488
66489         * modules/ssize_t (Include): Add <sys/types.h>.
66490
66491 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
66492
66493         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
66494         it's not portable and it doesn't work with cross-compiles.
66495         Problem reported by Bruno Haible.  Fix missing-$ typo in
66496         'test "gl_cv_ignore_unused_libraries" ...' that prevented
66497         -zignore from being used with Sun's C compiler.
66498
66499 2006-01-12  Simon Josefsson  <jas@extundo.com>
66500
66501         * lib/base64.c: Fix warning, reported by Bruno Haible
66502         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
66503
66504 2006-01-12  Bruno Haible  <bruno@clisp.org>
66505
66506         * modules/ldd: New file.
66507         * build-aux/ldd.sh.in: New file.
66508         * MODULES.html.sh (Support for building libraries and executables): Add
66509         ldd.
66510
66511 2006-01-12  Bruno Haible  <bruno@clisp.org>
66512
66513         * m4/ldd.m4: New file.
66514
66515 2006-01-12  Bruno Haible  <bruno@clisp.org>
66516
66517         * gnulib-tool (func_import, func_create_testdir): Don't go into an
66518         endless loop while replacing $auxdir with build-aux.
66519
66520 2006-01-11  Simon Josefsson  <jas@extundo.com>
66521
66522         * lib/stdint_.h (SIZE_MAX): Add missing (.
66523
66524 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
66525
66526         Sync from coreutils.
66527         * lib/md5.c: Fix commentary typos.
66528         (alignof, UNALIGNED_P): No need for a GCC-specific version.
66529         * lib/md5.h (__attribute__): Remove; unused.
66530         * lib/sha1.c: Fix commentary to match md5 better.
66531         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
66532         so that we don't need to worry about alignment.  All uses changed.
66533         This merges the 2005-10-28 md5 change into sha1.
66534
66535 2006-01-11  Jim Meyering  <jim@meyering.net>
66536
66537         Sync from coreutils.
66538         * lib/md5.c (OP): Fix spacing.
66539
66540 2006-01-11  Bruno Haible  <bruno@clisp.org>
66541
66542         Ensure automatic ordering between gl_LOCK and gl_ARGP.
66543         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
66544         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
66545
66546 2006-01-11  Bruno Haible  <bruno@clisp.org>
66547
66548         Ensure automatic ordering between gl_LOCK and gl_ARGP.
66549         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
66550         the "early" section as well.
66551
66552 2006-01-11  Bruno Haible  <bruno@clisp.org>
66553
66554         Avoid "ar: no archive members specified" error on MacOS X.
66555         * gnulib-tool (func_modules_add_dummy): New function.
66556         (func_import, func_create_testdir): Invoke it.
66557
66558 2006-01-11  Bruno Haible  <bruno@clisp.org>
66559
66560         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
66561         with $auxdir in AC_CONFIG_FILES statements.
66562
66563 2006-01-11  Bruno Haible  <bruno@clisp.org>
66564
66565         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66566         Initialize also noinst_HEADERS to empty.
66567
66568 2006-01-11  Bruno Haible  <bruno@clisp.org>
66569
66570         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
66571         variables.
66572         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
66573         autoreconf.
66574
66575 2006-01-11  Bruno Haible  <bruno@clisp.org>
66576
66577         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
66578         overridable by the user.
66579         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66580
66581 2006-01-10  Simon Josefsson  <jas@extundo.com>
66582
66583         * modules/sys_socket: New file.
66584
66585 2006-01-10  Simon Josefsson  <jas@extundo.com>
66586
66587         * m4/sys_socket_h.m4: New file.
66588
66589 2006-01-10  Simon Josefsson  <jas@extundo.com>
66590
66591         * lib/socket_.h: New file.
66592
66593 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66594
66595         * modules/readutmp (Maintainer): Add myself.
66596
66597 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66598
66599         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
66600         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
66601         People who are still concerned with buggy memcmp implementations
66602         can invoke gl_FUNC_MEMCMP themselves.
66603
66604 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66605
66606         * lib/regex_internal.h (BITSET_WORD_BITS):
66607         Work around a bug in 64-bit PGC (before version 6.1-2), where the
66608         preprocessor mishandles large unsigned values as if they were signed.
66609         Problem reported by Claudio Fontana in
66610         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
66611
66612 2006-01-10  Jim Meyering  <jim@meyering.net>
66613
66614         Avoid the double-free (first in fts_read, second in fts_close) that
66615         would occur when an `active' directory is made inaccessible (e.g.,
66616         via chmod a-x) during a traversal.
66617         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
66618         before returning.  Reproduce this failure by
66619         mkdir -p a/b; cd a; chmod a-x . b
66620         Reported by Stavros Passas.
66621
66622         Sync from coreutils.
66623         * lib/sha1.c: Tweak grammar in a comment.
66624
66625 2006-01-10  Jim Meyering  <jim@meyering.net>
66626
66627         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
66628         Patch by Joerg Sonnenberger.
66629
66630 2006-01-10  Bruno Haible  <bruno@clisp.org>
66631
66632         * modules/readutmp: Depend on module free.
66633         * modules/strtok_r: Depend on module restrict.
66634
66635 2006-01-10  Bruno Haible  <bruno@clisp.org>
66636
66637         * modules/gettext (configure.ac): Add an invocation of
66638         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
66639
66640 2006-01-10  Bruno Haible  <bruno@clisp.org>
66641
66642         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
66643         Reported by Werner Lemberg <wl@gnu.org>.
66644
66645 2006-01-10  Bruno Haible  <bruno@clisp.org>
66646
66647         * lib/localcharset.c: Update from GNU gettext.
66648
66649 2006-01-10  Bruno Haible  <bruno@clisp.org>
66650
66651         * lib/argp.h (__const): Remove macro. Use const instead.
66652         * lib/argp-fmtstream.h (__const): Likewise.
66653         * lib/glob_.h (__const): Remove macro.
66654         * lib/glob-libc.h: Use const instead of __const.
66655
66656 2006-01-10  Bruno Haible  <bruno@clisp.org>
66657
66658         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
66659         variable.
66660         Needed to avoid an automake error regarding the 'gettext' module.
66661
66662 2006-01-09  Simon Josefsson  <jas@extundo.com>
66663
66664         * modules/inet_ntop (Depends-on): Add restrict.
66665
66666 2006-01-09  Simon Josefsson  <jas@extundo.com>
66667
66668         * modules/gc-rijndael-tests (License): Put under LGPL.
66669
66670         * modules/gc-des-tests (License): Likewise.
66671
66672         * modules/gc-arcfour-tests (License): Likewise.
66673
66674         * modules/gc-arctwo-tests (License): Likewise.
66675
66676         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
66677
66678         * modules/gc-hmac-sha1-tests (Files): Likewise.
66679
66680         * modules/gc-hmac-md5-tests (License): Likewise.
66681
66682         * modules/gc-sha1-tests (License): Likewise.
66683
66684         * modules/gc-md5-tests (License): Likewise.
66685
66686         * modules/gc-md4-tests (License): Likewise.
66687
66688         * modules/gc-md2-tests (License): Likewise.
66689
66690         * modules/gc-tests (License): Likewise.
66691
66692         * modules/des-tests (License): Likewise.
66693
66694         * modules/md4-tests (License): Likewise.
66695
66696         * modules/md2-tests (License): Likewise.
66697
66698 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66699
66700         Sync from coreutils:
66701
66702         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
66703         * modules/lib-ignore: New file.
66704         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
66705         chdir-safer.m4, lchmod.m4.
66706         * modules/openat: Add mkdirat.c, openat-priv.h.
66707
66708 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66709
66710         Sync from coreutils.
66711         * m4/lib-ignore.m4: New file.
66712         * m4/lchmod.m4: New file.
66713
66714 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66715
66716         Sync from coreutils.
66717         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
66718         for write access: POSIX says that must fail.
66719         * lib/fts.c (diropen): Likewise.
66720         * lib/save-cwd.c (save_cwd): Likewise.
66721         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
66722         well, for minor improvements on hosts that lack O_DIRECTORY.
66723         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
66724         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
66725         Fall back on chown if open failed with EACCES.
66726
66727         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
66728         Report an error at compile-time if only a 1-second nominal clock
66729         resolution is found.
66730
66731         * lib/lchmod.h: New file.
66732         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
66733         (make_dir_parents): Use lchown rather than chown, and
66734         lchmod rather than chmod.
66735
66736         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
66737         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
66738         "proc" reported by n0dalus.
66739
66740         * lib/mountlist.c: Include <limits.h>.
66741         (dev_from_mount_options)
66742         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
66743         New function.  It no longer assumes "dev=" has the System V meaning
66744         on Linux (since it doesn't).  It also parses "dev=" more carefully.
66745         (read_file_system_list)
66746         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
66747         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
66748         dev= in that case.
66749
66750         * lib/posixtm.h (PDS_PRE_2000): New macro.
66751         * lib/posixtm.c (year): Arg is now syntax_bits rather than
66752         allow_century.  All usages changed.  Reject dates outside the range
66753         1969-1999 if PDS_PRE_2000 is used.
66754
66755 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
66756
66757         Sync from coreutils.
66758         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
66759         (Time of day items): Mention the possibility of leap seconds.
66760         Problem reported by Dr. David Alan Gilbert.
66761
66762 2006-01-09  Jim Meyering  <jim@meyering.net>
66763
66764         Sync from coreutils.
66765
66766         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
66767
66768         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
66769
66770         * lib/modechange.c (mode_compile): Reject an invalid mode string
66771         that starts with an octal digit.  From Andreas Gruenbacher.
66772
66773         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
66774         and dup to open_safer and dup_safer, respectively.
66775         (openat_permissive): Fix typo in comment.
66776
66777         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
66778         "gettext.h"; either no longer needed or are guaranteed by openat.h.
66779         (_): Remove; no longer needed.
66780         (openat): Renamed from rpl_openat; no need for rpl_openat
66781         since openat.h renames openat for us.
66782         Replace most of the body with a call to openat_permissive,
66783         to avoid duplicate code.
66784         Port to (probably hypothetical) environments were mode_t is
66785         wider than int.
66786         (openat_permissive): Require mode arg, so that we can check
66787         types better.  Put it just after flags.  Change cwd failure
66788         indicator from pointer-to-bool to pointer-to-errno-value.
66789         All callers changed.
66790         Invoke openat_save_fail and/or openat_restore_fail if
66791         cwd_errno is null, so that openat can call us.
66792         (openat_permissive, fdopendir, fstatat, unlinkat):
66793         Simplify errno handling to avoid some duplicate code,
66794         as it's OK to set errno on success.
66795         * lib/openat.h: Revamp code so that function macros depend on
66796         __OPENAT_PREFIX only, not also on AT_FDCWD.
66797         (openat_ro): Remove.  Caller changed to use openat_permissive.
66798         (openat_permissive): Now a macro, if not a function.
66799         (openat_restore_fail, openat_save_fail): Now always functions,
66800         since mkdirat needs them even if __OPENAT_PREFIX is defined.
66801
66802         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
66803         and openat.c.
66804         * lib/mkdirat.c: Include openat-priv.h.
66805         Remove definitions of macros defined therein.
66806         * lib/openat.c: Likewise.
66807
66808         * lib/mkdirat.c (mkdirat): New file and function.
66809         * lib/openat.h (mkdirat): Declare.
66810
66811         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
66812
66813         * lib/openat.h (openat_permissive): Declare.
66814         (openat_ro): Define.
66815
66816         * lib/openat.c (EXPECTED_ERRNO): New macro.
66817         (openat_permissive): New function -- used in remove.c rewrite.
66818         (all functions): Set errno just before returning, only if there
66819         was an actual failure.
66820         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
66821
66822         Emulate openat-family functions using Linux's procfs, if possible.
66823         Idea and some code based on Ulrich Drepper's glibc changes.
66824
66825         * lib/openat.c: (BUILD_PROC_NAME): New macro.
66826         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
66827         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
66828         before falling back on save_cwd and restore_cwd.
66829         (fdopendir, fstatat, unlinkat): Likewise.
66830
66831         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
66832         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
66833
66834         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
66835         as second argument to va_arg.  Otherwise, some versions of gcc
66836         warn that `if this code is reached, the program will abort'.
66837
66838 2006-01-09  Jim Meyering  <jim@meyering.net>
66839
66840         Sync from coreutils.
66841         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
66842         Require openat-priv.h.
66843
66844 2006-01-09  Bruno Haible  <bruno@clisp.org>
66845
66846         * modules/strnlen (Include): Use strnlen.h.
66847
66848 2006-01-09  Bruno Haible  <bruno@clisp.org>
66849
66850         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
66851
66852 2006-01-09  Bruno Haible  <bruno@clisp.org>
66853
66854         * lib/sysexit_.h (EX_OK): New macro.
66855         Suggested by Martin Lambers <marlam@marlam.de>.
66856
66857 2006-01-09  Bruno Haible  <bruno@clisp.org>
66858
66859         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
66860         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
66861
66862 2006-01-09  Bruno Haible  <bruno@clisp.org>
66863
66864         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
66865         numbers.
66866
66867 2006-01-09  Bruno Haible  <bruno@clisp.org>
66868
66869         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
66870         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
66871         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
66872         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
66873
66874 2006-01-09  Bruno Haible  <bruno@clisp.org>
66875
66876         * build-aux/javacomp.sh.in: New file, moved from lib/.
66877         * modules/javacomp-script (Files): Update.
66878         (configure.ac): Add AC_CONFIG_FILES invocation.
66879         (EXTRA_DIST): Remove variable.
66880
66881         * build-aux/javaexec.sh.in: New file, moved from lib/.
66882         * modules/javaexec (Files): Update.
66883         (configure.ac): Add AC_CONFIG_FILES invocation.
66884         (EXTRA_DIST): Remove javaexec.sh.in.
66885
66886         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
66887         * modules/csharpcomp-script (Files): Update.
66888         (configure.ac): Add AC_CONFIG_FILES invocation.
66889         (EXTRA_DIST): Remove variable.
66890
66891         * build-aux/csharpexec.sh.in: New file, moved from lib/.
66892         * modules/csharpexec (Files): Update.
66893         (configure.ac): Add AC_CONFIG_FILES invocation.
66894         (EXTRA_DIST): Remove csharpexec.sh.in.
66895
66896 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
66897
66898         Sync from coreutils.
66899
66900         Add POSIX ACL support
66901         * lib/acl.h (copy_acl, set_acl): Add declarations.
66902         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
66903         systems other than Linux.
66904         (chmod_or_fchmod): New function: use fchmod when possible,
66905         and chmod otherwise.
66906         (file_has_acl): Add a POSIX ACL implementation, with a
66907         Linux-specific subcase.
66908         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
66909         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
66910         acls are unsupported.
66911         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
66912         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
66913         are unsupported.
66914
66915 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
66916
66917         Sync from coreutils.
66918         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
66919
66920 2006-01-07  Bruno Haible  <bruno@clisp.org>
66921
66922         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
66923         gl_EARLY.
66924
66925 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66926
66927         * lib/strftime.c (tzname): Don't declare if it is already #defined.
66928         Problem reported for Mingw by Mark Junker.
66929
66930 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66931
66932         * README: Gnulib normally doesn't generate a tarball.
66933
66934 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
66935
66936         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
66937         long int, not int, for nanosecond counts, so that people who are
66938         used to POSIX struct timespec won't be surprised.  Reported by Jim
66939         Meyering.
66940
66941 2005-12-28  Bruno Haible  <bruno@clisp.org>
66942
66943         * build-aux/config.rpath: Update from GNU gettext.
66944
66945 2005-12-16  Jim Meyering  <jim@meyering.net>
66946
66947         * modules/fprintftime: New module.
66948         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
66949
66950 2005-12-16  Jim Meyering  <jim@meyering.net>
66951
66952         * m4/fprintftime.m4: New file.
66953
66954 2005-12-16  Jim Meyering  <jim@meyering.net>
66955
66956         * lib/fprintftime.c, lib/fprintftime.h: New files.
66957
66958 2005-12-15  Simon Josefsson  <jas@extundo.com>
66959
66960         * modules/socklen (configure.ac): Fix M4 macro name, to align with
66961         new m4/socklen.m4.
66962
66963 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66964
66965         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
66966         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
66967
66968 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66969
66970         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
66971         * lib/argp-help.c (fill_in_uparams): Check if the constructed
66972         struct uparams is valid. Fall back to the default values if it is
66973         not.
66974
66975 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66976
66977         * modules/argp (Files): Add argp-pin.c
66978         (Depends-on): dirname
66979         (lib_SOURCES): Add argp-pin.c
66980
66981 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66982
66983         * m4/argp.m4:  Check if program_invocation_name and
66984         program_invocation_short_name are declared and define appropriate
66985         macros if they are not.
66986
66987 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66988
66989         * lib/argp-help.c (__argp_base_name): New function
66990         (__argp_short_program_name): Rewrite using __argp_base_name
66991         * lib/argp-namefrob.h: Define program_invocation_name and
66992         program_invocation_short_name if requested
66993         (__argp_base_name): Add prototype
66994         * lib/argp-parse.c (argp_def): Use gettext wrappers
66995         (argp_default_parser): Use __argp_base_name
66996         * lib/argp-pin.c: New file. Defines program_invocation_name and
66997         program_invocation_short_name on systems that lack them.
66998
66999 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67000
67001         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
67002         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67003         porting problem reported by Georg Schwarz in
67004         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67005
67006 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
67007
67008         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
67009         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
67010         porting problem reported by Georg Schwarz in
67011         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
67012
67013 2005-12-05  Bruno Haible  <bruno@clisp.org>
67014
67015         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
67016         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
67017         Reported by Mark Junker <mjscod@gmx.de>.
67018
67019 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
67020
67021         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
67022         Use implementation from Albert Chin, with some
67023         comments/corrections by Stepan Kasal and myself.
67024
67025 2005-12-02  Bruno Haible  <bruno@clisp.org>
67026
67027         * gnulib-tool (func_import): Accept GPLed build tool modules when
67028         --lgpl is given.
67029         * modules/csharpcomp-script: New file.
67030         * modules/csharpcomp: Depend on it.
67031         * modules/javacomp-script: New file.
67032         * modules/javacomp: Depend on it.
67033         Suggested by Simon Josefsson.
67034
67035 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
67036
67037         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
67038         statement, to work around an HP-UX 10.20 compiler bug reported by
67039         Peter O'Gorman.
67040
67041 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67042
67043         * modules/savedir (Depends-on): Add openat.
67044
67045 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
67046
67047         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
67048         (uintmax_t) [defined uintmax_t]: Do not declare.
67049         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
67050         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
67051         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
67052         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
67053         sake of portability to weird hosts that C allows (though we don't
67054         know of any practical examples).
67055
67056         * lib/savedir.h (fdsavedir): New decl.
67057         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
67058         contains most of the former guts of savedir.
67059         (savedir): Use savedirstream.
67060         Include "openat.h".
67061
67062 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
67063
67064         * modules/obstack (Files): Add m4/ulonglong.m4.
67065         Problem reported by Davide Angelocola.
67066
67067 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
67068
67069         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
67070         coreutils no longer futzes with rounding modes.
67071
67072 2005-11-14  Jim Meyering  <jim@meyering.net>
67073
67074         * lib/mkstemp-safer.c: Include <config.h>, required for possible
67075         replacement of mkstemp.
67076
67077 2005-11-10  Simon Josefsson  <jas@extundo.com>
67078
67079         * lib/readline.c: Remove EOL.
67080
67081 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67082
67083         * modules/gethrxtime (Depends-on): Add gettime.
67084
67085 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67086
67087         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
67088         or gettimeofday; no longer needed.
67089
67090 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
67091
67092         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
67093         time business.
67094         (gethrxtime) [! (HAVE_NANOUPTIME
67095         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
67096         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
67097         our own approximation.
67098
67099 2005-11-08  Eric Blake  <ebb9@byu.net>
67100
67101         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67102
67103 2005-11-08  Eric Blake  <ebb9@byu.net>
67104
67105         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
67106
67107 2005-11-04  Bruno Haible  <bruno@clisp.org>
67108
67109         * gnulib-tool: Implement --update mode.
67110
67111 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67112
67113         Fix porting problem reported by Theodoros V. Kalamatianos.
67114         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
67115         Don't assume that futimes failing means we must fail.
67116
67117 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
67118
67119         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
67120         variables to suggest the intended function of the PATH_MAX check.
67121
67122 2005-10-30  Kean Johnston  <jkj@sco.com>
67123
67124         Trivial changes to support SCO systems.
67125         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
67126         as PATH_MAX.
67127         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
67128         where __ptr is null when no I/O is pending.
67129
67130 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
67131
67132         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
67133         leave errno alone.  Problem reported by Dmitry V. Levin.
67134
67135 2005-10-28  Simon Josefsson  <jas@extundo.com>
67136
67137         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
67138         Test more.
67139
67140         * tests/test-gc-md2.c, tests/test-md2.c: New files.
67141
67142         * modules/md2, modules/md2-tests: New files.
67143
67144 2005-10-28  Simon Josefsson  <jas@extundo.com>
67145
67146         * m4/inet_ntop.m4: More tests.
67147
67148         * m4/gc-md2.m4, md2.m4: New file.
67149
67150 2005-10-28  Simon Josefsson  <jas@extundo.com>
67151
67152         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
67153         "restrict" keywords, as per POSIX.  Protect the function
67154         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
67155         Don't use K&R prototypes.  Check the sprintf return values.
67156         Re-define EAFNOSUPPORT if not present.  Indent.
67157
67158         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
67159         suggested by Bruno Haible <bruno@clisp.org>.
67160
67161         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
67162
67163         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
67164
67165         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
67166         libgcrypt).
67167
67168         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
67169
67170         * lib/md2.h, lib/md2.c: New files.
67171
67172 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
67173
67174         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
67175         errno alone.  Problem reported by Frederic Jolliton.
67176
67177 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67178
67179         * modules/verify (License): Change from GPL to LGPL.  This is a
67180         tiny module and there are apparently near-equivalents that are
67181         under the BSD license.
67182
67183 2005-10-24  Simon Josefsson  <jas@extundo.com>
67184
67185         * modules/sha1: Relicense to LGPL.
67186
67187 2005-10-24  Simon Josefsson  <jas@extundo.com>
67188
67189         * lib/md4.h: Shrink buffer size, now that we changed the type.
67190
67191 2005-10-23  Simon Josefsson  <jas@extundo.com>
67192
67193         * gnulib-tool (func_import): Fix --tests-base.
67194
67195 2005-10-22  Simon Josefsson  <jas@extundo.com>
67196
67197         * modules/arcfour (Depends-on): Need stdint.
67198
67199 2005-10-22  Simon Josefsson  <jas@extundo.com>
67200
67201         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
67202         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
67203
67204 2005-10-22  Simon Josefsson  <jas@extundo.com>
67205
67206         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
67207         suggested by Bruno Haible <bruno@clisp.org>.
67208
67209 2005-10-22  Simon Josefsson  <jas@extundo.com>
67210
67211         * lib/crc.h: Include stddef.h, for size_t.
67212
67213 2005-10-22  Simon Josefsson  <jas@extundo.com>
67214
67215         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
67216         arcfour_context struct (simplify test vector testing in GNU
67217         Shishi).
67218
67219 2005-10-21  Simon Josefsson  <jas@extundo.com>
67220
67221         * modules/des, modules/des-tests: New files.
67222
67223         * modules/gc-des, modules/gc-des-tests: New files.
67224
67225         * tests/test-des.c, tests/test-gc-des.c: New file.
67226
67227 2005-10-21  Simon Josefsson  <jas@extundo.com>
67228
67229         * modules/arctwo, modules/arctwo-tests: New files.
67230
67231         * tests/test-arctwo.c: New file.
67232
67233         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
67234
67235         * tests/test-gc-arctwo.c: New file.
67236
67237 2005-10-21  Simon Josefsson  <jas@extundo.com>
67238
67239         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
67240         Bruno Haible <bruno@clisp.org>.
67241
67242         * m4/gc-des.m4: New file.
67243
67244 2005-10-21  Simon Josefsson  <jas@extundo.com>
67245
67246         * m4/arctwo.m4: New file.
67247
67248         * m4/gc-arctwo.m4: New file.
67249
67250 2005-10-21  Simon Josefsson  <jas@extundo.com>
67251
67252         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
67253         block.
67254
67255 2005-10-21  Simon Josefsson  <jas@extundo.com>
67256
67257         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
67258         <bruno@clisp.org>.
67259
67260         * lib/hmac-sha1.c (hmac_sha1): Likewise.
67261
67262         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
67263         Bruno Haible <bruno@clisp.org>.
67264
67265         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
67266         <bruno@clisp.org>.
67267
67268 2005-10-21  Simon Josefsson  <jas@extundo.com>
67269
67270         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
67271
67272 2005-10-21  Simon Josefsson  <jas@extundo.com>
67273
67274         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
67275
67276 2005-10-21  Simon Josefsson  <jas@extundo.com>
67277
67278         * lib/des.h, lib/des.c: New files.
67279
67280         * lib/gc-gnulib.c: Support DES.c
67281
67282 2005-10-21  Simon Josefsson  <jas@extundo.com>
67283
67284         * lib/arctwo.h, lib/arctwo.c: New files.
67285
67286         * lib/gc-gnulib.c: Support ARCTWO.
67287
67288 2005-10-21  Simon Josefsson  <jas@extundo.com>
67289
67290         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
67291         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67292
67293 2005-10-21  Simon Josefsson  <jas@extundo.com>
67294
67295         * gnulib-tool (func_import, func_create_testdir): Define automake
67296         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
67297         Makefile.am snippet),
67298         suggested by Bruno Haible <bruno@clisp.org>.
67299
67300         * modules/gc (Makefile.am): Use it.
67301
67302 2005-10-21  Bruno Haible  <bruno@clisp.org>
67303
67304         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
67305         patch.
67306
67307 2005-10-19  Simon Josefsson  <jas@extundo.com>
67308
67309         * tests/test-gc-rijndael.c: New file.
67310
67311         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
67312
67313 2005-10-19  Simon Josefsson  <jas@extundo.com>
67314
67315         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
67316         interface too.
67317
67318 2005-10-19  Simon Josefsson  <jas@extundo.com>
67319
67320         * tests/test-gc-arcfour.c: New file.
67321
67322         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
67323
67324 2005-10-19  Simon Josefsson  <jas@extundo.com>
67325
67326         * modules/gc-md4, modules/gc-md4-tests: New file.
67327
67328         * tests/test-gc-md4.c: New file.
67329
67330 2005-10-19  Simon Josefsson  <jas@extundo.com>
67331
67332         * m4/gc-md4.m4: New file.
67333
67334 2005-10-19  Simon Josefsson  <jas@extundo.com>
67335
67336         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
67337         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
67338         <kasal@ucw.cz>.
67339
67340 2005-10-19  Simon Josefsson  <jas@extundo.com>
67341
67342         * m4/gc-arcfour.m4: New file.
67343
67344         * m4/gc-rijndael.m4: New file.
67345
67346 2005-10-19  Simon Josefsson  <jas@extundo.com>
67347
67348         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
67349
67350 2005-10-19  Simon Josefsson  <jas@extundo.com>
67351
67352         * lib/gc-gnulib.c: Support ARCFOUR.
67353
67354 2005-10-19  Simon Josefsson  <jas@extundo.com>
67355
67356         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
67357         support.
67358
67359         * lib/gc.h: Add ECB enum type.
67360
67361         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
67362
67363 2005-10-18  Simon Josefsson  <jas@extundo.com>
67364
67365         * tests/test-md5.c: New file.
67366
67367         * modules/md5-tests: New file.
67368
67369 2005-10-18  Simon Josefsson  <jas@extundo.com>
67370
67371         * tests/test-md4.c: New file.
67372
67373         * modules/md4, modules/md4-tests: New files.
67374
67375 2005-10-18  Simon Josefsson  <jas@extundo.com>
67376
67377         * m4/md4.m4: New file.
67378
67379 2005-10-18  Simon Josefsson  <jas@extundo.com>
67380
67381         * lib/md4.h, lib/md4.c: New files, based on md5.?.
67382
67383 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
67384
67385         * gnulib-tool (func_create_testdir): Omit the second check whether
67386         BUILT_SOURCES in nonempty.
67387
67388 2005-10-17  Simon Josefsson  <jas@extundo.com>
67389
67390         * tests/test-rijndael.c: New file.
67391
67392 2005-10-17  Simon Josefsson  <jas@extundo.com>
67393
67394         * modules/sha1: Depend on stdint instead of md5.
67395
67396         * modules/md5: Depend on stdint, remove uint32_t.
67397
67398 2005-10-17  Simon Josefsson  <jas@extundo.com>
67399
67400         * modules/gc-sha1-tests: New file.
67401
67402         * tests/test-gc-sha1.c: New file.
67403
67404 2005-10-17  Simon Josefsson  <jas@extundo.com>
67405
67406         * m4/md5.m4: Remove call to uint32_t.m4.
67407
67408 2005-10-17  Simon Josefsson  <jas@extundo.com>
67409
67410         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
67411
67412         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
67413         md5.h.
67414
67415         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
67416
67417         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
67418
67419 2005-10-17  Simon Josefsson  <jas@extundo.com>
67420
67421         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
67422
67423 2005-10-17  Simon Josefsson  <jas@extundo.com>
67424
67425         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
67426
67427 2005-10-17  Simon Josefsson  <jas@extundo.com>
67428
67429         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
67430
67431         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
67432
67433 2005-10-17  Bruno Haible  <bruno@clisp.org>
67434
67435         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
67436         that it can also be used in a test.
67437
67438 2005-10-16  Bruno Haible  <bruno@clisp.org>
67439
67440         * gnulib-tool (func_emit_tests_Makefile_am): Also define
67441         TESTS_ENVIRONMENT, so that individual tests can augment it.
67442
67443         * gnulib-tool (func_create_testdir): Use an intermediate target for
67444         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
67445         macros, like $(ALLOCA_H), which cannot be passed through the command
67446         line.
67447
67448 2005-10-15  Simon Josefsson  <jas@extundo.com>
67449
67450         * modules/rijndael-tests: New file.
67451
67452         * modules/rijndael: New file.
67453
67454 2005-10-15  Simon Josefsson  <jas@extundo.com>
67455
67456         * m4/rijndael.m4: New file.
67457
67458 2005-10-15  Simon Josefsson  <jas@extundo.com>
67459
67460         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
67461
67462         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
67463
67464 2005-10-14  Simon Josefsson  <jas@extundo.com>
67465
67466         * tests/test-arcfour.c: New file.
67467
67468         * modules/arcfour, modules/arcfour-tests: New files.
67469
67470 2005-10-14  Simon Josefsson  <jas@extundo.com>
67471
67472         * m4/arcfour.m4: New file.
67473
67474 2005-10-14  Simon Josefsson  <jas@extundo.com>
67475
67476         * lib/arcfour.h, lib/arcfour.c: New files.
67477
67478 2005-10-14  Roland McGrath  <roland@redhat.com>
67479
67480         Import from libc.  [BZ #1331]
67481         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
67482         macro argument.
67483         Reported by Matej Vela <vela@debian.org>.
67484
67485 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67486
67487         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
67488         include <wchar.h>; no longer needed.
67489
67490 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67491
67492         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
67493
67494 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
67495         and  Ulrich Drepper  <drepper@redhat.com>
67496
67497         Import from libc.
67498         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
67499         instead of inline stream orientation test and two separate
67500         function calls.  Pay no attention to USE_IN_LIBIO.
67501
67502 2005-10-13  Simon Josefsson  <jas@extundo.com>
67503
67504         * modules/gc-hmac-md5-tests: New file.
67505
67506         * tests/test-gc-hmac-sha1.c: New file.
67507
67508         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
67509
67510         * modules/gc-hmac-md5-tests: New file.
67511
67512         * tests/test-gc-md5.c: New file.
67513
67514         * modules/gc-md5-tests: New file.
67515
67516 2005-10-13  Simon Josefsson  <jas@extundo.com>
67517
67518         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
67519         Move memory allocation outside of loop.
67520
67521 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
67522
67523         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
67524         intermediate directory is in a read-only file system.  Problem
67525         reported by Eric Blake.
67526
67527 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
67528
67529         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
67530
67531 2005-10-12  Simon Josefsson  <jas@extundo.com>
67532
67533         * tests/test-hmac-sha1.c: New file.
67534
67535         * modules/hmac-sha1-tests: New file.
67536
67537         * modules/hmac-sha1: New file.
67538
67539 2005-10-12  Simon Josefsson  <jas@extundo.com>
67540
67541         * modules/gc-sha1: New file.
67542
67543 2005-10-12  Simon Josefsson  <jas@extundo.com>
67544
67545         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
67546
67547         * tests/test-gc-pbkdf2-sha1.c: New file.
67548
67549 2005-10-12  Simon Josefsson  <jas@extundo.com>
67550
67551         * modules/gc-md5, modules/gc-hmac-md5: New files.
67552
67553         * modules/gc (Files): Remove md5, memxor and hmac files.
67554
67555 2005-10-12  Simon Josefsson  <jas@extundo.com>
67556
67557         * m4/gc-pbkdf2-sha1.m4: New file.
67558
67559         * m4/gc-hmac-sha1.m4: New file.
67560
67561         * m4/gc-sha1: New file.
67562
67563         * m4/hmac-sha1.m4: New file.
67564
67565 2005-10-12  Simon Josefsson  <jas@extundo.com>
67566
67567         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
67568
67569         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
67570
67571 2005-10-12  Simon Josefsson  <jas@extundo.com>
67572
67573         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
67574         suggested by Bruno Haible <bruno@clisp.org>.
67575
67576 2005-10-12  Simon Josefsson  <jas@extundo.com>
67577
67578         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
67579
67580 2005-10-12  Simon Josefsson  <jas@extundo.com>
67581
67582         * lib/gc-pbkdf2-sha1.c: New file.
67583
67584         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
67585
67586 2005-10-12  Simon Josefsson  <jas@extundo.com>
67587
67588         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
67589
67590         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
67591
67592 2005-10-12  Simon Josefsson  <jas@extundo.com>
67593
67594         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
67595         GC_USE_HMAC_MD5, respectively.
67596
67597         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
67598         (gc_md5): Fix typo.
67599
67600         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
67601
67602         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
67603
67604         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
67605
67606 2005-10-12  Bruno Haible  <bruno@clisp.org>
67607
67608         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
67609         Reported by Stepan Kasal <kasal@ucw.cz>.
67610
67611 2005-10-11  Simon Josefsson  <jas@extundo.com>
67612
67613         * tests/test-crc.c: New file.
67614
67615         * modules/crc, modules/crc-tests: New files.
67616
67617 2005-10-11  Simon Josefsson  <jas@extundo.com>
67618
67619         * m4/crc.m4: New file.
67620
67621 2005-10-11  Simon Josefsson  <jas@extundo.com>
67622
67623         * lib/gc.h: Add gc_hash and gc_hash_buffer.
67624
67625         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
67626
67627         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
67628
67629 2005-10-11  Simon Josefsson  <jas@extundo.com>
67630
67631         * lib/crc.h, lib/crc.c: New files.
67632
67633         * lib/gc.h (gc_hash_buffer): Add doc.
67634
67635 2005-10-11  Bruno Haible  <bruno@clisp.org>
67636
67637         * modules/c-strcasestr: New file.
67638         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
67639
67640 2005-10-11  Bruno Haible  <bruno@clisp.org>
67641
67642         * modules/c-strcase: New file.
67643         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
67644
67645 2005-10-11  Bruno Haible  <bruno@clisp.org>
67646
67647         * lib/strcasecmp.c: Include limits.h.
67648         (strcasecmp): Avoid integer overflow on exotic platforms.
67649         * lib/strncasecmp.c: Include limits.h.
67650         (strncasecmp): Avoid integer overflow on exotic platforms.
67651         Reported by Paul Eggert.
67652
67653 2005-10-11  Bruno Haible  <bruno@clisp.org>
67654
67655         * lib/c-strcasestr.h: New file, from GNU gettext.
67656         * lib/c-strcasestr.c: New file, from GNU gettext.
67657
67658 2005-10-11  Bruno Haible  <bruno@clisp.org>
67659
67660         * lib/c-strcase.h: New file, from GNU gettext.
67661         * lib/c-strcasecmp.c: New file, from GNU gettext.
67662         * lib/c-strncasecmp.c: New file, from GNU gettext.
67663
67664 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67665
67666         * modules/mempcpy (License): GPL -> LGPL.
67667         * modules/strchrnul (License): Likewise.
67668         * modules/sysexits (License): Likewise.
67669
67670 2005-10-08  Simon Josefsson  <jas@extundo.com>
67671
67672         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
67673
67674 2005-10-07  Simon Josefsson  <jas@extundo.com>
67675
67676         * m4/memxor.m4: Remove gl_C_RESTRICT call.
67677
67678 2005-10-06  Simon Josefsson  <jas@extundo.com>
67679
67680         * tests/test-hmac-md5.c: New file.
67681
67682         * modules/hmac-md5-tests: New file.
67683
67684         * modules/hmac-md5: New file.
67685
67686 2005-10-06  Simon Josefsson  <jas@extundo.com>
67687
67688         * m4/hmac-md5.m4: New file.
67689
67690         * m4/memxor.m4: Require gl_C_RESTRICT.
67691
67692 2005-10-06  Simon Josefsson  <jas@extundo.com>
67693
67694         * lib/memxor.c (memxor): Avoid casts and warnings.
67695
67696 2005-10-06  Simon Josefsson  <jas@extundo.com>
67697
67698         * lib/hmac-md5.c: New file.
67699
67700         * lib/hmac.h: New file.
67701
67702 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67703
67704         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
67705         promotes to int, not unsigned int, to catch the AIX 5.3
67706         compiler bug.
67707
67708 2005-10-05  Simon Josefsson  <jas@extundo.com>
67709
67710         * modules/memxor: New file.
67711
67712         * modules/iconv (Files): Move config.rpath to havelib, it is used
67713         there.
67714
67715         * modules/havelib (Files): Add config.rpath.
67716
67717 2005-10-05  Simon Josefsson  <jas@extundo.com>
67718
67719         * m4/memxor.m4: New file.
67720
67721 2005-10-05  Simon Josefsson  <jas@extundo.com>
67722
67723         * lib/memxor.c (memxor): Fix compiler error.
67724
67725         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
67726         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
67727
67728         * lib/memxor.h, lib/memxor.c: New files.
67729
67730         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
67731         we assume all systems have it, suggested by Jim Meyering
67732         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
67733         any systems lack sys/socket.h; mingw32 is known to lack it, but we
67734         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
67735         same reasons.
67736
67737 2005-10-05  Simon Josefsson  <jas@extundo.com>
67738
67739         * config/srclist.txt: Add glibc bug 1423 for md5.h.
67740
67741 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67742
67743         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
67744         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
67745         needed, since the source code now assumes these .h files.
67746
67747 2005-10-05  Derek Price  <derek@ximbiot.com>
67748
67749         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
67750
67751 2005-10-05  Bruno Haible  <bruno@clisp.org>
67752
67753         * modules/stdint (License): Change to LGPL.
67754
67755 2005-10-04  Simon Josefsson  <jas@extundo.com>
67756
67757         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
67758         D. Baushke" <mdb@gnu.org>.
67759
67760 2005-10-04  Bruno Haible  <bruno@clisp.org>
67761
67762         * lib/verify.h (verify_true): Provide alternative definition for C++.
67763
67764 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
67765
67766         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
67767         (SSIZE_MAX): New macro, if not already defined.
67768         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
67769         than 2 GiB.
67770
67771 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67772
67773         Sync from coreutils.
67774         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
67775         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
67776         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
67777         ULLONG_MAX doesn't work with 2.7.2.1.
67778
67779 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67780
67781         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
67782         From Ben Pfaff.
67783
67784         * modules/exclude (Depends-on): Depend on verify.
67785         * modules/strtoimax (Depends-on): Likewise.
67786         * modules/utimecmp (Depends-on): Likewise.
67787
67788 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
67789
67790         * lib/exclude.c: Include verify.h.
67791         (verify): Remove.  All callers changed to use verify.h's version.
67792         * lib/strtoimax.c: Likewise.
67793         * lib/utimecmp.c: Likewis.e
67794
67795         Sync from coreutils.
67796         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
67797         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
67798         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
67799         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
67800         bother returning ENOSYS if settimeofday or stime fails; just let
67801         them return whatever errno they want to return.
67802         * lib/utimens.c: Include unistd.h, for dup2.
67803         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
67804         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
67805
67806 2005-10-02  Jim Meyering  <jim@meyering.net>
67807
67808         Sync from coreutils.
67809         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
67810         from glibc-2.2.5 that fails for read-only files.
67811
67812 2005-10-02  Jim Meyering  <jim@meyering.net>
67813
67814         Sync from coreutils.
67815         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
67816         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
67817         `#if HAVE_CONFIG_H'.
67818         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
67819         Remove AT_FDCWD test.
67820         Do not consume the fd unless successful.
67821         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
67822         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
67823         block, so that we don't even try to compile it if settimeofday is
67824         available.  This works around a compilation failure on OSF1 V5.1,
67825         due to stime requiring a `long int*' while tv_sec is `int'.
67826
67827 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
67828
67829         Sync from coreutils.
67830         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
67831         against `yes', rather than just testing for nonempty.
67832
67833 2005-10-01  Simon Josefsson  <jas@extundo.com>
67834
67835         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
67836         and Darwin.
67837
67838         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
67839         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
67840         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
67841         freeaddrinfo and gai_strerror are declared by the POSIX headers.
67842         Check if struct addrinfo is declared.
67843
67844 2005-10-01  Simon Josefsson  <jas@extundo.com>
67845
67846         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
67847         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
67848         AI_* and EAI_* definitions.  Protect function declarations.
67849
67850 2005-10-01  Jim Meyering  <jim@meyering.net>
67851
67852         Sync from coreutils.
67853
67854         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
67855         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
67856         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
67857         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
67858         in the inet and nsl libraries.  Required on Solaris 5.7.
67859
67860 2005-10-01  Jim Meyering  <jim@meyering.net>
67861
67862         Sync from coreutils.
67863         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
67864         in the inet and nsl libraries.  Required on Solaris 5.7.
67865
67866 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
67867
67868         * lib/getdelim.c (getdelim): Remove unused variables.
67869
67870 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67871
67872         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
67873         so that the code works even with ancient cpp.  Portability problem
67874         with GCC 2.7.2.1 reported by Thomas M.Ott.
67875
67876 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67877
67878         * modules/regex (Depends-on): Add strcase.
67879
67880         * modules/gethostname (Licence): Change from GPL to LGPL, since
67881         gethostname.c is a trivial implementation of a standard library
67882         function.
67883         * modules/poll (License): Change from GPL to LGPL, since it's
67884         derived from LGPL code.
67885
67886 2005-09-27  Jim Meyering  <jim@meyering.net>
67887
67888         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
67889         HAVE_CONFIG_H.
67890
67891         * lib/intprops.h (signed_type_or_expr__): Define.
67892         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
67893         for unsigned types.
67894
67895 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67896
67897         * lib/verify.h (verify_expr): Remove, replacing with:
67898         (verify_true): New macro that returns true instead of void.
67899         (verify_type__): Remove.
67900         (verify): Use verify_true rather than verify_type__.
67901
67902 2005-09-26  Bruno Haible  <bruno@clisp.org>
67903
67904         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
67905         is necessary.
67906         (lib_SOURCES): Remove mbchar.c.
67907         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
67908         (Files): Add m4/mbrtowc.m4.
67909         * modules/mbiter: Likewise.
67910         * modules/mbuiter: Likewise.
67911
67912 2005-09-26  Bruno Haible  <bruno@clisp.org>
67913
67914         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
67915         compile mbchar.c if they are not both present.
67916         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
67917         * m4/mbiter.m4 (gl_MBITER): Likewise.
67918         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
67919         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
67920         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
67921
67922 2005-09-25  Jim Meyering  <jim@meyering.net>
67923
67924         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
67925         also uses socklen_t.
67926
67927 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
67928
67929         * lib/utimens.c (ENOSYS): Define if not already defined.
67930         (futimens): Support having a null PATH if the file descriptor
67931         is nonnegative.
67932
67933         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
67934         Remove.
67935         (__attribute): Define to empty unless GCC 3.1 or later.
67936         This works around a core dump on OpenBSD 3.4, which has GCC
67937         2.95.3, which dumps core when given __attribute__(()).  It also
67938         simplifies other tests, since we really don't want to bother with
67939         worrying about which ancient version of GCC supported what.
67940         Original problem reported by Yoann Vandoorselaere, with part of
67941         the fix suggested by Derek Price.
67942
67943 2005-09-24  Jim Meyering  <jim@meyering.net>
67944
67945         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
67946         so we can once again use a positive bitfield width of 1 -- now we
67947         don't have to explain why we were using a bitfield width of 2.
67948
67949 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67950
67951         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
67952         and similarly for the other external symbols.  Problem reported
67953         by James Gallager.
67954
67955         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
67956         bug reported by Jim Meyering.
67957
67958         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
67959         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
67960         not needed, since socklen is a prerequisite module.
67961
67962 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67963
67964         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
67965         Problem reported by Eric Blake.
67966         (getaddrinfo): Initialize se so that it's not garbage.
67967         Redo internal storage allocation so that it doesn't make unportable
67968         assumptions about alignment.
67969         Fix a memory leak.
67970
67971         * lib/utimens.c (futimens): Use futimesat if available.
67972         Prefer it to futimes since it doesn't have the futimes bug.
67973
67974         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
67975         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
67976         Instead, declare a function that returns a pointer to an array,
67977         and use verify_type__ to declare the size of the array.
67978         Problem and germ of a solution reported by Bruno Haible.
67979         (verify_type__): Use 2, not 1, for bitfield size, to avoid
67980         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
67981
67982 2005-09-23  Jim Meyering  <jim@meyering.net>
67983
67984         Sync from coreutils.
67985         Correct build failure (socklen_t not defined) on at least
67986         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
67987         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
67988
67989 2005-09-23  Jim Meyering  <jim@meyering.net>
67990
67991         * modules/getaddrinfo (Depends-on): Add socklen.
67992
67993 2005-09-23  Bruno Haible  <bruno@clisp.org>
67994
67995         * tests/test-verify.c: New file.
67996
67997 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67998
67999         Sync from coreutils.
68000
68001         * modules/argmatch (Depends-on): Add verify.
68002         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
68003         unistd-safer.
68004         * modules/save-cwd (Depends-on): Likewise.
68005
68006         * modules/openat (Files): Add lib/openat-die.c.
68007         (Depends-on): Remove error, exitfail.
68008         Add dirname.
68009
68010         * modules/verify: New file.
68011         * MODULES.html.sh (Diagnostics <assert.h>): New section,
68012         with "verify" module.
68013
68014 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68015
68016         Sync from coreutils.
68017
68018         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
68019         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
68020         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
68021         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
68022         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
68023         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
68024         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
68025         Don't bother checking for string.h, stdlib.h, unistd.h.
68026         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
68027         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
68028         module's job.
68029         * m4/jm-macros.m4 (gl_MACROS): Likewise.
68030         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
68031
68032         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
68033         (gl_GETDATE): Use it.
68034
68035         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
68036
68037 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68038
68039         Sync from coreutils.
68040
68041         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
68042         stat-time.h.
68043         * lib/argmatch.h: Include verify.h
68044         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
68045         (ARGMATCH_ASSERT): Remove; unused.
68046         * lib/canonicalize.c: Assume STDC_HEADERS.
68047         * lib/exclude.c: Include "strcase.h".
68048         * lib/regex_internal.h [!defined _LIBC]: Likewise.
68049         * lib/getusershell.c: Include stdio--.h rather than stdio.h
68050         and stdio-safer.h.
68051         (getusershell): Call fopen, not fopen_safer.
68052         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
68053         Do not include unistd-safer.h.
68054         (save_cwd): Don't call fd_safer; no longer needed
68055         now that we include fcntl--.h.
68056
68057         * lib/getdate.y (relative_time): New type.
68058         (RELATIVE_TIME_0): New constant.
68059         (parser_control): Use relative_time instead of doing it ourselves.
68060         (%union): Add new relative_time rel member.
68061         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
68062         Now typeless.
68063         (relunit, relunit_snumber): Now of type rel.
68064         (zone, rel, relunit, get_date): Adjust to above changes.
68065
68066         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
68067         Do not include unistd-safer.h.
68068         (getloadavg): Don't call fd_safer; no longer needed
68069         now that we include fcntl--.h.
68070
68071         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
68072         (make_dir_parents): Treat ENOSYS like EEXIST.
68073
68074         Improve quality of diagnostics on restore_cwd failure.
68075         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
68076         (make_dir_parents): Last arg is now int * (for errno), not bool *.
68077         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
68078         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
68079         each time through the loop.  Do not diagnose restore_cwd failure;
68080         that is the caller's job (and perhaps the caller does not care).
68081
68082         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
68083         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
68084         If the file already exists but is not a directory, don't bother
68085         to try to make its parents.
68086         Close potential file descriptor leak if we can't chdir("/") (!).
68087         Don't always return true if chdir($PWD) fails; return true only
68088         if the requested action was done successfully (except for the
68089         chdir($PWD)).
68090         Don't log final directory unless we actually made it.
68091         Refactor to avoid duplicate code to fix up permissions.
68092         Don't attempt to fix up parent permissions if chdir($PWD) fails.
68093
68094         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
68095         to make it a bit faster and (I hope) clearer.
68096         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
68097         Fix bug in formats like %2N.
68098
68099         * lib/verify.h: New file.
68100
68101 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
68102
68103         Sync from coreutils.
68104         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
68105
68106 2005-09-22  Jim Meyering  <jim@meyering.net>
68107
68108         Sync from coreutils.
68109
68110         * m4/lstat.m4 (gl_FUNC_LSTAT):
68111         Use AC_LIBSOURCES to require lstat.c and lstat.h.
68112         Remove obsolete comment.
68113         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
68114         * m4/xstrtod.m4: Likewise.
68115
68116         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
68117
68118 2005-09-22  Jim Meyering  <jim@meyering.net>
68119
68120         Sync from coreutils.
68121
68122         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
68123
68124         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
68125         the .tm_year member, since otherwise gcc-4.0 would now warn about
68126         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
68127
68128         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
68129         order to avoid an unsuppressible warning from gcc on 64-bit systems.
68130
68131         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
68132         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
68133         when run in a time zone for which daylight savings time is in effect
68134         for the starting date.
68135
68136         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
68137         stop us from restricting permissions of just-created absolute-named
68138         directories.
68139         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
68140         to restore initial working directory.
68141         * lib/mkdir-p.c (make_dir_parents): New parameter:
68142         different_working_dir, to tell caller if/when we change the working
68143         directory and are unable to return to the initial one.
68144         * lib/mkdir-p.h (make_dir_parents): Update prototype.
68145         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
68146         `return false'.  This fixes a bug introduced on 2004-07-30.
68147
68148         * lib/openat.c (fdopendir): Be sure to close the supplied
68149         file descriptor before returning.  This makes our replacement
68150         implementation a little closer to Solaris's, where fdopendir
68151         ties the file descriptor to the returned DIR* pointer.
68152         * lib/openat.c (unlinkat): New function.
68153         * lib/openat.h (unlinkat): Add prototype.
68154         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
68155         (openat_restore_fail): Rename from openat_restore_die.
68156         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
68157
68158         Provide an alternative to exiting immediately upon save_cwd or
68159         restore_cwd failure.  Now, an application can arrange e.g.,
68160         to perform a longjump in that case.
68161         * lib/openat.c: Include dirname.h.
68162         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
68163         (rpl_openat, fdopendir, fstatat): Call openat_save_die
68164         and openat_restore_die rather than calling error directly.
68165         Don't include "error.h" or "exitfail.h"; they're no longer needed.
68166
68167         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
68168         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
68169         define.
68170
68171         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
68172         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
68173                             int utc, int nanoseconds);
68174         Background:
68175         date should not have to allocate a megabyte of virtual memory to
68176         handle a format argument like +%1048575T.  When implemented with
68177         strftime, it must allocate such a buffer, use strftime to fill it
68178         in, print it, then free it.
68179         With fprintftime, it simply prints everything and exits.
68180         With no need for memory allocation, that's one fewer way to fail.
68181         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
68182         optional field width, not before, so we accept %9:z, not %:9z.
68183         (my_strftime): Be sure to use L_('x') for literals.
68184
68185         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
68186         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
68187         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
68188         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
68189         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
68190         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
68191         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
68192         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
68193         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
68194         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
68195         * lib/xgethostname.c, lib/xreadlink.c:
68196         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
68197
68198         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
68199         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
68200         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
68201         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
68202         and don't include <sys/file.h>).
68203
68204 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
68205
68206         Sync from coreutils.
68207
68208         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
68209         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
68210         [!LDAV_DONE]: Avoid unused variable warning.
68211
68212 2005-09-21  Bruno Haible  <bruno@clisp.org>
68213
68214         * lib/unicodeio.h (unicode_to_mb): New declaration.
68215
68216 2005-09-20  Derek Price  <derek@ximbiot.com>
68217
68218         * lib/getaddrinfo.c: Don't include <netdb.h> included from
68219         getaddrinfo.h.
68220
68221 2005-09-20  Bruno Haible  <bruno@clisp.org>
68222
68223         * gnulib-tool: Remove trailing slashes from the values specified for
68224         --source-base, --m4-base, --tests-base, --aux-dir.
68225         Suggested by Simon Josefsson <jas@extundo.com>.
68226
68227 2005-09-20  Bruno Haible  <bruno@clisp.org>
68228
68229         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
68230         func_modules_to_filelist, func_import, func_create_testdir): Make all
68231         sorting results locale-independent, so that gnulib-cache.m4 doesn't
68232         change when gnulib-tool is invoked in a different locale.
68233
68234 2005-09-19  Simon Josefsson  <jas@extundo.com>
68235
68236         * m4/socklen.m4: Fix typo.
68237
68238 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68239
68240         Use a consistent style for including <config.h>.
68241         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
68242         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
68243         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
68244         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
68245         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
68246         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
68247         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
68248         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
68249         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
68250         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
68251         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
68252         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
68253         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
68254         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
68255         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
68256         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
68257         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
68258         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
68259         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
68260         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
68261         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
68262         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
68263         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
68264         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
68265         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
68266         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
68267         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
68268         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
68269         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
68270         lib/xstrtoumax.c, lib/yesno.c:
68271         Standardize inclusion of config.h.
68272         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
68273         lib/inttostr.h:  Removed inclusion of config.h from header files.
68274         * lib/inttostr.c:  Adjusted in-tree users.
68275         * lib/timespec.h: Remove superfluous warning to include config.h.
68276         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
68277         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
68278         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
68279         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
68280         config.h with HAVE_CONFIG_H.
68281
68282 2005-09-19  Jim Meyering  <jim@meyering.net>
68283
68284         * modules/pathmax (License): Change to LGPL.
68285
68286 2005-09-19  Derek Price  <derek@ximbiot.com>
68287
68288         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
68289
68290 2005-09-19  Bruno Haible  <bruno@clisp.org>
68291
68292         * gnulib-tool (import): Provide default for --tests-base.
68293
68294 2005-09-19  Bruno Haible  <bruno@clisp.org>
68295
68296         * doc/quote.texi: New file, extracted from gnulib.texi.
68297         * doc/ctime.texi: New file, extracted from gnulib.texi.
68298         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
68299         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
68300         * doc/gnulib.texi: Include them.
68301
68302 2005-09-18  Bruno Haible  <bruno@clisp.org>
68303
68304         Portability fix.
68305         * gnulib-tool (func_readlink): New function.
68306         (func_ln_if_changed): Use it.
68307
68308 2005-09-18  Bruno Haible  <bruno@clisp.org>
68309
68310         * gnulib-tool: Support --with-tests also with --import.
68311         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
68312         (func_import): Use variables $testsbase and $inctests. Emit a
68313         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
68314         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
68315         SUBDIRS += $testsdir.
68316         (func_create_testdir): Update.
68317
68318 2005-09-18  Bruno Haible  <bruno@clisp.org>
68319
68320         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
68321         instead of $dry_run.
68322         (func_cp_if_changed, func_mv_if_changed): Remove functions.
68323         (func_ln_if_changed): Don't handle dry-run here.
68324         (func_import): In dry-run mode, detect more precisely which actions
68325         would be performed, and don't use "...ing" verbs.
68326
68327 2005-09-18  Bruno Haible  <bruno@clisp.org>
68328
68329         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
68330         (func_import): Use join on two temporary files instead of three nested
68331         loops, in order to determine which files are new or old.
68332
68333 2005-09-18  Bruno Haible  <bruno@clisp.org>
68334
68335         * gnulib-tool (func_import): Comment out code that spits out the
68336         new files with --dry-run.
68337
68338 2005-09-18  Bruno Haible  <bruno@clisp.org>
68339
68340         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
68341
68342 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68343
68344         * lib/stat-time.h: New file.
68345         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
68346         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
68347         in a different way.
68348         (timespec_cmp): New function.
68349         * lib/utimecmp.c: Include stat-time.h.
68350         (SYSCALL_RESOLUTION): Depend on whether various struct stat
68351         members exist, not on the obsolescent ST_MTIM_NSEC.
68352         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
68353
68354 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68355
68356         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
68357
68358 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
68359
68360         * MODULES.html.sh (File system functions): Add stat-time.
68361         * modules/stat-time: New file.
68362         * modules/timespec (Files): Remove m4/st_mtim.m4; this
68363         is now done in a different way, by the stat-time module.
68364         * modules/utimecmp (Depends-on): Add stat-time.
68365
68366 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68367
68368         * m4/st_mtim.m4: Remove.  Superseded by...
68369         * m4/stat-time.m4: New file.
68370         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
68371         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
68372
68373 2005-09-15  Derek Price  <derek@ximbiot.com>
68374
68375         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
68376
68377 2005-09-15  Derek Price  <derek@ximbiot.com>
68378
68379         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
68380         * lib/regex_internal.c: Ditto, using this...
68381         (__GNUC_PREREQ): ...new macro.
68382         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
68383         using...
68384         (__GNUC_PREREQ): ...this new macro.
68385
68386         * lib/strstr.h: Include string.h. Define strstr as a macro here.
68387
68388 2005-09-15  Derek Price  <derek@ximbiot.com>
68389             Paul Eggert  <eggert@cs.ucla.edu>
68390
68391         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
68392         changes, consolidating in...
68393         * lib/regex_internal.h: ...this file.
68394
68395 2005-09-13  Jim Meyering  <jim@meyering.net>
68396
68397         * lib/canon-host.c: Filter through gnu indent and reword comments
68398         slightly.
68399         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
68400
68401 2005-09-13  Derek Price  <derek@ximbiot.com>
68402
68403         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
68404         failure.
68405         Reported by Jim Meyering  <jim@meyering.net>.
68406
68407 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68408
68409         * lib/base64.c: Typo.
68410         (base64_encode): Put b64str in initialized data section.
68411
68412 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
68413
68414         Merge glibc and coreutils changes into gnulib, plus a few
68415         extra fixes.
68416         * lib/md5.c: Use #error rather than a string.
68417         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
68418         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
68419         (__attribute__): Define to empty for non recent-GCC.
68420         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
68421         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
68422         Renamed from their non-__ counterparts, with new macros replacing
68423         them if not _LIBC.  Add __THROW attribute.
68424         (rol): Remove.
68425         (struct md5_ctx): Align buffer if using GCC.
68426         * lib/sha1.h (struct sha1_ctx): Likewise.
68427         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
68428         The old name was backwards.
68429         (NOTSWAP): Remove; not used.
68430         (rol): New macro, moved here from md5.h.
68431         (sha1_process_block): Remove a FIXME that doesn't make sense.
68432
68433 2005-09-12  Derek Price  <derek@ximbiot.com>
68434
68435         Return usable errors from canon-host.
68436         * lib/canon-host.h: New file.
68437         * lib/canon-host.c (canon_host): Wrap...
68438         (canon_host_r): ...this new function, which now relies exclusively on
68439         getaddrinfo.
68440         (ch_strerror): New function.
68441         (last_cherror): New global.
68442         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
68443         interface.
68444         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
68445         void *.
68446         (freeaddrinfo): Free ai->ai_canonname when set.
68447
68448 2005-09-12  Derek Price  <derek@ximbiot.com>
68449
68450         Make canon-host require getaddrinfo.
68451         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
68452         AC_LIBSOURCE canon-host.h.  Call...
68453         (gl_PREREQ_CANON_HOST): ...this new function, which requires
68454         gl_GETADDRINFO.
68455         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
68456
68457 2005-09-12  Derek Price  <derek@ximbiot.com>
68458
68459         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
68460         LGPL.
68461         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
68462
68463 2005-09-12  Derek Price  <derek@ximbiot.com>
68464
68465         * lib/gai_strerror.c: Include config.h when available.  Include
68466         getaddrinfo.h before other headers to test interface.
68467         Reported by Larry Jones <lawrence.jones@ugs.com>.
68468
68469 2005-09-12  Derek Price  <derek@ximbiot.com>
68470             Paul Eggert  <eggert@cs.ucla.edu>
68471
68472         * modules/glob (Files): Add glob-libc.h.
68473
68474 2005-09-12  Derek Price  <derek@ximbiot.com>
68475             Paul Eggert  <eggert@cs.ucla.edu>
68476
68477         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
68478         glob_.h, glob-libc.h.
68479         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
68480
68481 2005-09-12  Derek Price  <derek@ximbiot.com>
68482             Paul Eggert  <eggert@cs.ucla.edu>
68483
68484         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
68485         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
68486         protecting things that should be done only in gnulib contexts.
68487         * lib/glob_.h: New file, containing only the glob things needed for
68488         gnulib.
68489         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
68490         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
68491         (glob, globfree, glob_pattern_p): Now defined simply in terms of
68492         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
68493         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
68494         and to respect the namespace rules better.
68495
68496 2005-09-08  Simon Josefsson  <jas@extundo.com>
68497
68498         * modules/socklen: New file.
68499
68500 2005-09-08  Simon Josefsson  <jas@extundo.com>
68501
68502         * m4/socklen.m4: New file.
68503
68504 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68505
68506         * modules/utimens (Files): Add m4/utimbuf.m4, since
68507         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
68508         Reported by Sergey Poznyakoff.
68509
68510 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68511
68512         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
68513         definitions, since that's the preferred style in glibc.
68514         Fix a minor spacing issue, and update copyright notice to match
68515         glibc's.
68516
68517 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68518
68519         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
68520
68521 2005-09-06  Simon Josefsson  <jas@extundo.com>
68522
68523         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
68524         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
68525
68526 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68527
68528         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
68529         warning.
68530
68531 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68532
68533         * config/srclist.txt: Add glibc bug 1302.
68534
68535 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
68536
68537         Change bitset word type from unsigned int to unsigned long int,
68538         as this has better performance on typical 64-bit hosts.
68539         Port bitset code to hosts with unusual word sizes.
68540         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
68541         (build_collating_symbol):
68542         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
68543         argument is a bitset.  This is merely a style issue, but it makes
68544         it clearer that an entire array is expected.
68545         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
68546         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
68547         Port to the case where bitset_word is not the same as unsigned int.
68548         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
68549         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
68550         Likewise.
68551         * lib/regexec.c (check_dst_limits_calc_pos_1,
68552         check_subexp_matching_top):
68553         (build_trtable, group_nodes_into_DFAstates):
68554         Likewise.
68555         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
68556         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
68557         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
68558         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
68559         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
68560         * lib/regcomp.c (optimize_subexps, lower_subexp):
68561         Work even if bitset_word has holes in its bitwise representation.
68562         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
68563         * lib/regexec.c (check_dst_limits_calc_pos_1,
68564         check_subexp_matching_top):
68565         Likewise.
68566         * lib/regex_internal.c (re_string_reconstruct):
68567         Don't assume UCHAR_MAX == 255.
68568         * lib/regex_internal.h (bitset_set_all): Likewise.
68569         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
68570         All uses changed.
68571         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
68572         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
68573         All uses changed.
68574         (BITSET_WORD_MAX): New macro.
68575         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
68576         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
68577         (bitset_empty, bitset_copy):
68578         Prefer sizeof (bitset) to multiplying it out ourselves.
68579         (bitset_not_merge): Remove; unused.
68580         (bitset_contain): Return bool, not unsigned int with one bit on.
68581         All callers changed.
68582         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
68583         alignment than re_node_set; do this by defining a new internal
68584         type struct dests_alloc and using it to allocate memory.
68585
68586 2005-09-05  Bruno Haible  <bruno@clisp.org>
68587
68588         * gnulib-tool (func_import): Fix comparison in handling of symbolic
68589         links.
68590
68591 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
68592
68593         * modules/size_max (Makefile.am): Add size_max.h
68594
68595 2005-09-04  Derek Price  <derek@ximbiot.com>
68596
68597         * gnulib-tool (func_import): Fix reversed $symbolic logic.
68598
68599 2005-09-03  Simon Josefsson  <jas@extundo.com>
68600
68601         * gnulib-tool: Fix typo.
68602
68603 2005-09-03  Simon Josefsson  <jas@extundo.com>
68604
68605         * config/srclist.txt: Add glibc bug 1293.
68606
68607 2005-09-03  Derek Price  <derek@ximbiot.com>
68608
68609         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
68610         From Larry Jones <lawrence.jones@ugs.com>.
68611
68612 2005-09-02  Simon Josefsson  <jas@extundo.com>
68613
68614         * modules/socklen: New file.
68615
68616 2005-09-02  Simon Josefsson  <jas@extundo.com>
68617
68618         * modules/havelib: New module.
68619
68620         * modules/gettext, modules/iconv, modules/lock, modules/readline:
68621         Use havelib.
68622
68623 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
68624
68625         Check for arithmetic overflow when calculating sizes, to prevent
68626         some buffer-overflow issues.  These patches are conservative, in the
68627         sense that when I couldn't determine whether an overflow was possible,
68628         I inserted a run-time check.
68629         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
68630         macros.
68631         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
68632         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
68633         (re_xnrealloc, re_x2nrealloc): New inline functions.
68634         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
68635         parse_bracket_exp):
68636         (build_equiv_class, build_charclass): Check for arithmetic overflow
68637         in size expression calculations.
68638         * lib/regex_internal.c (re_string_realloc_buffers):
68639         (build_wcs_upper_buffer, re_node_set_add_intersect):
68640         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
68641         (re_dfa_add_node, register_state): Likewise.
68642         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
68643         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
68644         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
68645         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
68646
68647 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
68648
68649         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
68650         m4/ulonglong.m4.  Problem reported by Martin Lambers.
68651
68652 2005-09-02  Bruno Haible  <bruno@clisp.org>
68653
68654         Support for lib vs. lib64 distinction on biarch platforms.
68655         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
68656         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
68657         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
68658
68659 2005-09-02  Bruno Haible  <bruno@clisp.org>
68660
68661         * gnulib-tool (import): In the other first-use case, provide defaults
68662         as well.
68663
68664 2005-09-02  Bruno Haible  <bruno@clisp.org>
68665
68666         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
68667         patches not yet found in the latest gettext release.
68668
68669 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68670
68671         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
68672         to avoid a collision with bits/local_lim.h in glibc.
68673         All uses changed.  Problem reported by Dmitry V. Levin in
68674         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
68675
68676         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
68677         bugs in int versus size_t comparisons.
68678         (re_string_context_at): Fix bug where the code assumed that
68679         Idx is signed.
68680
68681         Use bool where appropriate.
68682         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
68683         All callers changed.
68684         (calc_eclosure_iter): Likewise, for ROOT arg.
68685         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
68686         (build_charclass_op): Likewise, for NON_MATCH arg.
68687         * lib/regex_internal.c (re_string_allocate, re_string_construct):
68688         (re_string_construct_common): Likewise, for ICASE arg.
68689         * lib/regexec.c (re_search_2_stub, re_search_stub):
68690         Likewise, for RET_LEN arg.
68691         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
68692         (set_regs): Likewise, for FL_BACKTRACK arg.
68693         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
68694         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
68695         (calc_eclosure_iter, parse_bracket_exp):
68696         Use bool for internal variables that are booleans.
68697         * lib/regexec.c (re_search_internal, check_matching,
68698         proceed_next_node):
68699         (set_regs, build_sifted_states, sift_states_bkref):
68700         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
68701         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68702         (find_collation_sequence_value):
68703         Likewise.
68704         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
68705         (re_node_set_compare):
68706         Return bool, not int. All callers changed.
68707         * lib/regexec.c (check_halt_node_context, check_dst_limits):
68708         (build_trtable, check_node_accept): Likewise.
68709         * lib/regex_internal.h: Include stdbool.h.
68710
68711         Fix bugs uncovered when converting to bool.
68712         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
68713         failure instead of charging ahead blindly.
68714         * lib/regex_internal.c (register_state): Likewise.
68715         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
68716         for freeing internal storage.
68717         (group_nodes_into_DFA_states): Use unsigned int, not int, for
68718         bitset pieces used as boolean, to avoid undefined behavior
68719         on hosts that do int overflow checking.
68720
68721 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68722
68723         * config/srclist.txt: Add glibc bugs 1285-1287.
68724
68725 2005-09-01  Jim Meyering  <jim@meyering.net>
68726
68727         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
68728         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
68729         Require gl_STAT_MACROS, too.
68730
68731 2005-09-01  Bruno Haible  <bruno@clisp.org>
68732
68733         * gnulib-tool (import): In the first-use case, provide defaults.
68734
68735 2005-09-01  Bruno Haible  <bruno@clisp.org>
68736
68737         * gnulib-tool (func_import): Remove the .tmp files.
68738
68739 2005-09-01  Bruno Haible  <bruno@clisp.org>
68740
68741         * gnulib-tool (func_import): Fix handling of symbolic links.
68742
68743 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68744
68745         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
68746         old glibc regex code mishandles strings longer than 2**31 bytes.
68747         This patch fixes this when the regex code is used in gnulib
68748         (i.e., outside glibc).
68749
68750         This patch should not affect the use of the regex code inside
68751         glibc.  No doubt this problem also needs to be handled for glibc
68752         as well, but the result will be an incompatible change to the
68753         glibc ABI, and the old ABI will have to be supported too.  That
68754         can be the the subject for another patch.
68755
68756         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
68757         governing whether the rest of this patch is active.  By default,
68758         the macro is disabled and the patch has no effect.
68759         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
68760         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
68761         (struct re_pattern_buffer, re_search, re_search_2, re_match):
68762         (re_match_2, re_set_registers): Use the new types.
68763         * lib/regex_internal.h (Idx, re_hashval_t): New types.
68764         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
68765         New macros.
68766         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
68767         (re_string_context_at, bin_tree_t, re_dfastate_t):
68768         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
68769         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
68770         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
68771         (re_string_char_size_at, re_string_wchar_at):
68772         (re_string_elem_size_at):
68773         Use the new types and macros to port to 64-bit hosts.
68774         Use unsigned types for internal values, so that the code
68775         mostly works even for arrays larger than SSIZE_MAX.
68776         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
68777         (search_duplicated_node, calc_eclosure_iter, fetch_number):
68778         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
68779         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
68780         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
68781         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
68782         (calc_inveclosure, parse_dup_op, build_range_exp):
68783         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
68784         (fetch_number, create_token_tree, mark_opt_subexp):
68785         Likewise.
68786         * lib/regex_internal.c (re_string_construct_common,
68787         create_ci_newstate):
68788         (create_cd_newstate, re_string_allocate, re_string_construct):
68789         (re_string_realloc_buffers, build_wcs_upper_buffer):
68790         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68791         (re_string_reconstruct, re_string_peek_byte_case):
68792         (re_string_fetch_byte_case, re_string_context_at):
68793         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68794         (re_node_set_init_copy, re_node_set_add_intersect):
68795         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68796         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68797         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68798         (re_acquire_state, re_acquire_state_context, register_state):
68799         Likewise.
68800         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
68801         search_cur_bkref_entry):
68802         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
68803         (re_search_internal, re_search_2_stub, re_search_stub)
68804         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
68805         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
68806         (update_cur_sifted_state, check_dst_limits):
68807         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
68808         (check_subexp_limits, sift_states_bkref, merge_state_array):
68809         (check_subexp_matching_top, get_subexp, get_subexp_sub):
68810         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
68811         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68812         (expand_bkref_cache, check_node_accept_bytes):
68813         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
68814         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
68815         (acquire_init_state_context, check_halt_node_context):
68816         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
68817         (sift_states_backward, clean_state_log_if_needed):
68818         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
68819         (find_recover_state, transit_state_sb, transit_state_mb):
68820         (transit_state_bkref, build_trtable, match_ctx_clean):
68821         Likewise.
68822         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
68823         to work around an assumption that REG_MISSING is negative.
68824
68825         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
68826         (seek_collating_symbol_entry) [defined _LIBC]:
68827         (lookup_collation_sequence_value) [defined _LIBC]:
68828         (build_range_exp, build_collating_symbol) [defined _LIBC]:
68829         Use prototypes rather than old-style function definitions.
68830         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
68831         (transit_state_sb) [0]:
68832         (find_collation_sequence_value) [defined _LIBC]: Likewise.
68833
68834         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
68835         rm_eo.
68836
68837         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
68838         (optimize_subexps, lower_subexp):
68839         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
68840         since the signed shift might overflow.  Use 1u<<31 instead.
68841         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
68842         Likewise.
68843         * lib/regexec.c (check_dst_limits_calc_pos_1,
68844         check_subexp_matching_top): Likewise.
68845
68846         * lib/regcomp.c (optimize_subexps, lower_subexp):
68847         Use CHAR_BIT rather than 8, for clarity.
68848         * lib/regexec.c (check_dst_limits_calc_pos_1):
68849         (check_subexp_matching_top): Likewise.
68850         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
68851         have to worry about portability issues when shifting it left.
68852         Remove no-longer-needed test for table_size > 0.
68853         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
68854         in a word, as the resulting behavior is undefined.
68855         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
68856         in one case, a <= should have been an <, and in another case the
68857         whole test was missing.
68858         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
68859         the standard name CHAR_BIT.
68860         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
68861         this is not true on one's complement and signed-magnitude hosts.
68862
68863         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
68864         next_last_offset.
68865         (struct re_dfa_t): Remove unused member states_alloc.
68866         * lib/regcomp.c (init_dfa): Don't initialize unused members.
68867
68868 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68869
68870         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
68871         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
68872         and large-file glibc and in 32-bit large-file Solaris.
68873
68874 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68875
68876         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
68877         lengths fit in regoff_t; this isn't true if regoff_t is the same
68878         width as size_t.
68879         * lib/regex.c (re_search_internal): 5th arg is LAST_START
68880         (= START + RANGE) instead of RANGE.  This avoids overflow
68881         problems when regoff_t is the same width as size_t.
68882         All callers changed.
68883         (re_search_2_stub): Check for overflow when adding the
68884         sizes of the two strings.
68885         (re_search_stub): Check for overflow when adding START
68886         to RANGE; if it occurs, substitute the extreme value.
68887
68888 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68889
68890         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
68891
68892 2005-08-31  Jim Meyering  <jim@meyering.net>
68893
68894         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
68895         a pointer-to-const.
68896         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
68897         (register_state): Likewise.
68898         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
68899         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
68900         (group_nodes_into_DFAstates): Likewise.
68901
68902 2005-08-31  Jim Meyering  <jim@meyering.net>
68903
68904         * check-module: Add a FIXME comment.
68905
68906 2005-08-31  Eric Blake  <ebb9@byu.net>
68907
68908         * modules/unistd-safer (Files): Add unistd--.h.
68909         * modules/stdio-safer (Files): Add stdio--.h.
68910
68911 2005-08-31  Derek Price  <derek@ximbiot.com>
68912
68913         * lib/getdelim.c (getdelim): Return EOF on EOF.
68914         Reported by Larry Jones <lawrence.jones@ugs.com>.
68915
68916 2005-08-31  Bruno Haible  <bruno@clisp.org>
68917
68918         Avoid unnecessary diffs in the generated lib/Makefile.am.
68919         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
68920         the generated files.
68921         (func_import): Don't set cmd.
68922
68923 2005-08-31  Bruno Haible  <bruno@clisp.org>
68924
68925         * lib/strstr.c: Include <stddef.h>, for NULL.
68926         * lib/strcasestr.c: Likewise.
68927         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68928
68929 2005-08-31  Bruno Haible  <bruno@clisp.org>
68930
68931         * gnulib-tool: New option --macro-prefix.
68932         (func_import): Use macro_prefix.
68933         (import): Handle option --macro-prefix.
68934
68935 2005-08-31  Bruno Haible  <bruno@clisp.org>
68936
68937         * gnulib-tool (import): Rename most ac_* variables to cached_*.
68938         Also use new variables cached_lgpl, cached_libtool.
68939
68940 2005-08-31  Bruno Haible  <bruno@clisp.org>
68941
68942         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
68943         always instantiating them.
68944
68945 2005-08-31  Bruno Haible  <bruno@clisp.org>
68946
68947         * gnulib-tool (func_import): Read the previous cached settings
68948         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
68949         earlier added by gnulib but are now dropped. Warn when a gnulib file
68950         overwrites a non-gnulib file.
68951
68952 2005-08-31  Bruno Haible  <bruno@clisp.org>
68953
68954         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
68955         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
68956         projects that don't keep autogenerated files in CVS. Put into
68957         actioncmd only the specified modules, not the transitive closure.
68958
68959 2005-08-31  Bruno Haible  <bruno@clisp.org>
68960
68961         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
68962         Create directories that shall be filled.
68963         (import): Don't look for gl_* macros in configure.ac. Recurse across
68964         all directories containing a gnulib-cache.m4 files, if meaningful.
68965
68966 2005-08-31  Bruno Haible  <bruno@clisp.org>
68967
68968         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
68969         (import): Set seen_libtool when we see gl_LIBTOOL.
68970
68971 2005-08-31  Bruno Haible  <bruno@clisp.org>
68972
68973         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
68974         declaration macro definitions from generated gnulib.m4.
68975
68976 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
68977
68978         * lib/iconvme.h: Add prototype for iconv_alloc.
68979
68980 2005-08-29  Simon Josefsson  <jas@extundo.com>
68981
68982         * lib/iconvme.c: Fix errno.
68983
68984 2005-08-29  Bruno Haible  <bruno@clisp.org>
68985
68986         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
68987         that it works when the directory contains spaces.
68988
68989 2005-08-29  Bruno Haible  <bruno@clisp.org>
68990
68991         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
68992
68993 2005-08-29  Bruno Haible  <bruno@clisp.org>
68994
68995         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
68996         Emit more advice.
68997
68998 2005-08-29  Bruno Haible  <bruno@clisp.org>
68999         and Stepan Kasal  <kasal@ucw.cz>
69000
69001         * check-module: If more parameters are given, check each of them
69002         separately; add more exceptions, as noted by Jim Meyering.
69003         (check_module): New procedure.
69004         (%exempt_header): Now contains all exceptions.
69005
69006 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
69007
69008         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
69009
69010 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69011
69012         * lib/iconvme.c: Split iconv_string into iconv_alloc.
69013
69014 2005-08-28  Bruno Haible  <bruno@clisp.org>
69015
69016         * m4/gnulib-tool.m4: New file.
69017
69018 2005-08-27  Jim Meyering  <jim@meyering.net>
69019
69020         * modules/unistd-safer (Files): Add pipe-safer.c.
69021         * modules/fcntl-safer (Files): Add creat-safer.c.
69022
69023 2005-08-27  Jim Meyering  <jim@meyering.net>
69024
69025         * m4/stdlib-safer.m4: New file.  From coreutils.
69026         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
69027         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
69028         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
69029         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
69030         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
69031
69032 2005-08-27  Jim Meyering  <jim@meyering.net>
69033
69034         * lib/fopen-safer.c: Merge minor changes from coreutils.
69035         * lib/dup-safer.c: Likewise.
69036         * lib/fd-safer.c: Likewise.
69037
69038         Merge from coreutils.
69039         * lib/stdio--.h: New file.
69040         * lib/stdlib--.h: New file.
69041         * lib/mkstemp-safer.c: New file.
69042
69043         GNU tar needs these.
69044         * lib/pipe-safer.c: New file.
69045         * lib/creat-safer.c: New file.
69046         * lib/fcntl--.h (creat): Define to creat_safer.
69047         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
69048         * lib/unistd--.h (pipe): Define to pipe_safer.
69049         * lib/unistd-safer.h: Declare pipe_safer.
69050
69051 2005-08-26  Simon Josefsson  <jas@extundo.com>
69052
69053         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
69054         Haible <bruno@clisp.org>.
69055
69056 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
69057
69058         * lib/regex_internal.h: Remove all references to
69059         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
69060         or better.
69061         (bitset_not, bitset_merge, bitset_not_merge):
69062         (bitset_mask, re_string_allocate, re_string_construct):
69063         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
69064         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
69065         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
69066         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
69067         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69068         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69069         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
69070         (re_acquire_state_context):
69071         Remove unnecessary forward decls.
69072         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
69073         Put __attribute at function definition,
69074         now that the function decl has been removed.
69075         * lib/regex_internal.c (re_string_peek_byte_case):
69076         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
69077         Likewise.
69078
69079 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
69080
69081         * m4/regex.m4: Add AC_PREREQ(2.50).
69082         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
69083
69084 2005-08-25  Simon Josefsson  <jas@extundo.com>
69085
69086         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
69087         __fsetlocking.
69088
69089 2005-08-25  Simon Josefsson  <jas@extundo.com>
69090
69091         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
69092         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
69093         GLIBC specific code.
69094
69095 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69096
69097         Make regex safe for g++.  This fixes one real bug (an "err"
69098         that should have been "*err").  g++ problem reported by
69099         Sam Steingold.
69100         * lib/regex_internal.h (re_calloc): New macro, consistent with
69101         re_malloc etc.  All callers of calloc changed to use re_calloc.
69102         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
69103         not int.  All callers changed.
69104         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
69105         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
69106         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
69107         (find_recover_state): Change "err" to "*err"; this fixes what
69108         appears to be a real bug.
69109         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
69110         versus int.
69111
69112 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69113
69114         * modules/regex (Depends-on): Add malloc, since the code
69115         assumes that !malloc(0) means failure.
69116
69117 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69118
69119         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
69120
69121         alloca modernization/simplification for regex.
69122         * lib/regex.c: Remove portability cruft for alloca.  This no longer
69123         needs to be at the start of the file, and can be moved into
69124         regex_internal.h and simplified.
69125         * lib/regex_internal.h: Include <alloca.h>.
69126         (__libc_use_alloca) [!defined _LIBC]: New macro.
69127         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
69128         now works outside glibc.
69129
69130 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69131
69132         * config/srclist.txt: Add glibc bugs 1241, 1245.
69133
69134 2005-08-25  Jim Meyering  <jim@meyering.net>
69135
69136         * lib/open-safer.c: Include <config.h>.
69137         Otherwise, we'd lose LARGEFILE support in any file using
69138         e.g. "fcntl--.h"
69139
69140 2005-08-25  Bruno Haible  <bruno@clisp.org>
69141
69142         * m4/minmax.m4: Require autoconf 2.52.
69143         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
69144         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
69145         alternatives of translit over the alphabet.
69146         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
69147
69148 2005-08-24  Simon Josefsson  <jas@extundo.com>
69149
69150         * tests/test-getpass.c: New file.
69151
69152 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69153
69154         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
69155         for GNU regex features.
69156
69157 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69158
69159         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
69160         * lib/regex.h (regerror): Likewise.
69161
69162         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
69163         requires this.  (The code never needed it.)
69164
69165         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
69166         All uses of recently-renamed identifiers changed to use the new,
69167         POSIX-compliant names.  The code will build and run just fine
69168         without these changes, but it's better to eat our own dog food
69169         and use the standard-conforming names.
69170
69171         * lib/regex.h: Fix a multitude of POSIX name space violations.
69172         These changes have an effect only for programs that define
69173         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
69174         do not change anything for programs compiled in the normal way.
69175         Also, there is no effect on the ABI.
69176
69177         (_REGEX_SOURCE): New macro.
69178         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
69179         defined and _GNU_SOURCE is not; this fixes a name space violation.
69180
69181         Rename the following macros to obey POSIX requirements.
69182         The old names are still visible as macros if _REGEX_SOURCE is defined.
69183         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
69184         RE_BACKSLASH_ESCAPE_IN_LISTS.
69185         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
69186         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
69187         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
69188         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
69189         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
69190         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
69191         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
69192         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
69193         (REG_INTERVALS): renamed from RE_INTERVALS.
69194         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
69195         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
69196         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
69197         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
69198         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
69199         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
69200         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
69201         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
69202         RE_UNMATCHED_RIGHT_PAREN_ORD.
69203         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
69204         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
69205         (REG_DEBUG): renamed from RE_DEBUG.
69206         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
69207         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
69208         unusual, since we can't clash with the POSIX REG_ICASE.
69209         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
69210         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
69211         (REG_NO_SUB): renamed from RE_NO_SUB.
69212         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
69213         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
69214         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
69215         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
69216         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
69217         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
69218         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
69219         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
69220         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
69221         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
69222         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
69223         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
69224         RE_SYNTAX_POSIX_MINIMAL_BASIC.
69225         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
69226         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
69227         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
69228         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
69229         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
69230         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
69231         (REG_FIXED): Renamed from REGS_FIXED.
69232         (REG_NREGS): Renamed from RE_NREGS.
69233
69234         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
69235         of other REG_* macros, since POSIX says the user is allowed to
69236         #undef these macros selectively.
69237
69238         (reg_errcode_t): Update comment stating what other tables need
69239         to be consistent.
69240
69241         Rename the following enum values to obey POSIX requirements.
69242         The old names are still visible as macros.
69243         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
69244         is not defined, since GNU is supposed to be a superset of POSIX as
69245         much as possible, and since we want reg_errcode_t to be a signed
69246         type for implementation consistency.
69247         (_REG_NOERROR): Renamed from REG_NOERROR.
69248         (_REG_NOMATCH): Renamed from REG_NOMATCH.
69249         (_REG_BADPAT): Renamed from REG_BADPAT.
69250         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
69251         (_REG_ECTYPE): Renamed from REG_ECTYPE.
69252         (_REG_EESCAPE): Renamed from REG_EESCAPE.
69253         (_REG_ESUBREG): Renamed from REG_ESUBREG.
69254         (_REG_EBRACK): Renamed from REG_EBRACK.
69255         (_REG_EPAREN): Renamed from REG_EPAREN.
69256         (_REG_EBRACE): Renamed from REG_EBRACE.
69257         (_REG_BADBR): Renamed from REG_BADBR.
69258         (_REG_ERANGE): Renamed from REG_ERANGE.
69259         (_REG_ESPACE): Renamed from REG_ESPACE.
69260         (_REG_BADRPT): Renamed from REG_BADRPT.
69261         (_REG_EEND): Renamed from REG_EEND.
69262         (_REG_ESIZE): Renamed from REG_ESIZE.
69263         (_REG_ERPAREN): Renamed from REG_ERPAREN.
69264         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
69265         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
69266         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
69267         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
69268
69269         (_REG_RE_NAME, _REG_RM_NAME): New macros.
69270         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
69271         changed.  But support the old name if the new one is not defined
69272         and if _REGEX_SOURCE.
69273
69274         Change the following member names in struct re_pattern_buffer.
69275         The old names are still supported if !_REGEX_SOURCE.
69276         The new names are always supported, regardless of _REGEX_SOURCE.
69277         (re_buffer): Renamed from buffer.
69278         (re_allocated): Renamed from allocated.
69279         (re_used): Renamed from used.
69280         (re_syntax): Renamed from syntax.
69281         (re_fastmap): Renamed from fastmap.
69282         (re_translate): Renamed from translate.
69283         (re_can_be_null): Renamed from can_be_null.
69284         (re_regs_allocated): Renamed from regs_allocated.
69285         (re_fastmap_accurate): Renamed from fastmap_accurate.
69286         (re_no_sub): Renamed from no_sub.
69287         (re_not_bol): Renamed from not_bol.
69288         (re_not_eol): Renamed from not_eol.
69289         (re_newline_anchor): Renamed from newline_anchor.
69290
69291         Change the following member names in struct re_registers.
69292         The old names are still supported if !_REGEX_SOURCE.
69293         The new names are always supported, regardless of _REGEX_SOURCE.
69294         (rm_num_regs): Renamed from num_regs.
69295         (rm_start): Renamed from start.
69296         (rm_end): Renamed from end.
69297
69298         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
69299         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
69300         Prepend __ to parameter names.
69301
69302         Undo yesterday's changes.
69303
69304 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69305
69306         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
69307         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
69308         lib/regex.c.
69309
69310 2005-08-24  Jim Meyering  <jim@meyering.net>
69311
69312         Sync from coreutils.
69313         * m4/fcntl-safer.m4: New file.
69314
69315         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
69316         and object files for this module.
69317
69318 2005-08-24  Jim Meyering  <jim@meyering.net>
69319
69320         Sync from coreutils.
69321         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
69322
69323 2005-08-24  Jim Meyering  <jim@meyering.net>
69324
69325         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
69326         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
69327
69328 2005-08-24  Jim Meyering  <jim@meyering.net>
69329
69330         * modules/fcntl-safer: New module.
69331         * modules/fts (Depends-on): Add fcntl-safer.
69332         * MODULES.html.sh (File descriptor based Input/Output):
69333         Add fcntl-safer.
69334
69335 2005-08-24  Bruno Haible  <bruno@clisp.org>
69336
69337         Support for unit test modules.
69338         * modules/README: Mention tests modules.
69339         * modules/TEMPLATE-TESTS: New file.
69340         * gnulib-tool: New options --extract-tests-module, --with-tests and
69341         --tests-base (unused for the moment).
69342         (testsbase, inctests): New variables.
69343         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
69344         (func_verify_module): Exclude TEMPLATE-TESTS.
69345         (func_verify_nontests_module, func_verify_tests_module): New functions.
69346         (func_get_dependencies): Add implicit dependency for tests modules.
69347         (func_get_tests_module): New function.
69348         (func_modules_transitive_closure): When --with-tests was specified,
69349         include the unit tests as well, unless explicitly avoided.
69350         (func_emit_lib_Makefile_am): Ignore the tests modules here.
69351         (func_emit_tests_Makefile_am): New function.
69352         (func_create_testdir): When --with-tests was specified, emit a
69353         tests/ directory.
69354         * MODULES.html.sh (Future developments): Update.
69355
69356 2005-08-24  Bruno Haible  <bruno@clisp.org>
69357
69358         * modules/tls-tests: New file.
69359         * tests/test-tls.c: New file, from GNU gettext.
69360
69361 2005-08-24  Bruno Haible  <bruno@clisp.org>
69362
69363         * modules/lock-tests: New file.
69364         * tests/test-lock.c: New file, from GNU gettext.
69365
69366 2005-08-24  Bruno Haible  <bruno@clisp.org>
69367
69368         * lib/lock.h: Add multiple inclusion guard.
69369         * lib/tls.h: Add multiple inclusion guard.
69370
69371 2005-08-24  Bruno Haible  <bruno@clisp.org>
69372
69373         * gnulib-tool: Add support for the --aux-dir option to
69374         --create-testdir, --create-megatestdir, --test, --megatest.
69375         (func_create_testdir, func_create_megatestdir): Optionally emit a
69376         AC_CONFIG_AUX_DIR directive.
69377         (create-testdir, create-megatestdir, test, megatest): Provide a
69378         default value for $auxdir.
69379
69380 2005-08-24  Bruno Haible  <bruno@clisp.org>
69381
69382         * gnulib-tool (import): Use compound statement instead of subshell
69383         where possible.
69384
69385 2005-08-24  Bruno Haible  <bruno@clisp.org>
69386
69387         * gnulib-tool (import): Change --aux-dir default to "build-aux".
69388
69389 2005-08-24  Bruno Haible  <bruno@clisp.org>
69390
69391         * gnulib-tool (func_version): Update.
69392
69393 2005-08-24  Bruno Haible  <bruno@clisp.org>
69394
69395         * gnulib-tool (func_import, func_create_testdir,
69396         func_create_megatestdir): Quote all autoconf macro arguments.
69397
69398 2005-08-24  Bruno Haible  <bruno@clisp.org>
69399
69400         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
69401         option --force, because --force causes the aclocal.m4 of each
69402         subdirectory to be newer than the corresponding config.h.in.
69403
69404 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69405
69406         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
69407         All contents moved to gl_REGEX.
69408         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
69409         assume that it does.
69410
69411 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69412
69413         * lib/regex.h (REG_NOSYS)
69414         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
69415         Define, since POSIX requires it as of 2001.
69416         (_REG_ENOSYS)
69417         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
69418         New private symbol, used to keep the enum signed in all cases.
69419         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
69420         Youngman in
69421         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
69422
69423         * lib/regex_internal.c (re_string_skip_chars, register_state):
69424         (calc_state_hash):
69425         Remove forward decls; no longer needed now that we use prototypes.
69426         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
69427         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
69428         (clean_state_log_if_needed): Likewise.
69429
69430 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69431
69432         * config/srclist.txt: Add glibc bugs 1231-1233.
69433
69434 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69435
69436         Fix problems reported by Sam Steingold in
69437         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
69438         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
69439         assumed that reg_errcode_t is a signed type, which is not
69440         necessarily true if _XOPEN_SOURCE is not defined.
69441         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
69442         since some compilers warn about it otherwise.
69443
69444 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69445
69446         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
69447         (init_word_char, create_initial_state, duplicate_node_closure):
69448         (fetch_token, peek_token_bracket, build_range_exp):
69449         (build_collating_symbol): Remove forward decls; no longer needed
69450         now that we use prototypes.
69451
69452         * lib/regcomp.c:
69453         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
69454         (re_compile_fastmap_iter, regcomp, regerror, regfree):
69455         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
69456         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
69457         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
69458         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
69459         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
69460         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
69461         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
69462         (build_range_exp, build_collating_symbol, parse_bracket_exp):
69463         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
69464         (build_charclass, build_charclass_op, fetch_number, create_tree):
69465         (create_token_tree, mark_opt_subexp, duplicate_tree):
69466         Use prototypes rather than old-style definitions.
69467
69468         * lib/regex_internal.c:
69469         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
69470         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
69471         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
69472         (re_string_reconstruct, re_string_peek_byte_case):
69473         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
69474         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
69475         (re_node_set_init_copy, re_node_set_add_intersect):
69476         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
69477         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
69478         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
69479         (re_acquire_state, re_acquire_state_context, register_state):
69480         (create_ci_newstate, create_cd_newstate, free_state):
69481         Likewise.
69482         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
69483         re_search_2):
69484         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
69485         (re_search_internal, prune_impossible_nodes):
69486         (acquire_init_state_context, check_matching, static):
69487         (check_halt_node_context, check_halt_state_context, proceed_next_node):
69488         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
69489         (update_regs, sift_states_backward, build_sifted_states):
69490         (clean_state_log_if_needed, merge_state_array):
69491         (update_cur_sifted_state, add_epsilon_src_nodes):
69492         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
69493         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
69494         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
69495         (find_recover_state, check_subexp_matching_top, transit_state_mb):
69496         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
69497         (check_arrival, check_arrival_add_next_nodes):
69498         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
69499         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
69500         (check_node_accept_bytes, check_node_accept, extend_buffers):
69501         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
69502         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
69503         (sift_ctx_init):
69504         Likewise.
69505
69506         * lib/regex_internal.h:
69507         (re_string_allocate, re_string_construct, re_string_reconstruct):
69508         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
69509         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
69510         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
69511         (re_string_context_at, re_string_peek_byte_case):
69512         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
69513         is defined, since we now use prototypes always.
69514
69515         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
69516         C89 or better.  All uses removed.
69517
69518 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69519
69520         * config/srclist.txt: Add glibc bugs 1220-1227.
69521
69522 2005-08-20  Jim Meyering  <jim@meyering.net>
69523
69524         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
69525         of unused local, dfa.
69526
69527 2005-08-20  Bruno Haible  <bruno@clisp.org>
69528
69529         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
69530
69531 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69532
69533         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
69534         (re_node_set_insert_last, re_dfa_add_node):
69535         Rename local variables to avoid GCC shadowing warnings.
69536
69537 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69538
69539         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
69540         [defined lint]: Suppress bogus uninitialized-variable warnings.
69541
69542         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
69543         and let the caller return REG_ESPACE if out of space.  This
69544         removes an uninitialied-variable warning with GCC 4.0.1, and also
69545         avoids taking the address of a local variable.  All callers
69546         changed.
69547
69548 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69549
69550         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
69551         $LIBCSRC/posix/regexec.c.
69552         Add glibc bug 1217 for regcomp.c.
69553
69554 2005-08-19  Jim Meyering  <jim@meyering.net>
69555
69556         * lib/regexec.c (proceed_next_node): Redo local variables to
69557         avoid GCC shadowing warnings.
69558
69559 2005-08-18  Bruno Haible  <bruno@clisp.org>
69560
69561         * lib/strstr.c (strstr): Fix return value in multibyte case.
69562         * lib/strcasestr.c (strcasestr): Likewise.
69563
69564 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69565
69566         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
69567
69568 2005-08-17  Jim Meyering  <jim@meyering.net>
69569
69570         Make the %s format (seconds since the epoch) work for a negative
69571         number and when used with a zero-padded field width, e.g. %015s.
69572
69573         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
69574         label so that it precedes the code to set `digits'.  Otherwise,
69575         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
69576         print `00-22'.  Now, it prints `-0022', as it should.
69577
69578 2005-08-17  Bruno Haible  <bruno@clisp.org>
69579
69580         * modules/strstr (Files): Add m4/mbrtowc.m4.
69581         (Depends-on): Add mbuiter.
69582
69583 2005-08-17  Bruno Haible  <bruno@clisp.org>
69584
69585         * modules/strcasestr: New file.
69586         * MODULES.html.sh (String handling, based on ANSI C 89): Add
69587         strcasestr.
69588
69589 2005-08-17  Bruno Haible  <bruno@clisp.org>
69590
69591         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
69592
69593 2005-08-17  Bruno Haible  <bruno@clisp.org>
69594
69595         * modules/mbuiter: New file.
69596         * MODULES.html.sh (Extended multibyte and wide character utilities):
69597         Add mbuiter.
69598
69599 2005-08-17  Bruno Haible  <bruno@clisp.org>
69600
69601         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
69602         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
69603
69604 2005-08-17  Bruno Haible  <bruno@clisp.org>
69605
69606         * m4/strcasestr.m4: New file.
69607
69608 2005-08-17  Bruno Haible  <bruno@clisp.org>
69609
69610         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
69611         * lib/strstr.c: Completely rewritten, with multibyte locale support.
69612
69613 2005-08-17  Bruno Haible  <bruno@clisp.org>
69614
69615         * lib/strcasestr.h: New file.
69616         * lib/strcasestr.c: New file.
69617
69618 2005-08-17  Bruno Haible  <bruno@clisp.org>
69619
69620         * lib/strcasecmp.c: Use mbuiter.h.
69621
69622 2005-08-17  Bruno Haible  <bruno@clisp.org>
69623
69624         * lib/mbuiter.h: New file.
69625
69626 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69627
69628         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
69629         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
69630         and gl_GETOPT are both invoked via different paths (as happens
69631         with GNU tar CVS because it uses both argp and getopt), the former
69632         wins.
69633
69634 2005-08-16  Bruno Haible  <bruno@clisp.org>
69635
69636         * modules/tls: New file.
69637         * MODULES.html.sh (Multithreading): Add tls.
69638
69639 2005-08-16  Bruno Haible  <bruno@clisp.org>
69640
69641         * modules/strnlen1: New file.
69642         * MODULES.html.sh (String handling): Add strnlen1.
69643
69644 2005-08-16  Bruno Haible  <bruno@clisp.org>
69645
69646         * modules/strcase (Files): Add m4/mbrtowc.m4.
69647         (Depends-on): Add strnlen1, mbchar.
69648
69649 2005-08-16  Bruno Haible  <bruno@clisp.org>
69650
69651         * modules/mbiter: New file.
69652         * MODULES.html.sh (Extended multibyte and wide character utilities):
69653         Add mbiter.
69654
69655 2005-08-16  Bruno Haible  <bruno@clisp.org>
69656
69657         * modules/mbfile: New file.
69658         * MODULES.html.sh (Extended multibyte and wide character utilities):
69659         Add mbfile.
69660
69661 2005-08-16  Bruno Haible  <bruno@clisp.org>
69662
69663         * modules/mbchar: New file.
69664         * MODULES.html.sh (Extended multibyte and wide character utilities):
69665         New section.
69666
69667 2005-08-16  Bruno Haible  <bruno@clisp.org>
69668
69669         * m4/tls.m4: New file, from GNU gettext.
69670
69671 2005-08-16  Bruno Haible  <bruno@clisp.org>
69672
69673         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
69674         always.
69675         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
69676
69677 2005-08-16  Bruno Haible  <bruno@clisp.org>
69678
69679         * m4/mbiter.m4: New file.
69680
69681 2005-08-16  Bruno Haible  <bruno@clisp.org>
69682
69683         * m4/mbfile.m4: New file.
69684
69685 2005-08-16  Bruno Haible  <bruno@clisp.org>
69686
69687         * m4/mbchar.m4: New file.
69688
69689 2005-08-16  Bruno Haible  <bruno@clisp.org>
69690
69691         * lib/tls.h: New file, from GNU gettext.
69692         * lib/tls.c: New file, from GNU gettext.
69693
69694 2005-08-16  Bruno Haible  <bruno@clisp.org>
69695
69696         * lib/strnlen1.h: New file.
69697         * lib/strnlen1.c: New file.
69698
69699 2005-08-16  Bruno Haible  <bruno@clisp.org>
69700
69701         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
69702         (mbi_init): Update.
69703         (mbi_avail, mbi_advance): Let the iteration end before the terminating
69704         NUL byte, not after it.
69705
69706 2005-08-16  Bruno Haible  <bruno@clisp.org>
69707
69708         * lib/strcase.h (strcasecmp): Add note in comments.
69709         * lib/strncasecmp.c: Use code from strcasecmp.c.
69710         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
69711         (strcasecmp): Work correctly in multibyte locales.
69712
69713 2005-08-16  Bruno Haible  <bruno@clisp.org>
69714
69715         * lib/mbiter.h: New file.
69716
69717 2005-08-16  Bruno Haible  <bruno@clisp.org>
69718
69719         * lib/mbfile.h: New file.
69720
69721 2005-08-16  Bruno Haible  <bruno@clisp.org>
69722
69723         * lib/mbchar.h: New file.
69724         * lib/mbchar.c: New file.
69725
69726 2005-08-16  Bruno Haible  <bruno@clisp.org>
69727
69728         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
69729         the valid ones. Makes the comparison operations transitive:
69730         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
69731         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
69732
69733 2005-08-15  Simon Josefsson  <jas@extundo.com>
69734
69735         * modules/ssize_t (License): Change to 'unlimited'.
69736
69737         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
69738
69739 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69740
69741         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
69742         Add comments for each pending glibc patch.
69743
69744 2005-08-15  Bruno Haible  <bruno@clisp.org>
69745
69746         * lib/regex.h (__restrict_arr): Don't define to __restrict if
69747         __cplusplus is defined.
69748
69749 2005-08-14  Jim Meyering  <jim@meyering.net>
69750
69751         Sync from coreutils.
69752
69753         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
69754         Use the hash-table-based cycle-detection code not just when
69755         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
69756         Reported by James Youngman in
69757         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
69758         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
69759         FTS_TIGHT_CYCLE_CHECK.
69760         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
69761         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
69762         once again.
69763         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
69764         * lib/fts.c (fd_safer): Remove decl.
69765         Include fcntl--.h rather than unistd-safer.h
69766         (fts_safe_changedir): Don't call fd_safer; no longer needed
69767         now that we include fcntl--.h.
69768
69769 2005-08-12  Simon Josefsson  <jas@extundo.com>
69770
69771         * modules/getndelim2: Use ssize_t module.
69772         * modules/getnline: Likewise.
69773         * modules/safe-read: Likewise.
69774         * modules/xreadlink: Likewise.
69775
69776         * modules/ssize_t: New file.
69777
69778 2005-08-12  Simon Josefsson  <jas@extundo.com>
69779
69780         * m4/readline.m4: Look for termcap, curses or ncurses if required.
69781
69782 2005-08-12  Simon Josefsson  <jas@extundo.com>
69783
69784         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69785         ssize_t.
69786
69787 2005-08-12  Simon Josefsson  <jas@extundo.com>
69788
69789         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
69790         readline, getdelim and check_version.
69791         (Support for systems lacking ISO C 99: Sizes of integer types):
69792         Add size_max.
69793
69794 2005-08-12  Bruno Haible  <bruno@clisp.org>
69795
69796         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
69797
69798 2005-08-11  Simon Josefsson  <jas@extundo.com>
69799
69800         * modules/readline: New file.
69801
69802         * modules/strnlen (Files): Add strnlen.h.
69803
69804 2005-08-11  Simon Josefsson  <jas@extundo.com>
69805
69806         * m4/readline.m4: New file.
69807
69808 2005-08-11  Simon Josefsson  <jas@extundo.com>
69809
69810         * lib/readline.h, readline.c: New file.
69811
69812 2005-08-11  Simon Josefsson  <jas@extundo.com>
69813
69814         * doc/gnulib.texi (Initial import, Finishing touches): Mention
69815         gl_AVOID.
69816
69817 2005-08-11  Bruno Haible  <bruno@clisp.org>
69818
69819         * lib/strnlen.h (strnlen): Change parameter name to match comment.
69820
69821 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
69822
69823         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
69824
69825 2005-08-10  Simon Josefsson  <jas@extundo.com>
69826
69827         * tests/test-iconvme.c: New file.
69828
69829 2005-08-10  Simon Josefsson  <jas@extundo.com>
69830
69831         * m4/strnlen.m4: New file.
69832
69833         * m4/strndup.m4: Don't check for strnlen declaration, done in
69834         strnlen.m4.
69835
69836 2005-08-10  Simon Josefsson  <jas@extundo.com>
69837
69838         * lib/strndup.c: Use strnlen.h.
69839
69840         * lib/strnlen.h: New file.
69841
69842 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69843
69844         * README: Typos.
69845
69846 2005-08-02  Simon Josefsson  <jas@extundo.com>
69847
69848         * modules/readline: New file.
69849
69850 2005-08-02  Simon Josefsson  <jas@extundo.com>
69851
69852         * modules/getdelim: New file.
69853
69854         * modules/getline: Rewrite, don't use getndelim2.
69855
69856 2005-08-02  Simon Josefsson  <jas@extundo.com>
69857
69858         * m4/getline.m4: Separate out getdelim stuff into separate module.
69859
69860         * m4/getdelim.m4: New file.
69861
69862 2005-08-02  Simon Josefsson  <jas@extundo.com>
69863
69864         * lib/getline.h, getline.c: Rewrite.
69865
69866         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
69867
69868 2005-07-31  Bruno Haible  <bruno@clisp.org>
69869
69870         * lib/lock.h (gl_lock_initializer): New macro.
69871         (gl_lock_define_initialized): Use it.
69872         (gl_rwlock_initializer): New macro.
69873         (gl_rwlock_define_initialized): Use it.
69874         (gl_recursive_lock_initializer): New macro.
69875         (gl_recursive_lock_define_initialized): Use it.
69876
69877 2005-07-30  Karl Berry  <karl@gnu.org>
69878
69879         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
69880         Report from Ben Pfaff, regarding getopt.
69881
69882 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
69883
69884         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
69885         normal way.
69886         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
69887         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
69888         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
69889         (gl_GETOPT): Use the new macros.  Most of the implementation
69890         is moved to the new macros.  This is for programs like Emacs
69891         that don't want all the functionality of gl_GETOPT.
69892
69893 2005-07-26  Bruno Haible  <bruno@clisp.org>
69894
69895         * m4/lock.m4: Update from GNU gettext.
69896
69897 2005-07-26  Bruno Haible  <bruno@clisp.org>
69898
69899         * lib/lock.h: Update from GNU gettext.
69900         * lib/lock.c: Update from GNU gettext.
69901
69902 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
69903
69904         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
69905         obsolescent AC_TRY_RUN.  Include the default includes files, for
69906         'exit'.
69907
69908 2005-07-24  Bruno Haible  <bruno@clisp.org>
69909
69910         * modules/visibility: New file.
69911         * MODULES.html.sh (Misc): Add visibility.
69912
69913 2005-07-24  Bruno Haible  <bruno@clisp.org>
69914
69915         * m4/visibility.m4: New file.
69916
69917 2005-07-24  Bruno Haible  <bruno@clisp.org>
69918
69919         * doc/visibility.texi: New file.
69920
69921 2005-07-22  Bruno Haible  <bruno@clisp.org>
69922
69923         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
69924         $(ALLOCA_H), redundant through BUILT_SOURCES.
69925         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
69926         redundant through BUILT_SOURCES.
69927         * modules/byteswap (Makefile.am): Remove explicit dependency on
69928         $(BYTESWAP_H), redundant through BUILT_SOURCES.
69929         * modules/fnmatch (Makefile.am): Remove explicit dependency on
69930         $(FNMATCH_H), redundant through BUILT_SOURCES.
69931         * modules/getopt (Makefile.am): Remove explicit dependency on
69932         $(GETOPT_H), redundant through BUILT_SOURCES.
69933         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
69934         redundant through BUILT_SOURCES.
69935         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
69936         redundant through BUILT_SOURCES.
69937         * modules/stdbool (Makefile.am): Remove explicit dependency on
69938         $(STDBOOL_H), redundant through BUILT_SOURCES.
69939         * modules/stdint (Makefile.am): Remove explicit dependency on
69940         $(STDINT_H), redundant through BUILT_SOURCES.
69941         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
69942         Remove explicit dependency on $(SYSEXITS_H).
69943         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
69944
69945 2005-07-18  Simon Josefsson  <jas@extundo.com>
69946
69947         * lib/check-version.c (check_version): Accept identical versions too.
69948
69949 2005-07-18  Bruno Haible  <bruno@clisp.org>
69950
69951         * modules/lock: New file.
69952         * MODULES.html.sh (Multithreading): New section.
69953
69954 2005-07-18  Bruno Haible  <bruno@clisp.org>
69955
69956         * m4/lock.m4: New file, from GNU gettext.
69957
69958 2005-07-18  Bruno Haible  <bruno@clisp.org>
69959
69960         * lib/lock.h: New file, from GNU gettext.
69961         * lib/lock.c: New file, from GNU gettext.
69962
69963 2005-07-18  Bruno Haible  <bruno@clisp.org>
69964
69965         * lib/lock.h (gl_once_t): New type.
69966         (gl_once_define, gl_once): New macros.
69967         * lib/lock.c (fresh_once): New variable.
69968         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
69969         functions.
69970
69971 2005-07-16  Simon Josefsson  <jas@extundo.com>
69972
69973         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
69974         workaround, suggested by Bruno.
69975
69976 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69977
69978         * modules/xalloc (Depends-on): Add xalloc-die.
69979         * modules/xvasprintf (Depends-on): Add xalloc-die.
69980
69981 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69982
69983         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
69984         with a minor change.
69985
69986 2005-07-15  Bruno Haible  <bruno@clisp.org>
69987
69988         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
69989         When using lib/poll.c, define poll as rpl_poll.
69990
69991 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
69992
69993         * modules/argp (Depends-on): Remove unlocked-io.
69994
69995 2005-07-14  Derek Price  <derek@ximbiot.com>
69996
69997         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
69998         for glob symlink bug.
69999
70000 2005-07-14  Bruno Haible  <bruno@clisp.org>
70001
70002         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
70003         Instead, test for *_unlocked function declarations directly.
70004
70005 2005-07-11  Simon Josefsson  <jas@extundo.com>
70006
70007         * modules/size_max: New file.
70008
70009         * modules/xsize: Depend on size_max module for size_max.m4.
70010
70011 2005-07-11  Simon Josefsson  <jas@extundo.com>
70012
70013         * lib/size_max.h: New file.
70014
70015 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
70016
70017         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
70018         copyright symbol and the year.
70019         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
70020         (version_etc_va): Use parameterized copyright notice.
70021         Reword to conform to the current GNU coding standards.
70022
70023 2005-07-11  Karl Berry  <karl@gnu.org>
70024
70025         * doc/gnulib.texi (Quoting): new node.
70026         (Initial import): more info, from Patrice.
70027
70028 2005-07-11  Bruno Haible  <bruno@clisp.org>
70029
70030         * gnulib-tool (func_usage): Document option --avoid.
70031         (Command line options): Handle --avoid.
70032         (func_acceptable): New function.
70033         (func_modules_transitive_closure): Use it.
70034
70035 2005-07-11  Bruno Haible  <bruno@clisp.org>
70036
70037         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
70038         Reported by Jim Meyering.
70039
70040 2005-07-10  Bruno Haible  <bruno@clisp.org>
70041
70042         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
70043         Needed when size_t is smaller than 'unsigned int'.
70044         Reported by Paul Eggert.
70045
70046 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70047
70048         * modules/argp (Depends-on): Add unlocked-io
70049
70050 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70051
70052         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
70053         block of defines.
70054
70055 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70056
70057         * config/srclist.txt: Comment out regcomp.c, since we have a porting
70058         fix now.
70059
70060 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
70061         and Paul Eggert  <eggert@cs.ucla.edu>
70062
70063         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
70064         in wint_t, not wchar_t.  Remove now-unnecessary cast.
70065
70066 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70067
70068         * modules/regex (Files): Add lib/regex_internal.c,
70069         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
70070         (Depends-on): Add extensions.
70071         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
70072
70073 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70074
70075         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
70076         pathconf.
70077         * m4/same.m4 (gl_SAME): Likewise.
70078         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
70079
70080         * m4/regex.m4: Adjust to new libc regex implementation.
70081         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
70082         all the .c and .h parts of (the new) regex.
70083         Quote the m4 stuff better.
70084         Check for RE_ICASE bug of old gnulib.
70085         Check for REG_STARTEND of recent libc.
70086         Rename local variables from jm_* to gl_*.
70087         Quote operand of "test -f".
70088         Say "recent enough" version of libc, not "version 2".
70089         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
70090         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
70091         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
70092         Remove check for btowc, isascii.
70093         Require AM_LANGINFO_CODESET.
70094
70095 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70096
70097         * lib/regex.c, regex.h: Sync from libc.
70098         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
70099         * lib/regexec.c:
70100         New files, synced from libc, except that regex_internal.h
70101         currently has a small porting fix.
70102
70103 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
70104
70105         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
70106         regex_internal.c, regexec.c.
70107         Add regex_internal.h too, but as a comment, since the libc version
70108         is currently broken in gnulib mode.
70109
70110 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70111
70112         Support programs like Emacs that use gnulib but not gettext.
70113         * MODULES.html.sh (Internationalization functions): Add gettext-h.
70114         * modules/gettext-h: New file.
70115         * modules/gettext (Files): Remove lib/gettext.h.
70116         (Depends-on): Add gettext-h.
70117         (Makefile.am): Remove lib_SOURCES.
70118         * modules/argmatch, modules/c-stack, modules/closeout:
70119         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
70120         * modules/execute, modules/file-type, modules/getaddrinfo:
70121         * modules/getopt, modules/human, modules/javacomp:
70122         * modules/javaexec, modules/mkdir-p, modules/obstack:
70123         * modules/openat, modules/pagealign_alloc, modules/pipe:
70124         * modules/quotearg, modules/regex, modules/rpmatch:
70125         * modules/unicodeio, modules/userspec, modules/version-etc:
70126         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
70127         * modules/xsetenv:
70128         Depend on gettext-h, not gettext.
70129
70130 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70131
70132         * gnulib-tool (func_import): Add support for 'public domain' license.
70133         * modules/alloca, modules/atexit, modules/memmove:
70134         Now public domain, not GPL.
70135         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
70136         * modules/realloc, modules/strerror, modules/strtod:
70137         Now LGPL, not GPL.
70138
70139 2005-07-05  Bruno Haible  <bruno@clisp.org>
70140
70141         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
70142         autoconf CVS. Needed for mingw.
70143
70144 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70145
70146         Remove the dependency of the strftime module on the tzset module.
70147         * modules/strftime (Depends-on): Remove dependency on tzset.
70148
70149 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70150
70151         Remove the dependency of the strftime module on the tzset module.
70152         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
70153         gl_FUNC_TZSET_CLOBBER.
70154
70155 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70156
70157         Remove the dependency of the strftime module on the tzset module.
70158         * lib/strftime.c (my_strftime)
70159         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
70160         Copy the input structure, to work around some of the bug with
70161         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
70162         Solaris releases, you should also use the tzset module, but we won't
70163         require it as a dependency any more since we don't want LGPLed code
70164         to depend on GPLed code.
70165
70166 2005-07-02  Jim Meyering  <jim@meyering.net>
70167
70168         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
70169         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
70170         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
70171         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
70172
70173 2005-07-02  Jim Meyering  <jim@meyering.net>
70174
70175         * lib/backupfile.c (backup_args): Change a `0' to NULL.
70176
70177 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70178
70179         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
70180         declares only 'struct timespec;' (!).
70181
70182 2005-07-01  Jim Meyering  <jim@meyering.net>
70183
70184         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
70185         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
70186         * lib/save-cwd.c, tempname.c:
70187         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70188         and don't include <sys/file.h>).
70189
70190 2005-06-29  Jim Meyering  <jim@meyering.net>
70191
70192         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
70193         type name.  Use the variable name instead.
70194         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
70195         Likewise.
70196
70197 2005-06-28  Simon Josefsson  <jas@extundo.com>
70198
70199         * modules/check-version (Files): Add check-version.m4.
70200
70201 2005-06-28  Simon Josefsson  <jas@extundo.com>
70202
70203         * m4/check-version.m4: New file, suggested by Jim Meyering
70204         <jim@meyering.net>.
70205
70206 2005-06-28  Simon Josefsson  <jas@extundo.com>
70207
70208         * lib/check-version.h, lib/check-version.c: New files.
70209
70210 2005-06-28  Simon Josefsson  <jas@extundo.com>
70211
70212         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
70213         collision with global variable.  Better indentation.  Don't
70214         increment buffer pointer beyond buffer end.  Based on comments
70215         from Paul Eggert <eggert@cs.ucla.edu>.
70216
70217         * lib/base64.h: Indent.
70218
70219 2005-06-28  Simon Josefsson  <jas@extundo.com>
70220
70221         * doc/gnulib.texi (Library version handling): New section.
70222
70223 2005-06-28  Jim Meyering  <jim@meyering.net>
70224
70225         * check-module (find_included_lib_files): Hard-code another
70226         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
70227         but modules/fts-lgpl (correctly) does not list those files.
70228
70229         * modules/canonicalize (Files): Add lib/pathmax.h.
70230
70231 2005-06-25  Simon Josefsson  <jas@extundo.com>
70232
70233         * modules/check-version: New file.
70234
70235 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
70236
70237         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
70238         initializer of struct addrinfo, as an indication that we don't
70239         care how many members the structure has.
70240
70241 2005-06-24  Derek Price  <derek@ximbiot.com>
70242         and Bruno Haible  <bruno@clisp.org>
70243
70244         Remove stat module & update lstat.
70245         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
70246         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70247         * m4/stat.m4: Remove this file.
70248
70249 2005-06-24  Derek Price  <derek@ximbiot.com>
70250         and Bruno Haible  <bruno@clisp.org>
70251
70252         Remove stat module & update lstat.
70253         * lib/stat.c: Remove this file...
70254         (slash_aware_lstat): ...moving this content and its support...
70255         * lib/lstat.c (rpl_lstat): ...into here.
70256         * lib/lstat.h: New file.
70257
70258 2005-06-24  Derek Price  <derek@ximbiot.com>
70259         and Bruno Haible  <bruno@clisp.org>
70260
70261         Remove stat module & update lstat.
70262         * config/srclist.txt (libc sources): Remove stat.
70263
70264 2005-06-24  Derek Price  <derek@ximbiot.com>
70265         and Bruno Haible  <bruno@clisp.org>
70266
70267         Remove stat module & update lstat.
70268         * MODULES.html.sh (stat): Remove.
70269         * MODULES.html: Regenerated.
70270         * modules/lstat (Description): Correct function name.
70271         (Files): Add "lstat.h".
70272         (Depends-on): Remove stat, add xalloc, stat-macros.
70273         * modules/stat: Remove this file.
70274         (Include): Add "lstat.h", remove <sys/stat.h>.
70275
70276 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
70277
70278         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
70279         (ranged_convert): Don't save conversion in a temporary struct.
70280         This causes a warning with GCC 4.0.0, and anyway in the typical
70281         case it's not worth the extra 100 bytes or so of code.
70282         (ranged_convert, __mktime_internal): When calling a function via a
70283         pointer P, use P () rather than (*P) (), as we now assume C89 or
70284         better.
70285
70286 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70287
70288         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
70289         "who -r" failed to give output.  Problem reported by Tim Waugh.
70290
70291         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
70292         (xcalloc): Use it to avoid needless tests.
70293         Problem reported by Jim Meyering.
70294
70295 2005-06-20  Derek Price  <derek@ximbiot.com>
70296
70297         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
70298         unnecessary for Autoconfs > 2.59c.
70299
70300 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70301
70302         * lib/argp.h (__option_is_short): Check upper limit of
70303         __key. Isprint() requires its argument to have the value
70304         of an unsigned char or EOF.
70305
70306 2005-06-16  Jim Meyering  <jim@meyering.net>
70307
70308         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
70309         when either N or S is zero.
70310
70311 2005-06-16  Derek Price  <derek@ximbiot.com>
70312
70313         * m4/bison.m4: Declare YACC & YFLAGS precious.
70314
70315 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
70316
70317         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
70318         multibyte string or pattern, fall back on unibyte matching.
70319         Problem reported by James Youngman.
70320
70321 2005-06-08  Bruno Haible  <bruno@clisp.org>
70322
70323         * modules/csharpcomp: New file.
70324         * MODULES.html.sh (C#): Add csharpcomp.
70325
70326 2005-06-08  Bruno Haible  <bruno@clisp.org>
70327
70328         * m4/csharpcomp.m4: New file, from GNU gettext.
70329
70330 2005-06-08  Bruno Haible  <bruno@clisp.org>
70331
70332         * lib/csharpcomp.h: New file, from GNU gettext.
70333         * lib/csharpcomp.c: New file, from GNU gettext.
70334         * lib/csharpcomp.sh.in: New file, from GNU gettext.
70335
70336 2005-06-08  Bruno Haible  <bruno@clisp.org>
70337
70338         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
70339         warning on mingw.
70340
70341 2005-06-07  Derek Price  <derek@ximbiot.com>
70342
70343         Sync from CVS.
70344         * lib/glob_.h: Indent nested #ifdef.
70345
70346 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
70347
70348         Sync from coreutils.
70349         Use "file name" when talking about file names, instead of "filename"
70350         or "path", as per the GNU coding standards.
70351         * lib/mkdir-p.c: Renamed from makepath.c.
70352         (make_dir_parents): Renamed from make_path.  All callers changed.
70353         * lib/mkdir-p.h: Likewise.  All includers changed.
70354         * lib/filenamecat.c: Renamed from path-concat.c.
70355         (file_name_concat): Renamed from path_concat.  All callers changed.
70356         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
70357         * lib/filenamecat.h: Likewise.  All includers changed.
70358         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
70359         in comments or local variable names.
70360         * lib/basename.c: Likewise.
70361         * lib/canonicalize.c, canonicalize.h: Likewise.
70362         * lib/dirname.c, dirname.h: Likewise.
70363         * lib/euidaccess.c: Likewise.
70364         * lib/exclude.c: Likewise
70365         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
70366         * lib/fsusage.c, fsuage.h: Likewise.
70367         * lib/fts.c, fts_.h: Likewise.
70368         * lib/getcwd.c: Likewise.
70369         * lib/getloadavg.c: Likewise.
70370         * lib/mkstemp.c: Likewise.
70371         * lib/mountlist.c, mountlist.h: Likewise.
70372         * lib/openat.c, openat.h: Likewise.
70373         * lib/readlink-stub.c: Likewise.
70374         * lib/readutmp.c, readutmp.h: Likewise.
70375         * lib/rename.c: Likewise.
70376         * lib/rmdir.c: Likewise.
70377         * lib/same.c: Likewise.
70378         * lib/savedir.c: Likewise.
70379         * lib/stripslash.c: Likewise.
70380         * lib/tempname.c: Likewise.
70381         * lib/xreadlink.c: Likewise.
70382         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
70383         All uses changed.
70384         * lib/exclude.h: Likewise.
70385
70386         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
70387         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
70388         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
70389         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
70390         * lib/pathmax.h: Include <limits.h> unconditionally, since other
70391         files have been getting away with it for years (MORE/BSD 4.3
70392         is extinct now).
70393         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
70394         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
70395
70396         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
70397         Define to 256, not 255, as per modern POSIX.
70398
70399 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
70400
70401         Sync from coreutils.
70402         Use "file name" when talking about file names, instead of "filename"
70403         or "path", as per the GNU coding standards.
70404         * MODULES.html.sh: mkdir-p renamed from makepath.
70405         filenamecat renamed from path-concat.
70406         * modules/filenamecat: Renamed from modules/path-concat.
70407         (Files): filenamecat.h and filenamecat.c renamed from
70408         path-concat.h and path-concat.c.
70409         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
70410         (Include): filenamecat.h, not path-concat.h.
70411         * modules/mkdir-p: Renamed from modules/makepath.
70412         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
70413         makepath.c.
70414         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
70415         (Include): mkdir-p.h, not makepath.h.
70416
70417 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
70418
70419         Sync from coreutils.
70420         * m4/mkdir-p.m4: Renamed from makepath.m4.
70421         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
70422         Rename files from makepath.c to mkdir-p.c, and from
70423         makepath.h to mkdir-p.h.
70424         * m4/filenamecat.m4: Renamed from path-concat.m4.
70425         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
70426         Rename files from path-concat.c to filenamecat.c,
70427         and from path-concat.h to filenamecat.h.
70428         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
70429         "file name" in local variables or comments.
70430         * m4/rename.m4: Likewise.
70431
70432 2005-06-01  Bruno Haible  <bruno@clisp.org>
70433
70434         * modules/csharpexec: New file.
70435         * MODULES.html.sh (C#): New section.
70436
70437 2005-06-01  Bruno Haible  <bruno@clisp.org>
70438
70439         * m4/csharp.m4: New file, from GNU gettext.
70440         * m4/csharpexec.m4: New file, from GNU gettext.
70441
70442 2005-06-01  Bruno Haible  <bruno@clisp.org>
70443
70444         * lib/csharpexec.h: New file, from GNU gettext.
70445         * lib/csharpexec.c: New file, from GNU gettext.
70446         * lib/csharpexec.sh.in: New file, from GNU gettext.
70447
70448 2005-05-31  Derek Price  <derek@ximbiot.com>
70449             Paul Eggert  <eggert@cs.ucla.edu>
70450
70451         Sync from cvs.
70452         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
70453
70454 2005-05-31  Derek Price  <derek@ximbiot.com>
70455             Paul Eggert  <eggert@cs.ucla.edu>
70456
70457         Sync from cvs.
70458         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
70459
70460 2005-05-29  Derek Price  <derek@ximbiot.com>
70461
70462         * config/srclist.txt (glob_.h, glob.c): Add these files.
70463
70464 2005-05-29  Derek Price  <derek@ximbiot.com>
70465
70466         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
70467         * modules/glob: New file.
70468         * modules/getlogin_r: Add link to POSIX spec in description.
70469
70470 2005-05-29  Derek Price  <derek@ximbiot.com>
70471             Paul Eggert  <eggert@cs.ucla.edu>
70472
70473         * m4/glob.m4: New file.
70474
70475 2005-05-29  Derek Price  <derek@ximbiot.com>
70476             Paul Eggert  <eggert@cs.ucla.edu>
70477
70478         * lib/glob_.h, lib/glob.c: New files.
70479
70480 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70481
70482         * modules/fts (Files): Remove m4/inttypes-pri.m4.
70483         * modules/fts-lgpl (Depends-on): Remove gettext.
70484
70485 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70486
70487         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
70488         and don't require gt_INTTYPES_PRI.
70489
70490 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
70491
70492         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
70493
70494         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
70495         the configuration hassle isn't worth it.
70496         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
70497         (LONGEST_MODIFIER, PRIuMAX): Remove.
70498
70499 2005-05-27  Bruno Haible  <bruno@clisp.org>
70500
70501         * lib/getlogin_r.h: Remove second include of <stddef.h>.
70502
70503 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
70504
70505         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
70506         _POSIX_PTHREAD_SEMANTICS for Solaris.
70507
70508 2005-05-25  Derek Price  <derek@ximbiot.com>
70509
70510         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
70511
70512 2005-05-25  Derek Price  <derek@ximbiot.com>
70513             Paul Eggert  <eggert@cs.ucla.edu>
70514
70515         * modules/getlogin_r, m4/getlogin_r.m4: New files.
70516         * lib/getlogin_r.c, getlogin_r.h: New files.
70517
70518 2005-05-25  Bruno Haible  <bruno@clisp.org>
70519             Derek Price  <derek@ximbiot.com>
70520
70521         * lib/getlogin_r.h: Simplify API documentation.
70522
70523 2005-05-23  Derek Price  <derek@ximbiot.com>
70524
70525         * modules/minmax (Files): Add m4/minmax.m4.
70526         (configure.ac): Add gl_MINMAX.
70527
70528 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70529
70530         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
70531         so that unistd-safer.h (GPL'ed code) need not be included.
70532
70533 2005-05-22  Bruno Haible  <bruno@clisp.org>
70534
70535         * m4/minmax.m4: New file.
70536         Based on a patch by Derek Price <derek@ximbiot.com>.
70537
70538 2005-05-22  Bruno Haible  <bruno@clisp.org>
70539
70540         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
70541         (INT64_MIN): Fix definition.
70542         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
70543
70544         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
70545         NEED_SIGNED_INT_TYPES.
70546
70547         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
70548         HAVE_SYSTEM_INTTYPES.
70549
70550 2005-05-22  Bruno Haible  <bruno@clisp.org>
70551
70552         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
70553         Also include <sys/param.h> if it defines MIN, MAX.
70554         Based on a patch by Derek Price <derek@ximbiot.com>.
70555
70556 2005-05-21  Jim Meyering  <jim@meyering.net>
70557
70558         * modules/fts (Files): Add m4/inttypes-pri.m4.
70559         (Depends-on): Add lstat and remove gettext.  Alphabetize.
70560
70561 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70562
70563         New fts module.
70564         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
70565         (setup_dir, free_dir): New functions.
70566         (enter_dir, leave_dir): Define trivial
70567         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
70568         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
70569         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
70570         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
70571         Move to fts-cycle.c.
70572         (fts_open): Use setup_dir.
70573         (fts_close): Use free_dir.
70574         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
70575         This adds a label and some gotos, but the alternatives were messier.
70576         Check for memory allocation failure when entering a dir.
70577         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
70578         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
70579         (FTS): New member fts_cycle, that is a union that contains the
70580         old active_dir_ht and cycle_state.  All uses changed to mention
70581         fts_cycle.ht and fts_cycle.state.
70582         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
70583         fts.c, with the following changes:
70584         (setup_dir, free_dir): New functions.
70585         (enter_dir): Now returns bool.  Return true if successful, false
70586         if memory exhausted.  All callers changed.
70587         Do not bother partly cleaning up on
70588         memory allocation failure; that is free_dir's job.
70589         However, free ad if hash_insert fails, to avoid memory leak.
70590         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
70591         fts->fts_options to see which union member to use.
70592
70593 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70594
70595         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
70596         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
70597
70598 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70599
70600         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
70601
70602 2005-05-20  Jim Meyering  <jim@meyering.net>
70603
70604         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
70605         Now a macro, to pacify GCC.
70606
70607 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
70608
70609         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
70610         of -1.
70611
70612 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
70613
70614         * lib/chown.c (rpl_chown): Return -1 on failure.
70615
70616 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
70617
70618         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
70619         Don't check for stddef.h.
70620         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
70621         don't use its results.
70622         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
70623         since we include them unconditionally.  Don't require
70624         AM_STDBOOL_H, since stdbool is a prerequisite.
70625         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
70626         since we assume C89 or better.
70627         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
70628         as we don't use their results.
70629         Don't check for fchdir, memmove, memset, strrchr, as we use
70630         them unconditionally.
70631         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
70632         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
70633
70634 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
70635
70636         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
70637         Include <stddef.h> unconditionally, since we assume C89 now.
70638         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
70639         * lib/fts.c: Include fts_.h first, to check interface.
70640         Do not include intprops.h; no longer needed.
70641         Include cycle-check.h and hash.h, since fts_.h no longer does.
70642         Remove unnecessary casts of closedir to void.
70643         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
70644         decide whether to decrement nlinks.
70645         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
70646         (FTS): Use struct hash_table * instead of Hash_table, so that
70647         we no longer need to include hash.h here.
70648
70649 2005-05-18  Jim Meyering  <jim@meyering.net>
70650
70651         * modules/dirfd (License): Change to LGPL.  Most of the code
70652         is already in the public domain.
70653
70654 2005-05-18  Jim Meyering  <jim@meyering.net>
70655
70656         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
70657         Reported by Yoann Vandoorselaere.
70658
70659 2005-05-17  Jim Meyering  <jim@meyering.net>
70660
70661         * m4/fts.m4: New file, from coreutils.
70662
70663 2005-05-17  Jim Meyering  <jim@meyering.net>
70664
70665         * lib/fts.c, lib/fts_.h: New files, from coreutils.
70666
70667 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70668
70669         Sync from coreutils.
70670         * m4/unlinkdir.m4: New file.
70671
70672 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70673
70674         Sync from coreutils.
70675         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
70676         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
70677         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
70678         White space changes only.
70679         * lib/makepath.c (make_path): Port to hosts where leading "//" is
70680         special.
70681         * lib/yesno.c: Include getline.h, not ctype.h.
70682         (yesno): Don't remove leading white space; POSIX doesn't allow it.
70683         Use getline to remove arbitrary restriction on response length.
70684
70685 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70686
70687         * config/srclist-update: Spell out "Street" in FSF postal
70688         mail address; this is the style the FSF seems to prefer.
70689
70690         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
70691         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
70692         this updates FSF postal mail address.
70693
70694         Sync from coreutils.
70695         * modules/unlinkdir: New file.
70696         * modules/yesno (Depends-on): Add getline.
70697         * MODULES.html.sh (File system functions): Add unlinkdir.
70698
70699 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70700
70701         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
70702         lib/strsep.h:
70703         Change the initial comment to refer to GPL, not LGPL.
70704         gnulib-tool will change it to LGPL as needed.
70705
70706         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
70707         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
70708         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
70709         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
70710         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
70711         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
70712         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
70713         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
70714         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
70715         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
70716         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
70717         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
70718         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
70719         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
70720         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
70721         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
70722         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
70723         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
70724         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
70725         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
70726         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
70727         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
70728         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
70729         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
70730         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
70731         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
70732         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
70733         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
70734         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
70735         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
70736         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
70737         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
70738         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
70739         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
70740         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
70741         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
70742         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
70743         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
70744         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
70745         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
70746         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
70747         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
70748         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
70749         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
70750         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
70751         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
70752         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
70753         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
70754         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
70755         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
70756         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70757         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
70758         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
70759         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
70760         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
70761         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
70762         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
70763         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
70764         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
70765         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
70766         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
70767         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
70768         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
70769         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
70770         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
70771         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
70772         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
70773         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
70774         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
70775         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
70776         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
70777         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
70778         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
70779         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
70780         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
70781         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
70782         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
70783         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
70784         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
70785         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
70786         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
70787         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
70788         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
70789         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
70790         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
70791         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
70792         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
70793         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
70794         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
70795         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
70796         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
70797         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
70798         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
70799         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
70800         lib/yesno.c, lib/yesno.h:
70801         Update FSF postal mail address.
70802
70803 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70804
70805         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
70806         tests/test-memmem.c, tests/test-stpncpy.c:
70807         Update FSF postal mail address.
70808
70809 2005-05-13  Bruno Haible  <bruno@clisp.org>
70810
70811         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
70812         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
70813         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
70814         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
70815         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
70816         Add support for 64-bit integers in the MSVC compiler.
70817
70818 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70819
70820         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
70821
70822 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
70823
70824         * gnulib-tool (func_import): Sort and uniquify recommended includes.
70825
70826 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
70827
70828         * doc/getdate.texi (General date syntax): Don't say that date
70829         date --iso-8601=ns generates acceptable dates; it doesn't yet.
70830         Problem reported by Nic Ferrier.
70831
70832 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70833
70834         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
70835         specified in ai_socktype. Fix invalid ai_protocol
70836         check. ai_protocol is usually set to 0 or depending on
70837         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
70838         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
70839         ai_socktype / ai_protocol in the returned addrinfo structure.
70840
70841 2005-05-10  Simon Josefsson  <jas@extundo.com>
70842
70843         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
70844         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70845
70846 2005-05-10  Karl Berry  <karl@gnu.org>
70847
70848         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
70849         (from http://www.gnu.org/licenses).
70850         * doc/COPYING.LIB: also rename to COPYING.LESSER.
70851         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
70852         fdl.texi suffices.
70853
70854 2005-05-10  Karl Berry  <karl@gnu.org>
70855
70856         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
70857         (COPYING.DOC): remove.
70858
70859         * config/srclist-update: new FSF address.
70860
70861 2005-05-10  Derek Price  <derek@ximbiot.com>
70862
70863         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
70864         possible.
70865
70866 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70867             Bruno Haible  <bruno@clisp.org>
70868
70869         * modules/inet_ntop: New file.
70870         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70871         inet_ntop.
70872
70873 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70874             Bruno Haible  <bruno@clisp.org>
70875
70876         * m4/inet_ntop.m4: New file.
70877
70878 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70879             Bruno Haible  <bruno@clisp.org>
70880
70881         * lib/inet_ntop.h: New file.
70882         * lib/inet_ntop.c: New file, from glibc with modifications.
70883
70884 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
70885
70886         * modules/time_r (License): Change to LGPL.
70887         * modules/extensions (License): Change to LGPL.  Actually,
70888         the license is more permissive than that, but currently gnulib-tool
70889         doesn't know how to handle more-permissive licenses.
70890
70891         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
70892         Problem reported by Dave Love.
70893
70894 2005-05-08  Jim Meyering  <jim@meyering.net>
70895
70896         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
70897         blank.
70898
70899 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70900
70901         * modules/argmatch (Depends-on): Add stdbool.
70902         * modules/backupfile (Depends-on): Likewise.
70903         * modules/chdir-long (Depends-on): Likewise.
70904         * modules/closeout (Depends-on): Likewise.
70905         * modules/cycle-check (Depends-on): Likewise.
70906         * modules/dirname (Depends-on): Likewise.
70907         * modules/fnmatch (Depends-on): Likewise.
70908         * modules/fsusage (Depends-on): Likewise.
70909         * modules/fwriteerror (Depends-on): Likewise.
70910         * modules/getcwd (Depends-on): Likewise.
70911         * modules/getloadavg (Depends-on): Likewise.
70912         * modules/hard-locale (Depends-on): Likewise.
70913         * modules/makepath (Depends-on): Likewise.
70914         * modules/mountlist (Depends-on): Likewise.
70915         * modules/nanosleep (Depends-on): Likewise.
70916         * modules/posixtm (Depends-on): Likewise.
70917         * modules/quotearg (Depends-on): Likewise.
70918         * modules/readtokens (Depends-on): Likewise.
70919         * modules/readtokens0 (Depends-on): Likewise.
70920         * modules/readutmp (Depends-on): Likewise.
70921         * modules/save-cwd (Depends-on): Likewise.
70922         * modules/strftime (Depends-on): Likewise.
70923         * modules/userspec (Depends-on): Likewise.
70924         * modules/utimecmp (Depends-on): Likewise.
70925         * modules/xgetcwd (Depends-on): Likewise.
70926         * modules/xnanosleep (Depends-on): Likewise.
70927         * modules/xstrtod (Depends-on): Likewise.
70928         * modules/yesno (Depends-on): Likewise.
70929
70930 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
70931
70932         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
70933         needless checks.
70934
70935 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70936
70937         Merge from coreutils.  Among other things,
70938         add bulletproofing for cases where stdin, stdout, or stderr are closed.
70939         * lib/fd-safer.c: New file.
70940         * lib/fcntl-safer.h, open-safer.c: Remove.
70941         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
70942         * lib/dup-safer.c: Include unistd-safer.h first.
70943         Don't include errno.h.
70944         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
70945         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
70946         * lib/file-type.c: Rely on file-type.h change.
70947         * lib/getloadavg.c: Include unistd-safer.h.
70948         (getloadavg): Use safer open.
70949         * lib/getusershell.c: Include "stdio-safer.h".
70950         (getusershell): Use safer fopen.
70951         * lib/long-options.c (long_options): Use NULL rather than 0.
70952         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
70953         'free'.
70954         * lib/modechange.c: Likewise.
70955         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
70956         (MODE_DONE): New constant.
70957         (struct mode_change): Remove 'next' member.
70958         (make_node_op_equals): New function; like the old one of the
70959         same name, except it allocates an array.
70960         (mode_compile, mode_create_from_ref): Use it.
70961         (mode_compile): Allocate result as an array, not a linked list.
70962         Parse octal string ourself, so that we catch mistakes like "+0".
70963         (mode_adjust): Arg is an array, not a linked list.
70964         * lib/modechange.c: Include stat-macros.h, xalloc.h.
70965         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
70966         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
70967         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
70968         Remove.  This is now stat-macros.h's job.
70969         (talloc): Remove.  All callers replaced by xalloc, so that
70970         our invokers don't have to worry about reporting memory failures.
70971         (make_node_op_equals): Remove.
70972         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70973         New constants.
70974         (struct mode_change): Moved here from modechange.h.
70975         (mode_append_entry): Remove.
70976         (mode_compile): Remove MASKED_OPS arg, since it encouraged
70977         apps to have incorrect behavior.  Use simpler algorithm for head
70978         and tail.  Don't futz with umask; that's now the job of mode_adjust.
70979         Detect more invalid usages rather than having somewhat-random behavior.
70980         Don't insert an "a=" action, as that leads to incorrect behavior.
70981         (mode_compile, mode_create_from_ref): Return NULL on error instead
70982         of an enum, since now there's only one way to have an error.  All
70983         callers changed.
70984         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
70985         at the correct time.  Simplify calculation of "+u" and its ilk.
70986         Don't mishandle "+X".
70987         (mode_free): Remove "register" and localize decls.
70988         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70989         (struct mode_change): Move to modechange.c; callers don't
70990         need to see this stuff.
70991         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
70992         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
70993         (mode_change, mode_adjust): Reflect the new signatures noted above.
70994         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
70995         that might redefine system include files.
70996         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
70997         (my_usleep): Use NULL rather than (void *) 0.
70998         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
70999         Use siginterrupt to specify that system calls should be interrupted.
71000         (rpl_nanosleep): Move initialization of suspended closer to call of
71001         my_usleep.
71002         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
71003         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
71004         (desirable_utmp_entry): New function.
71005         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
71006         using x2nrealloc, to simplify logic.
71007         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
71008         size calculation.  Do not assume utmp file is a regular file.
71009         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
71010         (READ_UTMP_CHECK_PIDS): New constant.
71011         * lib/save-cwd.c: Include unistd-safer.h.
71012         (save_cwd): Use fd_safer.
71013         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
71014         [!_LIBC] Include "stat-macros.h" instead.
71015         * lib/unistd-safer.h (fd_safer): New decl.
71016
71017 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71018
71019         * modules/getloadavg (Depends-on): Add unistd-safer.
71020         * modules/getusershell (Depends-on): Add stdio-safer.
71021         * modules/lstat (Depends-on): Remove xalloc.
71022         * modules/mkstemp (Depends-on): Add stat-macros.
71023         * modules/modechange (Depends-on): Remove xstrtol.
71024         Add stat-macros, xalloc.
71025         * modules/save-cwd (Depends-on): Add unistd-safer.
71026         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
71027         * modules/unistd-safer (Files): Add lib/fd-safer.c
71028         (Makefile.am): Remove lib_SOURCES.
71029
71030         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
71031         Remove fcntl-safer; unistd-safer supersedes it.
71032
71033 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71034
71035         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
71036         AC_HEADER_STAT.
71037         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
71038         (gl_PREREQ_CHOWN): Remove.
71039         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
71040         it.  Don't require AC_HEADER_STAT.
71041         (gl_PREREQ_LSTAT): Remove.
71042         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
71043         Don't require AC_HEADER_STAT.
71044         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
71045         (gl_PREREQ_RMDIR): Remove.
71046         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
71047         mention stat-macros.h or AC_HEADER_STAT, since we'll make
71048         the stat-macros module a prerequisite.
71049         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
71050         * m4/filemode.m4 (gl_FILEMODE): Likewise.
71051         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
71052         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
71053         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
71054         variable names.
71055         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
71056         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
71057         variable prefixes.
71058         * m4/fcntl-safer.m4: Remove.
71059         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
71060         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
71061         Invoke gl_PREREQ_FD_SAFER.
71062         (gl_PREREQ_FD_SAFER): New macro.
71063         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
71064         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
71065         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
71066         Remove duplicate call to AC_LIBOBJ(readutmp).
71067         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
71068
71069         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
71070         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
71071
71072 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
71073
71074         * MODULES.html.sh (Misc): Add byteswap.
71075
71076 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71077
71078         * modules/getcwd (Depends-on): Add extensions.
71079         * modules/openat (Depends-on): Likewise.
71080
71081 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71082
71083         * modules/byteswap: New file.
71084
71085 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71086
71087         * m4/byteswap.m4: New file.
71088
71089 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
71090
71091         * lib/byteswap_.h: New file.
71092
71093 2005-04-25  Karl Berry  <karl@gnu.org>
71094
71095         * m4/gettext.m4: Update from GNU gettext 0.14.4.
71096
71097 2005-04-25  Albert Chin  <china@thewrittenword.com>
71098
71099         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
71100         Toolkit C bug.
71101
71102 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
71103
71104         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
71105         (func_ln_if_changed): Remove forcibly for no error message
71106         in case file does not exist.
71107
71108 2005-04-19  Simon Josefsson  <jas@extundo.com>
71109
71110         * gnulib-tool (Options): Make --symlink mean --symbolic.
71111
71112 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
71113
71114         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
71115
71116 2005-04-16  Simon Josefsson  <jas@extundo.com>
71117
71118         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
71119
71120 2005-04-15  Simon Josefsson  <jas@extundo.com>
71121
71122         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
71123
71124 2005-04-15  Simon Josefsson  <jas@extundo.com>
71125
71126         * gnulib-tool: Rename --symlink to --symbolic.
71127
71128 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
71129
71130         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
71131         symbolic links to files instead of copying/moving.  Add --aux-dir,
71132         specifying directory relative --dir where auxiliary build tools
71133         are placed.
71134
71135 2005-04-14  Bruno Haible  <bruno@clisp.org>
71136
71137         * modules/allocsa (License): Change to LGPL.
71138         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
71139
71140 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71141
71142         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
71143         that "UTC +1 second" continues to work.  Problem reported
71144         by Dmitry V. Levin.
71145         (relunit_snumber): New rule.
71146         (relunit): Use it.
71147
71148 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71149
71150         * lib/getdate.y (universal_time_zone_table): New constant.
71151         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
71152         universal_time_zone_table.
71153         (lookup_zone): Prefer universal_time_zone_table to
71154         local_time_zone_table, so that "GMT" time stamps are allowed in
71155         London during the summer.  Problem reported by Ian Abbott.
71156
71157 2005-04-12  Jim Meyering  <jim@meyering.net>
71158
71159         * lib/human.c (humblock): Set *options even when returning due to
71160         xstrtoumax conversion failure.  Thanks to a used-uninitialized
71161         warning from gcc-4.
71162
71163 2005-04-09  Jim Meyering  <jim@meyering.net>
71164
71165         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
71166         -Wuninitialized: initialize tm0.tm_year.
71167
71168 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71169
71170         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
71171         count, since there's no maximum.  All uses changed.
71172         Add member dsts_seen.
71173         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
71174         not being INT_MAX.
71175         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
71176         Use pc_rels_seen to decide whther a date is absolute.
71177
71178         * lib/getdate.y (number): Don't overwrite year.
71179         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
71180         check.
71181
71182 2005-04-02  Simon Josefsson  <jas@extundo.com>
71183
71184         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
71185         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
71186
71187 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
71188
71189         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
71190         where no absolute path name can be longer than PATH_MAX.
71191
71192 2005-03-27  Jim Meyering  <jim@meyering.net>
71193
71194         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
71195
71196 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
71197
71198         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
71199         "one's complement" -> "ones' complement" in comment, as per Knuth.
71200         "value of type" -> "type or expression" in comment.
71201         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
71202
71203 2005-03-26  Jim Meyering  <jim@meyering.net>
71204
71205         Comment nits.
71206         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
71207         Correct typos: s/or/of/.
71208
71209 2005-03-26  Jim Meyering  <jim@meyering.net>
71210
71211         * modules/check-include-files: Move to ../ and rename to...
71212         * check-module: ...this.
71213
71214 2005-03-25  Jim Meyering  <jim@meyering.net>
71215
71216         * modules/xvasprintf (Files): Add xalloc.h.
71217
71218 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
71219
71220         * modules/gettext (Files): config/config.rpath ->
71221         build-aux/config.rpath
71222         * modules/iconv (Files): Likewise.
71223         Problem reported by Oskar Liljeblad.
71224
71225 2005-03-23  Jim Meyering  <jim@meyering.net>
71226
71227         * modules/check-include-files: New script to check for
71228         missing dependencies, multiple includes, etc.
71229
71230         * modules/c-strtold (Depends-on): Add xalloc.
71231         * modules/c-strtod (Depends-on): Add xalloc.
71232         * modules/hash (Depends-on): Add xalloc.
71233         (Files): Remove lib/xalloc.h.
71234
71235         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
71236         * modules/userspec (Files): Add lib/inttostr.h.
71237
71238 2005-03-23  Jim Meyering  <jim@meyering.net>
71239
71240         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
71241
71242 2005-03-22  Jim Meyering  <jim@meyering.net>
71243
71244         * modules/stat-macros: New module.
71245         * modules/canonicalize, modules/euidaccess, modules/file-type,
71246         * modules/filemode, modules/lchown, modules/makepath,
71247         * modules/rmdir, modules/stat: Depend on new stat-macros module
71248         rather than listing lib/stat-macros.h manually.
71249         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
71250
71251 2005-03-22  Jim Meyering  <jim@meyering.net>
71252
71253         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
71254
71255 2005-03-22  Bruno Haible  <bruno@clisp.org>
71256
71257         * config/srclist.txt: Replace target directory 'config' with
71258         'build-aux'.
71259         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
71260         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
71261         ../build-aux/.
71262
71263 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
71264
71265         * modules/chdir-long (Depends-on): Add mempcpy.
71266
71267         * modules/acl, modules/backupfile, modules/c-strtod,
71268         modules/c-strtold, modules/canon-host, modules/canonicalize,
71269         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
71270         modules/exclude, modules/exitfail, modules/file-type,
71271         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
71272         modules/getdate, modules/getline, modules/getpagesize,
71273         modules/getpass, modules/getugroups, modules/group-member,
71274         modules/hard-locale, modules/hash, modules/human, modules/idcache,
71275         modules/inttostr, modules/long-options, modules/makepath,
71276         modules/md5, modules/memcasecmp, modules/memcoll,
71277         modules/modechange, modules/mountlist, modules/path-concat,
71278         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
71279         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
71280         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
71281         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
71282         modules/strftime, modules/strndup, modules/strverscmp,
71283         modules/timespec, modules/unlocked-io, modules/userspec,
71284         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
71285         modules/yesno:
71286         Remove lib_SOURCES line from Makefile.am section, as this is now
71287         done automatically by the corresponding Autoconf macro.
71288
71289 2005-03-21  Jim Meyering  <jim@meyering.net>
71290
71291         Changes imported from coreutils.
71292
71293         * lib/cycle-check.c: Don't include xalloc.h.
71294
71295         * lib/path-concat.c: Don't include assert.h.
71296         (path_concat): Remove assertion that would have triggered
71297         for ABASE starting with more than one slash.
71298         Reported by Andreas Schwab.
71299
71300         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
71301         properly when ABASE is an absolute file name.
71302         Correct the description of this function.
71303         Include <assert.h>.
71304         Add an assertion and a test driver.
71305         This fixes a bug introduced on 2004-07-02.
71306         Andreas Schwab reported the resulting failure of cp --parents:
71307         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
71308
71309 2005-03-21  Jim Meyering  <jim@meyering.net>
71310
71311         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
71312         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
71313
71314 2005-03-21  Jim Meyering  <jim@meyering.net>
71315         and  Paul Eggert  <eggert@cs.ucla.edu>
71316
71317         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
71318         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
71319         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
71320         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
71321         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
71322         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
71323         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
71324         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
71325         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
71326         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
71327         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
71328         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
71329         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
71330         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
71331         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
71332         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
71333         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
71334         for these modules.
71335
71336 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
71337
71338         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
71339         (which shouldn't happen), generate nothing instead of returning 0
71340         immediately, so that nstrftime (NULL, ...) doesn't return 0.
71341
71342 2005-03-16  Bruno Haible  <bruno@clisp.org>
71343
71344         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
71345         HAVE_LONGLONG_64BIT.
71346
71347 2005-03-16  Bruno Haible  <bruno@clisp.org>
71348
71349         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
71350         HAVE_LONGLONG_64BIT.
71351
71352 2005-03-16  Bruno Haible  <bruno@clisp.org>
71353
71354         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
71355         HAVE_LONGLONG_64BIT.
71356
71357 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
71358
71359         * lib/strftime.c (my_strftime): Prepend space to format so that we can
71360         reliably distinguish strftime failure from empty output on POSIX
71361         hosts.
71362
71363 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
71364
71365         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
71366         (iconv_string): Don't guess a size-zero buffer, as that might cause
71367         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
71368         result would be 'too large', where 'too large' is (heuristically)
71369         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
71370         overflow concerns.  This will prevent some unwanted malloc failures
71371         when the inputs are very large.
71372
71373 2005-03-15  Karl Berry  <karl@gnu.org>
71374
71375         * config/srclist.txt (config.rpath): from gettext.
71376         * config/config.rpath: update.
71377
71378 2005-03-15  Bruno Haible  <bruno@clisp.org>
71379
71380         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
71381         to 'negate'.
71382
71383         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
71384         variable.
71385
71386         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
71387         results.
71388
71389 2005-03-14  Simon Josefsson  <jas@extundo.com>
71390
71391         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
71392         <fx@gnu.org>.
71393
71394 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
71395
71396         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
71397         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
71398         intprops.h.
71399         * lib/strtol.c: Likewise.
71400
71401 2005-03-14  Jim Meyering  <jim@meyering.net>
71402
71403         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
71404         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
71405         to be nonzero so that we (and caller) can detect the difference
71406         between a valid zero-length expansion and an error return, even
71407         when the underlying strftime fails before writing anything into
71408         that location.
71409
71410 2005-03-14  Bruno Haible  <bruno@clisp.org>
71411
71412         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
71413         Update from GNU gettext 0.14.3.
71414
71415 2005-03-10  Jim Meyering  <jim@meyering.net>
71416
71417         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
71418
71419 2005-03-10  Jim Meyering  <jim@meyering.net>
71420
71421         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
71422         so that this module works on systems without fchdir.
71423
71424 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
71425
71426         Factor int-properties macros into a single file, except for
71427         glibc-related files.
71428         * lib/intprops.h: New file.
71429         * lib/getloadavg.c: Include it instead of limits.h.
71430         (INT_STRLEN_BOUND): Remove.
71431         * lib/human.c: Include intprops.h.
71432         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
71433         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
71434         302/1000.
71435         * lib/inttostr.h: Include intprops.h instead of limits.h.
71436         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
71437         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
71438         for consistency with intprops.h.
71439         (time_t_is_integer, twos_complement_arithmetic): Use them.
71440         * lib/sig2str.h: Include <signal.h>, intprops.h.
71441         (INT_STRLEN_BOUND): Remove.
71442         * lib/strftime.c (TYPE_SIGNED): Remove.
71443         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
71444         * lib/strtol.c: Adjust comments to match intprops.h.
71445         * lib/userspec.c: Include intprops.h.
71446         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
71447         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
71448         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
71449         instead of rolling our own expressions.
71450         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
71451
71452         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
71453         instead of int.
71454         (my_strftime): Do not mishandle years close to INT_MAX, by doing
71455         the right thing even if adding 1900 would overflow.  Similarly
71456         for tm_mon + 1 and tm_yday + 1.
71457         Make %Y always equivalent to %C%y, and similarly for %G and %g.
71458         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
71459         (DO_SIGNED_NUMBER): New macro.
71460         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
71461
71462 2005-03-07  Bruno Haible  <bruno@clisp.org>
71463
71464         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
71465
71466 2005-03-07  Bruno Haible  <bruno@clisp.org>
71467
71468         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
71469
71470 2005-03-04  Derek R. Price  <derek@ximbiot.com>
71471
71472         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
71473         (func_import): Only replace files via --import when they have actually
71474         changed.
71475
71476 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71477
71478         * m4/mmap-anon.m4: New file.
71479         * m4/pagealign_alloc.m4: New file.
71480
71481 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71482             Bruno Haible  <bruno@clisp.org>
71483
71484         * modules/pagealign_alloc: New file.
71485         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
71486
71487 2005-03-03  Derek R. Price  <derek@ximbiot.com>
71488             Bruno Haible  <bruno@clisp.org>
71489
71490         * lib/pagealign_alloc.h: New file.
71491         * lib/pagealign_alloc.c: New file.
71492
71493 2005-03-03  Bruno Haible  <bruno@clisp.org>
71494
71495         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
71496         Use an all-permissive copyright notice, recommended by RMS.
71497
71498 2005-03-02  Bruno Haible  <bruno@clisp.org>
71499
71500         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
71501         of AIX, the replacement has to be done only after <string.h> is
71502         included, therefore not in config.h. stpncpy.h does the replacement,
71503         and stpncpy.c uses it.
71504
71505 2005-03-02  Bruno Haible  <bruno@clisp.org>
71506
71507         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
71508         stpncpy.c uses it.
71509
71510 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71511
71512         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
71513         The workaround isn't strictly needed for POSIX conformance, and
71514         it's too much of a pain to configure and maintain.  We'll ask
71515         people to fix their kernels instead.
71516         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
71517         (NANOSLEEP_BUG_WORKAROUND): Remove.
71518         (xnanosleep): Remove the workaround.
71519
71520 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71521
71522         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
71523         Reported by Derek Price.
71524         (Include): Add "timespec.h".
71525
71526         * modules/xnanosleep (Depends-on): Remove gethrxtime.
71527
71528 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71529
71530         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
71531         to detect nanosleep bug.
71532
71533 2005-03-01  Bruno Haible  <bruno@clisp.org>
71534
71535         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
71536
71537 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
71538
71539         * modules/gethrxtime: New file.
71540         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
71541         (Depends-on): Add gethrxtime.
71542         (configure.ac): Add gl_XNANOSLEEP.
71543         (Makefile.am): Remove lib_SOURCES line.
71544
71545 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71546
71547         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
71548         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
71549
71550 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71551
71552         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
71553         * lib/timespec.h (gettime): Return void, since it always
71554         succeeds now.  All uses changed.
71555         * lib/gettime.c (gettime): Likewise.
71556         [HAVE_NANOTIME]: Prefer nanotime.
71557         Assume gettimeofday succeeds, as POSIX requires.
71558         Assime time () succeeds, since other code already does.
71559         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
71560         (timespec_subtract): Remove.
71561         (NANOSLEEP_BUG_WORKAROUND): New constant.
71562         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
71563         things considerably.  Use it only on GNU/Linux hosts, since the
71564         workaround shouldn't be needed elsewhere.
71565
71566 2005-02-24  Bruno Haible  <bruno@clisp.org>
71567
71568         * modules/gettext (Files): Add m4/glibc2.m4.
71569
71570 2005-02-24  Bruno Haible  <bruno@clisp.org>
71571
71572         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
71573         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
71574         * m4/progtest.m4:
71575         Update from GNU gettext 0.14.2.
71576         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
71577
71578 2005-02-24  Bruno Haible  <bruno@clisp.org>
71579
71580         * lib/localcharset.c: Update from GNU gettext 0.14.2.
71581         * lib/config.charset: Update from GNU gettext 0.14.2.
71582
71583 2005-02-24  Bruno Haible  <bruno@clisp.org>
71584
71585         * lib/gettext.h: Update from GNU gettext 0.14.2.
71586
71587 2005-02-23  Simon Josefsson  <jas@extundo.com>
71588
71589         * m4/iconvme.m4: New file.
71590
71591 2005-02-23  Jim Meyering  <jim@meyering.net>
71592
71593         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
71594         change.
71595         Thanks to Bruno Haible for catching it.
71596
71597 2005-02-22  Simon Josefsson  <jas@extundo.com>
71598
71599         * modules/iconvme: New file.
71600
71601         * MODULES.html.sh: Add iconvme.
71602
71603 2005-02-22  Simon Josefsson  <jas@extundo.com>
71604
71605         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
71606
71607 2005-02-22  Simon Josefsson  <jas@extundo.com>
71608
71609         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
71610
71611 2005-02-22  Jim Meyering  <jim@meyering.net>
71612
71613         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
71614         s/ifndef/ifdef/.
71615
71616 2005-02-20  Neil Conway  <neilc@samurai.com>
71617
71618         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
71619         returned by OSX/Darwin if the specified buffer is not large
71620         enough for the hostname.
71621
71622 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71623
71624         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
71625         pass it to _help, otherwise the latter coredumps trying to
71626         dereference state.root_argp.
71627
71628 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71629
71630         * modules/chdir-long (Depends-on): Add memrchr.
71631         * modules/memrchr (Files): Add lib/memrchr.h.
71632         (Include): "memrchr.h".
71633
71634 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71635
71636         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
71637
71638 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71639
71640         * lib/memrchr.h: New file.
71641         * lib/chdir-long.c: Include it.
71642         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
71643         Don't bother including stddef.h.
71644
71645 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
71646
71647         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
71648         inclusion.
71649         Include <sys/types.h>, for dev_t.
71650         (ME_DUMMY, ME_REMOTE): Move from here....
71651         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
71652         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
71653         Dmitry V. Levin.
71654         Include mountlist.h first, to test the interface.
71655
71656 2005-01-29  Bruno Haible  <bruno@clisp.org>
71657
71658         * lib/progname.c (program_name): Initialize.
71659         Needed when linking statically on MacOS X.
71660
71661 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71662
71663         Sync from coreutils.
71664         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
71665         (Depends-on): Add c-strtod.
71666         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
71667
71668 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71669
71670         Sync from coreutils.
71671         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
71672
71673         Remove files that are specific to coreutils.
71674         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
71675
71676 2005-01-28  Bruno Haible  <bruno@clisp.org>
71677
71678         * modules/javacomp: New file.
71679         * MODULES.html.sh (Java): Add javacomp.
71680
71681 2005-01-28  Bruno Haible  <bruno@clisp.org>
71682
71683         * m4/javacomp.m4: New file, from GNU gettext.
71684
71685 2005-01-28  Bruno Haible  <bruno@clisp.org>
71686
71687         * lib/javacomp.sh.in: New file, from GNU gettext.
71688         * lib/javacomp.h: New file, from GNU gettext.
71689         * lib/javacomp.c: New file, from GNU gettext.
71690
71691 2005-01-26  Simon Josefsson  <jas@extundo.com>
71692
71693         * lib/gai_strerror.c: Use GPL in header.
71694
71695 2005-01-26  Bruno Haible  <bruno@clisp.org>
71696
71697         * modules/javaexec: New file.
71698         * MODULES.html.sh (Java): Add javaexec.
71699
71700 2005-01-26  Bruno Haible  <bruno@clisp.org>
71701
71702         * m4/javaexec.m4: New file, from GNU gettext.
71703
71704 2005-01-26  Bruno Haible  <bruno@clisp.org>
71705
71706         * lib/javaexec.sh.in: New file, from GNU gettext.
71707         * lib/javaexec.h: New file, from GNU gettext.
71708         * lib/javaexec.c: New file, from GNU gettext.
71709
71710 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71711
71712         * modules/lchown (Depends-on): Remove lchown.h
71713
71714 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71715
71716         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
71717         must be defined if the header file was not found, in order
71718         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
71719
71720 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71721
71722         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
71723         initializers for struct pentry_state.
71724         (__argp_error): Check return value of __asprintf
71725         (__argp_failure): Translate error message
71726
71727         * lib/argp-parse.c: Removed braces around the expansion of N_()
71728
71729 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71730
71731         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
71732         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
71733         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
71734         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
71735         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
71736         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
71737         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
71738         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
71739         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
71740         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
71741         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
71742         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
71743         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
71744         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
71745         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
71746         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
71747         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
71748         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
71749         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
71750         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
71751         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
71752         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
71753         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
71754         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
71755         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
71756         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
71757         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
71758         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
71759         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
71760         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
71761         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
71762         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
71763         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
71764         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
71765         xstrtol.m4, xstrtoumax.m4, yesno.m4:
71766         Use an all-permissive copyright notice, recommended by RMS.
71767
71768 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
71769
71770         * modules/chdir-long (Depends-on): Remove mempcpy.
71771
71772 2005-01-21  Jim Meyering  <jim@meyering.net>
71773
71774         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
71775         same value as for Solaris 9.
71776
71777         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
71778         component length.  This included changing the parameter to be
71779         of type `char *' rather than `char const *'.
71780         * lib/chdir-long.h (chdir_long): Update prototype.
71781
71782         * lib/openat.c (fdopendir, fstatat): New functions.
71783         * lib/openat.h: Include headers required for use of DIR and struct
71784         stat.
71785         [AT_SYMLINK_NOFOLLOW]: Define.
71786         (fdopendir, fstatat): Add prototypes.
71787
71788 2005-01-21  Bruno Haible  <bruno@clisp.org>
71789
71790         * modules/classpath: New file.
71791         * MODULES.html.sh (Java): Add classpath.
71792
71793 2005-01-21  Bruno Haible  <bruno@clisp.org>
71794
71795         * lib/classpath.h: New file, from GNU gettext.
71796         * lib/classpath.c: New file, from GNU gettext.
71797
71798 2005-01-20  Simon Josefsson  <jas@extundo.com>
71799
71800         * modules/version-etc-fsf: New file.
71801
71802 2005-01-20  Simon Josefsson  <jas@extundo.com>
71803
71804         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
71805         * lib/version-etc.c: Remove version_etc_copyright.
71806         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
71807         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
71808
71809 2005-01-20  Simon Josefsson  <jas@extundo.com>
71810
71811         * lib/base64.h (isbase64): Add.
71812
71813         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
71814         using a unsigned prototype, don't inline.
71815         (base64_decode): Use it.
71816
71817 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71818
71819         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
71820         it.
71821
71822 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71823
71824         * lib/save-cwd.c (save_cwd): Remove code to support the case
71825         where fchdir is missing or flaky.
71826
71827 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71828
71829         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
71830
71831 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71832
71833         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
71834         AC_LIBSOURCES now does this.
71835         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
71836         with new ullong_max module.
71837
71838 2005-01-19  Bruno Haible  <bruno@clisp.org>
71839
71840         * modules/sh-quote: New file.
71841         * MODULES.html.sh (Executing programs): Add sh-quote.
71842
71843 2005-01-19  Bruno Haible  <bruno@clisp.org>
71844
71845         * lib/sh-quote.h: New file, from GNU gettext.
71846         * lib/sh-quote.c: New file, from GNU gettext.
71847
71848 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71849
71850         Merge from coreutils.
71851         * m4/ullong_max.m4: New file.
71852         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
71853         (gl_MACROS): Assume localeconv exists.
71854
71855 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71856
71857         Merge changes from coreutils, as described below in several
71858         changelogs dated today.
71859
71860         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
71861         (O_DIRECTORY): Remove; not needed here, since "." must be
71862         a directory.  All uses removed.
71863         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
71864         universal on Suns, and we also need to test for IRIX.
71865         Revamp code to use 'if' rather than '#if'.
71866         Avoid unnecessary comparison of cwd->desc to 0.
71867
71868         * lib/utimens.c (futimens): Robustify the previous patch, by checking
71869         for known valid error numbers rather than observed invalid ones.
71870
71871 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
71872
71873         * modules/ullong_max: New file.
71874
71875         * modules/chdir-long, modules/openat: New files.
71876         * modules/save-cwd (Depends-on): Depend on chdir-long.
71877         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
71878
71879 2005-01-18  Jim Meyering  <jim@meyering.net>
71880
71881         Merge from coreutils.
71882         * m4/chdir-long.m4, m4/openat.m4: New files.
71883         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
71884         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
71885         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
71886         is sane and DOES follow symlinks.  Besides, testing 20 different
71887         systems found no broken chown implementations.
71888         Prompted by a change in rsync's copy of this macro.
71889         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
71890
71891         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
71892
71893         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
71894         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
71895         NULL-means-set-to-current-time semantics.
71896         Remove temporary file immediately, rather than waiting
71897         for configure's at-exit trap code to do it.
71898
71899 2005-01-18  Jim Meyering  <jim@meyering.net>
71900
71901         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71902
71903         * lib/utimens.c (futimens): Account for the fact that futimes
71904         can also fail with errno == ENOSYS or errno == ENOENT.
71905         Patch from Dmitry V. Levin.
71906
71907         Change the name of the robust chdir function from chdir to chdir_long.
71908         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
71909         (restore_cwd): Use chdir_long, not chdir.
71910         * lib/chdir-long.c: Renamed from chdir.c.
71911         * lib/chdir-long.h: Renamed from chdir.h.
71912         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
71913         Hurd.
71914
71915 2005-01-18  Bruno Haible  <bruno@clisp.org>
71916
71917         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
71918         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
71919         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
71920         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
71921         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
71922         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
71923         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
71924         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
71925         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
71926         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
71927         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
71928         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
71929         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
71930         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
71931         Use an all-permissive copyright notice, recommended by RMS.
71932
71933 2005-01-18  Bob Proulx  <bob@proulx.com>
71934
71935         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
71936         simplify offsetof() macro construct to avoid compile failure with
71937         native HP-UX 11.0 ANSI C compiler.
71938
71939 2005-01-17  Bruno Haible  <bruno@clisp.org>
71940
71941         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
71942         redundant because stpncpy.m4 takes care of it.
71943
71944 2005-01-17  Bruno Haible  <bruno@clisp.org>
71945
71946         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
71947
71948 2005-01-17  Bruno Haible  <bruno@clisp.org>
71949
71950         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
71951         used.
71952
71953 2005-01-17  Bruno Haible  <bruno@clisp.org>
71954
71955         * lib/fwriteerror.h (fwriteerror): Change specification to include
71956         fclose.
71957         * lib/fwriteerror.c: Include <stdbool.h>.
71958         (fwriteerror): At the end, close the file stream. Record whether
71959         stdout was already closed.
71960
71961 2005-01-17  Bruno Haible  <bruno@clisp.org>
71962
71963         * lib/execute.c (environ): Declare if needed.
71964         * lib/pipe.c (environ): Likewise.
71965         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
71966
71967 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71968
71969         * modules/argp: Depend on vsnprintf
71970
71971 2005-01-10  Jim Meyering  <jim@meyering.net>
71972
71973         * modules/closeout (Depends-on): Add atexit.
71974
71975 2005-01-06  Bruno Haible  <bruno@clisp.org>
71976
71977         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
71978
71979 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71980
71981         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
71982         definitions to be after all include files, to avoid collisions.
71983         Problem reported by Bob Proulx.
71984
71985 2005-01-04  Jim Meyering  <jim@meyering.net>
71986
71987         Changes imported from coreutils.
71988         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
71989         as the mkstemp template, use a temporary directory and an
71990         8.3-friendly template to avoid trouble on systems like DJGPP.
71991         Reported by Juan M. Guerrero via Stepan Kasal.
71992         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
71993         close. Remove the temporary directory right away, rather than waiting
71994         for configure's at-exit trap code to do it.
71995         Suggestion from Stepan Kasal.
71996
71997 2005-01-01  Simon Josefsson  <jas@extundo.com>
71998
71999         * gnulib-tool: Print #include directives when --import'ing.
72000
72001 2004-12-28  Simon Josefsson  <jas@extundo.com>
72002
72003         * tests/test-base64.c: Include required header files.  Remove
72004         unused variables.
72005
72006 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72007
72008         * modules/error (Depends-on): Remove gettext.
72009
72010 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72011
72012         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
72013         not needed.  This removes a dependency on the gettext module.
72014         [defined _LIBC]: Do not include <libintl.h>; not needed.
72015
72016 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72017
72018         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
72019         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
72020
72021 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
72022
72023         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
72024         HAVE_DECL_STRTOLD.
72025
72026 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72027
72028         * modules/getdate (Depends-on): Remove alloca-opt.
72029
72030 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72031
72032         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
72033
72034 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72035
72036         * lib/argp-parse.c: Include <stddef.h>.
72037         (alignof, alignto): New macros.
72038         (parser_init): Don't assume that void * is aligned sufficiently
72039         for struct option.
72040
72041         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
72042         need to extend the stack.
72043         (YYINITDEPTH): New macro, so that the initial stack isn't overly
72044         large.
72045
72046 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72047
72048         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
72049
72050 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72051
72052         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
72053         (2004-10-24) change.  Apparently this was a false alarm.
72054
72055         * modules/getdate: Depend on alloca-opt, not alloca.
72056
72057 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
72058
72059         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
72060         Remove now-obsolete comment about AIX.
72061         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
72062         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
72063         (YYMAXDEPTH): New macro.
72064
72065 2004-12-18  Simon Josefsson  <jas@extundo.com>
72066
72067         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
72068
72069 2004-12-18  Bruno Haible  <bruno@clisp.org>
72070
72071         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
72072
72073 2004-12-18  Bruno Haible  <bruno@clisp.org>
72074
72075         * lib/fatal-signal.c (fatal_signals): Make non-const.
72076         (init_fatal_signals): New function.
72077         (uninstall_handlers, install_handlers): Ignore signals that were set to
72078         SIG_IGN.
72079         (at_fatal_signal): Call init_fatal_signals.
72080         (init_fatal_signal_set): Likewise. Ignore signals that were set to
72081         SIG_IGN.
72082         Reported by Paul Eggert.
72083
72084 2004-12-18  Bruno Haible  <bruno@clisp.org>
72085
72086         * doc/alloca.texi: New file.
72087         * doc/alloca-opt.texi: New file.
72088
72089 2004-12-17  Jim Meyering  <jim@meyering.net>
72090
72091         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
72092         Otherwise, install-sh could exit with improper exit status when
72093         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
72094
72095 2004-12-16  Simon Josefsson  <jas@extundo.com>
72096
72097         * tests/test-base64.c: Add license.
72098
72099 2004-12-15  Stepan Kasal  <address@hidden>
72100
72101         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
72102
72103 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
72104
72105         * modules/getcwd (Files): Add m4/d-ino.m4.
72106         Suggested by Mark D. Baushke.
72107
72108 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72109
72110         * lib/getdate.y (textint): New member "negative".
72111         (time_zone_hhmm): New function.
72112         Expect 14 shift-reduce conflicts, not 13.
72113         (o_colon_minutes): New rule.
72114         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
72115         (yylex): Set the "negative" member of signed numbers.
72116
72117 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
72118
72119         * doc/getdate.texi (Time of day items, Time zone items):
72120         Describe new formats +00:00, UTC+00:00.
72121
72122 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
72123
72124         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
72125         spurious "-l"s.  Problem reported by Stepan Kasal.
72126
72127 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
72128
72129         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
72130         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
72131
72132 2004-12-04  Simon Josefsson  <jas@extundo.com>
72133
72134         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
72135         Vandoorselaere <yoann@prelude-ids.org>.
72136
72137 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72138
72139         Changes imported from coreutils.
72140         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
72141         exist.
72142         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
72143
72144 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72145
72146         Changes imported from coreutils.
72147         * lib/hard-locale.c: Assume <locale.h> exists.
72148         Include "strdup.h".
72149         (GLIBC_VERSION): New macro.
72150         (hard_locale): Assume setlocale exists.
72151         Rewrite to avoid #ifdef.
72152         Use strdup rather than malloc + strcpy.
72153         * lib/human.c: Assume <locale.h> exists.
72154         (human_readable): Assume localeconv exists.
72155
72156 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
72157
72158         * modules/hard-locale (Depends-on): Add strdup.
72159
72160 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
72161
72162         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
72163         convert T2, not T.  (Imported from libc.)
72164
72165 2004-11-30  Simon Josefsson  <jas@extundo.com>
72166
72167         * modules/restrict (License): Change to LGPL.
72168
72169 2004-11-30  Simon Josefsson  <jas@extundo.com>
72170
72171         * m4/restrict.m4: Add copyright and copying conditions.
72172
72173 2004-11-30  Simon Josefsson  <jas@extundo.com>
72174
72175         * m4/base64.m4: New file.
72176
72177 2004-11-30  Simon Josefsson  <jas@extundo.com>
72178
72179         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
72180         base64.
72181
72182         * tests/test-base64.c: New file.
72183
72184         * modules/base64: New file.
72185
72186 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
72187
72188         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
72189         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
72190
72191         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
72192
72193 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
72194
72195         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
72196         (__getcwd.c): Don't restore errno; glibc doesn't.
72197         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
72198         first, falling back to our code only if its results look suspicious.
72199         Ensure that the resulting buffer is only as large as necessary.
72200
72201         * lib/readutmp.c: Include readutmp.h first.
72202         Include <errno.h>, since readutmp.h no longer does that.
72203         * lib/readutmp.h: Don't include <errno.h>,
72204         <sys/param.h>, <time.h>; not needed to establish interface.
72205         (errno): Remove decl.
72206         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
72207         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
72208         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
72209
72210 2004-11-28  Simon Josefsson  <jas@extundo.com>
72211
72212         * lib/base64.h, base64.c: New file.
72213
72214 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
72215
72216         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
72217
72218 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72219
72220         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
72221         (Depends-on): Remove pathmax, same.  Add mempcpy.
72222         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
72223         (Makefile.am): Append getcwd.h to lib_SOURCES.
72224         (Include): Add getcwd.h.
72225         (Maintainer): Change from Jim Meyering to "all, glibc",
72226         since getdate now uses intended-for-glibc code.
72227         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
72228         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
72229
72230 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72231
72232         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
72233         HP's ANSI C compiler.
72234         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
72235         Declaring int functions causes warnings on some modern systems and
72236         shouldn't be needed to compile on ancient ones.
72237         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
72238         defined.
72239
72240         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
72241         with the following changes.
72242         (__set_errno): Parenthesize properly.
72243         Include <stdbool.h>.
72244         (MIN, MAX, MATCHING_INO): New macros.
72245         (__getcwd): Define with prototype, not K&R form.
72246         Use heuristics to allocate default buffer on stack if possible.
72247         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
72248         behavior, and to avoid the PATH_MAX limit when computing
72249         ../../../../...
72250         Use MATCHING_INO to compare inode number to file.
72251         Check for arithmetic overflow in size calculations.
72252         Fix bug in reallocation of dot array that caused getcwd to fail
72253         on directories nested deeper than 75.
72254         Be more careful about saving errno on error.
72255         Do not use realloc; use only free+malloc, as this is a bit
72256         more flexible and avoids a needless copy operation.
72257         Do not inspect st_dev and st_ino for symbolic links; POSIX
72258         doesn't specify the latter.
72259         Check for closedir errors.
72260         Avoid needless casts.
72261         Use "#ifdef weak_alias" around weak_alias, to be like other
72262         glibc code.
72263         The following changes to getcwd.c have effect only when used in
72264         gnulib; they have no effect inside glibc proper.
72265         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
72266         as alloca isn't used.
72267         (alloca, __alloca): Likewise.
72268         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
72269         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
72270         unconditionally, as gnulib assumes C89 or better.
72271         Do not include <sys/param.h>.
72272         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
72273         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
72274         better.
72275         (NULL) [!defined NULL]: Remove; we assume C89 or better.
72276         Include <dirent.h> in a way that is compatible with modern Autoconf.
72277         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
72278         New macros, if not already defined.
72279         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
72280         Use "_LIBC", not "defined _LIBC", for consistency.
72281         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
72282         a mempcpy module.
72283         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
72284         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
72285         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
72286         credit only to Jim Meyering and adjust the copyright dates.
72287         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
72288         <stdlib.h>, <unistd.h>, "pathmax.h".
72289         Instead, include "xgetcwd.h" (first) and "getcwd.h".
72290         (INITIAL_BUFFER_SIZE): Remove.
72291         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
72292
72293 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
72294
72295         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
72296         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
72297         Use the _ONCE methods, for efficiency.
72298         Check for fcntl.h.  In test program, include <errno.h>
72299         and <fcntl.h> if available.  Remove old K&R cruft from
72300         test program.  Check for common errors in GNU/Linux,
72301         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
72302         don't do AC_LIBOBJ, as that's getcwd.m4's job.
72303         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
72304         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
72305         name accordingly.
72306         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
72307         accommodate new getcwd.c.
72308         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
72309         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
72310         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
72311         that's all we need now.
72312
72313 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72314
72315         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
72316         argp-parse.c depends on getopt internals, that means we should
72317         always use our getopt, to be on the safe side.
72318         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
72319         order not to spoil the result of an eventual previous invocation
72320         of gl_GETOPT_SUBSTITUTE.
72321
72322 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72323
72324         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
72325         redefinition warnings. To avoid them, include the defines
72326         in `#if !defined __need_getopt ... #endif'. The only place
72327         where __getopt_argv_const is used is in definitions
72328         of getopt_long and getopt_long_only below, which are as well
72329         protected by `#ifndef __need_getopt'.
72330         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
72331         __need_getopt after including <stdio.h> and <unistd.h> These
72332         headers might have defined it.
72333
72334 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
72335
72336         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
72337
72338 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
72339
72340         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
72341         (futimens): New function, which uses futimes if available.
72342         (futimens, utimens): Support timespec==NULL, with same semantics
72343         as utime and utimens.
72344         * lib/utimens.h (futimens): New decl.
72345
72346 2004-11-23  Jim Meyering  <jim@meyering.net>
72347
72348         * lib/getopt_.h: Remove trailing blanks.
72349
72350 2004-11-23  Jim Meyering  <jim@meyering.net>
72351
72352         * lib/__fpending.c: Add comment.
72353
72354 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
72355
72356         * modules/canonicalize (Depends-on): Add xreadlink.
72357         Problem reported by James Youngman.
72358
72359 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72360
72361         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
72362         New macros.
72363         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
72364         optopt): Use them instead of invoking ## directly; otherwise, the
72365         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
72366
72367 2004-11-19  Bruno Haible  <bruno@clisp.org>
72368
72369         * lib/strtok_r.c: Move comments from here...
72370         * lib/strtok_r.h: ... to here.
72371
72372 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72373
72374         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
72375         implementations that mishandle size_t overflow.
72376
72377 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72378
72379         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
72380         might fail.  Problem reported by Yoann Vandoorselaere.
72381         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
72382         implementations that mishandle size_t overflow.
72383
72384 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72385
72386         * modules/canon-host (Depends-on): Add strdup.
72387
72388 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72389
72390         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
72391
72392 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72393
72394         * lib/canon-host.c: Include "strdup.h".
72395         (canon_host): Use getaddrinfo if available, so that IPv6 works.
72396         Use strdup instead of malloc/strcpy to duplicate strings.
72397
72398         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
72399         (human_space_before_unit): New constant.
72400         * lib/human.c (human_readable): Support it.
72401
72402         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
72403         (xgetcwd): Set errno correctly when failing.
72404         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
72405         the failure is actually due to a PATH_MAX problem.
72406
72407         Further getopt changes to make it more likely that glibc will
72408         buy the changes back.
72409         * lib/getopt.c (POSIXLY_CORRECT): New constant.
72410         (getopt): Use it, so to preserve glibc semantic
72411         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
72412         when compiling for libc.
72413         * lib/getopt_.h (__getopt_argv_const): Bring it back.
72414         (getopt_long, getopt_long_only): Use it.
72415
72416         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
72417         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
72418         (getopt): Argv is now char * const *, as per standard.
72419         (_getopt_internal_r, _getopt_internal): Argv is now char **,
72420         not char *__getopt_argv_const *.
72421         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
72422         _getopt_long_only_r): Likewise.
72423         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
72424         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
72425         _getopt_long_r, _getopt_long_only_r): Likewise.
72426         * lib/getopt_.h (__getopt_argv_const): Remove.
72427         (getopt): Argv is now char * const *, as per standard.
72428
72429         * lib/getdate.y (tORDINAL): New token.
72430         (day, relunit): Allow it for relative times.
72431         (relative_time_table): Use tORDINAL for ordinals.
72432
72433 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72434
72435         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
72436         Document that "second" isn't allowed as an ordinal number.
72437
72438 2004-11-16  Jim Meyering  <jim@meyering.net>
72439
72440         * modules/closeout (Depends-on): Add fpending.
72441
72442 2004-11-15  Jim Meyering  <jim@meyering.net>
72443
72444         * lib/closeout.c: Include "__fpending.h" once again.
72445         Include <stdbool.h>.
72446         (close_stdout): Don't fail just because stdout was closed initially,
72447         since some programs don't write to stdout in the normal course of
72448         operation (other than --version and --help), and we don't want this
72449         function to make e.g. `touch file >&-' fail.
72450         But do fail if it was closed and someone has tried to write to it.
72451         E.g., `printf foo >&-' must fail.
72452
72453 2004-11-13  Jim Meyering  <jim@meyering.net>
72454
72455         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
72456
72457 2004-11-12  Simon Josefsson  <jas@extundo.com>
72458
72459         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
72460         small doc fix is still pending.
72461
72462 2004-11-11  Simon Josefsson  <jas@extundo.com>
72463
72464         * modules/strtok_r: New file.
72465
72466         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72467         strtok_r.
72468
72469 2004-11-11  Simon Josefsson  <jas@extundo.com>
72470
72471         * m4/strtok_r.m4: New file.
72472
72473         * m4/getopt.m4: Replace opterr.
72474
72475 2004-11-11  Simon Josefsson  <jas@extundo.com>
72476
72477         * lib/strtok_r.h, strtok_r.c: New file.
72478
72479 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
72480
72481         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
72482         of replacing opterr, getopt, etc.  This should handle the
72483         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
72484
72485 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
72486
72487         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
72488         we can stop lying to compilers about the constness of argv when we
72489         are compiled outside glibc.
72490         (getopt, getopt_long, getopt_long_only): Use it.
72491         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
72492         _getopt_internal, getopt): Likewise.
72493         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
72494         _getopt_long_only_r): Likewise.
72495         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
72496         _getopt_long_r, _getopt_long_only_r): Likewise.
72497
72498         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
72499         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
72500         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
72501         the other external symbols.
72502         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
72503         declaration, since the above renaming now works around collisions.
72504
72505 2004-11-11  Jim Meyering  <jim@meyering.net>
72506
72507         * lib/linebreak.c: Remove trailing blanks.
72508         * lib/alloca_.h: Likewise.
72509         * lib/acosl.c: Likewise.
72510         * lib/euidaccess.c: Likewise.
72511         * lib/allocsa.h: Likewise.
72512
72513 2004-11-10  Simon Josefsson  <jas@extundo.com>
72514
72515         * m4/getaddrinfo.m4: New file.
72516
72517 2004-11-10  Simon Josefsson  <jas@extundo.com>
72518
72519         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
72520
72521 2004-11-10  Simon Josefsson  <jas@extundo.com>
72522
72523         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72524         getaddrinfo.
72525
72526         * modules/getaddrinfo: New file.
72527
72528 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72529
72530         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
72531
72532 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
72533
72534         * lib/mktime.c (SHR): New macro, which is a portable
72535         substitute for >> that should work even on Crays.
72536         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
72537         Problem reported by Mark D. Baushke in
72538         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
72539         * lib/getdate.y (SHR): Likewise.
72540         (tm_diff): Use it.
72541         * lib/strftime.c (SHR): Likewise.
72542         (tm_diff): Use it.
72543         * lib/quotearg.c (struct quoting_options): Use unsigned int for
72544         quote_these_too, so that right shifts are well defined.  All uses
72545         changed.
72546
72547 2004-11-10  Jim Meyering  <jim@meyering.net>
72548
72549         Ensure that no close failure goes unreported.
72550         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
72551         return early when it seems there's nothing to flush.
72552         Don't include __fpending.h.
72553
72554 2004-11-10  Jim Meyering  <jim@meyering.net>
72555
72556         * modules/closeout (Depends-on): Remove fpending.
72557
72558 2004-11-10  Jim Meyering  <jim@meyering.net>
72559
72560         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
72561
72562 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72563
72564         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
72565         gl_FUNC_STRFTIME.
72566         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
72567         and AC_REQUIRE when possible, to avoid duplicate checks.
72568         Check for <wchar.h>.
72569
72570 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72571
72572         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
72573
72574 2004-11-09  Bruno Haible  <bruno@clisp.org>
72575
72576         * m4/sockpfaf.m4: New file.
72577
72578 2004-11-05  Bruno Haible  <bruno@clisp.org>
72579
72580         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
72581         Reported by Mark D. Baushke <mdb@cvshome.org>.
72582
72583 2004-11-04  Bruno Haible  <bruno@clisp.org>
72584
72585         2004-09-11  Bruno Haible  <bruno@clisp.org>
72586                 * allocsa.valgrind: New file.
72587         2004-02-06  Bruno Haible  <bruno@clisp.org>
72588                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
72589                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
72590                 Reported by Christopher Seip <chris.seip@hp.com>.
72591
72592 2004-11-04  Bruno Haible  <bruno@clisp.org>
72593
72594         * modules/allocsa (Files): Add lib/allocsa.valgrind.
72595         (Makefile.am): Distribute it.
72596
72597 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72598
72599         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
72600         with errno == ERANGE if the buffer is too small.
72601         Problem reported by Mark D. Baushke.
72602
72603 2004-11-03  Albert Chin  <china@thewrittenword.com>
72604             Paul Eggert  <eggert@cs.ucla.edu>
72605
72606         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
72607         equivalent, substitute $ac_type for equivalent type rather than
72608         blindly using uint32_t *always* which won't work if uint32_t is not
72609         available.  Define _UINT32_T to work around typedef of uint32_t if
72610         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
72611         2.5.1.
72612
72613 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72614
72615         * m4/jm-macros.m4: Sync from coreutils.
72616         (gl_MACROS): Check for mbrlen, for pathchk.
72617         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
72618
72619 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72620
72621         * lib/xreadlink.c (MAXSIZE): New macro.
72622         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
72623         size does not exceed MAXSIZE.  Avoid cast.
72624         As suggested by Mark D. Baushke in
72625         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
72626         if readlink fails with buffer size just under MAXSIZE, try again
72627         with MAXSIZE.
72628
72629 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
72630
72631         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
72632
72633 2004-11-02  Derek R. Price  <derek@ximbiot.com>
72634         and  Paul Eggert  <eggert@cs.ucla.edu>
72635
72636         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
72637         (get_date): Overparenthesize to avoid GCC warning.
72638
72639 2004-11-02  Bruno Haible  <bruno@clisp.org>
72640
72641         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
72642         returns void.
72643
72644 2004-11-02  Bruno Haible  <bruno@clisp.org>
72645
72646         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
72647         function returns void.
72648
72649 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
72650
72651         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
72652         fflush_unlocked, flockfile, funlockfile, funlockfile,
72653         fputs_unlocked, putc_unlocked.
72654
72655 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
72656
72657         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
72658         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
72659         already declared.
72660
72661 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72662
72663         * modules/getdate (Files): Add doc/getdate.texi.
72664         (Depends-on): Add setenv, xalloc.
72665
72666 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72667
72668         * lib/getdate.y: Add support for TZ="foo" within a date string.
72669         Fix some bugs near time_t boundaries.  Reject dates with
72670         out-of-range components, e.g., "Sept 31".
72671         Include <stdlib.h>, "setenv.h", "xalloc.h".
72672         (ISDIGIT_LOCALE): Remove; unused.
72673         Note that the TZ and time functions used here are not reentrant.
72674         (mktime_ok, get_tz): New functions.
72675         (TZBUFSIZE): New constant.
72676         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
72677         This requires that we sometimes generate our own TZ="XXX..." setting.
72678
72679 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72680
72681         * doc/getdate.texi: New file, from coreutils with modifications for
72682         the new TZ parsing.
72683
72684 2004-10-27  Derek R. Price  <derek@ximbiot.com>
72685
72686         * lib/mktime.c (not_equal_tm): Remove redundant check.
72687
72688 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72689
72690         * modules/regex (lib_SOURCES): Add regex.c.
72691         Reported by James Youngman in
72692         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
72693
72694 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72695
72696         * lib/getdate.y: Use Bison 1.875 features, and some minor
72697         code cleanups.  This change does not affect semantics.
72698         Don't include <stdlib.h>; no longer needed.
72699         Don't include unlocked-io.h; only the "#if TEST" code uses
72700         stdio, and performance isn't crucial there.
72701         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
72702         Bison 1.875 features as described below.
72703         All uses of "PC." replaced by "pc->".
72704         (YYSTYPE): Add a forward declaration.
72705         (yylex, yyerror): Use full prototypes in forward decls.
72706         Use "%pure-parser" rather than obsolescent "%pure_parser".
72707         Use %parse-param and %lex-param instead of obsolescent
72708         YYPARSE_PARAM and YYLEX_PARAM.
72709         (meridian_table, month_and_day_table, time_units_table,
72710         relative_time_table, time_zone_table, military_table,
72711         lookup_zone, lookup_word, get_date):
72712         Use NULL instead of 0 where appropriate.
72713         (to_hour): Avoid abort (), to avoid a dependency on
72714         stdlib.h.
72715         (yyerror, yylex): Now accepts parser_control * arg.
72716         (main) [TEST]: Use '\0' rather than 0 for char.
72717
72718 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
72719
72720         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
72721
72722 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
72723
72724         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
72725         It's now the caller's responsibility to handle the case where
72726         !HAVE_GETPAGESIZE && !defined getpagesize.
72727
72728         * lib/mktime.c (leapyear): Arg is long int, not int.
72729
72730 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
72731
72732         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
72733
72734 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72735
72736         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
72737         missing.  Problem reported by James Youngman.
72738
72739 2004-10-16  Simon Josefsson  <jas@extundo.com>
72740
72741         * gnulib-tool: Fix comments.  Fix parse problem.
72742         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
72743
72744 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
72745
72746         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
72747         implementation of getopt_long.  Problem reported by Alexander Taler in:
72748         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
72749
72750 2004-10-15  Bruno Haible  <bruno@clisp.org>
72751
72752         * gnulib-tool: Untabify. Initialize supplied_libname.
72753         (func_usage): More homogenous output.
72754         (func_modules_transitive_closure, func_modules_to_filelist,
72755         func_emit_lib_Makefile_am): New functions.
72756         (func_import): New function, extracted from big case statement. Use
72757         func_get_license, func_modules_transitive_closure,
72758         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
72759         opt_lgpl. Don't use test -a, as it's not portable.
72760         (func_create_testdir): Use func_modules_transitive_closure,
72761         func_modules_to_filelist, func_emit_lib_Makefile_am.
72762
72763 2004-10-15  Bruno Haible  <bruno@clisp.org>
72764
72765         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
72766
72767 2004-10-15  Bruno Haible  <bruno@clisp.org>
72768
72769         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
72770         the portions belonging to each module.
72771         Suggested by Derek Robert Price <derek@ximbiot.com>.
72772
72773 2004-10-12  Simon Josefsson  <jas@extundo.com>
72774
72775         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
72776         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
72777         to real functions.
72778
72779 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72780
72781         * modules/vsnprintf: New file.
72782
72783 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72784
72785         * m4/vsnprintf.m4: New file.
72786
72787 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72788
72789         * lib/vsnprintf.h: New file.
72790         * lib/vsnprintf.c: New file.
72791
72792 2004-10-11  Bruno Haible  <bruno@clisp.org>
72793
72794         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
72795         vsnprintf.
72796
72797 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72798
72799         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
72800
72801 2004-10-07  Bruno Haible  <bruno@clisp.org>
72802
72803         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
72804         fits into the provided buffer.
72805
72806 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72807
72808         * lib/diacrit.c, diacrit.h: Add GPL notice.
72809
72810         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
72811         notice.
72812         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
72813         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
72814         This avoids a potential constant-folding bug.
72815
72816 2004-10-05  Bruno Haible  <bruno@clisp.org>
72817
72818         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
72819         for the declaration of strsep.
72820
72821 2004-10-05  Bruno Haible  <bruno@clisp.org>
72822
72823         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
72824
72825 2004-10-04  Simon Josefsson  <jas@extundo.com>
72826
72827         * modules/memmem: New file.
72828         * tests/test-memmem.c: New file.
72829         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
72830
72831 2004-10-04  Simon Josefsson  <jas@extundo.com>
72832
72833         * m4/memmem.m4: New file.
72834
72835 2004-10-04  Simon Josefsson  <jas@extundo.com>
72836
72837         * lib/memmem.h: New file.
72838         * lib/memmem.c: New file, taken from glibc.
72839
72840 2004-10-04  Simon Josefsson  <jas@extundo.com>
72841
72842         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
72843         '#ifdef USE_UNLOCKED_IO'.
72844
72845 2004-10-04  Simon Josefsson  <jas@extundo.com>
72846
72847         * config/srclist.txt: Add memmem from glibc.
72848
72849 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72850
72851         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
72852
72853         * modules/argmatch, modules/argp, modules/closeout, modules/error,
72854         modules/exclude, modules/getdate, modules/getline,
72855         modules/getndelim2, modules/getpass, modules/getpass-gnu,
72856         modules/getusershell, modules/linebuffer, modules/md5,
72857         modules/mountlist, modules/posixtm, modules/readtokens,
72858         modules/readutmp, modules/regex, modules/sha1,
72859         modules/version-etc, modules/yesno:
72860         Remove dependency on unlocked-io.
72861
72862 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72863
72864         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
72865
72866         * m4/unlocked-io.m4: Add copyright notice.
72867         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
72868
72869 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72870
72871         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
72872         * lib/xmalloc.c (xmemdup): Likewise.
72873         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
72874         XFREE): Remove these long-obsolescent macros.
72875         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
72876         * lib/xstrdup.c: Remove.
72877
72878         * lib/regex.c (re_comp): Cast gettext return value to char *,
72879         Problem reported by Martin Neitzel via Mark D. Baushke.
72880
72881 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
72882
72883         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
72884         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
72885         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
72886         regex.c, sha1.c, version-etc.c, yesno.c:
72887         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
72888         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
72889         the includer's responsibility.
72890
72891         Sync from coreutils.
72892
72893         * lib/modechange.c (mode_compile): Don't decrement a pointer that
72894         points to the start of a string, as the C Standard says the
72895         resulting behavior is undefined.
72896
72897         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
72898         simple -> simple_backups, numbered_existing ->
72899         numbered_existing_backups, numbered -> numbered_backups
72900         to avoid shadowing problems.  All uses changed.
72901         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
72902         * lib/backupfile.c (check_extension, numbered_backup):
72903         Rename locals to avoid shadowing 'basename'.
72904         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
72905         once.
72906
72907         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
72908         * lib/.cvsignore: Add getopt.h.
72909
72910 2004-10-04  Bruno Haible  <bruno@clisp.org>
72911
72912         * modules/README: New file.
72913         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
72914         not a module.
72915
72916 2004-10-02  Jim Meyering  <jim@meyering.net>
72917
72918         * lib/dirfd.h, getpagesize.h: Add copyright notice.
72919
72920 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72921
72922         * modules/strsep: New file.
72923
72924 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72925
72926         * m4/strsep.m4: New file.
72927
72928 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72929
72930         * lib/strsep.h: New file.
72931         * lib/strsep.c: New file.
72932
72933 2004-10-01  Simon Josefsson  <jas@extundo.com>
72934
72935         * lib/snprintf.c (snprintf): Handle size==0.
72936
72937 2004-10-01  Simon Josefsson  <jas@extundo.com>
72938             Bruno Haible  <bruno@clisp.org>
72939
72940         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
72941         (snprintf): Declare 'args'.
72942
72943 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
72944
72945         * lib/snprintf.c: Remove comments as to why each header is needed.
72946
72947 2004-10-01  Bruno Haible  <bruno@clisp.org>
72948
72949         * MODULES.html.sh: Add strsep.
72950
72951 2004-09-30  Simon Josefsson  <jas@extundo.com>
72952
72953         * modules/snprintf: New file.
72954
72955 2004-09-30  Simon Josefsson  <jas@extundo.com>
72956
72957         * m4/snprintf.m4: New file.
72958
72959 2004-09-30  Simon Josefsson  <jas@extundo.com>
72960
72961         * lib/snprintf.h, lib/snprintf.c: New files.
72962
72963 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72964
72965         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
72966         (hol_entry_help): Never translate an empty string.
72967         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
72968         * lib/argp.h (OPTION_NO_TRANS): New option.
72969
72970 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72971
72972         * modules/argp (Maintainer): Replace Simon Josefsson
72973         by Sergey Poznyakoff.
72974
72975 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72976
72977         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
72978         changes merged back into glibc.
72979
72980 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72981
72982         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
72983
72984 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72985
72986         * lib/xvasprintf.c: Include xalloc.h.
72987         (xvasprintf): Use xalloc_die, not xmalloc_die.
72988
72989 2004-09-29  Bruno Haible  <bruno@clisp.org>
72990
72991         * modules/alloca-opt: New file, derived from modules/alloca.
72992         * modules/allocsa: Depend on alloca-opt instead of alloca.
72993         * modules/setenv: Likewise.
72994         * modules/vasnprintf: Likewise.
72995         * MODULES.html.sh: Add alloca-opt.
72996
72997 2004-09-28  Simon Josefsson  <jas@extundo.com>
72998
72999         * gnulib-tool: New parameter --lgpl, to asseert that modules are
73000         LGPL, and to replace license template from GPL to LGPL.
73001
73002 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73003
73004         * modules/dummy: Change license to LGPL.
73005
73006 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
73007
73008         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
73009
73010 2004-09-24  Simon Josefsson  <jas@extundo.com>
73011
73012         * modules/minmax (License): Change from GPL to LGPL.
73013
73014 2004-09-23  Simon Josefsson  <jas@extundo.com>
73015
73016         * gnulib-tool (--import): Typo.
73017
73018 2004-09-23  Simon Josefsson  <jas@extundo.com>
73019
73020         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
73021
73022 2004-09-22  Bruno Haible  <bruno@clisp.org>
73023
73024         * modules/*: Add 'License' field.
73025         * gnulib-tool: Accept --extract-license option.
73026         (func_get_license): New function.
73027
73028 2004-09-21  Bruno Haible  <bruno@clisp.org>
73029
73030         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
73031         Reported by Simon Josefsson.
73032
73033 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73034
73035         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
73036         gl_AC_TYPE_LONG_LONG.
73037
73038 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73039
73040         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
73041
73042 2004-09-18  Simon Josefsson  <jas@extundo.com>
73043         and  Paul Eggert  <eggert@cs.ucla.edu>
73044
73045         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
73046         calls with autoreconf.  Define GL_LIB.
73047
73048 2004-09-14  Karl Berry  <karl@gnu.org>
73049
73050         * config/srclist.txt: unsync setenv.c, sigh.
73051
73052 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73053
73054         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
73055         Problem reported by Bruno Haible in:
73056         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
73057
73058 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73059
73060         * config/srclist.txt: Comment out argp-pvh.c.
73061
73062 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
73063
73064         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
73065         in case some system header has #define'd it.  Problem reported by
73066         Soeren D. Schulze in
73067         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
73068
73069 2004-09-09  Karl Berry  <karl@gnu.org>
73070
73071         * regex.[ch]: delete from the root.  These were supposed to be
73072                 synced with emacs cvs, but this has not happened for about
73073                 a year, and anyway nothing else uses emacs regex.[ch].
73074                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
73075                 lib/regex[.ch] is untouched.
73076
73077 2004-09-09  Bruno Haible  <bruno@clisp.org>
73078
73079         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
73080
73081 2004-09-09  Bruno Haible  <bruno@clisp.org>
73082
73083         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
73084         modifications.
73085         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
73086
73087 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73088
73089         * modules/xvasprintf: New file.
73090         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
73091
73092 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
73093
73094         * lib/xvasprintf.h: New file.
73095         * lib/xvasprintf.c: New file.
73096         * lib/xasprintf.c: New file.
73097
73098 2004-09-08  Bruno Haible  <bruno@clisp.org>
73099
73100         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
73101
73102 2004-09-08  Bruno Haible  <bruno@clisp.org>
73103
73104         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
73105         length is > INT_MAX.
73106         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
73107         more.
73108
73109 2004-09-08  Bruno Haible  <bruno@clisp.org>
73110
73111         * lib/stdint_.h: New file, taken from GNU clisp.
73112
73113 2004-09-08  Bruno Haible  <bruno@clisp.org>
73114             Oskar Liljeblad  <oskar@osk.mine.nu>
73115
73116         * modules/stdint: New file.
73117         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
73118
73119 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73120
73121         Import from coreutils.
73122         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
73123         strings on unbounded length.  alloca's performance benefits aren't
73124         that important here.
73125         (V_STRDUP): Remove.
73126         (parse_with_separator): New function, with most of the internals
73127         of the old parse_user_spec.  Allow user to omit both user and group,
73128         for compatibility with FreeBSD.
73129         Clone only the user name, not the entire spec.
73130         Do not set *uid, *gid unless entirely successful.
73131         Avoid memory leak in some failing cases.
73132         Fix regression for USER.GROUP reported by Dmitry V. Levin in
73133         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
73134         (parse_user_spec): Rewrite to use parse_with_separator.
73135
73136 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73137
73138         * modules/userspec: Don't depend on alloca.
73139
73140 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73141
73142         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
73143
73144 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73145
73146         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
73147         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
73148         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
73149
73150 2004-08-16  Simon Josefsson  <jas@extundo.com>
73151
73152         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
73153         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
73154         Add --dry-run for --import.
73155         Let user provided command line parameters override configure.ac
73156         settings.
73157
73158 2004-08-12  Simon Josefsson  <jas@extundo.com>
73159
73160         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
73161         as discussed with Paul Eggert in threads rooted at
73162         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
73163         and
73164         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
73165         Before, the test was empty, and relied on ELIDE_CODE in source
73166         code.)
73167         (gl_PREREQ_GETOPT): New macro.
73168         (gl_GETOPT): Use them.
73169
73170 2004-08-12  Simon Josefsson  <jas@extundo.com>
73171
73172         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
73173         * lib/getopt_.h: Renamed from getopt.h.
73174
73175 2004-08-12  Simon Josefsson  <jas@extundo.com>
73176
73177         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
73178         Change default library name from libfoo to libgnu.
73179         Now, if you have a configure.ac that says:
73180                 gl_SOURCE_BASE(gl)
73181                 gl_M4_BASE(gl/m4)
73182                 gl_MODULES(error getopt etcetera)
73183                 gl_INIT
73184         you can import all you need by running:
73185                 ../gnulib/gnulib-tool --import
73186
73187         * modules/getopt (Files): Rename getopt.h to getopt_.h.
73188         (Makefile.am): Rewrite, use logic from argz.
73189         (Include): Use <getopt.h> instead of "getopt.h".
73190
73191 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73192
73193         * modules/argp (Files): Add m4/unlocked-io.m4.
73194         (Depends-on): Add extensions.
73195
73196 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73197
73198         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
73199         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
73200         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
73201         Check for program_invocation_name, program_invocation_short_name,
73202         flockfile, funlockfile, features.h, _getopt_long_only_r.
73203
73204 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73205
73206         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
73207         its complicated substitute.
73208         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
73209         and program_invocation_name.
73210         (__argp_basename) [!_LIBC]: Remove; the only use was
73211         replaced by its body.
73212         (__argp_short_program_name): Change condition from
73213         !defined __argp_short_program_name to
73214         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
73215         to match argp-namefrob.h.
73216         (__argp_failure): Don't assume strerror_r returns char *.
73217         * lib/argp-parse.c (N_): Define unconditionally.
73218         (argp_default_options): Fill out initializers with 0 to avoid
73219         gcc warnings.
73220
73221 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
73222
73223         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
73224         getopt1.c.
73225
73226 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73227
73228         Merge from coreutils.
73229
73230         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
73231
73232         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
73233         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
73234
73235 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73236
73237         Merge from coreutils.
73238
73239         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
73240         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
73241         for Reliant Unix 5.43.
73242
73243         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
73244         (union fooround): Use uintmax_t, not long int.
73245         The rest is a merge from libc:
73246         [defined _LIBC]: Include <shlib-compat.h>.
73247         (_obstack) [defined _LIBC]: Remove after 2.3.4.
73248
73249         * lib/settime.c (settime): Recode to avoid warning with
73250         Sun Forte C 6U2.
73251
73252         * lib/strverscmp.c: Convert to UTF-8.
73253
73254 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73255
73256         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
73257         m4/uintmax_t.m4.
73258
73259 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73260
73261         * modules/xalloc-die: New file.
73262         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
73263
73264         * modules/md5 (Files): Add m4/uint32_t.m4.
73265         * modules/sha1: Renamed from modules/sha.
73266         (Files):
73267         Rename lib/sha.h to lib/sha1.h.
73268         Rename lib/sha.c to lib/sha1.c.
73269         Rename m4/sha.m4 to m4/sha1.m4.
73270         (lib_SOURCES): Likewise.
73271         (configure.ac): Rename gl_SHA to gl_SHA1.
73272         (Include): sha.h -> sha1.h.
73273
73274 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73275
73276         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
73277         * m4/sha1.m4: Renamed from sha.m4.
73278         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
73279
73280 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
73281
73282         * lib/obstack.h (obstack_empty_p):
73283         Don't assume that chunk->contents is suitably aligned.
73284         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
73285         Likewise. Problem reported by Benno in
73286         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
73287
73288         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
73289         readable.  This could be improved further but it'd take some work.
73290
73291 2004-08-08  Simon Josefsson  <jas@extundo.com>
73292
73293         * modules/xgethostname (Depends-on): Remove exit and error (not
73294         used).
73295
73296         * modules/getpass-gnu: Add getpass.h.
73297         (Depends-on): Add stdbool.
73298         * modules/getpass: Add getpass.h.
73299
73300 2004-08-08  Simon Josefsson  <jas@extundo.com>
73301
73302         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
73303         Check getpass declaration.
73304
73305 2004-08-08  Simon Josefsson  <jas@extundo.com>
73306
73307         * lib/xgethostname.c: Don't include error.h (not used).
73308
73309         * lib/getpass.h: Add.
73310         * lib/getpass.c: Include getpass.h first.
73311
73312 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
73313
73314         * lib/xalloc-die.c: New file.
73315         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
73316         All uses removed.
73317         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
73318         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
73319         xalloc-die.c.
73320         (_, N_, xalloc_die): Move to xalloc-die.c.
73321         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
73322         so that we needn't mess with xalloc_msg_memory_exhausted.
73323
73324         * lib/sha1.h: Renamed from sha.h.
73325         (SHA1_H): Renamed from _SHA_H.
73326         (sha1_ctx): Renamed from sha_ctx.
73327         (sha1_init_ctx): Renamed from sha_init_ctx.
73328         (sha1_process_block): Renamed from sha_process_block.
73329         (sha1_process_bytes): Renamed from sha_process_bytes.
73330         (sha1_finish_ctx): Renamed from sha_finish_ctx.
73331         (sha1_read_ctx): Renamed from sha_read_ctx.
73332         (sha1_stream): Renamed from sha_stream.
73333         (sha1_buffer): Renamed from sha_buffer.
73334         * lib/sha1.c: Likewise; renamed from sha.c.
73335         Do not include <sys/types.h>.
73336         Include <stddef.h> rather than <stdlib.h>.
73337
73338 2004-08-08  Bruno Haible  <bruno@clisp.org>
73339
73340         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
73341         FILESYSTEM_PREFIX_LEN.
73342         * lib/progreloc.c: Likewise.
73343         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
73344
73345 2004-08-06  Simon Josefsson  <jas@extundo.com>
73346
73347         * modules/progname (Depends-on): Don't depend on stdbool.
73348
73349 2004-08-06  Simon Josefsson  <jas@extundo.com>
73350
73351         * modules/getsubopt: New file.
73352         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73353         getsubopt.
73354
73355 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73356
73357         More merge from coreutils.
73358
73359         * m4/utimens.m4, m4/utimecmp.m4: New files.
73360         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
73361         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
73362         prereq.m4, sha.m4: Import changes from coreutils.
73363
73364 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73365
73366         More merge from coreutils.
73367         * modules/raise, modules/readtokens0, modules/utimens:
73368         * modules/utimecmp, module/xnanosleep: New files.
73369         * modules/strftime: Add lib/strftime.h.
73370         Change include from <time.h> to "strftime.h".
73371         * modules/yesno: Add lib/yesno.h.
73372         * modules/backupfile: Remove lib/addext.c.
73373         * modules/euidaccess: Add stat-macros.h.
73374         * modules/canonicalize, modules/euidaccess,
73375         modules/filemode, modules/lchown, modules/makepath,
73376         modules/rmdir, modules/stat: Likewise.
73377
73378 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
73379
73380         Merge from tar.
73381         * lib/argp-help.c (make_hol, hol_append): Don't assume that
73382         SIZE_MAX is a valid preprocessor constant.
73383         (__argp_basename): Change from "#ifndef _LIBC"
73384         to "#ifndef __argp_short_program_name", so that
73385         we don't compile these functions for tar.
73386
73387         More merges from coreutils.
73388         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
73389         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
73390         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
73391         * lib/addext.c: Remove; no longer needed.
73392         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
73393         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
73394         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
73395         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
73396         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
73397         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
73398         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
73399         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
73400         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
73401         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73402         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
73403         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
73404         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
73405         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
73406         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
73407         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
73408         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
73409         Import changes from coreutils.
73410
73411 2004-08-05  Simon Josefsson  <jas@extundo.com>
73412
73413         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
73414
73415 2004-08-05  Simon Josefsson  <jas@extundo.com>
73416
73417         * m4/getsubopt.m4: New file.
73418
73419 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73420
73421         Merge from coreutils.
73422
73423         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
73424         * m4/getcwd-path-max.m4: New files.
73425
73426         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
73427         FILESYSTEM_PREFIX_LEN ->
73428         FILE_SYSTEM_PREFIX_LEN.
73429         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
73430         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
73431         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
73432         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
73433
73434         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
73435         prerequisite modules now handle the DOS stuff.
73436         Don't check for unistd.h.
73437
73438 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73439
73440         Merge from coreutils.
73441
73442         * lib/.gdb-history: Remove; this doesn't belong here.
73443
73444         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
73445         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
73446         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
73447         * lib/getcwd.c: New files.
73448
73449         * lib/dirname.h: Include <stdbool.h>.
73450         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
73451         for consistency with POSIX terminology.  All uses changed.
73452         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
73453         (strip_trailing_slashes): Use bool for booleans.
73454         * lib/stripslash.c (strip_trailing_slashes): Likewise.
73455
73456         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
73457         sometimes returns a positive errno value even when it succeeds.
73458         (print_errno_message) [!LIBC]: Fall back on strerror if
73459         __strerror_r fails.
73460
73461         * lib/path-concat.c (mempcpy): Don't define if a system header defines
73462         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
73463         (longest_relative_suffix): New function.
73464         (path_concat): Use it.  Assume first argument is not NULL.
73465         Port to DOS.  Omit redundant separators.
73466         Report an error instead of returning NULL.
73467         Use mempcpy instead of memcpy.
73468         (xpath_concat): Remove: not declared or used.
73469
73470         * lib/same.h: Include <stdbool.h>
73471         (same_name): Return bool, not int.
73472         * lib/same.c (same_name): Likewise.
73473         (errno): Don't declare; we assume C89 or better now.
73474
73475         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
73476         if not already defined.
73477
73478         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
73479         * lib/dup-safer.c (errno): Likewise.
73480
73481 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
73482
73483         Merge from coreutils.
73484         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
73485         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
73486         * modules/path-concat: Don't depend on strdup.
73487
73488 2004-08-03  Simon Josefsson  <jas@extundo.com>
73489
73490         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
73491         * lib/progname.h: Don't include stdbool.h.
73492
73493 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73494
73495         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
73496         * MODULES.html.sh (func_all_modules): Remove fatal.
73497
73498 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73499
73500         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
73501
73502 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
73503
73504         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
73505         working.
73506
73507 2004-08-02  Simon Josefsson  <jas@extundo.com>
73508
73509         * lib/getsubopt.h: New file, with comments from Bruno Haible.
73510         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
73511         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
73512
73513 2004-08-01  Simon Josefsson  <jas@extundo.com>
73514
73515         * lib/xgetdomainname.c: Include stdlib.h, for free().
73516
73517 2004-07-19  Bruno Haible  <bruno@clisp.org>
73518
73519         * MODULES.html.sh (func_all_modules): Add dummy.
73520
73521 2004-07-16  Simon Josefsson  <jas@extundo.com>
73522
73523         * modules/dummy: New file.
73524
73525 2004-07-16  Simon Josefsson  <jas@extundo.com>
73526
73527         * lib/dummy.c: New file.
73528
73529 2004-07-16  Bruno Haible  <bruno@clisp.org>
73530
73531         * lib/backupfile.h: Add extern "C" for C++.
73532         * lib/closeout.h: Likewise.
73533         * lib/copy-file.h: Likewise.
73534         * lib/findprog.h: Likewise.
73535         * lib/full-write.h: Likewise.
73536         * lib/pathname.h: Likewise.
73537         * lib/progname.h: Likewise.
73538         * lib/stpcpy.h: Likewise.
73539         * lib/stpncpy.h: Likewise.
73540         * lib/strcase.h: Likewise.
73541         * lib/strstr.h: Likewise.
73542         * lib/xalloc.h: Likewise.
73543
73544         * lib/mbswidth.h: Add extern "C" for C++.
73545         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
73546
73547 2004-07-13  Robert Millan  <robertmh@gnu.org>
73548
73549         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
73550
73551 2004-07-09  Simon Josefsson  <jas@extundo.com>
73552
73553         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
73554         failed without this.)
73555
73556 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73557
73558         * modules/chown (Files): Add lib/fchown-stub.c, since
73559         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
73560
73561 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73562
73563         * lib/fchown-stub.c: New file.
73564
73565 2004-06-24  Jim Meyering  <jim@meyering.net>
73566
73567         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
73568
73569 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73570
73571         * modules/argz: Omit "#include".
73572
73573         * MODULES.html.sh (func_all_modules): Add calloc, to match
73574         2004-06-01 addition of calloc module.
73575
73576 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73577
73578         * m4/argz.m4: New file, which is autoupdated from libtool.
73579
73580 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73581
73582         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
73583         libtool.
73584
73585 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73586
73587         * config/srclist-update: Don't insist on "USA." before the
73588         close-comment, as libtool omits the period and puts the */ on a
73589         separate line.
73590         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
73591         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
73592
73593 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
73594
73595         * modules/argz: New file.
73596         * MODULES.html.sh (func_all_modules): Add argz.
73597
73598 2004-06-12  Jim Meyering  <jim@meyering.net>
73599         and  Paul Eggert  <eggert@cs.ucla.edu>
73600
73601         * modules/hash (Files): Add lib/xalloc.h.
73602         * modules/pipe (Depends-on): Add wait-process.
73603         * modules/stat (Depends-on): Add xalloc.
73604         * modules/userspec (Files): Add lib/userspec.h.
73605         * modules/xstrto
73606
73607         Upgrade from gettext-0.13.
73608         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
73609         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
73610         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
73611
73612 2004-06-10  Jim Meyering  <jim@meyering.net>
73613
73614         * lib/calloc.c: New file.
73615
73616 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
73617
73618         * lib/getdate.y (yylex): Allow space between sign and number.
73619         Problem reported by Dan Jacobson.
73620
73621 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
73622
73623         Merge from coreutils CVS.
73624
73625         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
73626         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
73627         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
73628         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
73629         xstrtol.m4: Fix copyright date and/or serial number.
73630
73631         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
73632         See if we need an fchown replacement.
73633         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
73634         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
73635         and use the replacement function if we detect either defect.
73636
73637         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
73638         gl_UTIMECMP.
73639
73640 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
73641         and  Jim Meyering  <jim@meyering.net>
73642
73643         Merge from coreutils CVS.
73644
73645         * lib/stat-macros.h: New file, with contents from file-type.h
73646         and coreutils' system.h.
73647         * lib/file-type.c: Include "stat-macros.h".
73648         * lib/file-type.h (file_type): Move all macro definitions to new file,
73649         stat-macros.h.
73650
73651         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
73652         Wrap old code with this conditional.
73653         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
73654         function that does not dereference symlinks.
73655         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
73656
73657         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
73658         dependency problems.
73659         (xreadlink): Accept new arg SIZE, for efficiency.
73660         All decls and uses changed.
73661         * lib/xreadlink.h: Include <stddef.h>, for size_t.
73662
73663         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
73664         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
73665
73666         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
73667         sysexits.h.
73668
73669 2004-06-01  Jim Meyering  <jim@meyering.net>
73670
73671         * m4/calloc.m4: New file.
73672
73673 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
73674
73675         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
73676         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
73677         Also, fix a typo in a diagnostic.
73678
73679 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
73680
73681         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
73682         or AC_FUNC_REALLOC.
73683
73684 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
73685
73686         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
73687         macros to be defined.
73688         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
73689         the allocator returns NULL because the requested size is zero.
73690
73691 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73692
73693         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
73694         var.  Add comment explaining why libc still defines it.  This
73695         merges the following patch from glibc:
73696         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
73697
73698 2004-05-20  Andreas Schwab  <schwab@suse.de>
73699
73700         * m4/free.m4: Replace free if it not known to work, not the other
73701         way round.
73702
73703 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73704
73705         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
73706         present in glibc since revision 1.1 of this file.
73707         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
73708         obstack_alignment_mask, obstack_alloc, obstack_base,
73709         obstack_blank, obstack_blank_fast, obstack_chunk_size,
73710         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
73711         obstack_grow0, obstack_init, obstack_int_grow,
73712         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
73713         obstack_next_free, obstack_object_size, obstack_ptr_grow,
73714         obstack_ptr_grow_fast, obstack_room): Remove declarations of
73715         nonexistent functions.
73716
73717 2004-05-18  Karl Berry  <karl@gnu.org>
73718
73719         * config/srclist.txt: break link for vasnprintf.c.
73720
73721 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
73722
73723         Port obstack to the AS/400, where pointers are 16 bytes wide and
73724         you cannot cast an integer to a valid pointer.  This patch is
73725         currently waiting to be integrated into glibc; see
73726         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
73727
73728         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
73729         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
73730         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
73731         (struct obstack): temp member is now a union of a pointer and
73732         an integer, instead of an integer.  All integer uses changed.
73733         This does not affect the physical layout of struct obstack,
73734         except on hosts (like the AS/400) where the size or alignment of
73735         void * is greater than that of ptrdiff_t.
73736         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
73737         __STDC__)]: Store temporary in pointer member of union, not
73738         integer member.
73739         * lib/obstack.c: Include <stddef.h>, for offsetof.
73740         (struct fooalign): Remove; it doesn't need a name.
73741         (union fooround): Change double to long double, and add void *.
73742         (DEFAULT_ALIGNMENT): Use offsetof to compute.
73743         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
73744         not a macro.  Hence the values are always int; so remove all
73745         casts-to-int in uses.
73746
73747 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
73748
73749         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
73750         we can get this patch merged into glibc.
73751
73752 2004-05-17  Derek R. Price  <derek@ximbiot.com>
73753             Paul Eggert  <eggert@cs.ucla.edu>
73754
73755         * m4/argp: Depend on alloca.
73756
73757 2004-05-17  Derek R. Price  <derek@ximbiot.com>
73758             Paul Eggert  <eggert@cs.ucla.edu>
73759
73760         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
73761         freecoding.
73762
73763 2004-05-17  Bruno Haible  <bruno@clisp.org>
73764
73765         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
73766         precision that consists of a '.' followed by an empty digit string.
73767         Patch by Tor Lillqvist <tml@iki.fi>.
73768
73769 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
73770
73771         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
73772         for backward compatibility with older code.  We need our own
73773         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
73774         it under some other name, and our alloca.h will define it.
73775
73776 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
73777             Derek Price  <derek@ximbiot.com>
73778
73779         * lib/alloca.c: Include <alloca.h>, to get our interface.
73780         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
73781         include <alloca.h> first.  Use C89 prototype for alloca; this
73782         requires including <stddef.h> for size_t.  Use extern "C" if C++.
73783         Use #elif for simplicity, since we can assume C89 now.
73784         Don't try to source the system alloca.h since it will not be found
73785         and to prevent recursively including its replacement.
73786         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
73787         * lib/regex.c: Likewise.
73788
73789 2004-05-16  Derek Price  <derek@ximbiot.com>
73790             Paul Eggert  <eggert@cs.ucla.edu>
73791
73792         getline cleanup.  This changes the getndelim2 API: both order of
73793         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
73794         no delimiter).
73795
73796         * lib/getline.c: Don't include stddef.h or stdio.h, since our
73797         interface does that.
73798         (getline): Always use getdelim, so that we don't have two
73799         copies of this code.
73800         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
73801         if available.
73802         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
73803         (GETNDELIM2_MAXIMUM): New macro.
73804         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
73805         instead of the old practice of delim2==0.  All callers changed.
73806         Return -1 on overflow, instead of returning junk.
73807         Do not set *linesize unless allocation succeeds.
73808         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
73809         that we include sys/types.h.
73810         * lib/getnline.h: Likewise.
73811         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
73812         (getndelim2): Reorder arguments.
73813         * lib/getnline.c (getnline, getndelim):
73814         Don't discard the NMAX argument.
73815         (getnline): Invoke getndelim, to avoid code duplication.
73816         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
73817         of (size_t) -1 by callers of the getnline family.
73818
73819 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73820
73821         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
73822         Check for gettimeofday.
73823         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
73824         Check for settimeofday, stime.
73825
73826 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73827
73828         * lib/nanosleep.c (suspended): Change its type from int to
73829         sig_atomic_t volatile.
73830         (first_call): Make it private to rpl_nanosleep, and have it
73831         be zero initially as that's a bit faster.
73832         (my_usleep): Round up fractional times instead of truncating them,
73833         as this is the usual meaning for 'sleep'.
73834
73835         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
73836         doesn't work.
73837         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
73838         (ENOSYS): Define if not defined.
73839         (settime): Fall back on stime if it exists and settimeofday fails.
73840         But don't bother with fallbacks if a method fails with errno == EPERM.
73841
73842 2004-05-11  Jim Meyering  <jim@meyering.net>
73843
73844         Prior to this change, the save_cwd caller required read access to the
73845         current directory on most systems (ones with the fchdir function).
73846
73847         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
73848         fails, try write-only, and finally, resort to using xgetcwd.
73849
73850 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73851
73852         * lib/obstack.c, obstack.h: Import changes from libc.
73853
73854 2004-04-28  Bruno Haible  <bruno@clisp.org>
73855
73856         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
73857         also implicitly appends .exe to executables.
73858         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
73859         accepts Windows pathnames.
73860         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
73861         Treat Cygwin like Windows, since it now accepts Windows pathnames.
73862         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
73863         Treat Cygwin like Windows, since it now accepts Windows pathnames.
73864         Reported by Derek Robert Price <derek@ximbiot.com>.
73865
73866 2004-04-21  Karl Berry  <karl@gnu.org>
73867
73868         * config/srclist.txt (localcharset.c): break sync.
73869
73870 2004-04-20  Paul Eggert  <eggert@twinsun.com>
73871
73872         * m4/host-os.m4: Add a copyright notice.
73873
73874 2004-04-20  Jim Meyering  <jim@meyering.net>
73875
73876         Change UTILS_ to gl_ in AC_DEFINE'd names.
73877         Change utils_- and jm_-prefixed variables, too.
73878         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
73879         UTILS_FUNC_MKDIR_TRAILING_SLASH.
73880         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
73881
73882         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
73883         Don't emit trailing blanks.
73884         Also rename jm_-prefixed variables to have gl_ prefix.
73885
73886         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
73887         Also rename jm_-prefixed variables to have gl_ prefix.
73888
73889         * m4/jm-macros.m4: Reflect the renamings.
73890         * m4/prereq.m4: Likewise.
73891
73892 2004-04-20  Jim Meyering  <jim@meyering.net>
73893
73894         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
73895         memory.
73896
73897 2004-04-20  Jim Meyering  <jim@meyering.net>
73898             Bruno Haible  <bruno@clisp.org>
73899
73900         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
73901         memory when realloc fails.
73902
73903 2004-04-19  Jim Meyering  <jim@meyering.net>
73904
73905         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
73906         now that readutmp.c may call `free (0)'.
73907
73908 2004-04-19  Bruno Haible  <bruno@clisp.org>
73909
73910         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
73911         * m4/inttypes_h.m4: Likewise.
73912         * m4/stdint_h.m4: Likewise.
73913         * m4/intmax_t.m4: Likewise.
73914         * m4/uintmax_t.m4: Likewise.
73915
73916 2004-04-18  Jim Meyering  <jim@meyering.net>
73917
73918         * m4/prereq.m4: Don't forbid jm_ prefix.
73919
73920         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
73921         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
73922         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
73923         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
73924         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
73925         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
73926         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
73927         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
73928         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
73929         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
73930         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
73931         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
73932         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
73933         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
73934         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
73935         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
73936         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
73937         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
73938         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
73939
73940 2004-04-18  Jim Meyering  <jim@meyering.net>
73941
73942         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
73943         failure, don't leak memory and do call END_UTMP_ENT.
73944
73945 2004-04-16  Jim Meyering  <jim@meyering.net>
73946
73947         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
73948         coreutils' stat program.
73949         (gl_PREREQ): Don't require jm_PREREQ_STAT.
73950
73951 2004-04-11  Paul Eggert  <eggert@twinsun.com>
73952
73953         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
73954         C89.
73955         (CHAR_BIT): Remove, since we assume C89.
73956         Include <stdint.h> if available, as per current Autoconf CVS advice.
73957
73958 2004-03-31  Jim Meyering  <jim@meyering.net>
73959
73960         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
73961         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
73962         * m4/xalloc.m4: Likewise.
73963
73964 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73965
73966         Merge from coreutils.
73967
73968         * m4/inttostr.m4: New file.
73969         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
73970         Require AM_STDBOOL_H and gl_TIMESPEC instead.
73971         Require gl_CLOCK_TIME.
73972         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
73973
73974 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73975
73976         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
73977         not bool, to be more consistent with Unix conventions.
73978         Suggested by Bruno Haible.
73979
73980         Merge from coreutils.
73981
73982         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
73983         * lib/umaxtostr.c: New files.
73984
73985         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
73986         the usual <time.h> dance.
73987         (get_date): Change signature to support fractional time stamps.
73988         All callers changed.
73989         * lib/getdate.y: Include "getdate.h" first, as we can now
73990         assume C89 and don't need to worry about 'const'.
73991         Similarly, include "unlocked-io.h" near start, not in middle.
73992         Include <limits.h>.
73993         (textint.value): Use long int rather than int.
73994         (textint.digits): Use size_t rather than int.
73995         (BILLION, LOG10_BILLION): New constants.
73996         (parser_control): New member rel_ns.  Members day_ordinal,
73997         time_zone, month, day, hour, minutes, rel_year, rel_month,
73998         rel_day, rel_hour, rel_minutes, rel_seconds
73999         are now long int, not int.  Member seconds is now struct timespec,
74000         not int.  New member timespec_seen.  Members dates_seen, days_seen,
74001         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
74002         not int.
74003         (%union.intval): Now long int, not int.
74004         New member timespec.
74005         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
74006         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
74007         (spec): Now is a timespec or an item list.
74008         (timespec, items): New nonterminals.
74009         (time, rel, relunit, number, get_date):
74010         Add support for fractional seconds.
74011         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
74012         (gmtime, localtime, mktime): Remove decls; not needed with C89.
74013         (to_hour): First arg is now long int, not int.
74014         (to_year): Returns long int, not int.
74015         Don't treat year -70 like 70.
74016         (tm_diff): Returns long int, not int.
74017         (lookup_word): Use bool instead of int when appropriate.
74018         (yylex): Use size_t for count, not int.
74019         Detect overflow when parsing large integer constants.
74020         Add support for fractions.
74021         (get_date): Make pointers 'const' if possible.
74022         Use more-portable code to detect integer overflow.
74023         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
74024         Don't use ctime; it's not reliable if the year has >4 digits.
74025
74026         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
74027         This is for compatibility with BSD.
74028
74029         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
74030         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
74031         From coreutils' system.h.
74032
74033         * lib/userspec.c: Don't include "posixver.h".
74034         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
74035         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
74036         compatible extension.  Simplify code by removing a boolean int
74037         that was always nonzero if a string was nonnull.
74038
74039 2004-03-30  Jim Meyering  <jim@meyering.net>
74040
74041         Merge from coreutils.
74042
74043         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
74044         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
74045         on some systems one must include <grp.h> before it.
74046         Reported by Christian Krackowizer.
74047
74048 2004-03-30  Jim Meyering  <jim@meyering.net>
74049
74050         Merge from coreutils.
74051
74052         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
74053
74054         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
74055         an empty input stream.
74056
74057         * lib/readtokens.c: Include <stdbool.h>.
74058         (readtoken): Use `size_t' rather than int/long.
74059         All callers adjusted.
74060         Use `bool' rather than `int' where appropriate.
74061         Use memset rather than an explicit loop.
74062         Use x2nrealloc rather than xrealloc.
74063         Allow the use of `\0' as a delimiter.
74064         (readtokens): Likewise.
74065         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
74066
74067 2004-03-30  Jim Meyering  <jim@meyering.net>
74068
74069         * m4/realloc.m4: Remove file, since now it does no more than
74070         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
74071         the `configure.ac' section of module/realloc.
74072         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
74073
74074 2004-03-30  Bruno Haible  <bruno@clisp.org>
74075
74076         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
74077         nonnull.
74078
74079 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74080
74081         Merge changes to getloadavg.c from coreutils and Emacs.
74082
74083         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
74084         Define to an expression, not to the empty string.
74085         Include cloexec.h and xalloc.h.
74086         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
74087         Use set_cloexec_flag rather than rolling our own.
74088         * lib/cloexec.c, lib/cloexec.h: New files.
74089
74090 2004-03-29  Paul Eggert  <eggert@twinsun.com>
74091
74092         * m4/cloexec.m4: New file.
74093
74094 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74095
74096         * lib/getopt.h: Sync with libc CVS.
74097
74098 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74099             Bruno Haible  <bruno@clisp.org>
74100
74101         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
74102         mbswidth.
74103
74104 2004-03-18  Paul Eggert  <eggert@twinsun.com>
74105             Bruno Haible  <bruno@clisp.org>
74106
74107         * lib/mbswidth.h: Include <wchar.h> only if
74108         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
74109         <wchar.h>.
74110         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
74111
74112 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74113
74114         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
74115         Sync with libc CVS.
74116         * lib/getopt_int.h: New file, also synced from libc.
74117
74118 2004-03-09  Paul Eggert  <eggert@twinsun.com>
74119
74120         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
74121         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
74122         Bring back getopt.c, getopt.h, getopt1.c.
74123
74124 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74125
74126         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
74127         All uses changed.  Check for sa_sigaction member; this fixes
74128         a bug first reported by Jason Andrade in
74129         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
74130
74131 2004-03-07  Paul Eggert  <eggert@twinsun.com>
74132
74133         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
74134         '#if' expressions.  Unlike the code it replaces, it does not
74135         depend on (defined _SC_PAGESIZE).  However, it does depend on
74136         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
74137         first reported by Jason Andrade in
74138         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
74139
74140 2004-02-25  Simon Josefsson  <jas@extundo.com>
74141
74142         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
74143
74144 2004-02-25  Simon Josefsson  <jas@extundo.com>
74145
74146         * lib/strdup.h: New file.
74147         * lib/strdup.c: Include it.
74148         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
74149         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
74150
74151 2004-02-23  Karl Berry  <karl@gnu.org>
74152
74153         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
74154         (from fencepost.gnu.org:/gd/gnuorg).
74155
74156 2004-02-23  Karl Berry  <karl@gnu.org>
74157
74158         * config/srclistvars.sh (GNUORG) [karl]: redefine.
74159         * config/srclist.txt: add maintain/standards documents.
74160
74161 2004-02-18  Bruno Haible  <bruno@clisp.org>
74162
74163         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
74164         Reported by Derek Robert Price <derek@ximbiot.com>.
74165
74166 2004-02-16  Karl Berry  <karl@gnu.org>
74167
74168         * config/mkinstalldirs, install-sh: update from automake.
74169
74170 2004-02-06  Karl Berry  <karl@gnu.org>
74171
74172         * m4/po.m4: update from gettext 0.14.1.
74173
74174 2004-02-06  Karl Berry  <karl@gnu.org>
74175
74176         * lib/config.charset: update from gettext 0.14.1.
74177
74178 2004-02-05  Paul Eggert  <eggert@twinsun.com>
74179
74180         Add comments and code, prompted by suggestions from Bruno Haible
74181         for sh-quote.
74182         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
74183         describing the enum quoting_style values.
74184         * lib/quotearg.c (quotearg_alloc): New function.
74185         (quotearg_buffer_restyled): Treat lone { and } as special.
74186         Treat = as special.  Work around bug with older shells
74187         that "see" a '\' that is really the 2nd byte of a multibyte char.
74188         Quote empty string with shell_quoting_style.
74189
74190 2004-02-03  Bruno Haible  <bruno@clisp.org>
74191
74192         * m4/pipe.m4: New file, from GNU gettext.
74193
74194 2004-02-03  Bruno Haible  <bruno@clisp.org>
74195
74196         * lib/pipe.h: New file, from GNU gettext.
74197         * lib/pipe.c: New file, from GNU gettext.
74198
74199 2004-01-27  Bruno Haible  <bruno@clisp.org>
74200
74201         * m4/execute.m4: New file, from GNU gettext.
74202
74203 2004-01-27  Bruno Haible  <bruno@clisp.org>
74204
74205         * lib/execute.h: New file, from GNU gettext.
74206         * lib/execute.c: New file, from GNU gettext.
74207         * lib/w32spawn.h: New file, from GNU gettext.
74208
74209 2004-01-24  Paul Eggert  <eggert@twinsun.com>
74210
74211         Merge from diffutils.
74212
74213         * lib/file-type.c (file_type): Add typed memory objects.
74214         * lib/file-type.h (S_TYPEISTMO): New macro.
74215
74216         * lib/c-stack.h (c_stack_action): Remove argv argument.
74217         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
74218         (die): Don't calculate message unless segv_action returns.
74219         (get_stack_location, min_address_from_argv, max_address_from_argv,
74220         volatile stack_base, volatile_stack_size): Remove.
74221         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
74222         that every segmentation violation is a stack overflow.  (Ouch!)
74223         See Debian bug 136249 (still outstanding) for more info about why
74224         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
74225
74226 2004-01-24  Paul Eggert  <eggert@twinsun.com>
74227
74228         Exit-status fix from coreutils.
74229
74230         Use exit_failure consistently in place of EXIT_FAILURE,
74231         so that program exit statuses are consistent on failure.
74232
74233         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
74234         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
74235         * lib/argmatch.h: Comment fix to match the above.
74236         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
74237         Now a macro referring to exit_failure, instead of a separate
74238         variable.  Include "exitfail.h" to get it.
74239         * lib/xstrtol.h: Include "exitfail.h".
74240         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
74241
74242         * lib/long-options.c (parse_long_options): Use prototype
74243         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
74244         for clarity.
74245
74246 2004-01-21  Jim Meyering  <jim@meyering.net>
74247
74248         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
74249         so as not to conflict with a different-sized __mktime_internal
74250         function in GNU libc.
74251         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
74252         Problem building statically-linked `ls' reported by Michael Brunnbauer.
74253
74254 2004-01-20  Karl Berry  <karl@gnu.org>
74255
74256         * config/config.guess: update from config.
74257
74258         * config/srclistvars.sh: GNUWWWLICENSES for karl.
74259
74260 2004-01-20  Bruno Haible  <bruno@clisp.org>
74261
74262         Safer stack allocation.
74263         * lib/setenv.c: Include allocsa.h.
74264         (alloca): Remove fallback definition.
74265         (freea): Remove macro.
74266         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
74267         instead of freea.
74268
74269 2004-01-20  Bruno Haible  <bruno@clisp.org>
74270
74271         * m4/eealloc.m4: New file, from GNU gettext.
74272
74273 2004-01-20  Bruno Haible  <bruno@clisp.org>
74274
74275         * m4/allocsa.m4: New file, from GNU gettext.
74276
74277 2004-01-20  Bruno Haible  <bruno@clisp.org>
74278
74279         * lib/xallocsa.h: New file, from GNU gettext.
74280         * lib/xallocsa.c: New file, from GNU gettext.
74281
74282 2004-01-20  Bruno Haible  <bruno@clisp.org>
74283
74284         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
74285
74286 2004-01-20  Bruno Haible  <bruno@clisp.org>
74287
74288         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
74289         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
74290         specially.
74291
74292 2004-01-20  Bruno Haible  <bruno@clisp.org>
74293
74294         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
74295         patch.
74296
74297 2004-01-20  Bruno Haible  <bruno@clisp.org>
74298
74299         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
74300
74301 2004-01-20  Bruno Haible  <bruno@clisp.org>
74302
74303         * lib/eealloc.h: New file.
74304
74305 2004-01-20  Bruno Haible  <bruno@clisp.org>
74306
74307         * lib/binary-io.h: Avoid warnings on Cygwin.
74308
74309 2004-01-20  Bruno Haible  <bruno@clisp.org>
74310
74311         * lib/allocsa.h: New file, from GNU gettext.
74312         * lib/allocsa.c: New file, from GNU gettext.
74313
74314 2004-01-18  Karl Berry  <karl@gnu.org>
74315
74316         * doc/gpl.texi, doc/lgpl.texi: new files.
74317
74318 2004-01-18  Karl Berry  <karl@gnu.org>
74319
74320         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
74321         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
74322
74323 2004-01-15  Paul Eggert  <eggert@twinsun.com>
74324
74325         Merge from coreutils.
74326
74327         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
74328         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
74329         (gl_DEFAULT_POSIX2_VERSION): Move
74330         the documentation from 'configure' into 'config.hin',
74331         so that 'configure --help' isn't burdened by it and
74332         we don't have to worry about its formatting there.
74333         Reword the documentation so that it's more succinct
74334         and can be run together into a single paragraph.
74335         * m4/same.m4 (gl_SAME): Check for pathconf.
74336
74337 2004-01-15  Paul Eggert  <eggert@twinsun.com>
74338
74339         Merge from coreutils.
74340
74341         * lib/posixver.c: Include posixver.h.
74342
74343         * lib/same.c: Include <stdbool.h>, <limits.h>.
74344         (_POSIX_NAME_MAX): Define if not defined.
74345         (MIN): New macro.
74346         (same_name): If file names are silently truncated, report
74347         that the file names are the same if they are the same after
74348         the silent truncation.
74349
74350         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
74351         conversion function.
74352         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
74353         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
74354         longer needed.
74355
74356 2004-01-15  Jim Meyering  <jim@meyering.net>
74357
74358         Merge from coreutils.
74359
74360         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
74361         if no library is required.
74362         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
74363         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
74364         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
74365         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
74366         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
74367         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
74368         value, $ac_cv_search_crypt, if it's "none required".
74369         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
74370         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
74371         not gl_FUNC_GETLOADAVG.
74372         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
74373         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
74374
74375 2004-01-15  Jim Meyering  <jim@meyering.net>
74376
74377         Merge from coreutils.
74378
74379         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
74380         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
74381         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
74382
74383         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
74384         optional configure-time default.
74385
74386         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74387
74388         * lib/xreadlink.c (xreadlink): Correct outdated comment.
74389
74390 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
74391
74392         Merge from coreutils.
74393
74394         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
74395         value, $ac_cv_search_nanosleep, if it's "none required".
74396
74397 2004-01-14  Paul Eggert  <eggert@twinsun.com>
74398
74399         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
74400         with like-named macro in fnmatch.c.
74401         (EXT): Use an internal constant instead.
74402
74403         Merge fnmatch patches from glibc.
74404         * lib/fnmatch.c (mbsinit): Remove define.
74405         Add libc_hidden_ver (__fnmatch, fnmatch).
74406         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
74407         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
74408
74409 2004-01-14  Karl Berry  <karl@gnu.org>
74410
74411         * config/install-sh: update from automake.
74412
74413 2004-01-13  Karl Berry  <karl@gnu.org>
74414
74415         * config/install-sh: update from automake.
74416
74417 2004-01-09  Karl Berry  <karl@gnu.org>
74418
74419         * config/install-sh: update from automake.
74420
74421 2004-01-05  Karl Berry  <karl@gnu.org>
74422
74423         * config/config.{sub,guess}: update from config.
74424
74425 2003-12-31  Karl Berry  <karl@gnu.org>
74426
74427         * config/depcomp: update from automake.
74428
74429 2003-12-14  Karl Berry  <karl@gnu.org>
74430
74431         * lib/config.charset: update from gettext-runtime.
74432
74433 2003-12-03  Paul Eggert  <eggert@twinsun.com>
74434
74435         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
74436         Bug reported by Alfred M. Szmidt.
74437
74438 2003-12-03  Bruno Haible  <bruno@clisp.org>
74439
74440         * m4/gettext.m4: Upgrade from gettext-0.13.
74441         * m4/po.m4: Upgrade from gettext-0.13.
74442         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
74443         * m4/intmax.m4: New file, from gettext-0.13.
74444         * m4/printf-posix.m4: New file, from gettext-0.13.
74445
74446 2003-11-29  Karl Berry  <karl@gnu.org>
74447
74448         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
74449
74450 2003-11-25  Paul Eggert  <eggert@twinsun.com>
74451             Bruno Haible  <bruno@clisp.org>
74452
74453         * lib/printf-parse.h: Don't include sys/types.h.
74454         (ARG_NONE): New macro.
74455         (char_directive): Change type of *arg_index fields to size_t.
74456         * lib/printf-parse.c: Don't include sys/types.h.
74457         (SSIZE_MAX): Remove macro.
74458         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
74459         Remove unnecessary overflow check.
74460         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
74461         fields.
74462
74463 2003-11-25  Bruno Haible  <bruno@clisp.org>
74464
74465         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
74466
74467 2003-11-25  Bruno Haible  <bruno@clisp.org>
74468
74469         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
74470         gt_TYPE_SSIZE_T.
74471
74472 2003-11-24  Paul Eggert  <eggert@twinsun.com>
74473
74474         * modules/alloca: Remove dependency on xalloc.
74475
74476 2003-11-24  Paul Eggert  <eggert@twinsun.com>
74477
74478         * lib/alloca.c: Remove dependency on xalloc module.
74479         (xalloc_die): Remove.
74480         (memory_full) [!defined emacs]: New macro.
74481         [!defined emacs]: Don't include xalloc.h.
74482         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
74483         address arithmetic overflows.  Change datatypes a bit to avoid
74484         unnecessary casts.
74485
74486 2003-11-22  Jim Meyering  <jim@meyering.net>
74487
74488         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
74489         s/size/size_t/.
74490
74491 2003-11-21  Karl Berry  <karl@gnu.org>
74492
74493         * config/config.{sub,guess}: update from config.
74494
74495 2003-11-18  Karl Berry  <karl@gnu.org>
74496
74497         * config/config.{sub,guess}: update from config.
74498
74499         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
74500
74501 2003-11-17  Paul Eggert  <eggert@twinsun.com>
74502
74503         * README: Mention that S+T cannot overflow if S is the size of
74504         an existing object and T is sufficiently small.
74505
74506 2003-11-17  Jim Meyering  <jim@meyering.net>
74507
74508         On systems without utime and without a utimes function capable of
74509         dealing with a NULL struct utimbuf* argument, this utime replacement
74510         could -- in unusual circumstances -- leak a file descriptor.
74511         * lib/utime.c: Include <unistd.h> and <errno.h>.
74512         (utime_null): Be sure to close `fd' and to preserve errno.
74513         Reported by Geoff Collyer via Arnold Robbins.
74514
74515 2003-11-17  Bruno Haible  <bruno@clisp.org>
74516
74517         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
74518         (Depends-on): Add xsize.
74519
74520 2003-11-17  Bruno Haible  <bruno@clisp.org>
74521
74522         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
74523
74524 2003-11-17  Bruno Haible  <bruno@clisp.org>
74525
74526         * lib/vasnprintf.c (alloca): Remove fallback definition.
74527         (freea): Remove definition.
74528         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
74529         Reported by Paul Eggert.
74530
74531 2003-11-16  Paul Eggert  <eggert@twinsun.com>
74532             Bruno Haible  <bruno@clisp.org>
74533
74534         Protect against address arithmetic overflow.
74535         * lib/printf-args.h: Include stddef.h.
74536         (arguments): Change type of field 'count' to size_t.
74537         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
74538         'unsigned int' where appropriate.
74539         * lib/printf-parse.h: Include sys/types.h.
74540         (char_directive): Change type of *arg_index fields to ssize_t.
74541         (char_directives): Change type of fields 'count', max_*_length to
74542         size_t.
74543         * lib/printf-parse.c: Include sys/types.h and xsize.h.
74544         (SSIZE_MAX): Define fallback value.
74545         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
74546         instead of 'int' where appropriate. Check a_allocated, d_allocated
74547         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
74548         * lib/vasnprintf.c: Include xsize.h.
74549         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
74550         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
74551         overflow. Avoid wraparound when converting a width or precision from
74552         decimal to binary.
74553
74554 2003-11-16  Bruno Haible  <bruno@clisp.org>
74555
74556         Update from GNU gettext.
74557         * lib/printf-parse.c: Generalize to it can be compiled for wide
74558         strings.
74559         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
74560         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
74561         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
74562         SNPRINTF): New macros.
74563         Don't include <alloca.h> if the file is used inside libintl.
74564         (local_wcslen): New function, for Solaris 2.5.1.
74565         (VASNPRINTF): Use it instead of wcslen.
74566
74567 2003-11-16  Bruno Haible  <bruno@clisp.org>
74568
74569         * lib/xsize.h (xmax): New function.
74570         (xsum, xsum3, xsum4): Declare as "pure" functions.
74571
74572 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74573
74574         * modules/xalloc (Files): Undo latest change, since xalloc.h
74575         no longer needs SIZE_MAX or PTRDIFF_MAX.
74576
74577 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74578
74579         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
74580         gl_PTRDIFF_MAX.
74581
74582 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74583
74584         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
74585         "return", to pacify some unknown compiler.  Problem reported
74586         by Joerg Schilling.
74587
74588 2003-11-12  Paul Eggert  <eggert@twinsun.com>
74589
74590         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
74591         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
74592         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
74593         heuristic is just as accurate as far as we know, and it removes a
74594         dependency on size_max.m4 and ptrdiff_max.m4.
74595
74596 2003-11-11  Bruno Haible  <bruno@clisp.org>
74597
74598         * modules/xsize (Files): Add m4/size_max.m4.
74599         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
74600
74601 2003-11-11  Bruno Haible  <bruno@clisp.org>
74602
74603         * m4/size_max.m4: New file.
74604         * m4/ptrdiff_max.m4: New file.
74605         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
74606         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
74607         (gl_XALLOC): Invoke it.
74608
74609 2003-11-11  Bruno Haible  <bruno@clisp.org>
74610
74611         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
74612         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
74613         defined.
74614
74615 2003-11-10  Paul Eggert  <eggert@twinsun.com>
74616
74617         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
74618         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
74619         rejected some allocations of exactly SIZE_MAX - 2 bytes.
74620         From Bruno Haible.
74621         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
74622         not (size_t) -1, since it's defined here.
74623
74624 2003-11-09  Karl Berry  <karl@gnu.org>
74625
74626         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
74627
74628 2003-11-06  Paul Eggert  <eggert@twinsun.com>
74629
74630         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
74631         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
74632         Reject sizes of exactly SIZE_MAX bytes.
74633         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
74634         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
74635
74636 2003-11-05  Bruno Haible  <bruno@clisp.org>
74637
74638         * lib/xsize.h: Include limits.h, to avoid a possible collision with
74639         SIZE_MAX defined in <limits.h> on Solaris.
74640
74641 2003-11-04  Jim Meyering  <jim@meyering.net>
74642
74643         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
74644         variable names, rather than @VAR@.
74645         * modules/poll: Likewise.
74646
74647 2003-11-04  Bruno Haible  <bruno@clisp.org>
74648
74649         * modules/xsize: New file.
74650         * modules/linebreak: Depend on xsize.
74651         * MODULES.html.sh (func_all_modules): Add xsize.
74652
74653 2003-11-04  Bruno Haible  <bruno@clisp.org>
74654
74655         * m4/xsize.m4: New file.
74656
74657 2003-11-04  Bruno Haible  <bruno@clisp.org>
74658
74659         * lib/xsize.h: New file.
74660         * lib/linebreak.c: Include xsize.h.
74661         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
74662         argument for overflow.
74663         Suggested by Paul Eggert.
74664
74665 2003-11-03  Karl Berry  <karl@gnu.org>
74666
74667         * config/config.{guess,sub}: update from config.
74668
74669 2003-11-03  Jim Meyering  <jim@meyering.net>
74670
74671         * modules/userspec (lib_SOURCES): Add userspec.h.
74672         (Include): Add "userspec.h".
74673         Improve description.
74674
74675 2003-11-03  Jim Meyering  <jim@meyering.net>
74676
74677         * lib/userspec.c: Include "userspec.h".
74678         * lib/userspec.h: New file.
74679
74680 2003-11-03  Bruno Haible  <bruno@clisp.org>
74681
74682         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
74683
74684 2003-11-03  Bruno Haible  <bruno@clisp.org>
74685
74686         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
74687         available, to avoid (extremely rare) race condition.
74688         Suggested by Paul Eggert.
74689
74690 2003-11-02  Karl Berry  <karl@gnu.org>
74691
74692         * config/srclist.txt (vasprintf.c): sync broken, sigh.
74693
74694 2003-10-31  Paul Eggert  <eggert@twinsun.com>
74695
74696         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
74697         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
74698         (read_filesystem_list): Set and use me_type_malloced.
74699         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
74700         whatever the type happens to be), for brevity and consistency.
74701         Check for size calculation overflow on Alphas running OSF/1.
74702
74703 2003-10-31  Jim Meyering  <jim@meyering.net>
74704
74705         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
74706
74707         * lib/linebuffer.c: Include <string.h> for declaration of memset.
74708
74709 2003-10-30  Paul Eggert  <eggert@twinsun.com>
74710             Bruno Haible  <bruno@clisp.org>
74711
74712         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
74713         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
74714
74715 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74716
74717         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
74718         netbsd*-gnu*.  Suggested by Robert Millan.
74719
74720 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74721
74722         * modules/group-member: Depend on stdbool.
74723
74724 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74725
74726         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
74727
74728 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74729
74730         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
74731         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
74732         after the 'gnu' in these cases.  This fixes some bugs in the
74733         previous change, and is based on suggestions by Robert Millan.
74734
74735 2003-10-29  Paul Eggert  <eggert@twinsun.com>
74736
74737         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
74738         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
74739         no longer needed.
74740         * lib/quotearg.c (quotearg_n_options): Use it.
74741         * lib/group-member.c: Include <stdbool.h>.
74742         (free_group_info): Arg is now const *; don't free arg.
74743         (get_group_info): Now returns bool and accepts struct group_info *,
74744         rather than returning a malloc'ed struct group_info *.
74745         All uses changed.  Check for overflow in internal size calculation.
74746
74747         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
74748         rather than xmalloc/xrealloc.
74749         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
74750         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
74751         conformance bug: the old code used a pointer after freeing the
74752         storage that it addressed.
74753         * lib/hash.c (hash_initialize): Simplify the code by using
74754         xalloc_oversized rather than doing it by hand.
74755         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
74756         the buffer preserved.  Use free and xmalloc instead.
74757         * lib/quotearg.c (quotearg_n_options): Likewise.
74758         Use a simpler test for size overflow.  Don't use xalloc_oversized
74759         because unsigned int might be wider than size_t (!); this suggests
74760         that we should switch from unsigned int to size_t for slot numbers.
74761
74762 2003-10-28  Paul Eggert  <eggert@twinsun.com>
74763
74764         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
74765         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
74766         NetBSD kernels.  Requested by Richard Stallman.
74767
74768 2003-10-27  Paul Eggert  <eggert@twinsun.com>
74769
74770         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
74771         to allocate the returned structure.  Do not allocate a subarray,
74772         as x2nrealloc will do that.
74773         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
74774         instead of xnrealloc.
74775         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
74776
74777 2003-10-27  Bruno Haible  <bruno@clisp.org>
74778
74779         * lib/stdbool_.h: Better support for BeOS.
74780
74781 2003-10-26  Paul Eggert  <eggert@twinsun.com>
74782
74783         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
74784         now uses inline.
74785
74786 2003-10-26  Paul Eggert  <eggert@twinsun.com>
74787
74788         * lib/xalloc.h (xalloc_oversized): New static inline function, for
74789         callers that want to do their own size-overflow checking.  Include
74790         <stdbool.h>, since xalloc_oversized returns bool.
74791         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
74792         to use xalloc_oversized.
74793
74794         Add two functions x2realloc, x2nrealloc, for programs that grow
74795         arrays dynamically by doubling their sizes.
74796         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
74797         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
74798         New functions.
74799
74800         Port to C99 semantics for 'inline' of external functions.
74801         Bug reported by Bruno Haible.
74802         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
74803         with the old contents of xnmalloc.
74804         (xnmalloc, xmalloc): Use it.
74805         (xnrealloc_inline): New static inline function,
74806         with the old contents of xnrealloc.
74807         (xnrealloc, xrealloc): Use it.
74808
74809         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
74810         that.
74811
74812 2003-10-26  Karl Berry  <karl@gnu.org>
74813
74814         * config/srclist.txt (COPYING.DOC): no longer available from
74815         /gd/gnuorg; don't know where the ultimate source is.
74816
74817 2003-10-25  Paul Eggert  <eggert@twinsun.com>
74818
74819         Fix several address-calculation bugs in the hash modules,
74820         plus some minor code cleanup.
74821
74822         * lib/hash.h: Include <stdbool.h>, for bool.
74823         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
74824         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
74825         hash_get_n_entries, hash_get_max_bucket_length,
74826         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
74827         hash_rehash): Use size_t rather than unsigned.
74828         * lib/hash.c (struct hash_table, hash_get_n_buckets,
74829         hash_get_n_buckets_used, hash_get_n_entries,
74830         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
74831         hash_get_entries, hash_do_for_each, hash_string, is_prime,
74832         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
74833         Likewise.
74834         (SIZE_MAX): Define if not defined.
74835         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
74836         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
74837         hash_print):
74838         Use const * when possible.
74839         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
74840         (check_tuning): Fix bug: if tuning parameters were very close to
74841         0 or 1, rounding errors could have caused subscript violations.
74842         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
74843         (hash_initialize): Add 'fail:' label
74844         to free table and return NULL, and use it to simplify code.
74845         Use calloc rather than clearing the storage ourself.
74846         (hash_initialize, hash_rehash): Check for arithmetic overflow in
74847         buffer size calculations.
74848         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
74849         Include <stddef.h>, for size_t.
74850         * lib/hash-pjw.c (hash_pjw): Likewise.
74851         Switch to method described by Bruno Haible.
74852         Include <limits.h>, for CHAR_BIT.
74853         (SIZE_BITS): New macro.
74854
74855 2003-10-23  Paul Eggert  <eggert@twinsun.com>
74856
74857         * m4/getline.m4 (AM_FUNC_GETLINE):
74858         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
74859         hosts.  Problem reported by Derek Robert Price in
74860         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
74861         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
74862         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
74863
74864 2003-10-21  Paul Eggert  <eggert@twinsun.com>
74865
74866         * lib/getndelim2.c (getndelim2): When size calculation overflows,
74867         ceiling the allocation at NMAX bytes rather than silently
74868         discarding input bytes before NMAX is reached.  This makes
74869         a difference only if NMAX exceeds SIZE_MAX / 2.
74870
74871         * lib/obstack.c: Merge from glibc.
74872         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
74873         Add libc_hidden_def (_obstack_newchunk).
74874         (_obstack_free) [! defined _LIBC]: Remove.
74875         [defined _LIBC]: Make a strong alias from obstack_free, rather than
74876         a clone of the function body.
74877         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
74878         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
74879
74880         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
74881         glibc.
74882         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
74883         arg to memcpy.
74884
74885         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
74886         (obstack_ptr_grow_fast, obstack_int_grow_fast):
74887         Don't use lvalue casts, as GCC plans to remove support for them
74888         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
74889         was also present in the non-GCC version, indicating that this
74890         code had always been buggy and had never been widely used.
74891         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
74892         Use the fast variant of each macro, rather than copying the
74893         definiens of the fast variant; that way, we'll be more likely to
74894         catch future bugs in the fast variants.
74895
74896 2003-10-20  Bruno Haible  <bruno@clisp.org>
74897
74898         * modules/wait-process: New file.
74899         * MODULES.html.sh (func_all_modules): Add wait-process.
74900
74901 2003-10-20  Bruno Haible  <bruno@clisp.org>
74902
74903         * m4/wait-process.m4: New file.
74904
74905 2003-10-20  Bruno Haible  <bruno@clisp.org>
74906
74907         * lib/wait-process.h: New file, from GNU gettext.
74908         * lib/wait-process.c: New file, from GNU gettext.
74909
74910 2003-10-19  Jim Meyering  <jim@meyering.net>
74911
74912         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
74913         HPUX 10.20.
74914
74915 2003-10-18  Karl Berry  <karl@gnu.org>
74916
74917         * config/config.guess: update from config.
74918
74919 2003-10-16  Paul Eggert  <eggert@twinsun.com>
74920
74921         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
74922         (getgroups): First arg is int, not size_t.
74923         Don't let 'free' mangle errno.
74924
74925 2003-10-16  Paul Eggert  <eggert@twinsun.com>
74926
74927         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
74928
74929 2003-10-16  Karl Berry  <karl@gnu.org>
74930
74931         * config/config.{guess,sub}: update from config.
74932
74933 2003-10-16  Jim Meyering  <jim@meyering.net>
74934
74935         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
74936         memcpy.
74937
74938 2003-10-15  Paul Eggert  <eggert@twinsun.com>
74939
74940         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
74941         (SIZE_MAX): Remove.
74942         (new_exclude, add_exclude_file): Initial size no longer needs to
74943         be a power of 2.
74944         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
74945         our own address arithmetic overflow checking.
74946
74947         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
74948         (fnmatch): Do not alloca more than 2000 wide characters;
74949         instead, use malloc for large buffers.
74950         Check for address arithmetic overflow, and return -1
74951         with errno set to ENOMEM in that case.
74952         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
74953         (NEW_PATTERN): Do not alloca more than 8000 bytes;
74954         instead, return -1.  Check for address arithmetic overflow.
74955
74956 2003-10-14  Paul Eggert  <eggert@twinsun.com>
74957
74958         Handle invalid suffixes and overflow independently, so that
74959         callers can treat them independently as needed.  Fix some bugs in
74960         suffix handling, e.g., "100k@" was not diagnosed as an invalid
74961         suffix for a human-readable blocksize.  The major caller-visible
74962         change is the addition of a new
74963         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
74964         that both overflow and suffix chars were found.
74965
74966         * lib/human.c (humblock): Don't check separately for invalid suffix
74967         char; that is xstrtoumax's job (now that its bug is fixed).
74968         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
74969         INTMAX_MAX]: New macros.
74970         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
74971         TYPE_MAXIMUM): New macros.
74972         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
74973         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
74974         if overflow occurs, as it's what __strtol does and it's more useful
74975         in practice.
74976         (__xstrtol): If __strtol reports some error other than ERANGE,
74977         reflect it to the caller as LONGINT_INVALID.  If it reports
74978         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
74979         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
74980         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
74981         value.
74982         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
74983         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
74984         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
74985         [defined UINTMAX_MAX]: New macros.
74986
74987 2003-10-14  Bruno Haible  <bruno@clisp.org>
74988
74989         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
74990
74991 2003-10-14  Bruno Haible  <bruno@clisp.org>
74992
74993         * m4/sig_atomic_t: New file, from GNU gettext.
74994         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
74995
74996 2003-10-14  Bruno Haible  <bruno@clisp.org>
74997
74998         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
74999         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
75000         Also use volatile where needed.
75001
75002 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75003
75004         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
75005         Change maintainer from Bruno Haible to 'all'.
75006
75007 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75008
75009         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
75010
75011 2003-10-12  Paul Eggert  <eggert@twinsun.com>
75012
75013         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
75014         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
75015         and define in terms of the other primitives.
75016         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
75017         (SIZE_MAX): Define if not already defined.
75018         (array_size_overflow): New function.
75019         (xalloc_die): Abort instead of exiting if 'error' returns.
75020         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
75021         (xmalloc, xrealloc): Use them.
75022         (xcalloc): Check for address arithmetic overflow.
75023         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
75024         a bit faster than strcpy.
75025
75026 2003-10-10  Simon Josefsson  <jas@extundo.com>
75027
75028         * modules/argp (Depends-on): Add restrict and strcase.
75029
75030 2003-10-10  Simon Josefsson  <jas@extundo.com>
75031
75032         * m4/argp.m4: Add AC_C_INLINE.
75033
75034 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75035
75036         Merge getpass from libc, plus a few fixes.
75037
75038         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
75039         Include <stdbool.h>.
75040         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
75041         __fsetlocking to empty.
75042         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
75043         do include <bits/libc-lock.h>.
75044         Do not include <fcntl.h>; not needed.
75045         [_LIBC]: Include <wchar.h>.
75046         (NOTCANCEL_MODE): New macro.
75047         (flockfile, funlockfile) [_LIBC]: New macros.
75048         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
75049         [!_LIBC]: New macros.
75050         (call_fclose): New function.
75051         (getpass): Use it.  Save tty stream separately; this simplifies the
75052         code and makes it more reliable if stdin happens to equal stdout.
75053         Invoke __fsetlocking on tty.
75054         Handle thread cancellation if needed.
75055         Namespace cleanup (use __tcgetattr, __getline).
75056         Use bool for Booleans.
75057         [USE_IN_LIBIO]: Handle wide streams.
75058         [!_LIBC]: Unconditionally do the fseek, since we don't know what
75059         stream might go where.
75060
75061         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
75062         doesn't have to include <stdio.h> before us.
75063         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
75064         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
75065         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
75066         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
75067         if not declared, so that we can use getpass.c code from libc without
75068         rewriting it.
75069         (flockfile, ftrylockfile, funlockfile): New macros.
75070
75071 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75072
75073         * modules/getpass: Depend on stdbool.
75074
75075 2003-10-08  Paul Eggert  <eggert@twinsun.com>
75076
75077         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
75078
75079 2003-10-07  Karl Berry  <karl@gnu.org>
75080
75081         * config/config.{guess,sub}: update from config.
75082
75083 2003-10-06  Jim Meyering  <jim@meyering.net>
75084             Bruno Haible  <bruno@clisp.org>
75085
75086         This lets translators provide better translations for the
75087         "Written by ..." part of --version output.
75088         * lib/version-etc.h: Include stdarg.h.
75089         (version_etc_copyright): Declare as readonly.
75090         (version_etc): Make this function variadic with a NULL-terminated list
75091         of author name strings.
75092         (version_etc_va): New declaration.
75093         * lib/version-etc.c: Include stdarg.h, stdlib.h.
75094         (version_etc_copyright): Declare as readonly.
75095         (version_etc_va): New function. Provide a different translatable string
75096         for each possible number of authors < 10. Abbreviate when there are 10
75097         authors or more.
75098         (version_etc): Make this function variadic. Call version_etc_va.
75099         Suggestion from Gary V. Vaughan.
75100
75101         * lib/long-options.h (parse_long_options): Change prototype: the
75102         authors string is moved to the end and becomes variadic.
75103         * lib/long-options.c: Include stdarg.h.
75104         (parse_long_options): Make this function variadic, too.
75105         Call version_etc_va, not version_etc.
75106
75107 2003-10-06  Bruno Haible  <bruno@clisp.org>
75108
75109         * modules/version-etc-2: Remove file.
75110         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
75111
75112 2003-10-06  Bruno Haible  <bruno@clisp.org>
75113
75114         * modules/fatal-signal: New file.
75115         * MODULES.html.sh (func_all_modules): Add fatal-signal.
75116
75117 2003-10-06  Bruno Haible  <bruno@clisp.org>
75118
75119         * m4/fatal-signal.m4: New file.
75120         * m4/signalblocking.m4: New file, from GNU gettext.
75121
75122 2003-10-06  Bruno Haible  <bruno@clisp.org>
75123
75124         * lib/version-etc-2.h: Remove file.
75125         * lib/version-etc-2.c: Remove file.
75126
75127 2003-10-06  Bruno Haible  <bruno@clisp.org>
75128
75129         * lib/fatal-signal.h: New file, from GNU gettext.
75130         * lib/fatal-signal.c: New file, from GNU gettext.
75131
75132 2003-10-05  Paul Eggert  <eggert@twinsun.com>
75133
75134         * README: Rework advice for preventing empty .o files.
75135         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
75136         not <sys/types.h>.
75137
75138 2003-10-04  Karl Berry  <karl@gnu.org>
75139
75140         * lib/argp*: update from libc.
75141
75142 2003-10-04  Karl Berry  <karl@gnu.org>
75143
75144         * config/config.{guess,sub}: update from config.
75145
75146 2003-10-02  Bruno Haible  <bruno@clisp.org>
75147
75148         * modules/lchown (Include): Add lchown.h.
75149         * modules/time_r (Include): Use "..." syntax.
75150         * modules/xgetdomainname (Include): Add xgetdomainname.h.
75151
75152 2003-10-01  Simon Josefsson  <jas@extundo.com>
75153
75154         * MODULES.html.sh (func_all_modules): Move gethostname from section
75155         'based on' to section 'lacking' POSIX:2001.
75156
75157 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
75158
75159         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
75160         to output mode on the same stream.
75161
75162 2003-09-29  Paul Eggert  <eggert@twinsun.com>
75163
75164         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
75165         Fix arg typo in previous patch.
75166
75167 2003-09-28  Jim Meyering  <jim@meyering.net>
75168
75169         * lib/error.c: Correct cpp indentation.
75170
75171 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75172
75173         * modules/free: New file.
75174
75175 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75176
75177         * m4/free.m4: New file.
75178
75179 2003-09-27  Paul Eggert  <eggert@twinsun.com>
75180
75181         * lib/minmax.h (MIN, MAX)
75182         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
75183         Omit the special code that used __typeof__, since we worry that
75184         it could be more trouble than it's worth.  See:
75185         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
75186         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
75187
75188         * lib/free.c: New file.
75189
75190 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
75191
75192         Trivial fixes to Makefile.am parts of module listings.
75193         * modules/strstr: Append strstr.h to lib_SOURCES.
75194         * modules/strcase: Likewise, for strcase.h.
75195
75196 2003-09-27  Karl Berry  <karl@gnu.org>
75197
75198         * config/mkinstalldirs: update from automake.
75199
75200 2003-09-26  Paul Eggert  <eggert@twinsun.com>
75201
75202         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
75203         (error_tail): Do not loop, reallocating temporary buffer, since
75204         the output cannot contain more wide characters than the input
75205         contains bytes, the size must be big enough already.  This avoids
75206         one potential size overflow calculation.  Check for size overflow
75207         when calculating temporary buffer size.  Free temporary buffer
75208         when done, if it was allocated with malloc; this plugs a memory
75209         leak.  Remove casts from void * to pointers, that are no longer
75210         needed now that we're assuming C89 or better.
75211
75212         Merge error changes from glibc.
75213
75214         * lib/error.c, error.h: Update copyright notice header to match glibc.
75215         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
75216         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
75217         Disable cancellation while printing error.
75218         * lib/error.h: Prepend __ to parameter names.
75219
75220 2003-09-26  Jim Meyering  <jim@meyering.net>
75221
75222         * lib/error.c (error_tail): Move some declarations
75223         into inner scope where the local variables are used.
75224
75225 2003-09-26  Bruno Haible  <bruno@clisp.org>
75226
75227         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
75228         stpncpy().
75229         Don't define stpncpy through config.h; it's now done through stpncpy.h.
75230
75231 2003-09-26  Bruno Haible  <bruno@clisp.org>
75232
75233         * lib/stpncpy.h (gnu_stpncpy): New declaration.
75234         (stpncpy): Define as alias for gnu_stpncpy.
75235         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
75236
75237 2003-09-25  Simon Josefsson  <jas@extundo.com>
75238
75239         * lib/xgetdomainname.h: New file.
75240         * lib/xgetdomainname.c: New file.
75241
75242 2003-09-25  Simon Josefsson  <jas@extundo.com>
75243             Bruno Haible  <bruno@clisp.org>
75244
75245         * modules/getdomainname: New file.
75246         * modules/xgetdomainname: New file.
75247         * MODULES.html.sh (func_all_modules): Add getdomainname,
75248         xgetdomainname.
75249
75250 2003-09-25  Simon Josefsson  <jas@extundo.com>
75251             Bruno Haible  <bruno@clisp.org>
75252
75253         * m4/getdomainname.m4: New file.
75254
75255 2003-09-25  Simon Josefsson  <jas@extundo.com>
75256             Bruno Haible  <bruno@clisp.org>
75257
75258         * lib/getdomainname.h: New file.
75259         * lib/getdomainname.c: New file.
75260
75261 2003-09-25  Karl Berry  <karl@gnu.org>
75262
75263         * lib/argp-fmtstream.c, argp-help.c: update from libc.
75264
75265 2003-09-25  Karl Berry  <karl@gnu.org>
75266
75267         * config/install-sh: update from automake.
75268
75269 2003-09-25  Bruno Haible  <bruno@clisp.org>
75270
75271         * modules/version-etc-2: New file, from modules/version-etc with
75272         modifications.
75273         * MODULES.html.sh (func_all_modules): Add version-etc-2.
75274
75275 2003-09-25  Bruno Haible  <bruno@clisp.org>
75276
75277         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
75278         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
75279
75280 2003-09-24  Simon Josefsson  <jas@extundo.com>
75281
75282         * modules/xgethostname: Add xgethostname.h.
75283
75284 2003-09-24  Paul Eggert  <eggert@twinsun.com>
75285
75286         * lib/linebuffer.c (freebuffer): Don't free the argument, just
75287         the buffer associated with the argument.  Bug reported by
75288         Simon Josefsson.
75289
75290 2003-09-24  Paul Eggert  <eggert@twinsun.com>
75291
75292         * README: Document assumptions that 'int' is at least 32 bits
75293         wide, that integer arithmetic is 2's complement without overflow,
75294         that there are no holes in integer values, that adding sizes of
75295         two nonoverlapping objects can't overflow, and that all-bits-zero
75296         yields scalar zero.  Fix spelling and capitalization typos.
75297
75298 2003-09-19  Karl Berry  <karl@gnu.org>
75299
75300         * lib/argp.h: update from libc.
75301
75302 2003-09-17  Paul Eggert  <eggert@twinsun.com>
75303
75304         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
75305         to avoid spurious warnings like "AC_RUN_IFELSE was called before
75306         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
75307
75308 2003-09-17  Paul Eggert  <eggert@twinsun.com>
75309
75310         * gnulib-tool: Use "test -h", not "test -L", for portability
75311         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
75312         (tags_regexp): Remove, since \| doesn't conform to POSIX.
75313         (sed_extract_prog): Issue s commands one-by-one, rather than
75314         using \| in one s command.
75315
75316 2003-09-16  Paul Eggert  <eggert@twinsun.com>
75317
75318         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
75319         input error, instead of returning NULL the next time we are called
75320         (and therefore losing track of errno).
75321
75322 2003-09-16  Bruno Haible  <bruno@clisp.org>
75323
75324         * gnulib-tool (func_create_testdir): Warn about duplicated
75325         dependencies.
75326
75327 2003-09-15  Paul Eggert  <eggert@twinsun.com>
75328
75329         * modules/argmatch, modules/fatal, modules/obstack,
75330         modules/xalloc, modules/xgethostname: Sort dependencies by
75331         importance, not alphabetically.
75332
75333 2003-09-15  Paul Eggert  <eggert@twinsun.com>
75334
75335         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
75336         fails, so that the caller gets the proper errno.
75337
75338         * lib/readutmp.c (read_utmp): Likewise.
75339         Check for fstat error.  Close stream and free storage
75340         when failing.
75341
75342 2003-09-14  Karl Berry  <karl@gnu.org>
75343
75344         * config/srclist.txt (strdup.c): disable for c89 changes.
75345
75346 2003-09-14  Jim Meyering  <jim@meyering.net>
75347
75348         * lib/getloadavg.c: Correct cpp indentation.
75349         * lib/strdup.c: Likewise.
75350         * lib/vasnprintf.c: Likewise.
75351
75352 2003-09-14  Bruno Haible  <bruno@clisp.org>
75353
75354         * modules/fwriteerror: New file.
75355         * MODULES.html.sh (func_all_modules): Add fwriteerror.
75356
75357 2003-09-14  Bruno Haible  <bruno@clisp.org>
75358
75359         * lib/fwriteerror.h: New file.
75360         * lib/fwriteerror.c: New file.
75361
75362 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75363
75364         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
75365         modules/xgethostname, modules/xalloc: Depend on exit.
75366
75367 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75368
75369         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
75370
75371         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
75372         and AC_MINIX, too, so that their extensions are available.
75373
75374         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
75375         This macro has been superseded by gl_BACKUPFILE.
75376
75377         More patches to assume C89 or better.
75378
75379         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
75380
75381         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
75382         unconditionally.
75383         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
75384         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
75385         Include <string.h>, <stdlib.h> unconditionally.
75386         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
75387         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
75388         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
75389         headers or for string.h.
75390         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
75391         or strtoul.
75392
75393         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
75394         headers.
75395         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
75396         * m4/userspec.m4 (gl_USERSPEC): Likewise.
75397         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
75398         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
75399         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75400         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
75401         memcpy, memset.
75402         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
75403         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
75404         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
75405         strtol.
75406         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
75407         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
75408         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
75409         strtoul.
75410
75411 2003-09-12  Paul Eggert  <eggert@twinsun.com>
75412
75413         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
75414         * lib/obstack.c [!defined _LIBC]: Likewise.
75415         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
75416         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
75417         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
75418
75419         More changes to assume C89 or better.
75420
75421         * lib/error.c (error_tail): Assume vprintf.
75422
75423         * lib/argmatch.c (getenv): Remove decl.
75424         * lib/progreloc.c (get_full_program_name): Define via prototype.
75425         * lib/setenv.c (clearenv): Likewise.
75426         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
75427         needed.
75428         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
75429         (malloc, memcpy): Remove decls.
75430         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
75431         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
75432         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
75433         (memcpy): Remove macro.
75434         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
75435         (__P): Remove.  All uses removed.
75436         (PTR): Remove.  All uses changed to void *.
75437         (CHAR_BIT, NULL): Remove.
75438         (spaces, zeros, memset_space, memset_zero)
75439         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
75440         Remove.
75441         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
75442         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
75443         Define with prototype.
75444         Remove now-unnecessary prototype decl.
75445         (extra_args_spec): Assume ANSI C.  All uses changed.
75446         (extra_args_spec_iso): Remove.
75447         (my_strftime, emacs_strftimeu): Define via prototype.
75448         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
75449         unconditionally.
75450         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
75451         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
75452         (strtoul, strtol): Remove decls.
75453         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
75454         LONG_MAX): Remove.
75455         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
75456         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
75457         (LOCALE_PARAM_PROTO): New macro.
75458         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
75459         (INTERNAL (strtol), strtol): Define with a prototype.
75460         (PARAMS): Remove.  All uses removed.
75461         * lib/tempname.c: Include <string.h> unconditionally.
75462         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
75463         * lib/xgethostname.c (main): Define with a prototype.
75464         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
75465         Include <stdlib.h> unconditionally.
75466         (calloc, malloc, realloc, free): Remove decls.
75467         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
75468         Include <stdlib.h> unconditionally.  Sort include file names.
75469         (strtod): Remove.
75470         (xstrtod): Define with a prototype.
75471         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
75472         (strtol, strtoul): Remove decls.
75473
75474 2003-09-11  Paul Eggert  <eggert@twinsun.com>
75475
75476         More patches to assume C89 or better.
75477         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
75478         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
75479         string.h, memchr, STDC_HEADERS.
75480
75481 2003-09-11  Paul Eggert  <eggert@twinsun.com>
75482
75483         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
75484         Include <stdlib.h>, <string.h> unconditionally.
75485         Remove now-unnecessary cast to char *.
75486         * lib/strnlen.c: Include <string.h> unconditionally.
75487         * lib/yesno.c (yesno): Define with a prototype.
75488
75489 2003-09-11  Bruno Haible  <bruno@clisp.org>
75490
75491         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
75492
75493 2003-09-10  Jim Meyering  <jim@meyering.net>
75494
75495         * lib/error.c: Correct indentation of cpp directives.
75496
75497 2003-09-10  Bruno Haible  <bruno@clisp.org>
75498
75499         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
75500         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
75501         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
75502         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
75503         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
75504         <stdlib.h> and <string.h> checks.
75505         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
75506         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
75507
75508 2003-09-10  Bruno Haible  <bruno@clisp.org>
75509
75510         * lib/strcspn.c: Include <string.h> unconditionally.
75511         * lib/strpbrk.c: Include <string.h> unconditionally.
75512         * lib/strstr.c: Include <string.h> unconditionally.
75513         * lib/unicodeio.c: Include <string.h> unconditionally.
75514         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
75515         * lib/unsetenv.c: Likewise.
75516         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
75517         * lib/yesno.c: Include <stdlib.h> unconditionally.
75518         (rpmatch): Add prototype.
75519
75520 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75521
75522         More patches to assume C89 or better.
75523         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
75524         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
75525         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
75526         or for string.h.
75527         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
75528         stdlib.h.
75529         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
75530         C headers.
75531         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
75532         string.h.
75533         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
75534         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
75535         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
75536         or for string.h.
75537         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
75538         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
75539         C headers.
75540         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
75541         memcpy.
75542         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
75543         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
75544         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
75545         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
75546         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
75547         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
75548         string.h, free.
75549         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
75550         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
75551         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
75552         C headers, or for string.h.
75553         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
75554         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
75555         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
75556         headers, memory.h, stdlib.h, string.h, strings.h.
75557         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
75558         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
75559         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
75560         strchr.
75561         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
75562         headers, memory.h, string.h.
75563         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
75564         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
75565         free.
75566         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
75567         headers.
75568         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
75569         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
75570         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
75571         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
75572         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
75573
75574 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75575
75576         More K&R removal.
75577
75578         * lib/acosl.c (main): Use a prototype.
75579         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
75580         tanl.c: Likewise.
75581
75582         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
75583
75584         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
75585         (getopt, etopt_long, getopt_long_only, _getopt_internal)
75586         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
75587         with a prototype.
75588         * lib/getopt.c (const): Remove macro.
75589         Include <string.h> unconditionally.
75590         (my_index): Remove; all uses changed to strchr.
75591         (strlen): Remove decl.
75592         (exchange): Remove forward decl; no longer needed.
75593         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
75594         Define with prototype.
75595         * lib/getopt1.c (const): Remove macro.
75596         (getopt_long, getopt_long_only, main): Define with prototype.
75597
75598         * lib/getugroups.c: Include <string.h> unconditionally.
75599
75600         * lib/getusershell.c: Include <stdlib.h> unconditionally.
75601         (getusershell, setusershell, endusershell, readname, main):
75602         Define with prototypes.
75603
75604         * lib/group-member.c: Include group-member.h first.
75605         Include <stdlib.h> unconditionally.
75606
75607         * lib/hard-locale.c: Include hard-locale.h first.
75608         Include <stdlib.h>, <string.h> unconditionally.
75609
75610         * lib/hash.c (free, malloc): Remove decls.
75611         Include <stdlib.h> unconditionally.
75612
75613         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
75614         (getenv): Do not declare.
75615
75616         * lib/idcache.c: Include <string.h> unconditionally.
75617
75618         * lib/long-options.c: Include long-options.h first, to test interface.
75619         Include <stdlib.h> unconditionally.
75620
75621         * lib/makepath.c: Include makepath.h first, to test interface.
75622         Include <stdlib.h> and <string.h> unconditionally.
75623
75624         * lib/linebuffer.c: Include <stdlib.h>.
75625         (free): Remove decl.
75626
75627         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
75628         stddef.h. rpl_malloc returns void *, not char *.
75629         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
75630         prototype.
75631
75632         * lib/md5.h: Include <limits.h> unconditionally.
75633         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
75634         (__P): Remove; all uses removed.
75635         * lib/md5.c: Include "md5.h" first.
75636         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
75637         md5_buffer, md5_process_bytes, md5_process_block):
75638         Define with prototypes.
75639         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
75640         * lib/sha.c: Include "sha.h" first.
75641         Include <stdlib.h>, <string.h> unconditionally.
75642
75643         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
75644         * lib/memcmp.c (__ptr_t): Likewise.
75645         * lib/memrchr.c (__ptr_t): Likewise.
75646         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
75647         Include <string.h> unconditionally.
75648         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
75649         * lib/memchr.c: Include <stdlib.h> unconditionally.
75650         * lib/memchr.c (LONG_MAX): Remove.
75651         * lib/memrchr.c (LONG_MAX): Likewise.
75652         * lib/memchr.c (__memchr): Define via a prototype.
75653         * lib/memrchr.c (__memrchr): Likewise.
75654         * lib/memcmp.c (__P): Remove, and remove all uses.
75655         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
75656         Remove forward decls; no longer needed.
75657         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
75658         Use types required by C89 in prototype.
75659
75660         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
75661         * lib/savedir.c: Likewise.
75662         * lib/mkdir.c (free): Remove decl.
75663         * lib/rmdir.c (rmdir): Define with a prototype.
75664         * lib/savedir.c: Include savedir.h first, to test interface.
75665
75666         * lib/mktime.c (STDC_HEADERS): Remove.
75667         Include <stdlib.h>, <string.h> unconditionally.
75668
75669         * lib/modechange.c: Include <stdlib.h> unconditionally.
75670         (malloc): Remove decl.
75671
75672         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
75673         (free): Remove decl.
75674
75675         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
75676         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
75677         (This type really should be intptr_t, but that's a C99ism.)
75678         (_obstack_memcpy): Remove: all uses changed to memcpy.
75679         Include <string.h> unconditionally.
75680         (struct obstack): Assume __STDC__ for types of members
75681         chunkfun, freefun, extra_arg.
75682         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
75683         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
75684         obstack_begin, obstack_specify_allocation,
75685         obstack_specify_allocation_with_arg, obstack_chunkfun,
75686         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
75687         Remove unprototyped decls and the macros that use them.
75688         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
75689         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
75690         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
75691         (defined __STDC__ && __STDC__)]:
75692         Remove nonprototyped code.
75693         Include <stdlib.h> unconditionally.
75694         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
75695         _obstack_allocated_p, _obstack_free, obstack_free,
75696         _obstack_memory_used, print_and_abort):
75697         Define using prototypes.
75698         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
75699         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
75700         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
75701         obstack_next_free, obstack_object_size, obstack_room) [0]:
75702         Remove unused, unprototyped code.
75703
75704         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
75705
75706         * lib/physmem.c (physmem_total, physmem_available, main): Define
75707         with prototypes.
75708
75709         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
75710         (main): Define with a prototype.
75711
75712         * lib/posixver.c (getenv): Remove decl.
75713
75714         * lib/putenv.c (malloc): Returns void *, not char *.
75715         Include <string.h> unconditionally.
75716         (strchr, memcpy, NULL): Do not define.
75717
75718         * lib/readtokens.c: Include readtokens.h first, to test interface.
75719         Include <stdlib.h>, <string.h> unconditionally.
75720         (init_tokenbuffer): Define with a prototype.
75721
75722         * lib/regex.c (PARAMS): Remove.  All uses removed.
75723         All uses of _RE_ARGS removed, too.
75724         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75725         unconditionally.
75726         (bzero): Assume memset exists.
75727         (memcmp, memcpy, NULL): Remove.
75728         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
75729         char, or assignments to local vars of type signed char.
75730         (init_syntax_once, PREFIX(extract_number_and_incr),
75731         PREFIX(print_partial_compiled_pattern),
75732         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
75733         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
75734         PREFIX(regex_grow_registers), PREFIX(regex_compile),
75735         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
75736         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
75737         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
75738         wcs_compile_range, byte_compile_range, truncate_wchar,
75739         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
75740         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
75741         count_mbs_length, wcs_re_match_2_internal,
75742         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
75743         PREFIX(alt_match_null_string_p),
75744         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
75745         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
75746         regfree, PREFIX(extract_number)): Define with prototype.  Remove
75747         now-unnecessary declaration, if any.
75748         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
75749         regcomp, regexec):
75750         Remove now-unnecessary casts among pointer types.
75751         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
75752
75753         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
75754         (free): Remove decl.
75755
75756         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
75757
75758         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
75759         (free): Remove decl.
75760
75761         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
75762         * lib/xgetcwd.c: Likewise.
75763
75764         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
75765         (free): Remove decl.
75766
75767         * lib/strchrnul.c (strchrnul): Define with a prototype.
75768         Fix bug: c_in was not converted to char before searching.
75769
75770         The following changes are not K&R related:
75771
75772         * lib/group-member.h: Include <sys/types.h>, so that this file is
75773         self-contained.
75774         * lib/makepath.h: Likewise.
75775
75776         * lib/getusershell.c (readname, default_index, line_size, readname):
75777         Use size_t, not int, for sizes.
75778         (readname): If the size overflows, report an error instead of
75779         looping forever.
75780
75781 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75782
75783         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
75784         libc.
75785
75786 2003-09-09  Paul Eggert  <eggert@twinsun.com>
75787
75788         * README: New section: portability guidelines.
75789
75790 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
75791
75792         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
75793         C89 spec.
75794
75795 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
75796
75797         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
75798
75799 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75800
75801         Assume C89 or better; remove K&R cruft.
75802         A few of these changes were first proposed by Derek Robert Price
75803         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
75804
75805         * lib/addext.c: Include <string.h> unconditionally.
75806         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
75807         Don't declare getenv or malloc.
75808
75809         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
75810         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
75811         (NULL): Remove.
75812         (find_stack_direction, alloca): Use prototypes.
75813
75814         * lib/atexit.c (atexit): Define using a prototype.
75815
75816         * lib/basename.c, dirname.c, stripslash.c:
75817         Include <string.h> unconditionally.
75818
75819         * lib/bcopy.c: Include <stddef.h>.
75820         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
75821
75822         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
75823
75824         * lib/error.h (error, error_at_line, error_print_progname)
75825         [! (defined (__STDC__) && __STDC__)]: Remove decls.
75826         * lib/error.c: Include error.h first, to check interface.
75827         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
75828         (VA_START): Remove; all uses changeed to va_start.
75829         (exit, strerror): Remove decls.
75830         (error_print_progname): Prototype uncondionally.
75831         Don't include <errno.h>; no longer needed.
75832         (private_strerror): Remove.
75833         (error_tail): Always define.
75834         (error, error_at_line): Assume C89 or better; always use prototypes.
75835         * lib/fatal.c: Include "fatal.h" first, to test interface.
75836         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
75837         (VA_START): Remove; all uses changed to va_start.
75838         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
75839         this case.
75840         (exit): Remove decl.
75841         (fatal): Prototype unconditionally.  Assume va_start works.
75842         Abort at end, to pacify gcc.
75843
75844         * lib/euidaccess.c (main): Define with a prototype.
75845
75846         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
75847
75848         * lib/exitfail.c: Include <stdlib.h> unconditionally.
75849
75850         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
75851         prototypes.
75852         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
75853         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
75854         (getenv): Remove decl.
75855         (fnmatch): Define using a prototype.
75856         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
75857         (FCT): Define using a prototype.
75858
75859         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
75860
75861         * lib/gethostname.c: Include <stddef.h>.
75862         (gethostname): Define with prototype.  Length is size_t, not int.
75863
75864 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75865
75866         Assume C89 or better; remove K&R cruft.
75867         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
75868         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
75869         string.h, getenv, malloc.
75870         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
75871         headers.
75872         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
75873         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
75874         do not check for strerror.
75875         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
75876         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
75877         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
75878         do not check for doprnt or vprintf.
75879         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
75880         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
75881
75882 2003-09-08  Paul Eggert  <eggert@twinsun.com>
75883
75884         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
75885         getversion.c should have been removed then, but was accidentally
75886         preserved.
75887
75888         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
75889         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
75890
75891 2003-09-08  Karl Berry  <karl@gnu.org>
75892
75893         * config/config.sub, config.guess, srclistvars.sh: update from savannah
75894                 config, forget about prep.
75895
75896         * config/depcomp, missing: update from automake.
75897
75898 2003-09-07  Paul Eggert  <eggert@twinsun.com>
75899
75900         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
75901         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
75902
75903 2003-09-07  Paul Eggert  <eggert@twinsun.com>
75904
75905         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
75906         copy_tm_result.  Bug reported by Simon Josefsson in
75907         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
75908
75909 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75910
75911         * m4/time_r.m4: New file.
75912         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
75913         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
75914         is. Check for timegm declaration.
75915         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
75916         Do not check for gmtime_r.
75917         Replace mktime if __mktime_internal does not exist and if mktime
75918         hasn't been replaced already.
75919
75920 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75921
75922         * lib/time_r.c, lib/time_r.h: New files.
75923
75924         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
75925         __localtime_r.
75926         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
75927         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
75928
75929         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
75930         __gmtime_r.
75931         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
75932         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
75933         Include <time_r.h>.
75934
75935         * lib/timegm.c: Switch to glibc implementation, with the following
75936         changes:
75937         [defined HAVE_CONFIG_H]: Include <config.h>.
75938         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
75939         (__mktime_internal) [!defined _LIBC]: New decl.
75940         (__gmtime_r) [!defined _LIBC]: New macro and function.
75941         (timegm): Use a prototype, since gnulib assumes C89.
75942         Do not bother declaring tmp to be const, as it's not really usefu.
75943         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
75944         (timegm): Declare only if HAVE_DECL_TIMEGM.
75945
75946 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75947
75948         * MODULES.html.sh (func_all_modules): Add time_r.
75949         * modules/time_r: New file.
75950         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
75951         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
75952
75953 2003-09-03  Paul Eggert  <eggert@twinsun.com>
75954
75955         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
75956         Bug reported by Lute Kamstra in
75957         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
75958
75959         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
75960         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
75961         course with correspondingly smaller numbers for tomorrow and
75962         yesterday.  From Tadayoshi Funaba.  Originally installed into
75963         sh-utils on 1999-08-07, but the patch got lost (I guess during the
75964         coreutils merge?).
75965
75966 2003-08-31  Simon Josefsson  <jas@extundo.com>
75967
75968         * modules/timegm: New file.
75969         * MODULES.html.sh (func_all_modules): Add timegm.
75970
75971 2003-08-31  Simon Josefsson  <jas@extundo.com>
75972
75973         * m4/timegm.m4: New file.
75974
75975 2003-08-31  Simon Josefsson  <jas@extundo.com>
75976
75977         * lib/timegm.h: New file.
75978         * lib/timegm.c: New file.  Based on
75979         wget-1.8.2/src/http.c:mktime_from_utc.
75980
75981 2003-08-31  Karl Berry  <karl@gnu.org>
75982
75983         * lib/argp.h: update from libc.
75984
75985 2003-08-28  Bruno Haible  <bruno@clisp.org>
75986
75987         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
75988         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
75989         followed by '#define fnmatch fnmatch_posix' gives an error.
75990
75991 2003-08-28  Bruno Haible  <bruno@clisp.org>
75992
75993         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
75994         warning on QNX, which defines O_BINARY to 000000.
75995
75996 2003-08-27  Jim Meyering  <jim@meyering.net>
75997
75998         * m4/mkstemp.m4: Require that the system mkstemp be able to create
75999         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
76000         would fail after 32.  Reported by Danny Levinson.  Details here:
76001         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
76002
76003 2003-08-24  Bruno Haible  <bruno@clisp.org>
76004
76005         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
76006         MSVC7 <stdio.h> is included later.
76007
76008 2003-08-22  Simon Josefsson  <jas@extundo.com>
76009
76010         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
76011
76012 2003-08-20  Karl Berry  <karl@gnu.org>
76013
76014         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
76015
76016 2003-08-20  Bruno Haible  <bruno@clisp.org>
76017
76018         * modules/progname: New file.
76019         * MODULES.html.sh (func_all_modules): Add progname.
76020
76021 2003-08-20  Bruno Haible  <bruno@clisp.org>
76022
76023         * lib/progname.h: New file, from GNU gettext.
76024         * lib/progname.c: New file, from GNU gettext.
76025         * lib/progreloc.c: New file, from GNU gettext.
76026
76027 2003-08-19  Jim Meyering  <jim@meyering.net>
76028
76029         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
76030         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
76031
76032 2003-08-19  Bruno Haible  <bruno@clisp.org>
76033
76034         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
76035         more.
76036
76037 2003-08-19  Bruno Haible  <bruno@clisp.org>
76038
76039         * lib/xstrdup.c: Assume <string.h> exists.
76040
76041 2003-08-18  Paul Eggert  <eggert@twinsun.com>
76042
76043         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
76044         in makefile rules.
76045
76046 2003-08-18  Jim Meyering  <jim@meyering.net>
76047
76048         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
76049         * m4/lib-ld.m4: Likewise.
76050
76051 2003-08-18  Jim Meyering  <jim@meyering.net>
76052
76053         * lib/setenv.h: Indent nested cpp directive.
76054         * lib/vasnprintf.c: Remove trailing blanks.
76055
76056 2003-08-17  Simon Josefsson  <jas@extundo.com>
76057
76058         * modules/xstrndup: New file.
76059         * MODULES.html.sh (func_all_modules): Add xstrndup.
76060
76061 2003-08-17  Simon Josefsson  <jas@extundo.com>
76062
76063         * modules/argp: Fix autoconf macro name. Add more dependencies.
76064
76065 2003-08-17  Simon Josefsson  <jas@extundo.com>
76066
76067         * m4/xstrndup.m4: New file.
76068
76069 2003-08-17  Simon Josefsson  <jas@extundo.com>
76070
76071         * m4/argp.m4: New file.
76072
76073 2003-08-17  Simon Josefsson  <jas@extundo.com>
76074             Bruno Haible  <bruno@clisp.org>
76075
76076         * lib/xstrndup.h: New file.
76077         * lib/xstrndup.c: New file.
76078
76079 2003-08-17  Bruno Haible  <bruno@clisp.org>
76080
76081         * modules/strndup (Files, Include): Add lib/strndup.h.
76082
76083 2003-08-17  Bruno Haible  <bruno@clisp.org>
76084
76085         * modules/euidaccess (Files): Add lib/euidaccess.h.
76086
76087 2003-08-17  Bruno Haible  <bruno@clisp.org>
76088
76089         * lib/strndup.h: New file.
76090
76091 2003-08-17  Bruno Haible  <bruno@clisp.org>
76092
76093         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
76094         like AC_GNU_SOURCE.
76095         * modules/extensions (configure.ac): Comment out the invocation of
76096         gl_USE_SYSTEM_EXTENSIONS.
76097
76098 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76099
76100         Merges from coreutils, etc.
76101         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
76102         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
76103         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
76104         fixing a typo.
76105         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
76106         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
76107
76108 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76109
76110         Document merge from coreutils.
76111         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
76112         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
76113         * modules/utime: Add m4/utimes-null.m4.
76114
76115 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76116
76117         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
76118         space, undoing this 2003-08-12 change:
76119         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76120
76121 2003-08-16  Paul Eggert  <eggert@twinsun.com>
76122
76123         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
76124         strtoul.c from libc, undoing this 2003-08-12 change:
76125         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
76126
76127 2003-08-16  Jim Meyering  <jim@meyering.net>
76128
76129         Merges from coreutils.
76130         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
76131         prefix.  Adjust cache variables similarly.  Create 500 rather than
76132         just 300 files, to exercise bug on Darwin6.5, too.
76133         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
76134         $missing_dir.
76135         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
76136         AM_SYS_POSIX_TERMIOS.
76137         Reported by mkc@mathdogs.com.
76138         Also change use of $am_cv_sys_posix_termios
76139         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
76140         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
76141         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
76142         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
76143         in /proc/mounts until it finds one with matching device number.  This
76144         is unnecessary when the FILE argument *is* a mount point.  No stat call
76145         is necessary in that case.  So, disable the statvfs-testing code on
76146         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
76147         as RedHat bug# 84846.
76148         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
76149         to 1MB, so as not to render systems with no stack size limit (e.g.,
76150         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
76151         Include <unistd.h>.  On some systems,
76152         it is required for the definition of _SC_PAGESIZE.
76153
76154 2003-08-16  Jim Meyering  <jim@meyering.net>
76155
76156         Merge from coreutils.
76157         * lib/xstrtoimax.c: #else #if -> #elif.
76158         * lib/xstrtoumax.c: Likewise.
76159
76160 2003-08-16  Jim Meyering  <jim@meyering.net>
76161
76162         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
76163         * m4/utimes.m4: Removed.
76164         * m4/utimes-null.m4: Renamed from utimes.m4.
76165
76166         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
76167         to 1MB, so as not to render systems with no stack size limit (e.g.,
76168         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
76169         Include <unistd.h>.  On some systems,
76170         it is required for the definition of _SC_PAGESIZE.
76171
76172 2003-08-16  Jim Meyering  <jim@meyering.net>
76173         and Paul Eggert  <eggert@cs.ucla.edu>
76174
76175         Merges from coreutils, etc.
76176
76177         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
76178         using the latest version from cvs.  This avoids problems with #line
76179         directives using a vendor (Sun) compiler.
76180         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
76181         Don't set GETGROUPS_LIB here; now it's
76182         done via getgroups.m4's wrapper function.
76183         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
76184         rather than just in sh-util/configure.in, so that the
76185         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
76186         same.
76187         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
76188         AC_FUNC_GETLOADAVG where to find getloadavg.c.
76189         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
76190         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
76191         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
76192         Remove code that is now done by the newly-required macros.
76193         Append $(EXEEXT) to DF_PROG.
76194         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
76195         Do not invoke or require the following here,
76196         since prereq.m4 or some gnulib .m4 now does this for us:
76197         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
76198         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
76199         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
76200         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
76201         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
76202         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
76203         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
76204         AC_FUNC_OBSTACK.
76205         Do not replace the following functions, as this is now the job
76206         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
76207         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
76208         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
76209         atexit getpass, strdup, getpagesize.
76210         Replace 'raise'.
76211         Do not check for the following functions, as this is now the job
76212         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
76213         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
76214         setregid.
76215         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
76216         Check for sys/sysctl.h.
76217         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
76218         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
76219         of checking for ssize_t ourselves.
76220
76221         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
76222         Require every macro that gnulib/modules/* suggests for us.
76223         (jm_PREREQ_ADDEXT): New macro.
76224         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
76225         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
76226
76227         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
76228         (gl_PHYSMEM): Use it.
76229         Also check for `table' function.
76230         Check for new headers and functions.
76231         Add check for sys/sysmp.h.
76232         With suggestions from Kaveh Ghazi.
76233         Ignore headers that are present but cannot be compiled.  This
76234         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
76235         C 5.4.
76236
76237 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76238
76239         Document merge from coreutils.
76240         * modules/userspec: Depend on posixver.
76241         * modules/strftime: Depend on tzset.
76242
76243 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76244
76245         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
76246         rather than tab, after '#' in shell-script copyright notices.
76247         Suggested by Bruno Haible.
76248
76249 2003-08-15  Paul Eggert  <eggert@twinsun.com>
76250
76251         * config/srclist-update: Use three spaces, rather than tab, after '#'
76252         in shell-script copyright notices.  Suggested by Bruno Haible.
76253         Remove unnecessary parenthesization in regular expression.
76254
76255 2003-08-15  Jim Meyering  <jim@meyering.net>
76256
76257         Merge from coreutils.
76258         * lib/xgethostname.c: Include <stdlib.h>.
76259         (xghostname): Don't exit for anything other than memory-related
76260         failure; just return NULL.
76261         * lib/userspec.c: Include "posixver.h".
76262         (parse_user_spec): Accept `.' as a separator only
76263         in pre-POSIX-200112 mode.
76264         * lib/strtoimax.c: Use #elif rather than #else #if.
76265         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
76266         Remove function, now that we can rely on a working tzset function.
76267         [!_LIBC]: Ensure that the required autoconf test has been run.
76268         [!defined _NL_CURRENT && HAVE_STRFTIME]:
76269         Use underlying_strftime for %r.
76270         * lib/sha.c: Merge in some clean-up and optimization changes from
76271         glibc.
76272         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
76273         Ensure that it is a multiple of 64.
76274         Rearrange loop exit tests so as to avoid performing an
76275         additional fread after encountering an error or EOF.
76276         * lib/realloc.c: Update copyright date.
76277
76278 2003-08-15  Jim Meyering  <jim@meyering.net>
76279         and Paul Eggert  <eggert@twinsun.com>
76280
76281         Merge from coreutils.
76282         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
76283         member but strut utmpx does not.  Needed for AIX 4.3.3.
76284         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
76285
76286 2003-08-15  Jim Meyering  <jim@meyering.net>
76287         and Paul Eggert  <eggert@cs.ucla.edu>
76288
76289         Merges from coreutils, etc.
76290         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
76291         Require gl_FUNC_TZSET_CLOBBER.
76292         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
76293         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
76294         members.
76295
76296 2003-08-14  Paul Eggert  <eggert@twinsun.com>
76297
76298         Help the merge from coreutils.
76299         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
76300         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
76301         * m4/tzset.m4: Use it too.
76302
76303 2003-08-14  Paul Eggert  <eggert@twinsun.com>
76304
76305         * modules/tzset: New file.
76306
76307 2003-08-14  Jim Meyering  <jim@meyering.net>
76308
76309         Merges from coreutils.
76310         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
76311         variable names, rather than @FNMATCH_H@.
76312         * modules/alloca: Likewise for $(ALLOCA_H).
76313
76314         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
76315         the three copies of the literal target, `fnmatch.h'.
76316         * modules/alloca (alloca.h): Likewise.
76317
76318 2003-08-14  Jim Meyering  <jim@meyering.net>
76319
76320         Merge from coreutils.
76321         * m4/tzset.m4: New file.
76322         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
76323         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
76324         otherwise, AIX 5.1 systems would end up using the latter.
76325         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
76326         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
76327         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
76328         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
76329
76330 2003-08-14  Jim Meyering  <jim@meyering.net>
76331
76332         Merge from coreutils.
76333         * lib/obstack.h: Whitespace changes.
76334         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
76335         and xcalloc return values.
76336         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
76337         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
76338         hang on OSF/1 5.1 for DIR on both local and remote file systems.
76339         Reported by (and fix confirmed by) Nelson H. F. Beebe.
76340         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
76341         error from mntctl.
76342         Use mntctl's return value to drive the entry-processing loop, since
76343         we can't rely on the value of the vmt_length member in the last
76344         entry.  On some systems doing so could result in exhausting
76345         virtual memory.  Based in part on a patch from Mike Jetzer.
76346
76347 2003-08-14  Jim Meyering  <jim@meyering.net>
76348         and Paul Eggert  <eggert@twinsun.com>
76349
76350         Merges from coreutils, plus other fixes.
76351         * lib/physmem.c: Merge in portability changes from gcc/libiberty
76352         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
76353         for credits and details.  Thanks to Kaveh Ghazi for helping
76354         to keep these files in sync.
76355         (ARRAY_SIZE): Define it.
76356         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
76357         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
76358         (memcasecmp): Don't assume size_t fits in unsigned int.
76359         Remove casts and duplicate code.
76360         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
76361         (memcpy): Remove definition.
76362         Merge in some clean-up and optimization changes from glibc.
76363         [BLOCKSIZE]: Move definition to top of file.
76364         Ensure that it is a multiple of 64.
76365         Rearrange loop exit tests so as to avoid performing an
76366         additional fread after encountering an error or EOF.
76367         * lib/md5.h (md5_uintptr): Define.
76368         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
76369         return to the initial working directory.  Preserve errno
76370         for caller.
76371         * lib/idcache.c: Include "xalloc.h".
76372         (xmalloc, xrealloc): Remove decls.
76373         (getuser): Remove casts no longer required in C89.
76374         * lib/human.c: Include stdio.h, for sprintf.
76375         * lib/group-member.c: Include "xalloc.h".
76376         (xmalloc, xrealloc): Remove decls.
76377         (get_group_info): Remove casts no longer required in C89.
76378         * lib/getusershell.c (readname): Remove casts no longer required in
76379         C89.
76380         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
76381         * lib/getline.c: Whitespace fix, from coreutils.
76382
76383 2003-08-13  Paul Eggert  <eggert@twinsun.com>
76384
76385         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
76386         Check for isascii.
76387
76388         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
76389         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
76390         Undo previous (whitespace-only) change.
76391
76392 2003-08-13  Paul Eggert  <eggert@twinsun.com>
76393
76394         * lib/exclude.c: Include <ctype.h>
76395         (IN_CTYPE_DOMAIN): New macro.
76396         (is_space): New fn.
76397         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
76398         and empty lines.
76399
76400         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
76401         Undo previous (whitespace-only) change.
76402
76403 2003-08-13  Paul Eggert  <eggert@twinsun.com>
76404
76405         * config/srclist-update: Change update back to the old behavior,
76406         leaving whitespace alone.  Use one 'sed' command rather than a
76407         pipeline.
76408         (fixlicense): Now a variable, not a function.
76409         (remove_trailing_blanks): Remove.
76410         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
76411         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
76412         Undo previous (whitespace-only) change.
76413
76414 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76415
76416         Merge from coreutils.
76417         * modules/euidaccess: Add lib_SOURCES, include for new
76418         file euidaccess.h
76419
76420 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76421
76422         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
76423         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
76424         Normalize leading white space and remove trailing white space.
76425
76426         Merge from coreutils
76427         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
76428
76429         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
76430         0.12.1.  These files are now being upgraded automatically by
76431         ../config/srclist-update.
76432
76433 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76434
76435         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
76436         Normalize leading white space and remove trailing white space.
76437         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
76438         notice, as per ../config/srclist-update.
76439
76440         Merge from coreutils.
76441         * lib/euidaccess.h: New file.
76442         * lib/euidaccess.c: Include it.
76443         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
76444         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
76445         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
76446
76447 2003-08-12  Paul Eggert  <eggert@twinsun.com>
76448
76449         * config/srclist-update: Add copyright notice.
76450         (remove_id_lines, remove_trailing_blanks): New constants.
76451         (fixfile): Use them to normalize spacing a bit in copied files.
76452         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
76453         Normalize leading white space and remove trailing white space.
76454
76455         * config/texinfo.tex: Sync with texinfo.
76456
76457         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
76458         strtoul.c from libc, to merge coreutils whitespace changes.
76459
76460         * config/srclist.txt: Get the following m4 files from gettext:
76461         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
76462         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
76463         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
76464         wint_t.m4.
76465
76466 2003-08-12  Karl Berry  <karl@gnu.org>
76467
76468         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
76469         been made.
76470
76471 2003-08-11  Paul Eggert  <eggert@twinsun.com>
76472
76473         * modules/gnu-source, m4/gnu-source.m4:
76474         Remove; we're assuming Autoconf 2.54 or later now.
76475         Suggested by Bruno Haible.
76476         * MODULES.html.sh (func_all_modules): Remove gnu-source.
76477
76478 2003-08-11  Bruno Haible  <bruno@clisp.org>
76479
76480         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
76481
76482 2003-08-11  Bruno Haible  <bruno@clisp.org>
76483
76484         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
76485         (vasnprintf): Use it instead of wcslen.
76486
76487 2003-08-11  Bruno Haible  <bruno@clisp.org>
76488
76489         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
76490         value to ensure that _Bool promotes to int. Use #define for _Bool when
76491         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
76492
76493 2003-08-10  Karl Berry  <karl@gnu.org>
76494
76495         * lib/regex.h: update from libc (whitespace fix).
76496
76497 2003-08-09  Paul Eggert  <eggert@twinsun.com>
76498
76499         Merge some files from coreutils.  These changes were
76500         originally made by Jim Meyering.
76501         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
76502         many older Unixes require this.
76503         * lib/alloca.c (alloca): Remove cast to argument of free;
76504         no longer needed in C89.
76505         * lib/alloca_.h, regex.h: Fix white space to match
76506         what GNU indent does.
76507
76508 2003-08-09  Paul Eggert  <eggert@twinsun.com>
76509
76510         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
76511         apparently Emacs's Unicode mode got confused before my 2003-08-05
76512         checkin.
76513
76514 2003-08-08  Paul Eggert  <eggert@twinsun.com>
76515
76516         * m4/extensions.m4: New file.
76517         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
76518         Require gl_USE_SYSTEM_EXTENSIONS.
76519         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
76520         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
76521
76522 2003-08-08  Paul Eggert  <eggert@twinsun.com>
76523
76524         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
76525         * modules/extensions, modules/gnu-source: New files.
76526         * modules/timespec, modules/unlocked-io: Depend on extensions.
76527
76528 2003-08-07  Paul Eggert  <eggert@twinsun.com>
76529
76530         * modules/restrict: New file.
76531         * MODULES.html.sh (func_all_modules): Add restrict.
76532         * modules/regex: Depend on restrict.
76533
76534 2003-08-07  Paul Eggert  <eggert@twinsun.com>
76535
76536         * m4/restrict.m4: New file.
76537         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
76538
76539 2003-08-07  Bruno Haible  <bruno@clisp.org>
76540
76541         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
76542         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
76543
76544 2003-08-07  Bruno Haible  <bruno@clisp.org>
76545
76546         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
76547         makes the module 'getndelim2' compatible with the module 'getline'.
76548
76549 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76550
76551         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
76552         byte with "\201" to avoid glitches when editing that source file
76553         with multi-gnome-terminal.
76554
76555 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76556
76557         * lib/bumpalloc.h: Remove.
76558
76559 2003-08-05  Paul Eggert  <eggert@twinsun.com>
76560
76561         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
76562         * modules/bumpalloc: Remove.
76563
76564 2003-08-04  Paul Eggert  <eggert@twinsun.com>
76565
76566         * lib/getloadavg.c: Change copyright notice and spacing to conform to
76567         GNU coding style.
76568
76569         Merge from coreutils.
76570         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
76571         1. From glibc.
76572         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
76573         from Karl Berry, implemented by Jim Meyering.
76574         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
76575         from Dmitry V. Levin.
76576         Remove anachronistic cast of xrealloc.
76577         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
76578         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
76579         type. Otherwise, it wouldn't compile with at least /bin/cc on
76580         ymp-cray-unicos9.0.2.X.
76581         Combine two mostly-identical uses of alloca into one.
76582         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
76583
76584 2003-08-04  Dave Love  <d.love@dl.ac.uk>
76585
76586         [From Emacs.]
76587
76588         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
76589         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
76590         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
76591         obsolete NLIST_NAME_UNION.
76592         [__GNU__]: Undef BSD and FSCALE.
76593         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
76594
76595 2003-08-03  Paul Eggert  <eggert@twinsun.com>
76596
76597         * lib/stdbool_.h (_Bool): Make it signed char, instead of
76598         an enum type, so that it's guaranteed to promote to int.  See:
76599         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
76600
76601 2003-08-03  Karl Berry  <karl@gnu.org>
76602
76603         * config/depcomp: update from automake.
76604
76605 2003-07-31  Paul Eggert  <eggert@twinsun.com>
76606
76607         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
76608         (strerror): Don't assume that a printable int fits in 14 bytes.
76609
76610 2003-07-31  Bruno Haible  <bruno@clisp.org>
76611
76612         * modules/getpass-gnu: New file.
76613         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
76614
76615 2003-07-31  Bruno Haible  <bruno@clisp.org>
76616
76617         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
76618
76619 2003-07-24  Karl Berry  <karl@gnu.org>
76620
76621         * config/missing: update from automake.
76622
76623 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
76624             Bruno Haible  <bruno@clisp.org>
76625
76626         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
76627         * lib/getline.c (getline, getdelim): Likewise.
76628         Remove _GNU_SOURCE define; now it's defined in config.h through
76629         m4/getline.m4.
76630
76631 2003-07-23  Karl Berry  <karl@gnu.org>
76632
76633         * config/config.sub: update from prep.
76634
76635 2003-07-22  Paul Eggert  <eggert@twinsun.com>
76636
76637         * modules/xalloc (Depends-on): Add exitfail.
76638         * modules/xmemcoll: Likewise.
76639
76640 2003-07-22  Paul Eggert  <eggert@twinsun.com>
76641
76642         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
76643         over-parenthesization in macros.
76644
76645         Sync with coreutils.
76646
76647         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
76648         required by C99.
76649
76650         Use `exit_failure' for xalloc and xmemcoll instead of their own
76651         private exit-failure variables.
76652         * lib/xalloc.h (xalloc_exit_failure): Remove.
76653         * lib/xmalloc.c: Likewise.  Include exitfail.h.
76654         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
76655         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
76656         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
76657         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
76658
76659 2003-07-20  Jim Meyering  <jim@meyering.net>
76660
76661         * modules/closeout (Depends-on): Add exitfail.
76662         Suggestion from Bruno Haible.
76663
76664 2003-07-19  Karl Berry  <karl@gnu.org>
76665
76666         * config/config.sub: update from prep.
76667
76668 2003-07-18  Paul Eggert  <eggert@twinsun.com>
76669
76670         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
76671         Remove.
76672         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
76673         to test that it can stand by itself.  Include "exitfail.h".
76674         Clients should set exit_failure instead.
76675         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
76676
76677 2003-07-18  Bruno Haible  <bruno@clisp.org>
76678
76679         * modules/getndelim2: New file.
76680         * modules/getline: Share files with module getndelim2.
76681         * modules/getnline: Depend on getndelim2 instead of sharing files with
76682         it. Add getnline.c to lib_SOURCES.
76683         * MODULES.html.sh (func_all_modules): Add getndelim2.
76684
76685 2003-07-18  Bruno Haible  <bruno@clisp.org>
76686
76687         * m4/getndelim2.m4: New file.
76688         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
76689         invoke gl_PREREQ_GETNDELIM2.
76690         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
76691         gl_PREREQ_GETNDELIM2.
76692         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
76693         gl_GETNDELIM2.
76694
76695 2003-07-18  Bruno Haible  <bruno@clisp.org>
76696
76697         * lib/getndelim2.h: New file.
76698         * lib/getndelim2.c: Make into a module of its own. Include config.h,
76699         getndelim2.h.
76700         (getndelim2): Make non-static. Change return type to ssize_t.
76701         * lib/getline.h: Change argument names.
76702         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
76703         * lib/getnline.c: Include getndelim2.h.
76704
76705 2003-07-18  Andreas Schwab  <schwab@suse.de>
76706
76707         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
76708
76709 2003-07-17  Karl Berry  <karl@gnu.org>
76710
76711         * config/config.sub: update from prep.
76712
76713 2003-07-17  Bruno Haible  <bruno@clisp.org>
76714
76715         * modules/getnline: New file.
76716         * modules/getline: Add lib/getndelim2.c to source file list.
76717         * MODULES.html.sh (func_all_modules): Add getnline.
76718
76719 2003-07-17  Bruno Haible  <bruno@clisp.org>
76720
76721         * m4/getnline.m4: New file.
76722
76723 2003-07-17  Bruno Haible  <bruno@clisp.org>
76724
76725         * m4/Makefile.am.in: Remove file.
76726         * m4/Makefile.am: Remove file.
76727         * m4/Makefile.in: Remove file.
76728
76729 2003-07-17  Bruno Haible  <bruno@clisp.org>
76730
76731         * lib/getnline.h: New file.
76732         * lib/getnline.c: New file.
76733         * lib/getndelim2.c: New file, extracted from getline.c.
76734         (getndelim2): Renamed from getdelim2, with added nmax argument.
76735         * lib/getline.c: Include getndelim2.c.
76736         (getdelim2): Moved out to getndelim2.c.
76737         (getline, getdelim): Update.
76738
76739 2003-07-17  Bruno Haible  <bruno@clisp.org>
76740
76741         * lib/Makefile.am: Remove file.
76742         * lib/Makefile.in: Remove file.
76743
76744 2003-07-17  Bruno Haible  <bruno@clisp.org>
76745
76746         * configure.in: Remove file.
76747         * Makefile.in: Remove file.
76748
76749 2003-07-17  Bruno Haible  <bruno@clisp.org>
76750
76751         * MODULES.html.sh: Put the </BODY> right before </HTML>.
76752
76753 2003-07-16  Karl Berry  <karl@gnu.org>
76754
76755         * config/srclist-update: was running fixlicense twice, which caused
76756                 texinfo.tex to be nullified for some reason.  Simplify,
76757                 $gplsrc is no longer needed as far as I can see?
76758
76759 2003-07-16  Jim Meyering  <jim@meyering.net>
76760
76761         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
76762
76763 2003-07-15  Paul Eggert  <eggert@twinsun.com>
76764
76765         * config/srclist.txt: Get the following files from gettext-runtime/intl
76766         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
76767         ref-del.sin.  From Bruno Haible.
76768         * config/srclist-update (fixfile): Change grep pattern again, since the
76769         previous fix didn't work (there was another trailing $).  Use
76770         '[$]' to escape the $s.
76771
76772 2003-07-15  Karl Berry  <karl@gnu.org>
76773
76774         * lib/vasnprintf.c: update from gettext.
76775
76776 2003-07-15  Karl Berry  <karl@gnu.org>
76777
76778         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
76779         gets expanded when surrounded by '$'.
76780
76781 2003-07-15  Jim Meyering  <jim@meyering.net>
76782
76783         * modules/save-cwd: Don't depend on error.  From Derek Price.
76784
76785 2003-07-15  Jim Meyering  <jim@meyering.net>
76786
76787         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
76788
76789 2003-07-14  Simon Josefsson  <jas@extundo.com>
76790
76791         * modules/mempcpy: New file.
76792         * MODULES.html.sh (func_all_modules): Add mempcpy.
76793
76794 2003-07-14  Simon Josefsson  <jas@extundo.com>
76795
76796         * m4/mempcpy.m4: New file.
76797
76798 2003-07-14  Simon Josefsson  <jas@extundo.com>
76799
76800         * lib/mempcpy.h: New file.
76801         * lib/mempcpy.c: New file.
76802
76803 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76804
76805         * modules/getdate, modules/posixtm: Depend on mktime.
76806
76807 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76808
76809         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
76810         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
76811         unicodeio.c, unicodeio.h, unlocked-io.h:
76812         Switch from LGPL to GPL.
76813
76814 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76815
76816         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
76817         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
76818         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
76819         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
76820         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
76821         updated automatically by ../config/srclist-update.  This changes
76822         their license from LPGL to GPL.
76823
76824 2003-07-14  Paul Eggert  <eggert@twinsun.com>
76825
76826         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
76827         assumed to refer to the root of the most recent stable gettext version.
76828         * config/srclistvars.sh: Add defaults for eggert.
76829         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
76830         Match "This program" as well as "The program".  This is needed
76831         for gettext.
76832
76833 2003-07-14  Jim Meyering  <jim@meyering.net>
76834
76835         Don't emit diagnostics.  Let callers do that.
76836         * lib/save-cwd.c: Don't include "error.h".
76837         (save_cwd): Don't call error.  Ensure that errno is valid
76838         when returning nonzero.
76839
76840         * lib/save-cwd.h (restore_cwd): Update prototype.
76841         * lib/save-cwd.c (restore_cwd): Remove two parameters.
76842         Simplify.  Don't call error upon failure.  Let callers do that.
76843         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
76844         when auditing is enabled.  But don't bother updating the #if.
76845
76846 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
76847
76848         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
76849         it breaks C++ compilation.
76850         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
76851
76852 2003-07-10  Simon Josefsson  <jas@extundo.com>
76853
76854         * modules/strchrnul (Makefile.am): Add strchrnul.h.
76855
76856 2003-07-10  Jim Meyering  <jim@meyering.net>
76857
76858         * m4/clock_time.m4: Remove trailing blank.
76859         * m4/intmax_t.m4: Likewise.
76860
76861 2003-07-10  Jim Meyering  <jim@meyering.net>
76862
76863         * lib/vasnprintf.c: Remove trailing blanks.
76864         Make cpp indentation consistent.
76865
76866 2003-07-09  Paul Eggert  <eggert@twinsun.com>
76867
76868         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
76869         posixver.c, strftime.c, strnlen.c, strverscmp.c:
76870         Switch from LGPL to GPL.
76871
76872 2003-07-09  Paul Eggert  <eggert@twinsun.com>
76873
76874         * config/srclist.txt: Sort sublists.  Add
76875         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
76876         that differ from gnulib for one reason or another; we'd like this list
76877         to be smaller but for now let's document what we have.
76878
76879 2003-07-08  Paul Eggert  <eggert@twinsun.com>
76880
76881         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
76882         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
76883         and sweeter "eval x=$x".
76884         * config/srclist.txt: Get lib/argp* from glibc.
76885
76886 2003-07-07  Paul Eggert  <eggert@twinsun.com>
76887
76888         * lib/mktime.c: Fix some boundary cases and remove need for floating
76889         point.
76890
76891         Issue a compile-time diagnostic if time_t is floating point, or if
76892         two's complement arithmetic is not in effect, or if arithmetic
76893         right shift does not propagate the sign.  These assumptions were
76894         all in the original code but they weren't checked.
76895
76896         (TIME_T_MIDPOINT, verify): New macros.
76897         (__isleap): Remove; it has integer overflow problems.
76898         (leapyear): New function, without those problems.
76899         (ydhms_tm_diff): Remove; splitting into two parts.
76900         (ydhms_diff): New function, containing the arithmetic part of
76901         the old ydhms_tm_diff function.  Issue a compile-time
76902         diagnostic if we are not using C99 integer division.
76903         Avoid casts when possible.
76904         (guess_time_tm): New function, containing the checking part of
76905         the old ydhms_tm_diff function.  Return the new value, rather than
76906         the difference between it and the old.  Accept a new argument T
76907         so that *T specifies the old value.  Check for overflow in the result.
76908
76909         (__mktime_internal): Use a time_t offset, not a long int offset.
76910         This undoes the 2003-06-04 change, which is no longer needed now
76911         that we have better overflow checking.
76912         (localtime_offset): Likewise.
76913
76914         (__mktime_internal): Avoid harmful overflow on hosts where time_t
76915         and long are 64-bit but int is only 32-bit.
76916         (ydhms_diff): Use long int to store year1 and yday1.
76917         Issue a compile-time diagnostic if long int is not wide enough.
76918
76919         (__mktime_internal): Use long int to store adjusted year and yday.
76920         Use plain C rather than preprocessor commands, if that doesn't
76921         affect efficiency.
76922         Check for overflow (and try to repair) after each probe
76923         rather than checking only at the very end.  This avoids some bugs
76924         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
76925         does not equal GMT offset at maximum time).
76926         Use integer to check for overflow rather than floating point; this
76927         is more portable to non-IEEE hosts, and is a tad faster.
76928         When we detect that we are oscillating between two values,
76929         don't check whether tm_isdst has the requested value, since
76930         we already know the answer.  When tm_isdst has the wrong value,
76931         use a different heuristic to find the right one, based on the
76932         extreme values actually observed in practice in tz2003a,
76933         rather than the (overly optimistic) "previous 3 calendar quarters".
76934
76935         (not_equal_tm, print_tm, check_result): Use "const T" rather than
76936         "T const" to accommodate glibc style.
76937         (check_result): Use less-confusing report format.  "long" -> "long int.
76938         (main): Likewise.
76939         Don't loop if the iteration overflows time_t.
76940         Allow a negative step in the iteration.
76941
76942 2003-07-06  Karl Berry  <karl@gnu.org>
76943
76944         * config/depcomp: update from automake.
76945         * config/config.sub: update from prep.
76946
76947 2003-07-03  Karl Berry  <karl@gnu.org>
76948
76949         * config/config.guess: update from prep.
76950
76951 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76952
76953         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
76954         xreadlink.c now includes it unconditionally.
76955
76956 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76957
76958         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
76959         having it depend on HAVE_SYS_TYPES_H.
76960
76961 2003-07-01  Bruno Haible  <bruno@clisp.org>
76962
76963         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
76964         <sys/types.h> should be sufficient.
76965         Reported by Paul Eggert.
76966
76967 2003-06-26  Karl Berry  <karl@gnu.org>
76968
76969         * config/depcomp: update from automake.
76970
76971 2003-06-26  Bruno Haible  <bruno@clisp.org>
76972
76973         * modules/human: Depend on module stdbool.
76974
76975 2003-06-25  Bruno Haible  <bruno@clisp.org>
76976
76977         * modules/readlink: New file.
76978         * modules/xreadlink: Depend on it.
76979         * MODULES.html.sh (func_all_modules): Add readlink.
76980
76981 2003-06-25  Bruno Haible  <bruno@clisp.org>
76982
76983         * m4/readlink.m4: New file.
76984
76985 2003-06-25  Bruno Haible  <bruno@clisp.org>
76986
76987         * lib/readlink.c: New file.
76988
76989 2003-06-22  Karl Berry  <karl@gnu.org>
76990
76991         * config/srclist.txt: update mkinstalldirs from automake.
76992         * config/mkinstalldirs: update.
76993
76994 2003-06-22  Bruno Haible  <bruno@clisp.org>
76995
76996         Portability to mingw32.
76997         * m4/ssize_t.m4: New file, from GNU gettext.
76998         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
76999         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
77000
77001 2003-06-22  Bruno Haible  <bruno@clisp.org>
77002
77003         * modules/safe-read: Add m4/ssize_t.m4.
77004         * modules/xreadlink: Add m4/ssize_t.m4.
77005
77006 2003-06-20  Bruno Haible  <bruno@clisp.org>
77007
77008         Assume C89, so PARAMS isn't needed.
77009         * lib/unicodeio.h (PARAMS): Remove.
77010         * lib/unicodeio.c: Don't use PARAMS.
77011
77012 2003-06-18  Karl Berry  <karl@gnu.org>
77013
77014         * config/config.{guess,sub}: update from prep.
77015
77016 2003-06-18  Jim Meyering  <jim@meyering.net>
77017
77018         Merge changes from coreutils.
77019         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
77020         Remove explicit declarations of xmalloc and realloc.
77021         Include xalloc.h.
77022         (read_utmp): Remove anachronistic cast of xmalloc.
77023
77024 2003-06-17  Paul Eggert  <eggert@twinsun.com>
77025
77026         Assume C89, so PARAMS isn't needed.
77027         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
77028         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
77029         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
77030         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
77031         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
77032         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
77033         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
77034         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
77035         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
77036         lib/xstrtod.h, lib/xstrtol.h: Likewise.
77037         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
77038         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
77039         no longer needed. Anyway, config.h should always be included before any
77040         other file.
77041
77042 2003-06-11  Simon Josefsson  <jas@extundo.com>
77043
77044         * modules/sysexits: New file.
77045         * MODULES.html.sh (func_all_modules): Add sysexits.
77046
77047 2003-06-11  Simon Josefsson  <jas@extundo.com>
77048
77049         * lib/sysexit_.h: New file.
77050
77051 2003-06-11  Derek Price  <derek@ximbiot.com>
77052
77053         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
77054         necessary.
77055
77056 2003-06-11  Bruno Haible  <bruno@clisp.org>
77057
77058         * m4/sysexits.m4: New file.
77059
77060 2003-06-10  Simon Josefsson  <jas@extundo.com>
77061
77062         * lib/argp.h: New file, from glibc.
77063         * lib/argp-ba.c: New file, from glibc.
77064         * lib/argp-eexst.c: New file, from glibc.
77065         * lib/argp-fmtstream.c: New file, from glibc.
77066         * lib/argp-fmtstream.h: New file, from glibc.
77067         * lib/argp-fs-xinl.c: New file, from glibc.
77068         * lib/argp-help.c: New file, from glibc.
77069         * lib/argp-namefrob.h: New file, from glibc.
77070         * lib/argp-parse.c: New file, from glibc.
77071         * lib/argp-pv.c: New file, from glibc.
77072         * lib/argp-pvh.c: New file, from glibc.
77073         * lib/argp-xinl.c: New file, from glibc.
77074
77075 2003-06-10  Simon Josefsson  <jas@extundo.com>
77076
77077         * modules/strchrnul: New file.
77078
77079 2003-06-10  Simon Josefsson  <jas@extundo.com>
77080
77081         * modules/argp: New file.
77082
77083 2003-06-10  Simon Josefsson  <jas@extundo.com>
77084
77085         * m4/strchrnul.m4: New file.
77086
77087 2003-06-10  Simon Josefsson  <jas@extundo.com>
77088
77089         * lib/strchrnul.h: New file.
77090         * lib/strchrnul.c: New file.
77091
77092 2003-06-10  Bruno Haible  <bruno@clisp.org>
77093
77094         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
77095
77096 2003-06-07  Karl Berry  <karl@gnu.org>
77097
77098         * config/config.{guess,sub}: update from prep.
77099
77100 2003-06-07  Jim Meyering  <jim@meyering.net>
77101
77102         * modules/strtod: Use $(...) notation, not @...@ for
77103         AC_REPLACE'd variables.
77104         * modules/localcharset: Likewise.
77105
77106 2003-06-07  Jim Meyering  <jim@meyering.net>
77107
77108         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
77109         in place of my name in the copyright comment.
77110         Remove definition and uses of __P.
77111
77112         From coreutils.
77113         * lib/stat.c: Don't declare xmalloc explicitly.
77114         Instead, include "xalloc.h".
77115         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
77116         xrealloc, and xcalloc return values.
77117         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
77118         Improve comment.
77119         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
77120
77121 2003-06-07  Bruno Haible  <bruno@clisp.org>
77122
77123         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
77124         avoid AC_CONFIG_LINKS.
77125         * modules/fnmatch (Makefile.am): Use explicit creation rule for
77126         fnmatch.h, to avoid AC_CONFIG_LINKS.
77127         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
77128
77129 2003-06-07  Bruno Haible  <bruno@clisp.org>
77130
77131         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
77132         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
77133         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77134         directory.
77135         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
77136         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
77137         directory.
77138
77139 2003-06-06  Jim Meyering  <jim@meyering.net>
77140
77141         Merge from coreutils.
77142         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
77143         Consolidate declarations and initializations of *_base* locals.
77144
77145         Merge from coreutils.
77146         This avoids a core dump on systems without GNU putenv,
77147         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
77148         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
77149         (unsetenv): New static function, from GNU libc.
77150         (rpl_putenv): Use it.
77151
77152         * lib/modechange.c: Remove trailing blanks.
77153
77154         Merge from coreutils.
77155         * lib/fsusage.c: Remove declaration of statfs.
77156         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
77157
77158         * lib/posixtm.c: Include <stdbool.h> unconditionally.
77159
77160 2003-06-06  Jim Meyering  <jim@meyering.net>
77161
77162         * lib/stdbool_.h: Renamed from stdbool.h.in.
77163
77164 2003-06-06  Jim Meyering  <jim@meyering.net>
77165             Bruno Haible  <bruno@clisp.org>
77166
77167         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
77168         Adjust Makefile.am snippet not to redirect directly to target.
77169         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
77170
77171 2003-06-05  Paul Eggert  <eggert@twinsun.com>
77172
77173         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
77174         mismatch, look in future quarters as well as past.  This fixes a
77175         bug when processing fall-backwards gaps immediately after a long
77176         period of daylight-saving time.
77177
77178         * lib/mktime.c: Assume freestanding C89 or better.
77179         (HAVE_LIMITS_H): Remove.  Assume it's 1.
77180         (__P): Remove; not used.
77181         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
77182         (mktime, not_equal_tm, print_tm, check_result,
77183         main): Use prototypes.  Use const * where appropriate.
77184         (main): Fix typo in testing code that uncovered by above changes.
77185         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
77186
77187 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77188
77189         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
77190         locale.h, localeconv.  This merges changes from coreutils.
77191
77192         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
77193         It can be removed after the next Autoconf is released.
77194         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
77195         needed.
77196
77197 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77198
77199         * lib/mktime.c: Fix Debian bug 177940
77200         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
77201         (localtime_offset): Now long int, not time_t, because we want it
77202         to be guaranteed to be signed.  All uses changed.
77203         (__mktime_internal): If overflow would occur when adding offset,
77204         don't add it.
77205
77206         Merge 'human' changes from coreutils.  Rewrite to support
77207         locale-specific notations like thousands separators.
77208         * lib/human.c: Simplify authorship notice.
77209         Include human.h immediately after config.h.
77210         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
77211         <limits.h>: Do not include, since human.h does.
77212         (SIZE_MAX, UINTMAX_MAX): New macros.
77213         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
77214         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
77215         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
77216         (power_letter): Renamed from suffixes.
77217         (generate_suffix_backwards): Remove.
77218         (adjust_value): Now takes int style (because of human.h changes)
77219         and long double value (for greater precision on some platforms).
77220         (group_number): New function.
77221         (human_readable): Use it.  Use integer options, not enum.
77222         Put the options before the sizes in the arg list.
77223         Support all the new options.
77224         The old human_readable function has been removed;
77225         use inttostr.h instead.
77226         (human_readable, default_block_size, humblock):
77227         Use uintmax_t, not int, for block sizes.
77228         (human_readable_inexact, block_size_types): Remove.
77229         (block_size_opts): New constant.
77230         (human_options): Renamed from human_block_size, with new signature
77231         that allows block sizes up to UINTMAX_MAX.  All callers changed.
77232         * lib/human.h: Add copyright and authorship notice.
77233         Include <limits.h> and <stdbool.h> unconditionally.
77234         (PARAMS): Remove.  All uses removed.
77235         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
77236         (enum human_inexact_style): Remove tag; now a nameless enum.
77237         (human_floor, human_ceiling, human_round_to_even): Now have
77238         values 2, 0, 1 rather than -1, 1, 0.
77239         (human_group_digits, human_suppress_point_zero, human_autoscale,
77240         human_base_1024, human_SI, human_B): New constants.
77241         (human_readable_inexact, human_block_size): Remove.
77242         (human_readable): Size args are now uintmax_t, not int.
77243         (human_options): New decl.
77244
77245         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
77246         unnecessary now that we assume C89 or better.  This change
77247         imported from coreutils.
77248
77249         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
77250         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
77251         in the 2003-05-30 sync from glibc.
77252
77253         .h files should stand alone, but we shouldn't include <sys/types.h>
77254         if we can get away with just <stddef.h>.
77255
77256         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
77257         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
77258         rather than <sys/types.h>, as we merely need size_t.
77259         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
77260         to get size_t.
77261         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
77262         Include <stdio.h>, to get FILE.
77263         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
77264         memcasecmp.h has included <stddef.h> and all we need is size_t.
77265         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
77266         our interface, instead of including <sys/types.h>
77267
77268 2003-06-04  Paul Eggert  <eggert@twinsun.com>
77269
77270         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
77271         now, as glibc mktime is buggy on non-glibc systems.
77272
77273 2003-06-03  Karl Berry  <karl@gnu.org>
77274
77275         * config/config.sub: update from prep.
77276
77277 2003-06-02  Paul Eggert  <eggert@twinsun.com>
77278
77279         [from coreutils]
77280         Fix some minor time-related bugs with POSIX time arguments.
77281         Some valid time stamps were being rejected (notably -1, and
77282         time stamps before 1900 on 64-bit hosts).  And some invalid
77283         time stamps were being accepted, e.g. September 31.
77284
77285         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
77286         that we can return (time_t) -1 successfully.
77287         * lib/posixtm.c: Likewise.
77288         [HAVE_STDBOOL_H]: Include <stdbool.h>.
77289         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
77290         (t): Remove static var.
77291         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
77292         of static var.  All uses changed.
77293         (year): Do not reject years before 1900; they can occur with
77294         64-bit time_t.
77295         (posix_time_parse): Do not check for out-of-range components;
77296         that is now the caller's responsibility, since our checks were
77297         only approximations.
77298         (posixtime): Use mktime to check for out-of-range components,
77299         since it knows them exactly.
77300         If mktime returns (time_t) -1, check whether an error actually occurred
77301         by invoking localtime on -1.
77302         (main) [TEST_POSIXTIME]: Check for input data errors, and report
77303         posixtime failures better.
77304         Improve the test data (in comments only).
77305
77306 2003-06-02  Karl Berry  <karl@gnu.org>
77307
77308         * config/mkinstalldirs (version): new variable.
77309         (--version): new option.
77310         (usage): improve message.
77311
77312 2003-05-30  Karl Berry  <karl@gnu.org>
77313
77314         * lib/mktime.c: update from libc.
77315
77316 2003-05-30  Bruno Haible  <bruno@clisp.org>
77317
77318         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
77319         * config/config.rpath: Upgrade to gettext-0.12.1.
77320
77321 2003-05-30  Bruno Haible  <bruno@clisp.org>
77322
77323         * m4/gettext.m4: Upgrade to gettext-0.12.1.
77324         * m4/nls.m4: New file, from gettext-0.12.1.
77325         * m4/po.m4: New file, from gettext-0.12.1.
77326         * m4/progtest.m4: Upgrade to gettext-0.12.1.
77327
77328 2003-05-30  Bruno Haible  <bruno@clisp.org>
77329
77330         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
77331         * lib/localcharset.h: Likewise.
77332         * lib/localcharset.c: Likewise.
77333
77334 2003-05-29  Karl Berry  <karl@gnu.org>
77335
77336         * config/config.rpath: update from gettext.
77337
77338 2003-05-28  Paul Eggert  <eggert@twinsun.com>
77339
77340         Assume the headers required for C89 freestanding compilers.
77341         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
77342         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
77343         * m4/human.m4 (gl_HUMAN): Likewise.
77344         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
77345         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
77346         * m4/userspec.m4 (gl_USERSPEC): Likewise.
77347         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
77348         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77349         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
77350
77351 2003-05-28  Paul Eggert  <eggert@twinsun.com>
77352
77353         Assume the headers required for C89 freestanding compilers.
77354         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
77355         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
77356         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
77357         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
77358         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
77359         define, since <limits.h> is guaranteed to do that.
77360         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
77361         * lib/exclude.c: Include <stdbool.h> unconditionally.
77362         * lib/tempname.c: Include <stddef.h> unconditionally.
77363         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
77364         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
77365         <stddef.h> does that.
77366         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
77367         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
77368         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
77369         needed.
77370         * lib/xstrtol.c: Likewise.
77371         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
77372         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
77373
77374         * lib/addext.c (addext): Use assignment rather than cast, to avoid
77375         warnings on some platforms.
77376
77377         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
77378         arbitrarily.
77379
77380 2003-05-26  Jim Meyering  <jim@meyering.net>
77381
77382         Merge in a change from coreutils:
77383         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
77384         that is guaranteed to be `no'.  Use `no_such_member' to indicate
77385         that condition, rather than `-1' which is slightly misleading.
77386         Change the name of the cache variable to have the gl_ prefix.
77387         Prompted by a patch from Richard Dawe for DJGPP.
77388
77389 2003-05-24  Karl Berry  <karl@gnu.org>
77390
77391         * config/config.guess: update from prep.
77392
77393 2003-05-22  Karl Berry  <karl@gnu.org>
77394
77395         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
77396
77397 2003-05-20  Karl Berry  <karl@gnu.org>
77398
77399         * config/config.guess: update from prep.
77400
77401 2003-05-18  Karl Berry  <karl@gnu.org>
77402
77403         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
77404         might actually be set by the user.
77405
77406         * config/depcomp, install-sh, mdate-sh: update from automake.
77407
77408 2003-05-17  Bruno Haible  <bruno@clisp.org>
77409
77410         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
77411         invalid expansion for AC_EGREP_CPP.
77412         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
77413         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
77414         Suggested by Akim Demaille <akim@epita.fr> in
77415         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
77416
77417 2003-05-12  Jim Meyering  <jim@meyering.net>
77418
77419         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
77420         the space-padded-by-default conversion specifiers, %e, %k, %l.
77421
77422 2003-05-12  Bruno Haible  <bruno@clisp.org>
77423
77424         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
77425         the string is longer than 4 KB.
77426
77427 2003-05-11  Karl Berry  <karl@gnu.org>
77428
77429         * config/config.{guess,sub}: update from prep.
77430
77431 2003-05-09  Bruno Haible  <bruno@clisp.org>
77432
77433         * modules/error: Add m4/strerror_r.m4 to file list.
77434
77435 2003-05-03  Bruno Haible  <bruno@clisp.org>
77436
77437         Upgrade to Unicode-4.0.
77438         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
77439         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
77440         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
77441         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
77442         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
77443         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
77444         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
77445         Change width of U+E0100..U+E01EF from 1 to 0.
77446
77447 2003-04-25  Jim Meyering  <jim@meyering.net>
77448
77449         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
77450         of type size_t, not int.
77451
77452 2003-04-25  Bruno Haible  <bruno@clisp.org>
77453
77454         * lib/copy-file.c: Include <stddef.h>, for size_t.
77455
77456 2003-04-21  Paul Eggert  <eggert@twinsun.com>
77457
77458         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
77459         code which expansion is under static control.  Patch imported from
77460         Akim Demaille's patch to Bison; see
77461         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
77462
77463 2003-04-14  Bruno Haible  <bruno@clisp.org>
77464
77465         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
77466
77467 2003-04-11  Jim Meyering  <jim@meyering.net>
77468
77469         Merge changes from Coreutils.
77470
77471         2003-03-22  Jim Meyering  <jim@meyering.net>
77472
77473         * lib/strftime.c (widen): Cast alloca return value to proper type.
77474
77475         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
77476
77477         From GNU libc.
77478         * lib/strftime.c (my_strftime): Handle very large width
77479         specifications for numeric values correctly.  Improve checks for
77480         overflow.
77481
77482         2003-01-19  Jim Meyering  <jim@meyering.net>
77483
77484         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
77485         definitions.
77486         (nl_get_alt_digit) [! defined my_strftime]: Define.
77487         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
77488         _nl_get_alt_digit and _nl_get_walt_digit.
77489
77490         * lib/strftime.c (my_strftime): Merge in locale-related changes from
77491         libc. These changes have no effect outside of _LIBC.
77492
77493 2003-04-10  Bruno Haible  <bruno@clisp.org>
77494
77495         * modules/findprog: New file.
77496         * MODULES.html.sh (func_all_modules): Add it.
77497
77498 2003-04-10  Bruno Haible  <bruno@clisp.org>
77499
77500         * m4/findprog.m4: New file.
77501         * m4/eaccess.m4: New file.
77502
77503 2003-04-10  Bruno Haible  <bruno@clisp.org>
77504
77505         * lib/findprog.h: New file, from GNU gettext.
77506         * lib/findprog.c: New file, from GNU gettext.
77507
77508 2003-04-05  Jim Meyering  <jim@meyering.net>
77509
77510         Merge changes from Coreutils.
77511
77512         * lib/exclude.h (PARAMS): Remove definition and uses.
77513         * lib/exclude.c: Remove uses of `PARAMS'.
77514
77515         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
77516         Add test-cases for DOS filenames. Declare program_name.
77517         (main): Set up program_name.  Patch by Rich Dawe.
77518
77519         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
77520         error from mntctl.
77521         Use mntctl's return value to drive the entry-processing loop, since
77522         we can't rely on the value of the vmt_length member in the last
77523         entry.  On some systems doing so could result in exhausting
77524         virtual memory.  Based in part on a patch from Mike Jetzer.
77525
77526 2003-04-04  Bruno Haible  <bruno@clisp.org>
77527
77528         * modules/linebreak: New file.
77529         * MODULES.html.sh (func_all_modules): Add it.
77530
77531 2003-04-04  Bruno Haible  <bruno@clisp.org>
77532
77533         * m4/linebreak.m4: New file.
77534
77535 2003-04-04  Bruno Haible  <bruno@clisp.org>
77536
77537         * lib/linebreak.h: New file, from GNU gettext.
77538         * lib/linebreak.c: New file, from GNU gettext with slight
77539         modifications.
77540         * lib/lbrkprop.h: New file, from GNU gettext.
77541
77542 2003-04-03  Bruno Haible  <bruno@clisp.org>
77543
77544         * modules/utf8-ucs4: New file.
77545         * modules/utf16-ucs4: New file.
77546         * modules/ucs4-utf8: New file.
77547         * modules/ucs4-utf16: New file.
77548         * MODULES.html.sh (func_all_modules): Add them.
77549
77550 2003-04-03  Bruno Haible  <bruno@clisp.org>
77551
77552         * m4/utf-ucs4.m4: New file.
77553         * m4/ucs4-utf.m4: New file.
77554
77555 2003-04-03  Bruno Haible  <bruno@clisp.org>
77556
77557         * lib/utf8-ucs4.h: New file, from GNU gettext.
77558         * lib/utf16-ucs4.h: New file, from GNU gettext.
77559         * lib/ucs4-utf8.h: New file, from GNU gettext.
77560         * lib/ucs4-utf16.h: New file, from GNU gettext.
77561
77562 2003-04-02  Bruno Haible  <bruno@clisp.org>
77563
77564         * modules/binary-io: New file.
77565         * MODULES.html.sh (func_all_modules): Add it.
77566
77567 2003-04-02  Bruno Haible  <bruno@clisp.org>
77568
77569         * lib/binary-io.h: New file, from GNU gettext.
77570
77571 2003-04-01  Bruno Haible  <bruno@clisp.org>
77572
77573         * modules/pathname: New file.
77574         * MODULES.html.sh (func_all_modules): Add it.
77575
77576 2003-04-01  Bruno Haible  <bruno@clisp.org>
77577
77578         * lib/pathname.h: New file, from GNU gettext.
77579         * lib/concatpath.c: New file, from GNU gettext.
77580
77581 2003-03-30  Bruno Haible  <bruno@clisp.org>
77582
77583         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
77584
77585 2003-03-30  Bruno Haible  <bruno@clisp.org>
77586
77587         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
77588         function chown() doesn't exist.
77589
77590 2003-03-28  Bruno Haible  <bruno@clisp.org>
77591
77592         * modules/copy-file: New file.
77593         * MODULES.html.sh (func_all_modules): Add it.
77594
77595 2003-03-28  Bruno Haible  <bruno@clisp.org>
77596
77597         * m4/copy-file.m4: New file.
77598
77599 2003-03-28  Bruno Haible  <bruno@clisp.org>
77600
77601         * lib/copy-file.h: New file, from GNU gettext.
77602         * lib/copy-file.c: New file, from GNU gettext.
77603
77604 2003-03-18  Jim Meyering  <jim@meyering.net>
77605
77606         * lib/quote.c (quote_n): Fix typo in comment.
77607
77608 2003-03-18  Bruno Haible  <bruno@clisp.org>
77609
77610         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
77611         checking.
77612         * m4/onceonly_2_57.m4: Likewise.
77613
77614 2003-03-17  Bruno Haible  <bruno@clisp.org>
77615
77616         * m4/onceonly.m4: Require autoconf 2.54 or newer.
77617         (m4_quote): Remove macro.
77618         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
77619
77620 2003-03-14  Jim Meyering  <jim@meyering.net>
77621
77622         Merge changes from Coreutils.
77623         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
77624         to be const, in order to avoid warnings.
77625         (obstack_room): Likewise.
77626         (obstack_empty_p): Likewise.
77627
77628 2003-03-14  Bruno Haible  <bruno@clisp.org>
77629
77630         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
77631         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
77632
77633 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77634
77635         Merge changes from Bison.
77636         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
77637         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
77638         when compiling Bison 1.875's `bitset bset = obstack_alloc
77639         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
77640         * lib/hash.c: Include <stdbool.h> unconditionally.
77641
77642 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77643
77644         * m4/onceonly.m4 (m4_quote): New macro.
77645         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
77646         Quote AC_FOREACH variable-expansions properly.
77647
77648 2003-03-13  Paul Eggert  <eggert@twinsun.com>
77649
77650         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
77651
77652 2003-03-09  Paul Eggert  <eggert@twinsun.com>
77653
77654         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
77655         Reported by Bruce Becker; see:
77656         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
77657
77658 2003-03-03  Paul Eggert  <eggert@twinsun.com>
77659             Bruno Haible  <bruno@clisp.org>
77660
77661         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
77662         Reported by John Hughes, see
77663         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
77664
77665 2003-02-20  Bruno Haible  <bruno@clisp.org>
77666
77667         * MODULES.html.sh (func_all_modules): Add poll.
77668
77669 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77670
77671         * modules/poll: New file.
77672
77673 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77674
77675         * lib/poll_.h: New file.
77676         * lib/poll.c: New file.
77677
77678 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
77679
77680         * m4/poll.m4: New file.
77681
77682 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77683
77684         * modules/mathl: New file.
77685
77686 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77687
77688         * lib/mathl.h: New file.
77689         * lib/acosl.c: New file.
77690         * lib/asinl.c: New file.
77691         * lib/atanl.c: New file.
77692         * lib/ceill.c: New file.
77693         * lib/cosl.c: New file.
77694         * lib/expl.c: New file.
77695         * lib/floorl.c: New file.
77696         * lib/frexpl.c: New file.
77697         * lib/ldexpl.c: New file.
77698         * lib/logl.c: New file.
77699         * lib/sincosl.c: New file.
77700         * lib/sinl.c: New file.
77701         * lib/sqrtl.c: New file.
77702         * lib/tanl.c: New file.
77703         * lib/trigl.c: New file.
77704         * lib/trigl.h: New file.
77705
77706 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
77707
77708         * m4/mathl.m4: New file.
77709
77710 2003-02-18  Bruno Haible  <bruno@clisp.org>
77711
77712         * MODULES.html.sh (func_all_modules): Add mathl.
77713
77714 2003-02-17  Bruno Haible  <bruno@clisp.org>
77715
77716         * modules/mkdtemp: New module.
77717         * MODULES.html.sh (func_all_modules): Add it.
77718
77719 2003-02-17  Bruno Haible  <bruno@clisp.org>
77720
77721         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
77722
77723 2003-02-17  Bruno Haible  <bruno@clisp.org>
77724
77725         * lib/mkdtemp.h: New file, from GNU gettext.
77726         * lib/mkdtemp.c: New file, from GNU gettext.
77727
77728 2003-02-02  Jim Meyering  <jim@meyering.net>
77729
77730         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
77731         e.g. glibc-2.2.93.
77732
77733 2003-01-31  Bruno Haible  <bruno@clisp.org>
77734
77735         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
77736         'rpl_rename'.
77737         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
77738         'rpl_strnlen'.
77739         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
77740         'rpl_strtod'.
77741         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
77742         'rpl_utime'.
77743
77744 2003-01-31  Bruno Haible  <bruno@clisp.org>
77745
77746         * lib/rename.c: #undef rename before defining rpl_rename.
77747         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
77748
77749 2003-01-30  Bruno Haible  <bruno@clisp.org>
77750
77751         * modules/vasnprintf, modules/vasprintf: New modules.
77752         * MODULES.html.sh (func_all_modules): Add them.
77753
77754 2003-01-30  Bruno Haible  <bruno@clisp.org>
77755
77756         * m4/signed.m4: New file, from GNU gettext.
77757         * m4/longdouble.m4: New file, from GNU gettext.
77758         * m4/wchar_t.m4: New file, from GNU gettext.
77759         * m4/wint_t.m4: New file, from GNU gettext.
77760         * m4/vasnprintf.m4: New file.
77761         * m4/vasprintf.m4: New file.
77762
77763 2003-01-30  Bruno Haible  <bruno@clisp.org>
77764
77765         * lib/printf-args.h: New file, from GNU gettext.
77766         * lib/printf-args.c: New file, from GNU gettext.
77767         * lib/printf-parse.h: New file, from GNU gettext.
77768         * lib/printf-parse.c: New file, from GNU gettext.
77769         * lib/vasnprintf.h: New file, from GNU gettext.
77770         * lib/vasnprintf.c: New file, from GNU gettext.
77771         * lib/asnprintf.c: New file, from GNU gettext.
77772         * lib/vasprintf.h: New file, from GNU gettext with modifications.
77773         * lib/vasprintf.c: New file, from GNU gettext.
77774         * lib/asprintf.c: New file, from GNU gettext.
77775
77776 2003-01-29  Bruno Haible  <bruno@clisp.org>
77777
77778         * modules/stpncpy: New module.
77779         * MODULES.html.sh (func_all_modules): Add it.
77780
77781 2003-01-29  Bruno Haible  <bruno@clisp.org>
77782
77783         * m4/stpncpy.m4: New file.
77784
77785 2003-01-29  Bruno Haible  <bruno@clisp.org>
77786
77787         * lib/stpncpy.h: New file, from GNU gettext with modifications.
77788         * lib/stpncpy.c: New file, from GNU gettext with modifications.
77789
77790 2003-01-28  Bruno Haible  <bruno@clisp.org>
77791
77792         * modules/c-ctype: New module.
77793         * MODULES.html.sh (func_all_modules): Add it.
77794
77795 2003-01-28  Bruno Haible  <bruno@clisp.org>
77796
77797         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
77798         Paul Eggert.
77799         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
77800         Paul Eggert.
77801
77802 2003-01-27  Bruno Haible  <bruno@clisp.org>
77803
77804         * modules/xsetenv: New module.
77805         * MODULES.html.sh (func_all_modules): Add it.
77806
77807 2003-01-27  Bruno Haible  <bruno@clisp.org>
77808
77809         * lib/xsetenv.h: New file, from GNU gettext.
77810         * lib/xsetenv.c: New file, from GNU gettext.
77811
77812 2003-01-23  Jim Meyering  <jim@meyering.net>
77813
77814         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
77815         from working on systems without dirfd (at least Irix and OSF1/Tru64).
77816
77817 2003-01-23  Bruno Haible  <bruno@clisp.org>
77818
77819         * modules/minmax: New module.
77820         * MODULES.html.sh (func_all_modules): Add it.
77821
77822 2003-01-23  Bruno Haible  <bruno@clisp.org>
77823
77824         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
77825         Eggert.
77826
77827 2003-01-22  Bruno Haible  <bruno@clisp.org>
77828
77829         * modules/exit: New module.
77830         * MODULES.html.sh (func_all_modules): Add it.
77831
77832 2003-01-22  Bruno Haible  <bruno@clisp.org>
77833
77834         * lib/exit.h: New file, from GNU gettext.
77835
77836 2003-01-19  Bruno Haible  <bruno@clisp.org>
77837
77838         * gnulib-tool: Recognize option --extract-maintainer.
77839         (func_get_maintainer): New function.
77840         * modules/*: Add Maintainer entry.
77841
77842 2003-01-16  Jim Meyering  <jim@meyering.net>
77843
77844         * m4/regex.m4: The `regex' struct is both input and output.
77845         Initialize it before each use.  Patch by Tim Waugh.
77846
77847 2003-01-16  Bruno Haible  <bruno@clisp.org>
77848
77849         * MODULES.html.sh: Add a table of contents. Add the module name as
77850         leftmost column. Add hyperlinks.
77851
77852 2003-01-15  Bruno Haible  <bruno@clisp.org>
77853
77854         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
77855
77856 2003-01-15  Bruno Haible  <bruno@clisp.org>
77857
77858         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
77859         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
77860         suffix.
77861
77862 2003-01-15  Bruno Haible  <bruno@clisp.org>
77863
77864         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
77865
77866 2003-01-15  Bruno Haible  <bruno@clisp.org>
77867
77868         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
77869         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
77870
77871 2003-01-14  Jim Meyering  <jim@meyering.net>
77872
77873         * lib/same.c (same_name): Tweak a comment.
77874
77875 2003-01-14  Bruno Haible  <bruno@clisp.org>
77876
77877         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
77878         when a string comparison is sufficient.
77879
77880 2003-01-14  Bruno Haible  <bruno@clisp.org>
77881
77882         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
77883         'unsigned int'.
77884
77885 2003-01-14  Bruno Haible  <bruno@clisp.org>
77886
77887         * lib/hash-pjw.c: Add comment about low quality of this function.
77888
77889 2003-01-13  Bruno Haible  <bruno@clisp.org>
77890
77891         * modules/stpcpy: Distribute lib/stpcpy.h.
77892         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
77893
77894 2003-01-13  Bruno Haible  <bruno@clisp.org>
77895
77896         * modules/*: Add a description.
77897         * modules/strpbrk: Fix Makefile.am snippet.
77898         * modules/strtoimax: Fix dependencies.
77899         * modules/strtoumax: Likewise.
77900
77901 2003-01-13  Bruno Haible  <bruno@clisp.org>
77902
77903         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
77904         * modules/alloca (Makefile.am): All object files depend on alloca.h.
77905         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
77906
77907 2003-01-13  Bruno Haible  <bruno@clisp.org>
77908
77909         * gnulib-tool (func_create_testdir): Store config/* files in the main
77910         directory.
77911         * config.rpath: Move to ...
77912         * config/config.rpath: ... here.
77913         * modules/gettext: Contains config/config.rpath, not config.rpath.
77914         * modules/iconv: Likewise.
77915
77916 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77917
77918         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77919         to avoid collisions with libcurses and libreadline.
77920
77921         * m4/getstr.m4: Remove.
77922         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
77923
77924 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77925
77926         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77927         to avoid collisions with libcurses and libreadline.
77928
77929         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
77930         * lib/getstr.h, getstr.c: Remove.
77931         * lib/getline.c: Include "getline.h", to check interface.
77932         Move body of old getstr.c here: this defines MIN_CHUNK and
77933         declares getdelim2, which is renamed from getstr.
77934         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
77935
77936         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
77937         All uses changed.
77938         * lib/linebuffer.h: Likewise.
77939         (readline): Remove backward-compatibility macro.
77940
77941 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77942
77943         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77944         to avoid collisions with libcurses and libreadline.
77945         * getstr: Remove.
77946         * MODULES.html.sh: Remove getstr.
77947         * modules/getline: Depend on unlocked-io, not getstr.
77948
77949 2003-01-12  Jim Meyering  <jim@meyering.net>
77950
77951         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
77952
77953 2003-01-10  Bruno Haible  <bruno@clisp.org>
77954
77955         * modules/alloca: Change Makefile.am requirements. Simplify Include
77956         requirements. Add lib/alloca_.h to file list.
77957
77958 2003-01-10  Bruno Haible  <bruno@clisp.org>
77959
77960         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
77961
77962 2003-01-10  Bruno Haible  <bruno@clisp.org>
77963
77964         * lib/alloca_.h: New file.
77965         * lib/getdate.y: Unconditionally include alloca.h.
77966         * lib/makepath.c: Likewise.
77967         * lib/setenv.c: Likewise.
77968         * lib/userspec.c: Likewise.
77969
77970 2003-01-09  Karl Berry  <karl@gnu.org>
77971
77972         * MODULES.html.sh: include `dirname $0` in PATH, to find
77973         gnulib-tool.
77974
77975 2003-01-09  Bruno Haible  <bruno@clisp.org>
77976
77977         * modules/stdbool: Change configure.ac, Makefile.am requirements.
77978         Simplify Include requirements. Add lib/stdbool.h.in to file list.
77979
77980 2003-01-09  Bruno Haible  <bruno@clisp.org>
77981
77982         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
77983
77984 2003-01-09  Bruno Haible  <bruno@clisp.org>
77985
77986         * lib/stdbool.h.in: New file.
77987
77988 2003-01-09  Bruno Haible  <bruno@clisp.org>
77989
77990         * gnulib-tool (func_all_modules): Ignore files ending in ~.
77991         * MODULES.html.sh: Likewise.
77992
77993 2003-01-08  Jim Meyering  <jim@meyering.net>
77994
77995         * lib/full-write.c: Undefine and define-away `const' after inclusion
77996         of errno.h, not before.  Suggestion from Bruno Haible.
77997
77998 2003-01-08  Bruno Haible  <bruno@clisp.org>
77999
78000         * modules/full-read: Depend on full-write.
78001
78002 2003-01-08  Bruno Haible  <bruno@clisp.org>
78003
78004         * lib/safe-read.c: Include specification header first, to ensure its
78005         selfcontainedness.
78006         * lib/full-write.c: Likewise.
78007
78008 2003-01-07  Jim Meyering  <jim@meyering.net>
78009
78010         * lib/full-write.c: Rework so that it may serve to define full_read,
78011         too.
78012         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
78013
78014 2003-01-07  Bruno Haible  <bruno@clisp.org>
78015
78016         * lib/strtoimax.c: Include <stdint.h> as an alternative to
78017         <inttypes.h>.
78018         * lib/xstrtol.h: Likewise.
78019         * lib/xstrtoimax.c: Likewise.
78020         * lib/xstrtoumax.c: Likewise.
78021         * lib/human.h: Likewise.
78022
78023         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
78024         on systems that have <inttypes.h> but not <stdint.h>.
78025
78026 2003-01-07  Bruno Haible  <bruno@clisp.org>
78027
78028         * MODULES.html.sh: Add copyright notice.
78029         (missed_files): Omit CVS directory entries.
78030         (func_module): Make it work with sed-3.02.
78031         * MODULES.txt: Remove file.
78032
78033 2003-01-06  Jim Meyering  <jim@meyering.net>
78034
78035         * lib/version-etc.c: Update year in translatable copyright string.
78036
78037 2003-01-03  Karl Berry  <karl@gnu.org>
78038
78039         * config/config.{guess,sub}: update from prep.
78040
78041 2003-01-02  Karl Berry  <karl@gnu.org>
78042
78043         * doc/COPYING.DOC: belatedly updated to 1.2.
78044
78045 2003-01-01  Karl Berry  <karl@gnu.org>
78046
78047         * gnulib-tool (func_verify_module): report module name $module in
78048         error message, not $1.
78049         * gnulib-tool (create-testdir): don't complain if destdir couldn't
78050         be created, only if it doesn't exist.
78051         * gnulib-tool (last_checkin_date): don't expand the $Date here.
78052
78053 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78054
78055         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
78056
78057 2002-12-31  Paul Eggert  <eggert@twinsun.com>
78058
78059         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
78060         memcmp if strcoll doesn't work.
78061
78062 2002-12-31  Bruno Haible  <bruno@clisp.org>
78063
78064         * lib/utime.c (utime_null): No need to call ftruncate if the file was
78065         nonempty.
78066
78067 2002-12-31  Bruno Haible  <bruno@clisp.org>
78068
78069         * lib/memcoll.c (STRCOLL): New macro.
78070         (memcoll): Use it.
78071
78072 2002-12-31  Bruno Haible  <bruno@clisp.org>
78073
78074         * lib/localcharset.h: New file.
78075         * lib/localcharset.c: Include it.
78076         * lib/unicodeio.c: Likewise.
78077
78078 2002-12-31  Bruno Haible  <bruno@clisp.org>
78079
78080         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
78081         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
78082
78083 2002-12-31  Bruno Haible  <bruno@clisp.org>
78084
78085         * lib/getline.h: Include <stddef.h>, for size_t.
78086
78087         * lib/unicodeio.h: Include <stddef.h>, for size_t.
78088         * lib/unicodeio.c: Don't include <stddef.h>.
78089
78090 2002-12-31  Bruno Haible  <bruno@clisp.org>
78091
78092         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
78093         HAVE_TM_ZONE.
78094
78095 2002-12-24  Karl Berry  <karl@gnu.org>
78096
78097         * config/config.guess: update from prep.
78098
78099 2002-12-24  Bruno Haible  <bruno@clisp.org>
78100
78101         General infrasructure.
78102         * m4/README: Rewritten.
78103         * m4/onceonly.m4: New file.
78104         * m4/onceonly_2_57.m4: New file.
78105
78106         Module atexit.
78107         * m4/atexit.m4: New file.
78108
78109         Module strtod.
78110         * m4/strtod.m4: New file.
78111
78112         Module strtol.
78113         * m4/strtol.m4: New file.
78114
78115         Module strtoul.
78116         * m4/strtoul.m4: New file.
78117
78118         Module memchr.
78119         * m4/memchr.m4: New file.
78120
78121         Module memcmp.
78122         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
78123         (jm_FUNC_MEMCMP): Invoke it.
78124
78125         Module memcpy.
78126         * m4/memcpy.m4: New file.
78127
78128         Module memmove.
78129         * m4/memmove.m4: New file.
78130
78131         Module memset.
78132         * m4/memset.m4: New file.
78133
78134         Module strcspn.
78135         * m4/strcspn.m4: New file.
78136
78137         Module strpbrk.
78138         * m4/strpbrk.m4: New file.
78139
78140         Module strstr.
78141         * m4/strstr.m4: New file.
78142
78143         Module strerror.
78144         * m4/strerror.m4: New file.
78145
78146         Module mktime.
78147         * m4/mktime.m4: Renamed from jm-mktime.m4.
78148         (gl_PREREQ_MKTIME): New macro.
78149         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
78150
78151         Module malloc.
78152         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
78153         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
78154         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
78155
78156         Module realloc.
78157         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
78158         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
78159         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
78160
78161         Module strftime.
78162         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
78163         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
78164         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
78165         gl_TM_GMTOFF.
78166         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
78167
78168         Module xalloc.
78169         * m4/xalloc.m4: New file.
78170
78171         Module alloca.
78172         * m4/alloca.m4: New file.
78173
78174         Module putenv.
78175         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
78176         (jm_FUNC_PUTENV): Invoke it.
78177
78178         Module setenv.
78179         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
78180         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
78181         when invoked twice.
78182         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
78183         gt_FUNC_SETENV.
78184
78185         Module memrchr.
78186         * m4/memrchr.m4: New file.
78187
78188         Module stpcpy.
78189         * m4/stpcpy.m4: New file.
78190
78191         Module strcase.
78192         * m4/strcase.m4: New file.
78193
78194         Module strdup.
78195         * m4/strdup.m4: New file.
78196
78197         Module strnlen.
78198         * m4/strnlen.m4: New file.
78199
78200         Module strndup.
78201         * m4/strndup.m4: New file.
78202
78203         Module xstrtod.
78204         * m4/xstrtod.m4: New file.
78205
78206         Module xstrtol.
78207         * m4/xstrtol.m4: New file.
78208
78209         Module getdate.
78210         * m4/getdate.m4: New file.
78211
78212         Module unlocked-io.
78213         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
78214         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
78215         * m4/jm-glibc-io.m4n: Remove file.
78216
78217         Module long-options.
78218         * m4/long-options.m4: New file.
78219
78220         Module md5.
78221         * m4/md5.m4: New file.
78222
78223         Module sha.
78224         * m4/sha.m4: New file.
78225
78226         Module getstr.
78227         * m4/getstr.m4: New file.
78228
78229         Module getline.
78230         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
78231         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
78232         <sys/types.h>, for size_t. Use the function name gnu_getline, not
78233         simply getline. Infoke gl_PREREQ_GETLINE.
78234
78235         Module obstack.
78236         * m4/obstack.m4: New file.
78237
78238         Module hash.
78239         * m4/hash.m4: New file.
78240
78241         Module readtokens.
78242         * m4/readtokens.m4: New file.
78243
78244         Module strverscmp.
78245         * m4/strverscmp.m4: New file.
78246
78247         Module stdbool.
78248         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
78249         OSF/1.
78250
78251         Module strtoll.
78252         * m4/strtoll.m4: New file.
78253
78254         Module strtoull.
78255         * m4/strtoull.m4: New file.
78256
78257         Module strtoimax.
78258         * m4/strtoimax.m4: New file.
78259
78260         Module strtoumax.
78261         * m4/strtoumax.m4: New file.
78262
78263         Module xstrtoimax.
78264         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
78265         jm_AC_PREREQ_XSTRTOIMAX.
78266         Moved the strtol prerequisites to strtol.m4.
78267         Moved the strtoll prerequisites to strtoll.m4.
78268         Moved the strtoimax prerequisites to strtoimax.m4.
78269
78270         Module xstrtoumax.
78271         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
78272         jm_AC_PREREQ_XSTRTOUMAX.
78273         Moved the strtoul prerequisites to strtoul.m4.
78274         Moved the strtoull prerequisites to strtoull.m4.
78275         Moved the strtoumax prerequisites to strtoumax.m4.
78276
78277         Module chown.
78278         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
78279         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
78280
78281         Module dup2.
78282         * m4/dup2.m4: New file.
78283
78284         Module ftruncate.
78285         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
78286         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
78287
78288         Module getgroups.
78289         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
78290         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
78291
78292         Module gettimeofday.
78293         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
78294         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
78295         gl_PREREQ_GETTIMEOFDAY.
78296
78297         Module mkdir.
78298         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
78299         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
78300
78301         Module mkstemp.
78302         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
78303         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
78304         jm_AC_TYPE_UINTMAX_T.
78305         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
78306
78307         Module stat.
78308         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
78309         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
78310
78311         Module lstat.
78312         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
78313         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
78314
78315         Module timespec.
78316         * m4/timespec.m4 (gl_TIMESPEC): New macro.
78317         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
78318         * m4/st_mtim.m4: Indentation.
78319
78320         Module nanosleep.
78321         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
78322         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
78323         gl_PREREQ_NANOSLEEP.
78324
78325         Module regex.
78326         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
78327         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
78328         (gl_REGEX): New macro.
78329
78330         Module rename.
78331         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
78332         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
78333
78334         Module rmdir.
78335         * m4/rmdir.m4: New file.
78336
78337         Module utime.
78338         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
78339         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
78340         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
78341
78342         Module dirname.
78343         * m4/dirname.m4: New file.
78344
78345         Module getopt.
78346         * m4/getopt.m4: New file.
78347
78348         Module unistd-safer.
78349         * m4/unistd-safer.m4: New file.
78350
78351         Module fnmatch.
78352         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
78353         declaration.
78354         (gl_PREREQ_FNMATCH_EXTRA): New macro.
78355         (gl_FUNC_FNMATCH_POSIX): New macro.
78356         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
78357         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
78358         simply fnmatch.
78359
78360         Module exclude.
78361         * m4/exclude.m4: New file.
78362
78363         Module human.
78364         * m4/human.m4: New file.
78365
78366         Module acl.
78367         * m4/acl.m4: Nop.
78368
78369         Module backupfile.
78370         * m4/backupfile.m4: New file.
78371         * m4/d-ino.m4: Indentation.
78372
78373         Module fsusage.
78374         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
78375         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
78376         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
78377
78378         Module dirfd.
78379         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
78380         requirements.
78381
78382         Module euidaccess.
78383         * m4/euidaccess.m4: New file.
78384
78385         Module file-type.
78386         * m4/file-type.m4: New file.
78387
78388         Module fileblocks.
78389         * m4/fileblocks.m4: New file.
78390
78391         Module filemode.
78392         * m4/filemode.m4: New file.
78393
78394         Module isdir.
78395         * m4/isdir.m4: New file.
78396
78397         Module lchown.
78398         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
78399         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
78400
78401         Module makepath.
78402         * m4/makepath.m4: New file.
78403
78404         Module modechange.
78405         * m4/modechange.m4: New file.
78406
78407         Module mountlist.
78408         * m4/mountlist.m4: New file.
78409         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
78410         Indentation.
78411
78412         Module path-concat.
78413         * m4/path-concat.m4: New file.
78414
78415         Module pathmax.
78416         * m4/pathmax.m4: New file.
78417
78418         Module same.
78419         * m4/same.m4: New file.
78420
78421         Module save-cwd.
78422         * m4/save-cwd.m4: New file.
78423
78424         Module savedir.
78425         * m4/savedir.m4: New file.
78426
78427         Module xgetcwd.
78428         * m4/xgetcwd.m4: New file.
78429         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
78430
78431         Module xreadlink.
78432         * m4/xreadlink.m4: New file.
78433
78434         Module safe-read.
78435         * m4/safe-read.m4: New file.
78436
78437         Module safe-write.
78438         * m4/safe-write.m4: New file.
78439
78440         Module closeout.
78441         * m4/closeout.m4: New file.
78442
78443         Module stdio-safer.
78444         * m4/stdio-safer.m4: New file.
78445
78446         Module getpass.
78447         * m4/getpass.m4: New file.
78448
78449         Module getugroups.
78450         * m4/getugroups.m4: New file.
78451
78452         Module group-member.
78453         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
78454         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
78455
78456         Module idcache.
78457         * m4/idcache.m4: New file.
78458
78459         Module userspec.
78460         * m4/userspec.m4: New file.
78461
78462         Module gettime.
78463         * m4/clock_time.m4: New file.
78464         * m4/gettime.m4: New file.
78465
78466         Module settime.
78467         * m4/settime.m4: New file.
78468
78469         Module posixtm.
78470         * m4/posixtm.m4: New file.
78471
78472         Module gethostname.
78473         * m4/gethostname.m4: New file.
78474
78475         Module canon-host.
78476         * m4/canon-host.m4: New file.
78477
78478         Module gettext.
78479         * m4/codeset.m4: New file, from gettext-0.11.5.
78480         * m4/gettext.m4: New file, from gettext-0.11.5.
78481         * m4/glibc21.m4: New file, from gettext-0.11.5.
78482         * m4/iconv.m4: New file, from gettext-0.11.5.
78483         * m4/intdiv0.m4: New file, from gettext-0.11.5.
78484         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
78485         * m4/inttypes.m4: New file, from gettext-0.11.5.
78486         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
78487         * m4/isc-posix.m4: New file, from gettext-0.11.5.
78488         * m4/lcmessage.m4: New file, from gettext-0.11.5.
78489         * m4/lib-ld.m4: New file, from gettext-0.11.5.
78490         * m4/lib-link.m4: New file, from gettext-0.11.5.
78491         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
78492         * m4/progtest.m4: New file, from gettext-0.11.5.
78493         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
78494         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
78495         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
78496
78497         Module localcharset.
78498         * m4/localcharset.m4: New file.
78499
78500         Module hard-locale.
78501         * m4/hard-locale.m4: New file.
78502
78503         Module mbswidth.
78504         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
78505         onceonly macros.
78506         * m4/mbrtowc.m4: Add comment.
78507
78508         Module memcasecmp.
78509         * m4/memcasecmp.m4: New file.
78510
78511         Module memcoll.
78512         * m4/memcoll.m4: New file.
78513
78514         Module unicodeio.
78515         * m4/unicodeio.m4: New file.
78516
78517         Module rpmatch.
78518         * m4/rpmatch.m4: New file.
78519
78520         Module yesno.
78521         * m4/yesno.m4: New file.
78522
78523         Module exitfail.
78524         * m4/exitfail.m4: New file.
78525
78526         Module c-stack.
78527         * m4/c-stack.m4 (gl_C_STACK): New macro.
78528         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
78529
78530         Module error.
78531         * m4/error.m4 (gl_ERROR): New macro.
78532         (jm_PREREQ_ERROR): Use onceonly macros.
78533
78534         Module fatal.
78535         * m4/fatal.m4: New file.
78536
78537         Module getloadavg.
78538         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
78539         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
78540
78541         Module getpagesize.
78542         * m4/getpagesize.m4: New file.
78543
78544         Module getusershell.
78545         * m4/getusershell.m4: New file.
78546
78547         Module physmem.
78548         * m4/physmem.m4: New file.
78549
78550         Module posixver.
78551         * m4/posixver.m4: New file.
78552
78553         Module quotearg.
78554         * m4/quotearg.m4: New file.
78555
78556         Module quote.
78557         * m4/quote.m4: New file.
78558
78559         Module readutmp.
78560         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
78561
78562         Module sig2str.
78563         * m4/sig2str.m4: New file.
78564
78565         Other.
78566         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
78567         ulonglong.m4.
78568         * m4/intmax_t.m4: New file.
78569         * m4/d-type.m4: Indentation.
78570         * m4/jm-macros.m4: Update.
78571         * m4/prereq.m4 (jm_PREREQ): Update.
78572         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
78573         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
78574         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
78575         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
78576         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
78577         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
78578         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
78579         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
78580         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
78581         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
78582         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
78583         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
78584         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
78585         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
78586         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
78587         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
78588         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
78589         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
78590         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
78591
78592 2002-12-24  Bruno Haible  <bruno@clisp.org>
78593
78594         * MODULES.txt: Update according to m4/ changes.
78595
78596         Module gettext.
78597         * config.rpath: New file, from gettext-0.11.5.
78598
78599         * modules/*: New module descriptions.
78600         * gnulib-tool: New file.
78601         * MODULES.html.sh: New file.
78602
78603 2002-12-21  Karl Berry  <karl@gnu.org>
78604
78605         * doc/fdl.texi: update to version 1.2.
78606
78607 2002-12-19  Karl Berry  <karl@gnu.org>
78608
78609         * config/config.guess: update from prep.
78610
78611 2002-12-18  Bruno Haible  <bruno@clisp.org>
78612
78613         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
78614         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
78615
78616 2002-12-17  Bruno Haible  <bruno@clisp.org>
78617
78618         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
78619         stdlib.h, string.h.
78620
78621 2002-12-17  Bruno Haible  <bruno@clisp.org>
78622
78623         * lib/canon-host.c (strdup): Remove unused declaration.
78624
78625         * lib/fsusage.c: Include full_read.h.
78626         (get_fs_usage): Use full_read instead of safe_read.
78627
78628         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
78629
78630 2002-12-12  Karl Berry  <karl@gnu.org>
78631
78632         * config/config.guess: update from prep.
78633
78634 2002-12-11  Bruno Haible  <bruno@clisp.org>
78635
78636         * m4/setenv.m4: New file, from gettext-0.11.5.
78637
78638 2002-12-11  Bruno Haible  <bruno@clisp.org>
78639
78640         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
78641         not unsetenv().
78642         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
78643         modifications:
78644
78645         2002-12-11  Bruno Haible  <bruno@clisp.org>
78646
78647                 * setenv.c (alloca): Fall back to malloc.
78648                 (freea): New macro.
78649                 (setenv): Use freea() to free memory allocated with alloca().
78650
78651         2002-11-13  Bruno Haible  <bruno@clisp.org>
78652
78653                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
78654                 function declarations.
78655                 * unsetenv.c (unsetenv): Likewise.
78656
78657         2002-03-04  Bruno Haible  <bruno@clisp.org>
78658
78659                 Portability to AIX 4.3.3.
78660                 * unsetenv.c: New file, extracted from setenv.c.
78661                 * setenv.c: Move the unsetenv() function to unsetenv.c.
78662
78663         2001-12-20  Bruno Haible  <bruno@clisp.org>
78664
78665                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
78666                 use malloc instead. For SunOS 4.
78667
78668         2001-12-11  Bruno Haible  <bruno@clisp.org>
78669
78670                 * setenv.c: Declare alloca.
78671                 (compar_fn_t): New typedef.
78672                 (KNOWN_VALUE, STORE_VALUE): Use it.
78673
78674         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
78675         setenv.h.
78676
78677 2002-12-10  Paul Eggert  <eggert@twinsun.com>
78678
78679         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
78680         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
78681         Choose values that are less likely to collide with system fnmatch
78682         options.
78683         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
78684         defined (e.g., a pure POSIX system).
78685         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
78686         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
78687
78688 2002-12-06  Paul Eggert  <eggert@twinsun.com>
78689
78690         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
78691         a pain in practice to deal with generated m4 files.  This change
78692         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
78693
78694         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
78695         and jm-glibc-io.m4, as they are no longer a special case.
78696         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
78697         kludge and the auto-generation stuff.  Check only whether the
78698         functions are declared, not whether they exist, since older hosts
78699         that don't declare the functions can't use the optimization anyway.
78700
78701 2002-12-06  Jim Meyering  <jim@meyering.net>
78702
78703         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
78704
78705         Merge in changes from libc's misc/error.c, in preparation
78706         for the merge of gnulib's changes back into libc.
78707
78708         * lib/error.c (_): Define only if not already defined.
78709         Move definition to follow all #include directives.
78710         Include unlocked-io.h only if !_LIBC.
78711         [_LIBC]: Include <libio/libioP.h>.
78712         [USE_IN_LIBIO]: Include <libio/iolibio.h>
78713         (fflush): Tweak definition to use INTUSE.
78714         (putc): Define.
78715
78716 2002-12-05  Paul Eggert  <eggert@twinsun.com>
78717
78718         * lib/alloca.c [defined emacs]: Include "lisp.h".
78719         (xalloc_die) [defined emacs]: New macro.
78720         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
78721         [! defined emacs]: Include <xalloc.h>.
78722         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
78723         (pointer): Typedef to POINTER_TYPE *.
78724         (malloc): Remove decl; we now always use xmalloc.
78725         (alloca): Use old-style definition, since Emacs needs this.
78726         Check for arithmetic overflow when computing combined size.
78727
78728 2002-12-04  Paul Eggert  <eggert@twinsun.com>
78729
78730         Do not generate unlocked-io.h automatically, since it's easier to
78731         maintain it by hand.
78732
78733         * lib/unlocked-io.h: New file, from GNU diffutils,
78734         but with proper copyright notice and attribution.
78735         * lib/gen-uio: Remove.
78736         * lib/Makefile.am: Add copyright notice.
78737         (libfetish_a_SOURCES): Add unlocked-io.h.
78738         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
78739         (DISTCLEANFILES, io_functions): Remove macros.
78740         (EXTRA_DIST): Remove gen_uio.
78741         (unlocked-io.h): Remove rule.
78742
78743 2002-12-04  Jim Meyering  <jim@meyering.net>
78744
78745         Reflect the fact that stat.c and lstat.c are no longer generated.
78746         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
78747         (DISTCLEANFILES): Likewise.
78748         (EXTRA_DIST): Likewise.
78749         (all_local): Don't depend on stat.c or lstat.c.
78750         (stat.c, lstat.c): Remove rules.
78751         (EXTRA_DIST): Remove xstat.in.
78752
78753         * lib/xstat.in: Remove file.  Contents moved into stat.c.
78754         * lib/stat.c: New file.  Contents mostly from xstat.in.
78755         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
78756         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
78757
78758         * lib/safe-read.c: Rework so that it may serve to define safe_write,
78759         too.
78760         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
78761
78762 2002-12-03  Jim Meyering  <jim@meyering.net>
78763
78764         * lib/safe-read.c, safe-write.c: Change variable names and comments,
78765         but not semantics, to minimize the differences between these two files.
78766         (safe_read): Change comment to mention SAFE_READ_ERROR.
78767
78768         * lib/safe-read.c (IS_EINTR): Define.
78769         (safe_read): Use IS_EINTR in place of in-function cpp directives.
78770
78771 2002-12-02  Jim Meyering  <jim@meyering.net>
78772
78773         * lib/safe-read.c (EINTR): Define.
78774         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78775         (INT_MAX): Provide fallback.
78776         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
78777
78778         * lib/safe-read.h (SAFE_READ_ERROR): Define.
78779
78780 2002-12-02  Bruno Haible  <bruno@clisp.org>
78781
78782         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
78783         Define, taken from safe-read.c.
78784         (INT_MAX): Provide fallback.
78785         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
78786         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
78787
78788         * lib/safe-read.c (EINTR): Remove definition.
78789         (safe_read): Don't use EINTR if it is absent.
78790
78791 2002-12-01  Jim Meyering  <jim@meyering.net>
78792
78793         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
78794         zero.
78795         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
78796
78797 2002-11-27  Paul Eggert  <eggert@twinsun.com>
78798
78799         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
78800         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
78801         with `if (! (value < limit)) abort ();', for readability.
78802
78803 2002-11-26  Karl Berry  <karl@gnu.org>
78804
78805         * lib/strdup.c: copy from libc again, with jim's ok.
78806         * lib/.cppi-disable: re-add strdup.c
78807
78808 2002-11-25  Karl Berry  <karl@gnu.org>
78809
78810         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
78811         instead of "strtol.c".
78812
78813 2002-11-25  Karl Berry  <karl@gnu.org>
78814
78815         * config/install-sh: update from automake for variable quoting, $0 in
78816         error msgs, etc.
78817
78818         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
78819         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
78820         entry.
78821
78822 2002-11-25  Jim Meyering  <jim@meyering.net>
78823
78824         * lib/mktime.c: Sync from libc, now that it has the latest fix.
78825
78826 2002-11-24  Karl Berry  <karl@gnu.org>
78827
78828         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
78829         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
78830
78831 2002-11-24  Jim Meyering  <jim@meyering.net>
78832
78833         Update from coreutils:
78834
78835         * lib/mktime.c: Merge in changes from libc.
78836
78837         Avoid a link-time failure on some Linux systems.
78838         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
78839         (otherwise).
78840         (__mon_yday): Declare with the STATIC attribute.
78841         (__mktime_internal): Likewise.
78842         Based on a report from Greg Schafer.
78843
78844 2002-11-23  Jim Meyering  <jim@meyering.net>
78845
78846         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
78847         Use `unsigned', not `int', as type of index.
78848
78849         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
78850
78851         * lib/fsusage.c: Remove unneeded parentheses around operands of
78852         `defined'.
78853
78854 2002-11-22  Paul Eggert  <eggert@twinsun.com>
78855
78856         * lib/quotearg.h: Allow multiple inclusion by surrounding with
78857         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
78858         so that we can be included first.
78859         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
78860         * lib/quotearg.c: Include quotearg.h immediately after config.h.
78861         No need to include stddef.h or sys/types.h any more.
78862         Surround local include files with "", not "<>".
78863         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
78864         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
78865         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
78866         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
78867         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
78868         (ISPRINT): Remove; no longer needed now that we assume C89.
78869
78870         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
78871         Preserve errno.
78872
78873         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
78874         quotearg_char): Use SIZE_MAX rather than
78875         (size_t) -1 when we are talking about "infinity".
78876
78877         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
78878
78879 2002-11-22  Paul Eggert  <eggert@twinsun.com>
78880
78881         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
78882         hint that one should use `if (! x) abort ();' rather than `assert
78883         (x);', and anyway it's one less thing to worry about configuring.
78884         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
78885         hash_rehash, hash_insert): Use abort rather than assert.
78886
78887 2002-11-22  Bruno Haible  <bruno@clisp.org>
78888
78889         * lib/safe-read.h: Assume C89. Add comments.
78890         (safe_read): Change return type to size_t.
78891         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
78892         byte counts > SSIZE_MAX correctly.
78893         * lib/safe-write.h: New file.
78894         * lib/safe-write.c: New file.
78895         * lib/full-read.h: New file.
78896         * lib/full-read.c: New file.
78897         * lib/full-write.h: Assume C89. Add comments.
78898         * lib/full-write.c: Include safe-write.h.
78899         (full_write): Rewritten to use safe_write.
78900         Suggested by Jim Meyering and Paul Eggert.
78901
78902 2002-11-21  Jim Meyering  <jim@meyering.net>
78903
78904         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
78905
78906         Merge in changes from the coreutils.
78907
78908         2002-09-25  Paul Eggert  <eggert@twinsun.com>
78909         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
78910         <stdint.h>.
78911         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
78912         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
78913         int.  Work more efficiently if X is the same width as uintmax_t.
78914         Do not compare X to -1, to avoid bogus compiler warning.
78915         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
78916         Don't assume that f_frsize and f_bsize are the same type.
78917
78918         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
78919         warning on FreeBSD.
78920
78921         * lib/makepath.c (make_path): Restore umask *before* creating the final
78922         component.
78923         (make_path): Minor reformatting.
78924
78925         * lib/xmalloc.c: Adjust to work with new autoconf macros,
78926         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
78927         HAVE_MALLOC/HAVE_REALLOC.
78928
78929         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
78930         dummy ones.  At least on GNU/Linux systems, `auto' means something
78931         else.
78932         From Michael Stone.
78933
78934 2002-11-21  Bruno Haible  <bruno@clisp.org>
78935
78936         Remove case insensitive option matching.
78937         * lib/argmatch.h (argcasematch): Remove declaration.
78938         (ARGCASEMATCH): Remove macro.
78939         (__xargmatch_internal): Remove case_sensitive argument.
78940         (XARGMATCH): Update.
78941         (XARGCASEMATCH): Remove macro.
78942         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
78943         case_sensitive argument.
78944         (argcasematch): Remove function.
78945         (__xargmatch_internal): Remove case_sensitive argument.
78946         (main): Use XARGMATCH instead of XARGCASEMATCH.
78947
78948         * lib/xmalloc.c: Change compile-time error message. Add comment about
78949         required autoconf version.
78950
78951 2002-11-20  Paul Eggert  <eggert@twinsun.com>
78952
78953         Merge argmatch cleanups from Bison.  Assume C89.
78954
78955         * lib/argmatch.c: Include config.h here, not in argmatch.h.
78956         Include stdlib.h, for EXIT_FAILURE.
78957         Always include <string.h>, since we assume C89.
78958         (EXIT_FAILURE): Remove pre-C89 bug workaround.
78959         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
78960         Include <stddef.h> instead, since it's all we need for size_t.
78961         (PARAMS): Remove.  All uses removed.
78962         (ARRAY_CARDINALITY): Do not bother to #undef.
78963         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
78964         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78965         Remove unnecessary parentheses.
78966         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78967         Insert necessary parentheses.
78968         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
78969         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
78970
78971 2002-11-19  Bruno Haible  <bruno@clisp.org>
78972
78973         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
78974         * lib/mbswidth.h: Include <stddef.h>, for size_t.
78975
78976         * lib/mbswidth.h (PARAMS): Remove macro.
78977         (mbswidth, mbsnwidth): Use ANSI C function declarations.
78978         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
78979
78980         * lib/gcd.h (PARAMS): Remove macro.
78981         (gcd): Use ANSI C function declarations.
78982         * lib/gcd.c (gcd): Likewise.
78983
78984 2002-11-15  Bruno Haible  <bruno@clisp.org>
78985
78986         * lib/strcspn.c: Include <stddef.h>.
78987         (strcspn): Use ANSI C function declaration. Change return type to
78988         size_t. Use NULL.
78989         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
78990         (strpbrk): Use NULL.
78991         * lib/strpbrk.h (PARAMS): Remove macro.
78992         (strpbrk): Use ANSI C function declaration.
78993         * lib/strstr.c: Don't include <sys/types.h>.
78994         * lib/strstr.h (PARAMS): Remove macro.
78995         (strstr): Use ANSI C function declarations.
78996
78997 2002-11-14  Karl Berry  <karl@gnu.org>
78998
78999         * config/mkinstalldirs: `do' on separate line, instead of
79000         `for var; do'.
79001
79002 2002-11-06  Bruno Haible  <bruno@clisp.org>
79003
79004         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
79005         * lib/gcd.c (gcd): Likewise.
79006
79007 2002-11-05  Bruno Haible  <bruno@clisp.org>
79008
79009         * lib/gcd.h: New file, from gettext-0.11.5.
79010         * lib/gcd.c: New file, from gettext-0.11.5.
79011
79012 2002-11-05  Bruno Haible  <bruno@clisp.org>
79013
79014         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79015         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79016         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79017         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
79018
79019         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
79020         <libintl.h>.
79021         * lib/makepath.c: Include gettext.h instead of <locale.h> and
79022         <libintl.h>.
79023
79024         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
79025         * lib/human.c: Include gettext.h instead of <libintl.h>.
79026         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
79027         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
79028         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
79029         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
79030         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
79031         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
79032         (textdomain): Remove definition.
79033         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
79034
79035         * lib/long-options.c: Remove include of <libintl.h> and definition of
79036         _.
79037         * lib/same.c: Remove include of <libintl.h> and definition of _.
79038
79039 2002-11-04  Owen Taylor  <otaylor@redhat.com>
79040
79041         * lib/config.charset: A few additions for Solaris.
79042
79043 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79044
79045         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
79046         * lib/localcharset.c (locale_charset): Declare as extern "C".
79047
79048 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
79049
79050         * lib/config.charset: msdos in uk_UA uses CP1125.
79051
79052 2002-11-04  Bruno Haible  <bruno@clisp.org>
79053
79054         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
79055         * lib/strcase.h: New file, from GNU gettext-0.11.5.
79056         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
79057         * lib/strstr.h: New file, from GNU gettext-0.11.5.
79058         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
79059
79060 2002-11-04  Bruno Haible  <bruno@clisp.org>
79061
79062         * lib/localcharset.c (locale_charset): Don't return an empty string.
79063
79064 2002-11-04  Bruno Haible  <bruno@clisp.org>
79065
79066         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
79067         aliases.
79068
79069 2002-11-04  Bruno Haible  <bruno@clisp.org>
79070
79071         * lib/config.charset: Update for newest glibc. Add canonical names
79072         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
79073
79074 2002-11-04  Bruno Haible  <bruno@clisp.org>
79075
79076         * lib/config.charset: Add support for NetBSD.
79077
79078 2002-11-04  Bruno Haible  <bruno@clisp.org>
79079
79080         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
79081
79082 2002-11-01  Bruno Haible  <bruno@clisp.org>
79083
79084         * configure.in: Add AC_CONFIG_AUX_DIR call.
79085         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
79086         test/Makefile.
79087         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
79088
79089 2002-09-28  Karl Berry  <karl@gnu.org>
79090
79091         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
79092         installed automake until the next release, since changes have been
79093         made.
79094
79095 2002-09-25  Karl Berry  <karl@gnu.org>
79096
79097         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
79098         * lib/getopt*: copy from libc/posix.
79099         * lib/gettext.h: copy from gettext.
79100         * lib/.cppi-disable: add strdup.c, gettext.h.
79101
79102 2002-09-25  Karl Berry  <karl@gnu.org>
79103
79104         * config/srclist.txt: enable gettext.h check.
79105         * config/config.{guess,sub}: update from prep.
79106         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
79107                 from automake 1.6.3.
79108         See srclist*.
79109
79110 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
79111
79112         * regex.c (PATFETCH): Remove the translating fetch.
79113         (PATFETCH_RAW): Rename to PATFETCH.
79114         (set_image_of_range): New fun.
79115         (SET_RANGE_TABLE_WORK_AREA): Use it.
79116         (regex_compile): Don't translate the pattern chars so eagerly.
79117         Only do it when inserting an `exactn' bytecode or when handling
79118         a char-range.
79119         (mutually_exclusive_p): Avoid empty statement.
79120
79121 2002-07-06  Jim Meyering  <meyering@lucent.com>
79122
79123         * m4/README: Don't mention Makefile.am.in.
79124         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
79125
79126 2002-07-01  Jim Meyering  <meyering@lucent.com>
79127
79128         * lib/c-stack.c: Include sys/time.h.
79129         From Volker Borchert.
79130
79131 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79132
79133         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
79134
79135 2002-06-26  Paul Eggert  <eggert@twinsun.com>
79136
79137         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
79138         New macro.  Use it uniformly instead of
79139         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
79140         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
79141         reported by Vin Shelton.
79142
79143 2002-06-22  Paul Eggert  <eggert@twinsun.com>
79144
79145         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
79146         Do not assume SA_SIGINFO behavior.
79147         Bug reported by Jim Meyering on NetBSD 1.5.2.
79148
79149 2002-06-22  Jim Meyering  <meyering@lucent.com>
79150
79151         * m4/c-stack.m4: New file, from diffutils-2.8.2.
79152         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
79153
79154         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
79155         now that configure.ac uses AC_GNU_SOURCE.
79156         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
79157         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
79158
79159         Update to latest tools.  Suggestions from Paul Eggert.
79160         * m4/stdbool.m4: New file, from diffutils-2.8.2.
79161         * m4/gnu-source.m4: Update from diffutils-2.8.2.
79162         * m4/fnmatch.m4: Likewise.
79163         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
79164         to AC_HEADER_STDBOOL
79165
79166 2002-06-22  Jim Meyering  <meyering@lucent.com>
79167
79168         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
79169         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
79170
79171 2002-06-22  Jim Meyering  <meyering@lucent.com>
79172
79173         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
79174
79175         * lib/exitfail.c, exitfail.h: Likewise.
79176         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
79177
79178         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
79179         of fnmatch.h.
79180         (EXTRA_DIST): Add fnmatch_loop.c.
79181         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
79182
79183         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
79184         * lib/fnmatch.c: Update from diffutils-2.8.2.
79185         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
79186         * lib/fnmatch.h: Remove file.
79187
79188 2002-06-21  Jim Meyering  <meyering@lucent.com>
79189
79190         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
79191         * m4/mbrtowc.m4: Likewise.
79192
79193         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
79194         * m4/mbswidth.m4: Reflect name change:
79195         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
79196         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
79197
79198         * m4/lib-link.m4: Update from gettext-0.11.2.
79199         * m4/gettext.m4: Likewise.
79200
79201         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
79202         From Alfred M. Szmidt.
79203
79204 2002-06-18  Paul Eggert  <eggert@twinsun.com>
79205
79206         * lib/file-type.h: Report an error if neither S_ISREG nor
79207         S_IFREG is defined, instead of using a test specific to glibc
79208         2.2.  This should be safe, since POSIX requires S_ISREG and
79209         Unix Version 7 had S_IFREG.  We don't need to check for
79210         <sys/types.h> since we don't use any symbols that it defines.
79211
79212 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
79213
79214         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
79215         $@-t, so that each temporary file name is unique and valid in the first
79216         8 characters, for operation under DOS.
79217
79218 2002-06-15  Paul Eggert  <eggert@twinsun.com>
79219
79220         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
79221
79222 2002-06-15  Jim Meyering  <meyering@lucent.com>
79223
79224         Work even with DJGPP 2.03, which lacks support for symlinks.
79225         From Richard Dawe.
79226         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
79227         is defined.
79228         * lib/lchown.c (S_ISLNK): Likewise.
79229
79230 2002-06-15  Jim Meyering  <meyering@lucent.com>
79231
79232         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
79233         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
79234         have been included before this file.
79235
79236 2002-06-14  Jim Meyering  <meyering@lucent.com>
79237
79238         * lib/file-type.h: Use the version from diffutils-2.8.2.
79239         * lib/file-type.c: Likewise.
79240
79241 2002-06-07  Jim Meyering  <meyering@lucent.com>
79242
79243         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
79244         They're needed at least for NetBSD 1.5.2.
79245         ($statxfs_includes): Include those same headers.
79246         ($statxfs_includes): Include sys/vfs.h if available.
79247         ($statxfs_includes): Likewise for sys/statvfs.h.
79248         Check for the following members in both structs statfs and statvfs:
79249         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
79250
79251 2002-06-01  Jim Meyering  <meyering@lucent.com>
79252
79253         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
79254         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
79255
79256 2002-05-28  Jim Meyering  <meyering@lucent.com>
79257
79258         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
79259         Reported by Volker Borchert.
79260
79261 2002-05-27  Jim Meyering  <meyering@lucent.com>
79262
79263         Fix a problem seen only on nonconforming systems whereby ls.c's
79264         use of localtime, and then of gettimeofday would cause trouble:
79265         the localtime call used to initialize rpl_gettimeofday's save
79266         mechanism would clobber ls's current local time information so
79267         that in any long listing the first file would always be listed
79268         with date 1970-01-01.  Analysis by Volker Borchert.
79269
79270         * lib/gettimeofday.c (localtime): Undefine.
79271         (rpl_localtime): New function.
79272
79273 2002-05-27  Jim Meyering  <meyering@lucent.com>
79274
79275         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
79276         localtime.
79277
79278         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
79279         use the replacement function; it wouldn't resolve at link time.
79280         Reported by Volker Borchert.
79281
79282 2002-05-22  Jim Meyering  <meyering@lucent.com>
79283
79284         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
79285         file-type.h.
79286         * lib/file-type.h: New file.
79287         * lib/file-type.c (file_type): New file/function.  Extracted from
79288         diffutils.
79289
79290 2002-04-30  Jim Meyering  <meyering@lucent.com>
79291
79292         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
79293
79294 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79295
79296         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
79297
79298 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79299
79300         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
79301         Do not check for alloca.h (no longer used) or stdbool.h (was never
79302         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
79303
79304 2002-04-29  Paul Eggert  <eggert@twinsun.com>
79305
79306         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
79307
79308 2002-04-29  Jim Meyering  <meyering@lucent.com>
79309
79310         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
79311         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
79312         Use AC_FUNC_STRNLEN here instead.
79313
79314         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
79315         With autoconf-2.53a, it's part of AC_PROG_CC.
79316
79317 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79318
79319         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
79320         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
79321
79322 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79323
79324         * lib/sig2str.h, lib/sig2str.c: New files.
79325         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
79326
79327 2002-04-28  Paul Eggert  <eggert@twinsun.com>
79328
79329         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
79330         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
79331         of 127, since 64 is the largest conceivable number for ancient
79332         nonstandard hosts.
79333         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
79334
79335 2002-04-28  Jim Meyering  <meyering@lucent.com>
79336
79337         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
79338
79339 2002-04-24  Jim Meyering  <meyering@lucent.com>
79340
79341         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
79342         (jm_PREREQ): Use it.
79343
79344         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
79345         mach/mach.h fcntl.h.
79346         Check for this function: setlocale.
79347
79348 2002-04-24  Jim Meyering  <meyering@lucent.com>
79349
79350         * lib/gettext.h: New file, from Gettext.
79351         * lib/Makefile.am (INCLUDES): Remove -I../intl.
79352         (libfetish_a_SOURCES): Add gettext.h.
79353
79354 2002-04-16  Jim Meyering  <meyering@lucent.com>
79355
79356         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
79357         ut_pid, ut_id, ut_exit.
79358
79359 2002-04-16  Jim Meyering  <meyering@lucent.com>
79360
79361         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
79362         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
79363         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
79364
79365 2002-04-12  Jim Meyering  <meyering@lucent.com>
79366
79367         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
79368         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
79369         existence of the getmntinfo function.  Needed for Darwin 5.3.
79370
79371         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
79372         This is necessary at least on Darwin 5.3.
79373
79374         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
79375         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
79376         strnlen.o in the library, and that makes some versions of ranlib
79377         object.
79378
79379 2002-04-12  Jim Meyering  <meyering@lucent.com>
79380
79381         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
79382
79383 2002-04-09  Jim Meyering  <meyering@lucent.com>
79384
79385         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
79386         to be more precise.  Rather than saying we're checking whether the
79387         function `works', say what we're testing.
79388         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
79389         Reported by Bruno Haible.
79390
79391 2002-03-10  Jim Meyering  <meyering@lucent.com>
79392
79393         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
79394         Suggestion from Santiago Vila.
79395
79396 2002-03-08  Jim Meyering  <meyering@lucent.com>
79397
79398         * lib/rename.c: Mention that this wrapper is needed also on
79399         mips-dec-ultrix4.4 systems.
79400
79401 2002-03-02  Jim Meyering  <meyering@lucent.com>
79402
79403         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
79404         not HAVE_CLOCK_SETTIME.
79405
79406 2002-02-27  Paul Eggert  <eggert@twinsun.com>
79407
79408         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
79409         Check for clock_settime.
79410
79411 2002-02-27  Paul Eggert  <eggert@twinsun.com>
79412
79413         * lib/nanosleep.h: Rename to....
79414         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
79415
79416         * lib/gettime.c: New file.
79417         * lib/settime.c: New file.
79418         * lib/stime.c: Remove.
79419
79420         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
79421         timespec.h.  Remove nanosleep.h.
79422
79423 2002-02-25  Paul Eggert  <eggert@twinsun.com>
79424
79425         * m4/acl.m4: New file.
79426         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
79427         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
79428
79429 2002-02-25  Paul Eggert  <eggert@twinsun.com>
79430
79431         * lib/acl.c, lib/acl.h: New files.
79432         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
79433
79434 2002-02-24  Jim Meyering  <meyering@lucent.com>
79435
79436         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
79437         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
79438         cause trouble.  Reported by Nelson Beebe.
79439
79440 2002-02-23  Paul Eggert  <eggert@twinsun.com>
79441
79442         * lib/path-concat.c (xpath_concat): Reorder code to pacify
79443         compilers that don't know that xalloc_die never returns.
79444
79445 2002-02-20  Jim Meyering  <meyering@lucent.com>
79446
79447         * lib/getdate.c: Regenerate using bison-1.33.
79448
79449 2002-02-17  Jim Meyering  <meyering@lucent.com>
79450
79451         * config/config.guess (main): Don't use `head -1'; it's no longer
79452         portable. Use `sed 1q' instead.
79453
79454 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
79455
79456         * m4/codeset.m4: Upgrade to gettext-0.11.
79457         * m4/gettext.m4: Upgrade to gettext-0.11.
79458         * m4/glibc21.m4: Upgrade to gettext-0.11.
79459         * m4/iconv.m4: Upgrade to gettext-0.11.
79460         * m4/isc-posix.m4: Upgrade to gettext-0.11.
79461         * m4/lcmessage.m4: Upgrade to gettext-0.11.
79462         * m4/lib-ld.m4: New file, from gettext-0.11.
79463         * m4/lib-link.m4: New file, from gettext-0.11.
79464         * m4/lib-prefix.m4: New file, from gettext-0.11.
79465         * m4/progtest.m4: Upgrade to gettext-0.11.
79466
79467 2002-02-15  Paul Eggert  <eggert@twinsun.com>
79468
79469         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
79470         (jm_PREREQ): Use it.
79471
79472 2002-02-15  Paul Eggert  <eggert@twinsun.com>
79473
79474         * lib/posixver.c, lib/posixver.h: New files.
79475         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
79476
79477 2002-02-02  Paul Eggert  <eggert@twinsun.com>
79478             Bruno Haible  <bruno@clisp.org>
79479
79480         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
79481         (fwrite_success_callback): New declaration.
79482         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
79483         print_unicode_char. Call failure callback instead of error.
79484         (fwrite_success_callback): New function.
79485         (exit_failure_callback): New function.
79486         (fallback_failure_callback): New function.
79487         (print_unicode_char): Call unicode_to_mb.
79488
79489 2002-01-26  Jim Meyering  <meyering@lucent.com>
79490
79491         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
79492         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
79493
79494 2002-01-26  Jim Meyering  <meyering@lucent.com>
79495
79496         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
79497
79498 2002-01-22  Paul Eggert  <eggert@twinsun.com>
79499
79500         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
79501
79502 2002-01-22  Jim Meyering  <meyering@lucent.com>
79503
79504         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
79505         Otherwise, some versions of automake would omit the rule that makes
79506         Makefile from Makefile.in.
79507
79508 2002-01-21  Paul Eggert  <eggert@twinsun.com>
79509
79510         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
79511         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
79512         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
79513         (memcoll): Set errno to zero if there is no error.
79514
79515         * lib/quotearg.c (quotearg_buffer_restyled):
79516         Fix bug with quoting buffers containing NUL when backslashing escapes.
79517         This bug was exposed by the other changes in this patch.
79518         (quotearg_n_options): New arg ARGSIZE.
79519         All callers changed.
79520         (quoting_options_from_style): New function.
79521         (quotearg_n_style): Use it.
79522         (quotearg_n_style_mem): New function.
79523
79524         * lib/quotearg.h (quotearg_n_style_mem): New function.
79525
79526 2002-01-19  Jim Meyering  <meyering@lucent.com>
79527
79528         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
79529         Remove useless quotes: DF_PROG="df".
79530         * m4/strnlen.m4: New file.
79531
79532 2002-01-16  Paul Eggert  <eggert@twinsun.com>
79533
79534         * lib/backupfile.c (ISDIGIT): Comment fix.
79535         * lib/getdate.y (ISDIGIT): Likewise.
79536         * lib/posixtm.c (ISDIGIT, year): Likewise.
79537         * lib/strverscmp.c (ISDIGIT): Likewise.
79538         * lib/userspec.c (ISDIGIT): Likewise.
79539
79540 2002-01-16  Jim Meyering  <meyering@lucent.com>
79541
79542         * lib/getdate.y: Add three semicolons, each just before a closing
79543         brace. Bison (as of version 1.31) no longer papers over that mistake.
79544
79545 2002-01-05  Jim Meyering  <meyering@lucent.com>
79546
79547         * lib/version-etc.c (version_etc_copyright): Update copyright year.
79548
79549 2001-12-19  Paul Eggert  <eggert@twinsun.com>
79550
79551         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
79552         not silently exit merely because the output buffer happens to
79553         have nothing pending.
79554
79555 2001-12-18  Paul Eggert  <eggert@twinsun.com>
79556
79557         See the big note in ../ChangeLog.
79558         * lib/human.c (suffixes): Prefer K to k for 1024.
79559         (generate_suffix_backwards): New function.
79560         (human_readable_inexact): Use it.
79561         * lib/xstrtol.c (__xstrtol): If there is no number but there
79562         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
79563         Accept 'K' as well as 'k'.
79564
79565 2001-12-15  Jim Meyering  <meyering@lucent.com>
79566
79567         * lib/regex.h (__restrict_arr): Update from libc.
79568
79569         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
79570         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
79571         (STREQ): Define.
79572
79573 2001-12-14  Jim Meyering  <meyering@lucent.com>
79574
79575         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
79576         Suggestion from Bruno Haible.
79577
79578 2001-12-10  Jim Meyering  <meyering@lucent.com>
79579
79580         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
79581         xrealloc, Instead, include "xalloc.h".
79582         (initbuffer): Don't cast xmalloc return value to char*.
79583         (readline): Reword comment.
79584         Don't cast xrealloc return value to char*
79585         Return NULL, not 0.
79586
79587 2001-12-09  Jim Meyering  <meyering@lucent.com>
79588
79589         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
79590         about `signed and unsigned type in conditional expression'.
79591         * lib/posixtm.c (posix_time_parse): Likewise.
79592
79593         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
79594
79595         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
79596         to avoid a pedantic warning.
79597
79598         * lib/getstr.c: Don't include assert.h.
79599         (getstr): Remove warning-evoking assertions.
79600         Return -1 if offset parameter is out of bounds.
79601         Change the type of a local from int to size_t.
79602
79603         * lib/strftime.c (my_strftime_localtime_r): Include this function
79604         definition in the `#if ! HAVE_TM_GMTOFF' block.
79605
79606         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
79607         Include xalloc.h instead.
79608
79609 2001-12-02  Jim Meyering  <meyering@lucent.com>
79610
79611         * lib/tempname.c: Don't declare getenv, thus reverting the change of
79612         2001-11-18.  It's no longer necessary, now that stdlib.h is always
79613         included.
79614
79615         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
79616         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
79617
79618 2001-11-30  Akim Demaille  <akim@epita.fr>
79619
79620         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
79621         before being defined.
79622
79623 2001-11-27  Paul Eggert  <eggert@twinsun.com>
79624
79625         * lib/quotearg.h (quotearg_n, quotearg_n_style):
79626         First arg is int, not unsigned.
79627         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
79628         (SIZE_MAX, UINT_MAX): New macros.
79629         (quotearg_n_options): Abort if N is negative.
79630         Avoid overflow check on hosts where size_t is 64 bits and int
79631         is 32 bits, as overflow is impossible there.
79632         Fix off-by-one typo that caused unnecessary reallocation.
79633
79634 2001-11-27  Jim Meyering  <meyering@lucent.com>
79635
79636         * lib/tempname.c: Merge with version from libc.
79637         * lib/regex.c: Likewise.
79638
79639         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
79640         systems for which STDC_HEADERS is 0, it was not included, resulting in
79641         a warning about an integer-to-pointer conversion problem with getenv.
79642         Reported by Volker Borchert.
79643
79644 2001-11-26  Jim Meyering  <meyering@lucent.com>
79645
79646         * lib/gtod.h: Remove file.
79647         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
79648         * lib/gettimeofday.c: Don't include gtod.h.
79649         (GTOD_init): Remove function.
79650         (rpl_gettimeofday): Do its job here instead, rather than aborting.
79651         Suggestion from Volker Borchert.
79652
79653 2001-11-23  Jim Meyering  <meyering@lucent.com>
79654
79655         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
79656         it.
79657         * lib/hash.c (struct hash_table): Define it here instead.
79658
79659 2001-11-22  Jim Meyering  <meyering@lucent.com>
79660
79661         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
79662
79663 2001-11-20  Jim Meyering  <meyering@lucent.com>
79664
79665         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
79666         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
79667
79668 2001-11-19  Jim Meyering  <meyering@lucent.com>
79669
79670         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
79671         directory.  Use "conftestXXXXXX" as the template.
79672         Suggestion from Paul Eggert.
79673
79674         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
79675         immediately, so the test doesn't mistakenly hit the max-open-files
79676         limit.
79677
79678 2001-11-18  Paul Eggert  <eggert@twinsun.com>
79679
79680         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
79681         (TEMPORARIES): New macro.
79682         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
79683         removes an artificial limitation (e.g. HP-UX 10.20, where
79684         TMP_MAX is 17576).
79685
79686 2001-11-18  Jim Meyering  <meyering@lucent.com>
79687
79688         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
79689
79690 2001-11-18  Jim Meyering  <meyering@lucent.com>
79691
79692         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
79693         on SunOS 4.
79694
79695         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
79696         files will be created before anything else.
79697
79698 2001-11-17  Paul Eggert  <eggert@twinsun.com>
79699
79700         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
79701         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
79702
79703 2001-11-17  Jim Meyering  <meyering@lucent.com>
79704
79705         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
79706         Prompted by a report from Bob Proulx.
79707
79708         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
79709         Instead, require UTILS_FUNC_MKSTEMP.
79710
79711 2001-11-17  Jim Meyering  <meyering@lucent.com>
79712
79713         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
79714         Now, that's done as part of AC_FUNC_STRTOD.
79715
79716 2001-11-17  Jim Meyering  <meyering@lucent.com>
79717
79718         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
79719         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
79720         rather than group writable.  Patch by Juan F. Codagnone.
79721
79722         * lib/readtokens.c: Remove explicit declarations of xmalloc and
79723         xrealloc, Instead, include "xalloc.h".
79724
79725         * lib/mountlist.c: Include unlocked-io.h after all system headers.
79726         Remove explicit declarations of xmalloc, xrealloc,
79727         and xstrdup.  Instead, include "xalloc.h".
79728
79729         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
79730         unlocked-io.h.
79731         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
79732         Likewise.
79733         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
79734
79735         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
79736         Reported by Padraig Brady.
79737
79738         * lib/mkstemp.c: #undef mkstemp.
79739         Include config.h.
79740         (rpl_mkstemp): Rename from mkstemp.
79741         Protoize.
79742
79743 2001-11-16  Jim Meyering  <meyering@lucent.com>
79744
79745         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
79746         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
79747         determine the amount of total physical memory, use pstat_getstatic.
79748         HPUX-11 doesn't define _SC_PHYS_PAGES.
79749         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
79750         If sysconf couldn't be used to determine the amount of available
79751         physical memory, use both pstat_getstatic and pstat_getdynamic.
79752         Based on a patch from Bob Proulx.
79753
79754 2001-11-10  Jim Meyering  <meyering@lucent.com>
79755
79756         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
79757         (jm_PREREQ): Use it.
79758
79759 2001-11-09  Jim Meyering  <meyering@lucent.com>
79760
79761         * m4/jm-macros.m4: Require autoconf-2.52f.
79762         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
79763         Use these AC_-prefixed names, not the AM_-prefixed ones.
79764
79765         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
79766
79767 2001-11-05  Jim Meyering  <meyering@lucent.com>
79768
79769         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
79770
79771 2001-11-04  Jim Meyering  <meyering@lucent.com>
79772
79773         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
79774         $DEFS.
79775
79776 2001-11-03  Jim Meyering  <meyering@lucent.com>
79777
79778         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
79779         of AC_DEFUN.
79780
79781         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
79782         know the name of the variable in the macro definition.
79783
79784 2001-11-03  Jim Meyering  <meyering@lucent.com>
79785
79786         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
79787         in argmatch_to_argument call.
79788
79789         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
79790         argument.
79791
79792         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
79793         e.g., a fault due to an attempt to free a NULL pointer.
79794
79795 2001-11-01  Jim Meyering  <meyering@lucent.com>
79796
79797         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
79798         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
79799
79800 2001-11-01  Jim Meyering  <meyering@lucent.com>
79801
79802         * lib/dirfd.c, lib/dirfd.h: New files.
79803         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
79804
79805         * lib/hash.c (hash_print) [TESTING]: Clean up.
79806
79807 2001-10-22  Paul Eggert  <eggert@twinsun.com>
79808
79809         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
79810         to avoid a warning if -Wall.
79811
79812 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
79813
79814         * README: New file
79815         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
79816         (per RMS's instructions, this is now the canonical source)
79817         * lgpl/, gpl/: New directories.
79818
79819 2001-10-21  Paul Eggert  <eggert@twinsun.com>
79820
79821         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
79822
79823 2001-10-21  Jim Meyering  <meyering@lucent.com>
79824
79825         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
79826         this code would end up calling gettext even in packages built
79827         with --disable-nls.
79828         * lib/getopt.c (_): Likewise.
79829         * lib/regex.c (_): Likewise.
79830
79831 2001-10-20  Paul Eggert  <eggert@twinsun.com>
79832
79833         * m4/error.m4 (jm_PREREQ_ERROR):
79834         Do not invoke AC_CHECK_FUNCS with strerror_r, as
79835         AC_FUNC_STRERROR_R does that.
79836         Check for strerror declaration.
79837
79838         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
79839         are supposed to have them these days.
79840         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
79841         Merge changes from latest Autoconf CVS.
79842         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
79843         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
79844         POSIX decided to standardize on the int flavor of strerror_r.
79845
79846 2001-10-20  Paul Eggert  <eggert@twinsun.com>
79847
79848         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
79849         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
79850         Use strerror_r that is only a macro, even if it is not a function.
79851         (strerror): Check for HAVE_DECL_STRERROR before declaring.
79852         (private_strerror): Use prototypes, not old-style function definition.
79853         (print_errno_message): New function.
79854         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
79855         char*-flavored one.
79856         (error_tail, error, error_at_line): Use it.
79857
79858 2001-10-11  Jim Meyering  <meyering@lucent.com>
79859
79860         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
79861         and quote_n (1, ... to avoid clobbering a buffer.
79862
79863 2001-10-05  Jim Meyering  <meyering@lucent.com>
79864
79865         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
79866         hash-pjw.h.
79867         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
79868         * lib/hash-pjw.h: New file.
79869
79870 2001-09-30  Jim Meyering  <meyering@lucent.com>
79871
79872         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
79873         `struct fsstat' has the `f_fstypename' member.
79874         Use that to define FS_TYPE, which is now used to make
79875         the getfsstat link test tighter.
79876
79877 2001-09-30  Jim Meyering  <meyering@lucent.com>
79878
79879         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
79880         Include <sys/ucred.h>, for Apple Darwin.
79881         Include sys/mount.h and sys/fs_types.h only if available.
79882         (FS_TYPE): Define.
79883         (read_filesystem_list): Use FS_TYPE.
79884
79885 2001-09-29  Paul Eggert  <eggert@twinsun.com>
79886
79887         * lib/exclude.c (excluded_filename): 0 -> false, since it's
79888         a boolean context.
79889
79890 2001-09-29  Jim Meyering  <meyering@lucent.com>
79891
79892         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
79893         [one-argument getmntent function]): Include stdio.h before mntent.h.
79894         SunOS 4.1.x needs it for the declaration of `FILE'.
79895         Patch by Volker Borchert.
79896
79897         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
79898         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
79899         sys/fs_types.h, and make the link-test for getfsstat guard #include
79900         directives with appropriate #if HAVE_*_H tests so that we can
79901         detect getfsstat on Apple Darwin1.3.7 systems.
79902         Reported by Nelson Beebe.
79903         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
79904
79905 2001-09-28  Paul Eggert  <eggert@twinsun.com>
79906
79907         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
79908         #defines strtoimax.  Also treat the other strto* functions
79909         like strtoimax.
79910
79911         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79912         Check for strtoul and strtoumax,
79913         as those declarations are made even in the signed case.
79914         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
79915         Likewise, for strtol and strtoimax.
79916
79917 2001-09-28  Paul Eggert  <eggert@twinsun.com>
79918
79919         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
79920         #defines strtoimax.  Also treat the other strto* functions
79921         like strtoimax.
79922
79923         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
79924         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
79925         (strtoimax, strtoumax): Do not declare if already defined as a macro.
79926
79927 2001-09-26  Jim Meyering  <meyering@lucent.com>
79928
79929         Most macros in unlocked-io.h had the wrong number of arguments.
79930         * lib/gen-uio: New script.
79931         (USE_UNLOCKED_IO): Define to 1 if not already defined.
79932         * lib/unlocked-io.hin: Remove file.
79933         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
79934         rather than trying to embed it here.
79935         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
79936         Reported by Padraig Brady.
79937
79938 2001-09-25  Volker Borchert  <bt@teknon.de>
79939
79940         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
79941         `result'.
79942
79943 2001-09-24  Jim Meyering  <meyering@lucent.com>
79944
79945         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
79946
79947 2001-09-23  Jim Meyering  <meyering@lucent.com>
79948
79949         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
79950         instead of the mere test for existence of mntent.h.  The latter
79951         would get a false-positive on AIX 3.4 systems.
79952         In the outer getmntent if-block, don't die if neither of the getmntent
79953         tests succeeds.  Instead, just fall through and continue with the
79954         remaining tests.
79955
79956 2001-09-23  Jim Meyering  <meyering@lucent.com>
79957
79958         * lib/mountlist.c: Remove useless parentheses in #if directives.
79959         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
79960         the deprecated MOUNTED symbol is no longer defined in mntent.h.
79961
79962 2001-09-22  Jim Meyering  <meyering@lucent.com>
79963
79964         * m4/gettext.m4: New file.  From gettext.
79965         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
79966         * m4/progtest.m4: Likewise
79967         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
79968         * m4/glibc21.m4: Likewise.
79969
79970         * m4/libintl.m4: Remove.  No longer used.
79971
79972 2001-09-22  Jim Meyering  <meyering@lucent.com>
79973
79974         * lib/localcharset.c: Update from latest gettext.
79975         * lib/config.charset: Likewise.
79976
79977 2001-09-20  Jim Meyering  <meyering@lucent.com>
79978
79979         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
79980         strtoimax.
79981         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
79982         strtoumax.
79983
79984 2001-09-20  Jim Meyering  <meyering@lucent.com>
79985
79986         * lib/xstrtol.c (strtoimax): Guard declaration with
79987         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
79988         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
79989         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
79990         (strtoumax): Likewise, for completeness (it wasn't necessary).
79991
79992 2001-09-17  Paul Eggert  <eggert@twinsun.com>
79993
79994         * lib/strtoimax.c (HAVE_LONG_LONG):
79995         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
79996         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
79997         to work around bug in IBM C compiler.
79998
79999 2001-09-17  Jim Meyering  <meyering@lucent.com>
80000
80001         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
80002         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
80003         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
80004         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
80005         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
80006         whenever the right hand side need not be expanded by the shell.
80007
80008 2001-09-16  Paul Eggert  <eggert@twinsun.com>
80009
80010         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
80011         library.  It's not correct, as some older glibcs are buggy.
80012         fnmatch wasn't fixed until glibc 2.2.
80013
80014         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
80015         special shell magic here.
80016
80017 2001-09-16  Jim Meyering  <meyering@lucent.com>
80018
80019         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
80020         * m4/jm-macros.m4: Require it.
80021
80022 2001-09-16  Jim Meyering  <meyering@lucent.com>
80023
80024         * lib/mkdir.c: New file.
80025
80026 2001-09-15  Jim Meyering  <meyering@lucent.com>
80027
80028         * m4/jm-macros.m4: Check for help2man.
80029
80030 2001-09-11  Jim Meyering  <meyering@lucent.com>
80031
80032         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
80033         The body, by Paul Eggert, was moved here from configure.in.
80034         * m4/jm-macros.m4: Require UTILS_HOST_OS.
80035
80036 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80037
80038         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
80039         (jm_PREREQ): Use it.
80040
80041 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80042
80043         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
80044         Use ssize_t, not int, to store result of readlink.
80045         Check for ssize_t overflow as well as size_t overflow,
80046         as POSIX says the result of readlink is implementation-defined
80047         when ssize_t overflows.
80048         Remove unnecessary cast to char*.
80049         Use free+malloc instead of realloc, as the storage doesn't need
80050         to be preserved and it's clearer and can be more efficient that way.
80051         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
80052         * lib/xreadlink.h (xreadlink): Update prototype.
80053
80054 2001-09-04  Paul Eggert  <eggert@twinsun.com>
80055
80056         * lib/xgetcwd.c: Revert some of the previous change; intead,
80057         fix the HAVE_GETCWD_NULL code to behave more like the
80058         !HAVE_GETCWD_NULL code used to.
80059
80060         Include "xalloc.h".
80061         (xgetcwd): Do not return NULL when memory is exhausted; instead,
80062         invoke xalloc_die.
80063
80064 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80065
80066         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
80067         sys/param.h, as pathmax.h includes them.
80068
80069 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80070
80071         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
80072         (jm_PREREQ_XGETCWD): New macro.
80073
80074         * m4/getcwd.m4: New file.
80075
80076 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80077
80078         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
80079         like the HAVE_GETCWD_NULL code.
80080         Include pathmax.h if not HAVE_GETCWD.
80081         Do not include xalloc.h.
80082         (INITIAL_BUFFER_SIZE): New symbol.
80083         Do not use xmalloc / xrealloc, since the caller is responsible for
80084         handling errors.  Preserve errno around `free' during failure.
80085         Do not overrun buffer when using getwd.
80086
80087 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80088
80089         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
80090         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
80091         getcwd (NULL, 0).
80092
80093 2001-09-03  Paul Eggert  <eggert@twinsun.com>
80094
80095         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
80096         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
80097         spotted by Jim Meyering.
80098
80099 2001-09-03  Jim Meyering  <meyering@lucent.com>
80100
80101         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
80102         failure.
80103
80104 2001-09-02  Jim Meyering  <meyering@lucent.com>
80105
80106         * lib/error.c: Update from GNU libc.
80107
80108 2001-09-01  Jim Meyering  <meyering@lucent.com>
80109
80110         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
80111         Used by df.
80112
80113 2001-09-01  Jim Meyering  <meyering@lucent.com>
80114
80115         * lib/xreadlink.c: New file.
80116         * lib/xreadlink.h: New file.
80117         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
80118         xreadlink.h.
80119
80120         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
80121         doesn't conflict with sparc Solaris 7's definition in
80122         /usr/include/sys/int_types.h.
80123
80124         * lib/exclude.c: Use `""', not `<>' to #include non-system header
80125         files.
80126         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
80127         and strncasecmp as r-values.  Unixware didn't have declarations.
80128
80129 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80130
80131         * lib/xstrtol.h: Add copyright notice.
80132         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
80133         LONGINT_INVALID_SUFFIX_CHAR.
80134
80135 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80136
80137         * lib/xstrtol.c (strtoimax): New decl.
80138
80139 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80140
80141         * lib/xgetcwd.c: Don't include pathmax.h.
80142         Include stdlib.h and unistd.h if available.
80143         Include xalloc.h.
80144         (xmalloc, xstrdup, free): Remove decls.
80145         (xgetcwd): Don't assume sizes fit in unsigned.
80146         Check for overflow when computing sizes.
80147         Simplify reallocation code.
80148
80149 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80150
80151         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
80152         a directory's st_size can have an arbitrary value, so the old
80153         usage could waste an arbitrary amount of memory.  All uses
80154         changed.
80155         * lib/savedir.h: Update prototype.
80156
80157 2001-08-31  Paul Eggert  <eggert@twinsun.com>
80158
80159         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
80160
80161         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
80162         old strtoimax.c.
80163
80164         Also, make the following further changes to make this file's
80165         configuration more similar to that of strtol.c:
80166         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
80167         (strtoumax, uintmax_t, strtoull, strtol): Remove.
80168         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
80169         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
80170         changed to signed values.
80171
80172         And make the following changes as well:
80173         Fix copyright notice, as 1999 was missing.
80174         (verify): New macro.
80175         (strtoimax): Check sizes at compile-time, not run-time.
80176         Prefer strtol to strtoll if both work.
80177         (main): Remove; it was not that useful and was a pain to maintain.
80178
80179         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
80180
80181 2001-08-31  Jim Meyering  <meyering@lucent.com>
80182
80183         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
80184         Use an initial, malloc'd, buffer of length 128 rather than
80185         a statically allocated one of length 1024.
80186
80187 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80188
80189         Simplify code, partly by assuming autoconf 2.52 semantics.
80190
80191         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
80192
80193         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
80194         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
80195         All uses removed.
80196         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
80197         Move AC_REQUIRE to next-to-top level, to avoid confusion.
80198         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
80199         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
80200         jm_AC_HEADER_INTTYPES_H.
80201         * m4/jm-macros.m4 (jm_MACROS): Likewise.
80202
80203         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
80204
80205         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
80206         Quote first arg of AC_DEFUN.
80207         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
80208         since they are needed to parse the include file even if we need
80209         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
80210         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
80211         but with opposite signedness.
80212
80213 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80214
80215         Merge 'exclude' changes from tar 1.13.22.
80216         This fixes one or two unlikely storage allocation overflow bugs,
80217         but doesn't change user-visible behavior otherwise.
80218
80219 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80220
80221         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
80222         (jm_PREREQ_EXCLUDE): New macro.
80223
80224 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80225
80226         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
80227         tm to be declared.
80228
80229 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80230
80231         * lib/hash.c: Remove '2001' from copyright notice.
80232
80233 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80234
80235         * lib/full-write.h: New file.
80236         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
80237         * lib/full-write.c: Correct credits, as cccp.c no longer
80238         exists and anyway it was so heavily changed from the old cccp
80239         code as to be unrecognizable.  Include full-write.h.
80240         (full_write): Return size_t, with short writes meaning failure.
80241         All callers changed.  This fixes a bug with large buffers
80242         on 64-bit hosts.
80243         * lib/utime.c: Include full-write.h.
80244
80245 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80246
80247         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
80248         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
80249         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
80250         Include if available.
80251         (<xalloc.h>): Include
80252         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
80253         (verify): New macro.  Use it to verify that EXCLUDE macros do not
80254         collide with FNM macros.
80255         (struct patopts): New struct.
80256         (struct exclude): Use it, as exclude patterns now come with options.
80257         (new_exclude): Support above changes.
80258         (new_exclude, add_exclude_file):
80259         Initial size must now be a power of two to simplify overflow checking.
80260         (free_exclude, fnmatch_no_wildcards): New function.
80261         (excluded_filename): No longer requires options arg, as the options
80262         are determined by add_exclude.  Now returns bool, not int.
80263         (excluded_filename, add_exclude):
80264         Add support for the fancy new exclusion options.
80265         (add_exclude, add_exclude_file): Now takes int options arg.
80266         Check for arithmetic overflow when computing sizes.
80267         (add_exclude_file): xrealloc might modify errno, so don't
80268         realloc until after errno might be used.
80269
80270         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
80271         New macros.
80272         (free_exclude): New decl.
80273         (add_exclude, add_exclude_file): Now takes int options arg.
80274         (excluded_filename): No longer requires options arg, as the options
80275         are determined by add_exclude.  Now returns bool, not int.
80276
80277 2001-08-30  Paul Eggert  <eggert@twinsun.com>
80278
80279         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
80280
80281 2001-08-27  Jim Meyering  <meyering@lucent.com>
80282
80283         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
80284
80285         * lib/version-etc.c (N_): Remove definition.
80286         Revert most of last change.
80287         Instead, simply don't mark the `Copyright...' string for translation.
80288         Based on advice from Paul Eggert.
80289
80290         * lib/strtoxmax.c: Tweak comment.
80291
80292 2001-08-26  Jim Meyering  <meyering@lucent.com>
80293
80294         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
80295
80296         * m4/xstrtoimax.m4: New file.
80297         * m4/xstrtoumax.m4: Add comments explaining why we
80298         AC_REPLACE_FUNCS(strtol).
80299
80300 2001-08-26  Jim Meyering  <meyering@lucent.com>
80301
80302         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
80303         of copyright with `%s' so translators don't get an untranslated
80304         message in 2002.
80305         (COPYRIGHT_YEAR): Define.
80306         (version_etc): Use fprintf rather than fputs.
80307         Suggestion from Ulrich Drepper.
80308
80309         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
80310
80311         * lib/strtoll.c: New file, from GNU libc.
80312         * lib/xstrtoimax.c: New file.
80313
80314         * lib/xstrtol.h: Add xstrtoimax.
80315         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
80316         * lib/strtoimax.c: New file.  Likewise, but first define
80317         STRTOUXMAX_SIGNED.
80318
80319         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
80320         ...
80321         * lib/strtoxmax.c: ... then renamed to this.
80322
80323 2001-08-18  Paul Eggert  <eggert@twinsun.com>
80324
80325         * m4/inttypes.m4: Add AC_PREREQ(2.13).
80326         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
80327         (jm_AC_TYPE_INTMAX_T): New macro.
80328         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
80329
80330         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
80331
80332         * m4/longlong.m4: Renamed from ulonglong.m4.
80333         * m4/inttypes.m4: Renamed from inttypes_h.m4.
80334         * m4/uintmax_t.m4: Removed.
80335
80336 2001-08-13  Paul Eggert  <eggert@twinsun.com>
80337
80338         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
80339         Port to Solaris 8, where 'sed' requires a space after the 'r'
80340         command, and where sh dislikes "$/".  Clean up the spacing a bit.
80341         Redirect output to $tmp just once.
80342
80343 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
80344
80345         * lib/addext.c (<errno.h>): Include.
80346         (errno): Declare if not defined.
80347         (addext): Work correctly when pathconf returns -1 and leaves
80348         errno alone because there is no limit.  Also, work even if
80349         pathconf returns a value greater than SIZE_MAX.
80350
80351 2001-08-12  Jim Meyering  <meyering@lucent.com>
80352
80353         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
80354         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
80355         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
80356         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
80357         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
80358         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
80359         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
80360         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
80361         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
80362         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
80363         utime.m4, utimes.m4, xstrtoumax.m4:
80364         Quote the first argument in each use of AC_DEFUN.
80365
80366 2001-08-12  Jim Meyering  <meyering@lucent.com>
80367
80368         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
80369         Simply `return getcwd (NULL, 0);'.
80370         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
80371         Use 1300 as initial value for length, not PATH_MAX.
80372
80373         * lib/pathmax.h: Clean up cpp syntax.
80374
80375 2001-08-12  Jim Meyering  <meyering@lucent.com>
80376
80377         * lib/gettimeofday.c: New file.
80378         * lib/gtod.h: New file.
80379         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
80380
80381 2001-08-05  Jim Meyering  <meyering@lucent.com>
80382
80383         * m4/jm-macros.m4: Require autoconf-2.52.
80384
80385 2001-08-04  Jim Meyering  <meyering@lucent.com>
80386
80387         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
80388         stmt, to get in sync with glibc.
80389
80390 2001-08-03  Paul Eggert  <eggert@twinsun.com>
80391
80392         The following changes are from gettext 0.10.39 as maintained by
80393         Bruno Haible.
80394
80395         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
80396         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
80397         with inverted sense.  All uses changed.
80398
80399         * lib/mbswidth.c: Don't include <limits.h>.
80400         Include <stdlib.h> and <string.h> unconditionally.
80401         (iswcntrl, mbsinit, ISCNTRL): New macros.
80402         (mbsnwidth): Use K&R style function declarations.
80403         Don't bother checking for MB_LEN_MAX == 1, since the compiler
80404         can optimize it when MB_CUR_MAX == 1.
80405         The width of control characters is zero, not 1.
80406
80407 2001-08-03  Paul Eggert  <eggert@twinsun.com>
80408
80409         The following changes are from gettext 0.10.39 as maintained by
80410         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
80411
80412         * m4/codeset.m4: Upgrade to serial AM1.
80413         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
80414         all uses changed.  Quote first arg of AC_DEFUN.
80415         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
80416
80417         * m4/iconv.m4: Upgrade to serial AM2.
80418         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
80419         Add --with-libconv-prefix.
80420         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
80421         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
80422         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
80423         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
80424         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
80425
80426         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
80427         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
80428         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
80429         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
80430         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
80431         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
80432         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
80433         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
80434         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80435
80436         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
80437         string.h any more.
80438
80439         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
80440         not the default value.
80441
80442         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
80443         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
80444         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
80445         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
80446         Also check for iswcntrl, used for wcwidth fallback.
80447         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
80448         to Autoconf 2.13.
80449
80450 2001-08-03  Jim Meyering  <meyering@lucent.com>
80451
80452         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
80453         as it was in the original.  Reported by Paul Eggert.
80454
80455 2001-07-16  Jim Meyering  <meyering@lucent.com>
80456
80457         * m4/gettimeofday.m4: New file.
80458         Prompted by a report from Bernhard Baehr.
80459
80460 2001-07-15  Jim Meyering  <meyering@lucent.com>
80461
80462         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
80463         stuff. Now it's in ../Makefile.cfg.
80464
80465 2001-07-15  Jim Meyering  <meyering@lucent.com>
80466
80467         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
80468         (BUILT_SOURCES): Add unlocked-io.h.
80469         (io_functions): Define.
80470         (unlocked-io.h): New rule.
80471         (DISTCLEANFILES): Add unlocked-io.h.
80472         (all-local): Depend on unlocked-io.h, to ensure it is created.
80473
80474         * lib/unlocked-io.hin: New file
80475
80476         * lib/regex.c: Update from glibc.
80477
80478 2001-07-05  Jim Meyering  <meyering@lucent.com>
80479
80480         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
80481         recommendation.
80482         (libfetish_a_SOURCES): Put all .h files here instead.
80483         Remove a thus-exposed (better checks in automake) duplicate and
80484         two unnecessary .h files.
80485
80486 2001-07-04  Jim Meyering  <meyering@lucent.com>
80487
80488         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
80489         that generates jm-glibc-io.m4 so that it doesn't trigger any make
80490         distcheck failure.
80491
80492 2001-07-02  Jim Meyering  <meyering@lucent.com>
80493
80494         The following changes were prompted by suggestions from Bruno Haible.
80495
80496         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
80497         is now generated.
80498         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
80499         definition of EXTRA_DIST.
80500         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
80501         ensure that the generated file is created/updated whenever the list
80502         of $(unlocked_functions) is changed.
80503         (jm-glibc-io.m4): New rule.
80504         (unlocked-io.h): New rule -- currently unused.
80505
80506 2001-06-24  Jim Meyering  <meyering@lucent.com>
80507
80508         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
80509         unmatched right bracket, rather than kludging it with an extra,
80510         falsely-matching quote in a comment.  Patch by Akim Demaille.
80511
80512 2001-06-11  Jim Meyering  <meyering@lucent.com>
80513
80514         * lib/regex.c: Update from GNU libc.
80515
80516 2001-05-27  Jim Meyering  <meyering@lucent.com>
80517
80518         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
80519         Check for ut_type in struct utmp.
80520
80521 2001-05-27  Jim Meyering  <meyering@lucent.com>
80522
80523         * lib/readutmp.h (UT_TYPE): Define.
80524
80525 2001-05-24  Jim Meyering  <meyering@lucent.com>
80526
80527         * lib/argmatch.c: Include "quote.h".
80528         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
80529         quote function.  Reported by Göran Uddeborg.
80530
80531 2001-05-22  Jim Meyering  <meyering@lucent.com>
80532
80533         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
80534         now that we use the package-supplied version unconditionally.
80535         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
80536
80537 2001-05-21  Jim Meyering  <meyering@lucent.com>
80538
80539         * m4/regex.m4: Change a couple backticks to single quotes to avoid
80540         shell syntax errors.
80541
80542 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
80543
80544         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
80545
80546 2001-05-20  Paul Eggert  <eggert@twinsun.com>
80547
80548         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
80549         Don't bother to check library strftime, since
80550         we'll be using our own my_strftime function anyway.
80551         Define my_strftime instead of strftime.
80552
80553 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
80554
80555         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
80556         which is not yet declared.
80557
80558 2001-05-15  Jim Meyering  <meyering@lucent.com>
80559
80560         * m4/regex.m4: Use proper quoting so brackets appear in the test
80561         program.
80562         Reported by, and with help from, Bruno Haible.
80563
80564 2001-05-13  Jim Meyering  <meyering@lucent.com>
80565
80566         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
80567         undefined.
80568
80569 2001-05-11  Paul Eggert  <eggert@twinsun.com>
80570
80571         dirname code cleanup.  base_name now behaves more compatibly
80572         with POSIX basename when given file names that have trailing
80573         slashes, and similarly for dir_name.  Add new primitives
80574         base_len and dir_len.  Put the directory-name-related decls
80575         into dirname.h.
80576
80577         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
80578         * lib/backupfile.c (base_name): Likewise.
80579         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
80580         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
80581         * lib/makepath.c (strip_trailing_slashes): Likewise.
80582         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
80583         ISSLASH): Likewise.
80584         * lib/rename.c (strip_trailing_slashes): Likewise.
80585         * lib/same.c (base_name): Likewise.
80586         * lib/stripslash.c (ISSLASH): Likewise.
80587
80588         * lib/addext.c: Include <dirname.h> after size_t is defined.
80589         * lib/backupfile.c: Likewise.
80590
80591         * lib/addext.c (addext): Use base_len to trim redundant
80592         trailing slashes instead of doing it ourselves.
80593         But do not trim the last slash if it is not redundant.
80594
80595         * lib/backupfile.c (find_backup_file_name,
80596         max_backup_version): Use base_len instead of rolling it ourselves.
80597         Handle the case of "" and (on DOS) "C:" correctly.
80598
80599         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
80600         needed. Include <string.h>, <dirname.h>.
80601         (base_name): Allow file names ending in slashes, other than names
80602         that are all slashes.  In this case, return the basename followed
80603         by the slashes.  This is more general, and can be used in places
80604         where the original base_name purposely had an assertion failure.
80605         (base_len): New function.
80606
80607         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
80608         Do not include <assert.h>; no longer needed.
80609         Include xalloc.h.
80610         (memrchr): Remove decl.
80611         (dir_name_r): Remove.
80612         (dir_len): Renamed from dirlen.  All callers changed.
80613         Rewrite in terms of base_name, for simplicity and consistency.
80614         (dir_name): Never return NULL.  All callers changed.
80615         Do not include <stdlib.h> in test program; no longer needed.
80616         return 0; is fine for test program.
80617
80618         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
80619         New macros.
80620         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
80621
80622         * lib/path-concat.c (path_concat): Use base_len to compute
80623         base length, not strlen; this means we cannot rely on memcpy
80624         to null-terminate.
80625
80626         * lib/same.c (STREQ): Remove.
80627         (same_name): Handle the case where the basename ends in trailing '/'.
80628
80629         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
80630         a slash was stripped.  Do not strip the last slash after a
80631         file system prefix.
80632
80633 2001-05-11  Paul Eggert  <eggert@twinsun.com>
80634
80635         * lib/Makefile.am (libfetish_a_SOURCES):
80636         Add strftime.c, since we now compile it on all hosts.
80637
80638         * lib/strftime.c (my_strftime):
80639         Define to nstrftime if emacs, but only if my_strftime is not defined.
80640         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
80641         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
80642         Add one more extra argument: a nanoseconds value.
80643         All uses changed.
80644         (ns): New macro.
80645         (my_strftime function): Add %N format.
80646         (emacs_strftimeu): Renamed from emacs_strftime,
80647         with extra ut argument.
80648
80649 2001-05-09  Paul Eggert  <eggert@twinsun.com>
80650
80651         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
80652
80653 2001-04-21  Jim Meyering  <meyering@lucent.com>
80654
80655         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
80656         doesn't interfere.
80657
80658 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
80659
80660         * m4/ftruncate.m4: Check for chsize.
80661         Link with ftruncate.o unconditionally if ftruncate is missing.
80662         This was required when cross-compiling to i586-mingw32msvc.
80663
80664 2001-04-08  Jim Meyering  <meyering@lucent.com>
80665
80666         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
80667         recomputed; that's necessary when the offset spans a DST transition.
80668         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
80669
80670 2001-04-02  Jim Meyering  <meyering@lucent.com>
80671
80672         * lib/regex.h, regex.c: Update from GNU libc.
80673
80674 2001-03-24  Jim Meyering  <meyering@lucent.com>
80675
80676         * m4/jm-macros.m4: Require autoconf-2.49d.
80677
80678 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
80679
80680         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
80681
80682 2001-03-19  Paul Eggert  <eggert@twinsun.com>
80683
80684         * lib/version-etc.c (version_etc_copyright): Update to 2001.
80685
80686 2001-03-17  Jim Meyering  <meyering@lucent.com>
80687
80688         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
80689         now that the version in autoconf is equivalent.
80690         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
80691
80692         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
80693         Suggestion from Akim Demaille.
80694
80695         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
80696         (jm_PREREQ_TEMPNAME): New function.
80697
80698 2001-03-16  Paul Eggert  <eggert@twinsun.com>
80699
80700         * lib/tempname.c (uint64_t): Define to uintmax_t if
80701         not defined, and if UINT64_MAX is not defined.
80702         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
80703         Reported by John David Anglin.
80704
80705 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
80706
80707         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
80708         resolve alias if codeset is empty.
80709         * lib/config.charset (BeOS): Use wildcard syntax.
80710
80711 2001-03-13  Jim Meyering  <meyering@lucent.com>
80712
80713         * lib/path-concat.c (path_concat)
80714         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
80715         concatenating e.g., `C:' and `foo'.
80716         From Bruno Haible.
80717
80718 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
80719
80720         * lib/localcharset.c (locale_charset): Don't use
80721         setlocale(LC_CTYPE,NULL). Don't return NULL.
80722         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
80723
80724 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
80725
80726         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
80727         support for DOS/DJGPP.
80728
80729 2001-03-01  Paul Eggert  <eggert@twinsun.com>
80730
80731         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
80732         lacks mkstemp.  Compile our own tempname.c if we compile our own
80733         mkstemp.c, as mkstemp relies on tempname.
80734
80735 2001-03-01  Jim Meyering  <meyering@lucent.com>
80736
80737         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
80738         AH_VERBATIM really does output its argument verbatim.
80739
80740 2001-02-28  Paul Eggert  <eggert@twinsun.com>
80741
80742         * lib/Makefile.am (libfetish_a_SOURCES):
80743         Add dup-safer.c, fopen-safer.c.
80744         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
80745
80746         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
80747         * lib/unistd-safer.h: New files.
80748
80749 2001-02-25  Paul Eggert  <eggert@twinsun.com>
80750
80751         The mkstemp replacement is taken from glibc 2.2.2, with some
80752         portability fixes for use outside glibc, as follows:
80753
80754         * lib/tempname.c (struct_stat64): New macro.
80755         (direxists, __gen_tempname): Use it.
80756         This avoids a portability problem with Solaris 8.
80757
80758         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
80759         (<stddef.h>, <stdint.h>, <string.h>):
80760         Include only if STDC_HEADERS || _LIBC.
80761         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
80762         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
80763         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
80764         (__set_errno): Define this macro if <errno.h> doesn't.
80765         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
80766         Define these macros if <stdio.h> doesn't.
80767         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
80768         Define these macros if <sys/stat.h>
80769         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
80770         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
80771         __xstat64): Define if not _LIBC.
80772         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
80773         (__gen_tempname): Invoke gettimeofday only if
80774         HAVE_GETTIMEOFDAY || _LIBC;
80775         otherwise, fall back on plain "time".
80776         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
80777
80778         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
80779
80780         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
80781
80782 2001-02-18  Paul Eggert  <eggert@twinsun.com>
80783
80784         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
80785
80786 2001-02-17  Paul Eggert  <eggert@twinsun.com>
80787
80788         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
80789         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
80790         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
80791         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
80792
80793 2001-02-17  Paul Eggert  <eggert@twinsun.com>
80794
80795         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
80796         Remove workaround macros for hosts that have mbrtowc but not
80797         mbstate_t, as we now insist on proper declarations for both
80798         before using mbrtowc.
80799
80800 2001-02-17  Jim Meyering  <meyering@lucent.com>
80801
80802         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
80803         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
80804         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
80805         UnixWare 7.1.1.
80806
80807         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
80808         rather than AC_CACHE_VAL.
80809
80810 2001-02-17  Jim Meyering  <meyering@lucent.com>
80811
80812         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
80813         around included file name.
80814
80815         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
80816
80817         * lib/strftime.c: Update from GNU libc (the only changes were to
80818         comments).
80819
80820 2001-02-17  Jim Meyering  <meyering@lucent.com>
80821
80822         * lib/regex.c: Update from libc.
80823
80824 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
80825
80826         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
80827         clash.
80828
80829 2001-02-16  Paul Eggert  <eggert@twinsun.com>
80830
80831         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
80832         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
80833         Reported by Mark Hounschell via Paul Eggert.
80834
80835 2001-02-07  Jim Meyering  <meyering@lucent.com>
80836
80837         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
80838
80839 2001-02-05  Jim Meyering  <meyering@lucent.com>
80840
80841         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
80842         it includes the patch required for `large file' support with at least
80843         HP-UX's 10.20 /bin/cc.
80844
80845 2001-02-03  Jim Meyering  <meyering@lucent.com>
80846
80847         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
80848         AS_IF, now that it works once again (mysteriously).
80849         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
80850
80851 2001-01-30  Jim Meyering  <meyering@lucent.com>
80852
80853         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
80854         * m4/chown.m4: Rename conftestchown to conftest.chown.
80855         * m4/rename.m4: s/conftestdir/conftest.d1/ and
80856         s/conftestdir2/conftest.d2/.
80857         * m4/utimes.m4: s/conftestdata/conftest.data/
80858         Inspired by Pavel Roskin's change in autoconf.
80859
80860 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
80861
80862         * lib/config.charset: Update for FreeBSD 4.2.
80863
80864 2001-01-27  Jim Meyering  <meyering@lucent.com>
80865
80866         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
80867         a use of AS_IF.
80868         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
80869
80870 2001-01-26  Jim Meyering  <meyering@lucent.com>
80871
80872         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
80873         quotearg.c includes it.
80874
80875 2001-01-26  Jim Meyering  <meyering@lucent.com>
80876
80877         * lib/quotearg.c: Include stddef.h.
80878         * lib/quote.c: Include stddef.h.
80879         Reported by Axel Kittenberger.
80880
80881         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
80882         line in double quotes so that it evokes a better diagnostic.
80883         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
80884         Reported by Axel Kittenberger.
80885
80886 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
80887
80888         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
80889         as if it was a `charset'.
80890
80891 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
80892
80893         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
80894         has const.
80895
80896 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
80897
80898         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
80899         to avoid a warning.  Add back 'const' to inptr.
80900
80901 2001-01-20  Jim Meyering  <meyering@lucent.com>
80902
80903         Be sure that headers are checked before used in code compiled
80904         for the type checks.
80905         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
80906         In place of that, invoke jm_CHECK_ALL_TYPES.
80907         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
80908         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
80909         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
80910         The check for ssize_t was mistakenly run before the test for unistd.h.
80911
80912         The configure-time check for stdbool.h was missing.
80913         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
80914         (jm_PREREQ_HASH): New function.
80915
80916 2001-01-17  Jim Meyering  <meyering@lucent.com>
80917
80918         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
80919         for autoconf-2.49c.
80920         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
80921
80922 2001-01-16  Jim Meyering  <meyering@lucent.com>
80923
80924         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
80925         From Bruno Haible.
80926
80927 2001-01-14  Jim Meyering  <meyering@lucent.com>
80928
80929         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
80930         foo and bar.  Create conftestdir/ in the script, not in the C code.
80931         Remove directories in the script, not in the C code.
80932         Remove conftestdir{,2} before trying to create the directory.
80933         Make the entire configure script fail if the mkdir fails.
80934
80935 2001-01-14  Jim Meyering  <meyering@lucent.com>
80936
80937         * lib/rename.c: New file.  From Volker Borchert.
80938         Include stdlib.h, string.h or strings.h, and xalloc.h.
80939         Use strip_trailing_slashes rather than open-coding it.
80940
80941 2001-01-03  Paul Eggert  <eggert@twinsun.com>
80942
80943         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
80944
80945 2001-01-03  Jim Meyering  <meyering@lucent.com>
80946
80947         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
80948         of local `inptr' to avoid warning with some system declarations of
80949         iconv.
80950
80951 2001-01-02  Volker Borchert  <bt@teknon.de>
80952
80953         * m4/rename.m4: New file.
80954         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
80955
80956 2001-01-01  Jim Meyering  <meyering@lucent.com>
80957
80958         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
80959         even on systems with utmpx.h.  It's necessary for the declaration of
80960         utmp's ut_user member.  Reported by Andreas Jaeger.
80961
80962         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
80963         available. They are required for the declarations of getgrgid and
80964         getpwuid resp.
80965         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
80966         Reported by Andreas Jaeger.
80967
80968 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
80969
80970         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
80971         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
80972         so `make install' also works in VPATH builds.
80973
80974 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
80975
80976         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
80977         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
80978         can be used in subdirectories.
80979
80980 2000-12-29  Paul Eggert  <eggert@twinsun.com>
80981
80982         * lib/modechange.c: Do not assume that mode_t uses the
80983         traditional octal encoding.  E.g. "chmod 1 FOO" should set
80984         the other-execute bit of FOO even if S_IXOTH != 1.
80985
80986         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
80987         WOTH, XOTH, ALLM): New macros.
80988         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
80989          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
80990         Use them.
80991         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
80992         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
80993         (mode_compile):
80994         No need to use uintmax_t; unsigned long is long enough.
80995         Don't bother to get suffix since we don't use it.
80996
80997 2000-12-26  Jim Meyering  <meyering@lucent.com>
80998
80999         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
81000         better with autoheader.
81001
81002 2000-12-24  Jim Meyering  <meyering@lucent.com>
81003
81004         * lib/hash.c (is_prime): Return explicit boolean values.
81005         (hash_get_first): Return NULL to appease Irix5.6's 89.
81006         Reported by Nelson Beebe.
81007
81008 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
81009
81010         * lib/localcharset.c (locale_charset): Add support for Win32.
81011
81012 2000-12-18  Paul Eggert  <eggert@twinsun.com>
81013
81014         * lib/physmem.h, lib/physmem.c: New files.
81015
81016         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
81017         (noinst_HEADERS): Add physmem.h.
81018
81019         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
81020         't' for compatibility with Solaris 8 sort.
81021
81022 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
81023
81024         * lib/config.charset: Add support for BeOS.
81025
81026 2000-12-17  Jim Meyering  <meyering@lucent.com>
81027
81028         * m4/dos.m4 (jm_AC_DOS): New file and macro.
81029         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
81030
81031 2000-12-16  Jim Meyering  <meyering@lucent.com>
81032
81033         This bug had a serious impact on chown: `chown N:M FILE' (for integer
81034         N and M) would have treated it like `chown N:N FILE'.
81035
81036         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
81037
81038 2000-12-16  Jim Meyering  <meyering@lucent.com>
81039
81040         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
81041         SHELLS_FILE to a file name that's useful on djgpp systems.
81042         Include stdlib.h.
81043         (ADDITIONAL_DEFAULT_SHELLS): Define.
81044         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
81045         Based mostly on a patch from Prashant TR.
81046
81047 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
81048
81049         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
81050         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
81051         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
81052
81053 2000-12-08  Andreas Schwab  <schwab@suse.de>
81054
81055         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
81056         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
81057
81058 2000-12-07  Jim Meyering  <meyering@lucent.com>
81059
81060         * lib/stripslash.c (ISSLASH): Define.
81061         (strip_trailing_slashes): Use ISSLASH rather than comparing against
81062         `/'.
81063         From Prashant TR.
81064
81065         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
81066         (dir_name_r): Declare this function as static.
81067         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
81068         manifest itself on a name containing a mix of slashes and
81069         backslashes.
81070         Make this function work with names starting with a DOS-style
81071         drive letter and colon prefix.
81072         (dir_name): Append `.' if necessary.
81073         Based mostly on patches from Prashant TR and Eli Zaretskii.
81074
81075         * lib/dirname.h (dir_name_r): Remove prototype.
81076
81077 2000-12-06  Paul Eggert  <eggert@twinsun.com>
81078
81079         * m4/off_t-format.m4: Remove this file.
81080         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
81081
81082 2000-12-06  Jim Meyering  <meyering@lucent.com>
81083
81084         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
81085         replacement strtoull, we may well need the replacement strtoul, too.
81086         Check for declarations of strtoul and strtoull.
81087         Check for strtol.  Mainly as a cue to cause automake to include
81088         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
81089         Check for limits.h -- strtol.c needs it.
81090
81091 2000-12-05  Jim Meyering  <meyering@lucent.com>
81092
81093         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
81094
81095 2000-12-04  Jim Meyering  <meyering@lucent.com>
81096
81097         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
81098         Also include memory.h, stdlib.h, unistd.h if appropriate.
81099         Reported by Andreas Jaeger (conflicting declaration of malloc).
81100
81101 2000-12-02  Jim Meyering  <meyering@lucent.com>
81102
81103         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
81104         * m4/jm-macros.m4 (jm_MACROS): require it.
81105
81106 2000-12-02  Jim Meyering  <meyering@lucent.com>
81107
81108         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
81109
81110 2000-12-01  Paul Eggert  <eggert@twinsun.com>
81111
81112         * lib/memrchr.c: Include <config.h> before any system include file.
81113
81114 2000-11-30  Jim Meyering  <meyering@lucent.com>
81115
81116         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
81117
81118 2000-11-30  Jim Meyering  <meyering@lucent.com>
81119
81120         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
81121
81122 2000-11-29  Paul Eggert  <eggert@twinsun.com>
81123
81124         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
81125
81126 2000-11-26  Jim Meyering  <meyering@lucent.com>
81127
81128         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
81129
81130 2000-11-22  Paul Eggert  <eggert@twinsun.com>
81131
81132         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
81133         size of (size_t) -1; it's not portable.
81134
81135 2000-11-17  Jim Meyering  <meyering@lucent.com>
81136
81137         * lib/strstr.c: Update from GNU libc.
81138
81139 2000-11-17  Akim Demaille  <akim@epita.fr>
81140
81141         * lib/obstack.h: Formatting changes.
81142         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
81143         prevent type checking.
81144         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
81145         cast the value to (void *): assigning a `foo *' to a `void *'
81146         variable is valid.
81147         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
81148
81149 2000-11-16  Jim Meyering  <meyering@lucent.com>
81150
81151         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
81152
81153 2000-11-11  Jim Meyering  <meyering@lucent.com>
81154
81155         * lib/error.c: Add a couple #includes, merging from GNU libc version.
81156
81157 2000-11-10  Jim Meyering  <meyering@lucent.com>
81158
81159         * lib/obstack.h: Update from GNU libc.
81160         * lib/obstack.c: Likewise.
81161
81162 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
81163
81164         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
81165
81166 2000-11-06  Paul Eggert  <eggert@twinsun.com>
81167
81168         * lib/getusershell.c (setusershell): Use rewind rather than
81169         fseek/fseeko, to avoid configuration hassles with fseeko.
81170         Don't bother opening SHELLS_FILE if shellstream is NULL;
81171         it's not necessary.
81172
81173 2000-11-05  Jim Meyering  <meyering@lucent.com>
81174
81175         * lib/makepath.h (make_dir): Declare.
81176         * lib/makepath.c (make_dir): Remove `static' attribute.
81177         Tweak a comment.
81178
81179 2000-11-04  Jim Meyering  <meyering@lucent.com>
81180
81181         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
81182
81183 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
81184
81185         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
81186         last one in a bucket, advance to the next bucket.
81187
81188 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
81189
81190         * lib/fnmatch.c: Do not comment out all the code if we are using
81191         the GNU C library, because in some cases we are replacing buggy
81192         code in the GNU C library itself.
81193
81194 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
81195
81196         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
81197         (regex_compile): Catch bogus \(\1\).
81198
81199 2000-10-30  Paul Eggert  <eggert@twinsun.com>
81200
81201         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
81202         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
81203         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
81204
81205 2000-10-30  Paul Eggert  <eggert@twinsun.com>
81206
81207         * lib/error.h, getline.h, modechange.h:
81208         Remove "2000" from Copyright line, as the file hasn't been
81209         changed this year other than in the copyright notice.
81210
81211         * lib/xalloc.h: Add "2000" to Copyright line, as this file
81212         was changed this year.
81213
81214 2000-10-29  Jim Meyering  <meyering@lucent.com>
81215
81216         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
81217         renaming.
81218         * m4/ls-mntd-fs.m4: Likewise
81219
81220 2000-10-29  Jim Meyering  <meyering@lucent.com>
81221
81222         * lib/xstat.in: Fix grammar in comment.
81223
81224 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
81225
81226         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
81227         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
81228         doesn't define __restrict_arr.
81229
81230 2000-10-28  Jim Meyering  <meyering@lucent.com>
81231
81232         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
81233         (jm_PREREQ_MEMCHR): New function.
81234
81235 2000-10-28  Jim Meyering  <meyering@lucent.com>
81236
81237         * lib/memchr.c: Update from libc.
81238         Adjust for portability:
81239         [HAVE_STDLIB_H]: Include stdlib.h.
81240         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
81241         Undef __memchr, too.
81242         [!weak_alias]: Define __memchr to memchr.
81243
81244         * lib/regex.c: Update from libc.
81245         * lib/regex.h: Likewise.
81246         * lib/getopt1.c: Likewise.
81247         * lib/memcmp.c: Likewise.
81248
81249         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
81250         Avoid using fseek, when possible -- it's broken by design.
81251         Patch by Ulrich Drepper.
81252
81253 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
81254
81255         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
81256         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
81257         Giving in to popular pressure to shut up the compiler with casts.
81258
81259 2000-10-26  Jim Meyering  <meyering@lucent.com>
81260
81261         * lib/strftime.c: Update from libc.
81262
81263 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
81264
81265         * regex.c: More `unsigned char' -> `re_char' changes.
81266         Also change several `int' into `re_wchar_t'.
81267         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
81268         (PUSH_FAILURE_POINTER): Don't cast any more.
81269         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
81270         We want GCC to complain, since this piece of code makes
81271         re_match non-reentrant, which *should* be fixed.
81272         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
81273         (EXTEND_BUFFER): Use RETALLOC.
81274         (SET_LIST_BIT): Don't cast.
81275         (re_wchar_t): New type.
81276         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
81277         that those two functions will always properly return.
81278         (IMMEDIATE_QUIT_CHECK): Cast to void.
81279         (analyse_first): Use recursion rather than an explicit stack.
81280         (re_compile_fastmap): Can't fail anymore.
81281         (re_search_2): Don't check re_compile_fastmap for failure.
81282         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
81283         Now also sets the new value (passed in a new argument).
81284         (re_match_2_internal): Use it.
81285         Also, use a new var `reg' of type size_t when looping through regs
81286         rather than reuse the inappropriate `mcnt'.
81287
81288 2000-10-25  Jim Meyering  <meyering@lucent.com>
81289
81290         * lib/obstack.c: Update from libc.
81291
81292 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
81293
81294         * regex.c (regex_compile): Change the way of handling a range from
81295         a char less than 256 to a char not less than 256.
81296
81297 2000-10-24  Andrew Innes  <andrewi@gnu.org>
81298
81299         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
81300         NT-Emacs only.
81301         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
81302         so that re_search functions only quit when callers expect them to.
81303
81304 2000-10-23  Jim Meyering  <meyering@lucent.com>
81305
81306         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
81307         wrong.  That set_locale call must not have any side effects.
81308         From Paul Eggert.
81309
81310 2000-10-22  Jim Meyering  <meyering@lucent.com>
81311
81312         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
81313         [CYCLIC]: Remove now-unused definition.
81314
81315         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
81316         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
81317         Suggestion from Ulrich Drepper.
81318
81319 2000-10-21  Jim Meyering  <meyering@lucent.com>
81320
81321         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
81322         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
81323         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
81324
81325 2000-10-21  Jim Meyering  <meyering@lucent.com>
81326
81327         * lib/dirname.c (memrchr): Declare if necessary.
81328         (dir_name): Remove the restriction that there be no
81329         trailing slashes.  Now, this code skips past them, effectively
81330         ignoring them.
81331         [TEST_DIRNAME] (main): New unit tests.
81332
81333         * lib/memrchr.c: New file from GNU libc.
81334         Undef __memrchr, too.
81335         [!weak_alias]: Define __memrchr to memrchr.
81336         Guard weak_alias use with `#ifdef weak_alias'.
81337
81338 2000-10-21  Jim Meyering  <meyering@lucent.com>
81339
81340         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
81341         (dir_name): Use dir_name_r.
81342         * lib/dirname.h (dir_name_r): Declare it.
81343
81344 2000-10-17  Jim Meyering  <meyering@lucent.com>
81345
81346         * lib/quote.h (PARAMS): Define and use.
81347         Reported by Akim Demaille.
81348
81349         * lib/getopt.c: Update from libc.
81350
81351 2000-10-16  Jim Meyering  <meyering@lucent.com>
81352
81353         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
81354         setlocale.
81355         From Jan Fedak.
81356
81357 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
81358
81359         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
81360
81361 2000-09-25  Jim Meyering  <meyering@lucent.com>
81362
81363         * lib/md5.h (rol): Define (from GnuPG).
81364
81365         * lib/sha.c: Give credit (GnuPG) where due.
81366         (M): Use rol rather than open-coding it.
81367         Add a FIXME comment.
81368
81369 2000-09-21  Jim Meyering  <meyering@lucent.com>
81370
81371         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
81372         Reported by Michael Stone.
81373
81374 2000-09-20  Jim Meyering  <meyering@lucent.com>
81375
81376         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
81377         (noinst_HEADERS): Add sha.h.
81378         Based on code from Scott G. Miller and from GnuPG.
81379
81380 2000-09-18  Jim Meyering  <meyering@lucent.com>
81381
81382         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
81383         LIBS. Otherwise, everyone ends up linking with -lelf for some
81384         configurations.
81385         Reported by Mike Stone.
81386
81387 2000-09-15  Jim Meyering  <meyering@lucent.com>
81388
81389         * lib/regex.c: Update from libc.
81390
81391 2000-09-10  Jim Meyering  <meyering@lucent.com>
81392
81393         * lib/getopt.c (_getopt_internal): Update from glibc.
81394
81395 2000-09-09  Jim Meyering  <meyering@lucent.com>
81396
81397         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
81398         think it should be used as a general replacement for isascii.
81399         * lib/fnmatch.c: Likewise.
81400         * lib/mbswidth.c: Likewise
81401         * lib/regex.c: Likewise.
81402
81403         Don't use atoi.
81404         * lib/userspec.c: Include sys/param.h and limits.h.
81405         Include xstrtol.h.
81406         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81407         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
81408         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
81409         UID, GID.  Check range.
81410
81411 2000-09-06  Jim Meyering  <meyering@lucent.com>
81412
81413         * lib/getopt.c (_getopt_internal): Update from glibc.
81414
81415 2000-08-30  Jim Meyering  <meyering@lucent.com>
81416
81417         * lib/strftime.c: Merge in changes from GNU libc.
81418
81419 2000-08-26  Jim Meyering  <meyering@lucent.com>
81420
81421         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
81422         * m4/fpending.m4: New file.
81423
81424 2000-08-26  Jim Meyering  <meyering@lucent.com>
81425
81426         * lib/closeout.c: Include "__fpending.h".
81427         (close_stdout_status): Return right away if there's nothing to flush.
81428
81429         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
81430         * lib/__fpending.c: New file.
81431         * lib/__fpending.h: New file.
81432
81433 2000-08-20  Jim Meyering  <meyering@lucent.com>
81434
81435         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
81436         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
81437         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
81438
81439 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
81440
81441         Improve fileutils installation on systems where running
81442         programs (like install) can't be unlinked.
81443         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
81444         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
81445
81446 2000-08-07  Paul Eggert  <eggert@twinsun.com>
81447
81448         Standardize on "memory exhausted" instead of "Memory exhausted"
81449         or "virtual memory exhausted".
81450         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
81451         "virtual memory exhausted".
81452         * lib/same.c (same_name): Invoke xalloc_die instead of printing
81453         our own message.
81454         * lib/userspec.c (parse_user_spec): Likewise.
81455         * lib/bumpalloc.h: comment fix
81456         * lib/same.c, userspec.c: Include xalloc.h.
81457
81458         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
81459         not char *const and pointing to a constant array.
81460         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
81461         (xrealloc): Comment fix.
81462
81463         * lib/userspec.c (parse_user_spec):
81464         Don't translate a message until just before returning,
81465         to avoid unnecessary translation.
81466
81467 2000-08-07  Jim Meyering  <meyering@lucent.com>
81468
81469         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
81470         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
81471         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
81472         getgroups.c, gethostname.c, getopt.h, group-member.c,
81473         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
81474         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
81475         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
81476         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
81477         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
81478         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
81479         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
81480         yesno.c: Back out Copyright date changes for each file with no change
81481         this year.  This eases coordination with other programs using the same
81482         source code modules.  From Paul Eggert.
81483
81484 2000-08-06  Paul Eggert  <eggert@twinsun.com>
81485
81486         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
81487         not char, for compatibility with glibc 2.1.3 strftime.c.
81488
81489 2000-08-03  Greg McGary  <greg@mcgary.org>
81490
81491         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
81492         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
81493         (EXTEND_BUFFER): Use them.
81494
81495 2000-08-01  Jim Meyering  <meyering@lucent.com>
81496
81497         * lib/dirname.c (ISSLASH): Define.
81498         (BACKSLASH_IS_PATH_SEPARATOR): Define.
81499         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
81500         both `\' and `/' may be use as path separators.
81501         Based on a patch from Prashant TR.
81502
81503 2000-07-31  Paul Eggert  <eggert@twinsun.com>
81504
81505         * lib/quotearg.c (quotearg_n_options): Don't make the initial
81506         slot vector a constant, since it might get modified.
81507
81508 2000-07-31  Jim Meyering  <meyering@lucent.com>
81509
81510         * lib/xmalloc.c: Use `virtual memory exhausted', not
81511         `Memory exhausted'.
81512         * lib/obstack.c (print_and_abort): Likewise.
81513
81514 2000-07-30  Paul Eggert  <eggert@twinsun.com>
81515
81516         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
81517         buffer, so that the caller can always quote one small
81518         component of a "memory exhausted" message in slot 0.
81519         From a suggestion by Jim Meyering.
81520
81521 2000-07-30  Jim Meyering  <meyering@lucent.com>
81522
81523         * lib/makepath.c (make_path): Quote the other instance, too.
81524
81525         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
81526         (STATIC_BUF_SIZE): Define.
81527         (quotearg_n_options): Use only statically allocated storage when
81528         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
81529         than STATIC_BUF_SIZE.
81530
81531 2000-07-29  Jim Meyering  <meyering@lucent.com>
81532
81533         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
81534         * lib/dirname.c (dir_name): Likewise.
81535
81536         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
81537         `/'.
81538
81539         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
81540         (dir_name): Assert that there are no trailing slashes.
81541
81542 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
81543
81544         * lib/mbswidth.h (mbswidth): Add a flags argument.
81545         (mbswidth): New declaration.
81546         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
81547         * lib/mbswidth.c (mbswidth): Add a flags argument.
81548         (mbsnwidth): New function.
81549
81550 2000-07-24  Jim Meyering  <meyering@lucent.com>
81551
81552         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
81553
81554 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81555
81556         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
81557
81558 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81559
81560         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
81561         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
81562         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
81563         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
81564         invoke multibyte primitives.
81565
81566 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81567
81568         * lib/quotearg.c:
81569         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
81570         so that mbstate_t is always defined.
81571
81572         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
81573         be 1 in at least one GCC installation, and this configuration
81574         error is likely to be common.  Ignoring MB_LEN_MAX hurts
81575         performance on hosts that have mbrtowc but have only unibyte
81576         locales, but I assume these hosts are rare.
81577
81578 2000-07-23  Paul Eggert  <eggert@twinsun.com>
81579
81580         * lib/mbswidth.c (_XOPEN_SOURCE):
81581         Don't define; this causes problems on Solaris 7.
81582         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
81583
81584 2000-07-23  Jim Meyering  <meyering@lucent.com>
81585
81586         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
81587         too: getgrgid, getpwuid, getuid.
81588
81589 2000-07-23  Jim Meyering  <meyering@lucent.com>
81590
81591         * lib/basename.c (base_name): Add an assertion.
81592
81593 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
81594
81595         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
81596         shadow its mbsinit function.
81597
81598 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
81599
81600         * lib/mbswidth.h: New file.
81601         * lib/mbswidth.c: New file.
81602         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
81603         (noinst_HEADERS): Add mbswidth.h.
81604
81605 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
81606
81607         * lib/config.charset: Add support for FreeBSD. Improve support for
81608         HP-UX and IRIX 6.
81609
81610 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
81611
81612         * m4/mbswidth.m4: New file.
81613         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
81614
81615 2000-07-15  Jim Meyering  <meyering@lucent.com>
81616
81617         * lib/makepath.c: Include quote.h.
81618         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
81619         corresponding argument in a `quote (...)' call.
81620         Give better diagnostics.
81621
81622         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
81623         (noinst_HEADERS): Add quote.h.
81624
81625         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
81626         from tar's src/misc.c.
81627         * lib/quote.h: New file.  Prototypes for same.
81628
81629 2000-07-14  Paul Eggert  <eggert@twinsun.com>
81630
81631         From a suggestion by Bruno Haible.
81632         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
81633         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
81634         to decide whether to define the BeOS workaround macro;
81635         this adjusts to the change to AC_MBSTATE_T.
81636
81637 2000-07-14  Jim Meyering  <meyering@lucent.com>
81638
81639         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
81640         jm_AC_TYPE_UINTMAX_T.
81641
81642 2000-07-13  Paul Eggert  <eggert@twinsun.com>
81643
81644         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
81645
81646         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
81647         quotearg_buffer_restyled): Add support for
81648         clocale_quoting_style.  Undo previous change to
81649         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
81650         and "{RIGHT QUOTATION MARK}" msgids.
81651
81652 2000-07-10  Paul Eggert  <eggert@twinsun.com>
81653
81654         From a suggestion by Bruno Haible.
81655         * m4/mbstate_t.m4 (AC_MBSTATE_T):
81656         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
81657         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
81658         and mbstate_t, to a single-part test that simply defines mbstate_t.
81659         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
81660         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
81661
81662 2000-07-10  Jim Meyering  <meyering@lucent.com>
81663
81664         * m4/strerror_r.m4: Mirror the correction made in autoconf.
81665
81666         * m4/gnu-source.m4: Output to confdefs.h directly.
81667         Suggestion from Akim Demaille.
81668
81669 2000-07-09  Paul Eggert  <eggert@twinsun.com>
81670
81671         The old behavior of quoting `like this' doesn't look good with
81672         newer, ISO-style fonts.  See:
81673         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
81674
81675         Instead, quote "like this" by default.  Let the translator
81676         tailor the locale-specific quoting behavior by providing
81677         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
81678
81679         * lib/quotearg.c (N_): New macro.
81680         (gettext_default): New function.
81681         (quotearg_buffer_restyled): Use
81682         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
81683         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
81684
81685 2000-07-09  Jim Meyering  <meyering@lucent.com>
81686
81687         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
81688         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
81689
81690         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
81691         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
81692
81693 2000-07-09  Jim Meyering  <meyering@lucent.com>
81694
81695         * lib/Most files: Update copyright dates to include 2000.
81696
81697 2000-07-08  Jim Meyering  <meyering@lucent.com>
81698
81699         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
81700         if not defined.
81701         (xgethostname): Remove now-unnecessary #ifdef.
81702         Move declaration of `err' into loop where it's used.
81703
81704 2000-07-05  Paul Eggert  <eggert@twinsun.com>
81705         and Bruno Haible  <haible@clisp.cons.org>
81706
81707         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
81708         only if the test for an object-type mbstate_t fails.  This
81709         prevents us from mistakenly reporting that mbstate_t is a
81710         system object type after we "#define mbstate_t int" to work
81711         around its lack.
81712
81713 2000-07-05  Paul Eggert  <eggert@twinsun.com>
81714         and Bruno Haible  <haible@clisp.cons.org>
81715
81716         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
81717
81718 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81719
81720         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
81721         to strerror_r.
81722         Include <ctype.h> for use of isalpha.
81723
81724 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81725
81726         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
81727         by allocating a larger buffer. Test the gethostname return value for
81728         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
81729         returns an error and ENAMETOOLONG isn't defined.
81730
81731 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
81732
81733         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
81734         dimension.
81735
81736 2000-07-04  Jim Meyering  <meyering@lucent.com>
81737
81738         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
81739         of the deprecated AC_CHECKING.
81740
81741 2000-07-04  Jim Meyering  <meyering@lucent.com>
81742
81743         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
81744         Reported by Bruno Haible.
81745
81746 2000-07-04  Jim Meyering  <meyering@lucent.com>
81747
81748         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
81749         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
81750         lacks mbrtowc.
81751
81752 2000-07-03  Paul Eggert  <eggert@twinsun.com>
81753
81754         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
81755         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
81756
81757 2000-07-03  Paul Eggert  <eggert@twinsun.com>
81758         and Bruno Haible  <haible@clisp.cons.org>
81759
81760         * lib/quotearg.c (mbrtowc):
81761         Assign to *pwc, and return 1 only if result is nonzero.
81762         (iswprint): Use ISPRINT when substituting our own mbrtowc.
81763
81764 2000-07-03  Jim Meyering  <meyering@lucent.com>
81765
81766         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
81767
81768 2000-07-03  Jim Meyering  <meyering@lucent.com>
81769
81770         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
81771         This is necessary to get a definition of e.g., UTMP_FILE on
81772         HP-UX 10.20.
81773         From Bob Proulx.
81774
81775 2000-07-02  Jim Meyering  <meyering@lucent.com>
81776
81777         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
81778
81779         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
81780         AC_LIBOBJ(function_name).
81781         * m4/chown.m4: Likewise.
81782         * m4/fnmatch.m4: Likewise.
81783         * m4/ftruncate.m4: Likewise.
81784         * m4/getgroups.m4: Likewise.
81785         * m4/getline.m4: Likewise.
81786         * m4/group-member.m4: Likewise.
81787         * m4/jm-macros.m4: Likewise.
81788         * m4/lstat.m4: Likewise.
81789         * m4/malloc.m4: Likewise.
81790         * m4/memcmp.m4: Likewise.
81791         * m4/nanosleep.m4: Likewise.
81792         * m4/putenv.m4: Likewise.
81793         * m4/realloc.m4: Likewise.
81794         * m4/regex.m4: Likewise.
81795         * m4/stat.m4: Likewise.
81796         * m4/strftime.m4: Likewise.
81797
81798 2000-07-02  Jim Meyering  <meyering@lucent.com>
81799
81800         * lib/quotearg.c (mbstate_t): Don't define here.
81801
81802 2000-07-02  Jim Meyering  <meyering@lucent.com>
81803
81804         * lib/nanosleep.c (SIGCONT): Define if not already defined.
81805
81806 2000-07-01  Jim Meyering  <meyering@lucent.com>
81807
81808         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
81809
81810 2000-07-01  Jim Meyering  <meyering@lucent.com>
81811
81812         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
81813         problem.
81814
81815 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
81816
81817         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
81818         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
81819
81820 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
81821
81822         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
81823         per change in ../m4/ls-mntd-fs.m4.
81824         (read_filesystem_list): Ignore symbolic links.
81825
81826 2000-06-29  Jim Meyering  <meyering@lucent.com>
81827
81828         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
81829         for declaration of strcmp.
81830
81831         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
81832
81833         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
81834         Avoid warning by casting result to `char *' to remove `const'.
81835
81836 2000-06-28  Jim Meyering  <meyering@lucent.com>
81837
81838         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
81839         included by quotearg.c, for which we perform this test.  From
81840         Bruno Haible.
81841
81842 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
81843
81844         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
81845         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
81846         <utmpx.h> exists, put readutmp.o into LIBOBJS.
81847
81848 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
81849
81850         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
81851
81852 2000-06-26  Paul Eggert  <eggert@twinsun.com>
81853
81854         savedir now sets errno on failure and invokes xmalloc to get memory.
81855         Fix a couple of other minor bugs while we're at it.
81856
81857         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
81858         (NAMLEN): Remove macro.
81859         (malloc, realloc): Remove decls.
81860         (stpcpy): Likewise.
81861         ("xalloc.h"): Include.
81862         (NAME_SIZE_DEFAULT): New macro.
81863         (savedir): Use xmalloc / xrealloc to allocate memory.
81864         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
81865         Skip "" directory entries.
81866         Use strlen to calculate directory entry length, since the old method
81867         is rarely used these days and isn't worth supporting.
81868         Don't use a pointer after freeing it.
81869         Check for integer overflow when calculating allocation size.
81870         Use memcpy to copy entries, instead of stpcpy.
81871         Set errno properly when returning NULL.
81872         Check for readdir error.
81873
81874 2000-06-26  Jim Meyering  <meyering@lucent.com>
81875
81876         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
81877
81878 2000-06-25  Jim Meyering  <meyering@lucent.com>
81879
81880         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
81881         Linux header bug when _XOPEN_SOURCE is defined to 500.
81882
81883 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
81884
81885         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
81886         deficiency.
81887
81888 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
81889
81890         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
81891         Include xalloc.h.
81892         Don't include <stdlib.h>.  Don't declare malloc, realloc.
81893
81894 2000-06-24  Jim Meyering  <meyering@lucent.com>
81895
81896         * m4/strerror_r.m4: Revive this file -- to try out an experimental
81897         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
81898         for which strerror does return char*, but which lacks a conveniently
81899         accessible declaration of the function.  If the compile-test says
81900         strerror_r doesn't work, then resort to a `run'-test that works on
81901         BeOS and segfaults on DEC Unix.
81902
81903 2000-06-24  Jim Meyering  <meyering@lucent.com>
81904
81905         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
81906
81907 2000-06-23  Paul Eggert  <eggert@twinsun.com>
81908
81909         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
81910         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
81911
81912 2000-06-23  Paul Eggert  <eggert@twinsun.com>
81913
81914         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
81915         (mbrtowc, mbstate_t): Define substitutes if
81916         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
81917         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
81918         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
81919
81920 2000-06-23  Jim Meyering  <meyering@lucent.com>
81921
81922         * m4/afs.m4: Add missing AC_MSG_RESULT.
81923         Reported by Bruno Haible.
81924
81925         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
81926         Suggestion from Bruno Haible.
81927
81928 2000-06-23  Jim Meyering  <meyering@lucent.com>
81929
81930         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
81931
81932 2000-06-21  Jim Meyering  <meyering@lucent.com>
81933
81934         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
81935
81936 2000-06-21  Jim Meyering  <meyering@lucent.com>
81937
81938         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
81939         (noinst_HEADERS): Add getstr.h.
81940
81941         * lib/getline.c (getstr): Move into a separate file.
81942         * lib/getstr.c (getstr): New file, extracted from getline.c, with
81943         the following changes: new parameter, delim2; both delim[12]
81944         parameters have type `int', not `char'.  The latter would lose
81945         with 8-bit delimiters.
81946         * lib/getstr.h: New file.
81947
81948 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81949
81950         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
81951         than 1024, return a memory chunk of least possible size, instead
81952         of size PATH_MAX + 2. In the loop, increment the size proportionally.
81953         Use free/xmalloc instead of xrealloc to avoid copying for very long
81954         paths.
81955
81956 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81957
81958         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
81959         the empty string.
81960
81961 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81962
81963         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
81964         address, not strdup.  Include <stdlib.h> and don't declare free().
81965
81966 2000-06-19  Jim Meyering  <meyering@lucent.com>
81967
81968         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
81969
81970 2000-06-18  Jim Meyering  <meyering@lucent.com>
81971
81972         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
81973
81974         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
81975         `checking whether...' message to be consistent with that of the
81976         lstat test.
81977
81978 2000-06-18  Jim Meyering  <meyering@lucent.com>
81979
81980         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
81981         Besides, these days every porting target provides a mkdir function.
81982
81983         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
81984         needed. (this snippet comes from src/system.h).
81985
81986 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
81987
81988         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
81989
81990 2000-06-15  Paul Eggert  <eggert@twinsun.com>
81991
81992         * lib/human.c (adjust_value): New function.
81993         (human_readable_inexact): Apply rounding style even when
81994         printing approximate values.
81995
81996 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81997
81998         * lib/human.c (human_readable_inexact): Allow an input block
81999         size that is not a multiple of the output block size, and vice versa.
82000         Reported by Piergiorgio Sartor.
82001
82002 2000-06-14  Paul Eggert  <eggert@twinsun.com>
82003
82004         * lib/getdate.y (get_date): Apply relative times after time
82005         zone indicator, not before.  Reported by Todd A. Jacobs.
82006
82007 2000-06-13  Jim Meyering  <meyering@lucent.com>
82008
82009         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
82010
82011         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
82012
82013 2000-06-12  Paul Eggert  <eggert@twinsun.com>
82014
82015         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
82016
82017 2000-06-12  Jim Meyering  <meyering@lucent.com>
82018
82019         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
82020         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
82021         optional argument.
82022         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
82023         the optional argument, `lib'.
82024
82025 2000-06-08  Jim Meyering  <meyering@lucent.com>
82026
82027         * m4/largefile.m4: Remove file (now that it's part of autoconf).
82028
82029 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82030
82031         Rewrite largefile configuration so that we don't need to run
82032         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
82033         AC_CANONICAL_HOST in configure.in -- jmm]
82034
82035         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
82036         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
82037         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
82038         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
82039         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
82040         All uses changed.
82041         Instead of inspecting the output of getconf, try to compile the
82042         test program without and with the macro definition.
82043         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
82044         for getconf.  Instead, check for the needed flags by compiling
82045         test programs.
82046
82047 2000-06-04  Paul Eggert  <eggert@twinsun.com>
82048
82049         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
82050
82051 2000-06-04  Jim Meyering  <meyering@lucent.com>
82052
82053         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
82054         SunOS 4.1.4 for which gid_t is an unsigned type.
82055
82056 2000-06-03  Jim Meyering  <meyering@lucent.com>
82057
82058         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
82059         now that autoconf requires that.
82060
82061         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
82062         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
82063         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
82064
82065 2000-06-03  Jim Meyering  <meyering@lucent.com>
82066
82067         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
82068
82069 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82070
82071         * m4/glibc21.m4: New file.
82072         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
82073
82074 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
82075
82076         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
82077         newer, don't install charset.alias.
82078         * lib/config.charset: Change the Linux/glibc rules so they become empty
82079         on glibc-2.1 or newer.
82080
82081 2000-06-02  Jim Meyering  <meyering@lucent.com>
82082
82083         * lib/mountlist.c: Back out last change.  Instead, do this...
82084         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
82085         me_dummy member using the same `ignore'-testing code.
82086         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
82087         fs_type strings.
82088         From Mark D. Roth.
82089
82090 2000-05-29  Jim Meyering  <meyering@lucent.com>
82091
82092         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
82093         mounts with the `ignore' attribute.  Based on a patch from
82094         Mark D. Roth.
82095
82096 2000-05-28  Jim Meyering  <meyering@lucent.com>
82097
82098         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
82099         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82100         * m4/stat.m4: Likewise.
82101         * m4/lstat.m4: Likewise.
82102         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
82103
82104         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
82105         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
82106
82107 2000-05-26  Jim Meyering  <meyering@lucent.com>
82108
82109         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
82110
82111 2000-05-24  Jim Meyering  <meyering@lucent.com>
82112
82113         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
82114         autoconf requires that.
82115         * m4/lib-check.m4: Likewise.
82116         * m4/jm-macros.m4: Likewise.
82117         * m4/strftime.m4: Likewise.
82118
82119         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
82120         AC_CHECK_DECLS, now that autoconf requires that.
82121
82122 2000-05-22  Jim Meyering  <meyering@lucent.com>
82123
82124         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82125         * m4/lstat.m4: Likewise.
82126
82127 2000-05-22  Jim Meyering  <meyering@lucent.com>
82128
82129         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
82130
82131 2000-05-20  Jim Meyering  <meyering@lucent.com>
82132
82133         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
82134         (jm_PREREQ): Use it.
82135
82136 2000-05-18  Jim Meyering  <meyering@lucent.com>
82137
82138         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
82139         back, too, since it may have been modified by allocate_entry.
82140         (hash_delete): Rewrite to use neither the assignment operator
82141         nor the comma operator in an if-expression.
82142
82143 2000-05-15  Paul Eggert  <eggert@twinsun.com>
82144
82145         * lib/closeout.c:
82146         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
82147         Remove; no longer needed.
82148         "quotearg.h": Add include.
82149         (file_name): Do not bother to explicitly initialize to NULL; it's less
82150         efficient on some hosts.
82151         (close_stdout_status): Remove test as to whether stdout was already
82152         closed; it breaks for the case "echo x | sort >&-".
82153         Quote file name colons.
82154         Do not assume that _("write error") lacks format strings.
82155
82156 2000-05-15  Jim Meyering  <meyering@lucent.com>
82157
82158         * lib/version-etc.c (version_etc_copyright): Update the copyright
82159         string used in all --version output.
82160
82161 2000-05-14  Jim Meyering  <meyering@lucent.com>
82162
82163         * lib/closeout.c (close_stdout_set_file_name): New function.
82164         (close_stdout_status): Use new file-scoped global.
82165         Return right away if fstat says the stdout file descriptor is invalid.
82166         * lib/closeout.h (close_stdout_set_file_name): Declare.
82167
82168 2000-05-10  Jim Meyering  <meyering@lucent.com>
82169
82170         * lib/closeout.c [default_exit_status]: New file-scoped variable.
82171         (close_stdout_set_status): New function.
82172         * lib/closeout.h (close_stdout_set_status): Declare.
82173
82174 2000-05-09  Jim Meyering  <meyering@lucent.com>
82175
82176         * m4/gettext.m4: Rename this...
82177         * m4/libintl.m4: ...to this.
82178
82179 2000-05-08  Jim Meyering  <meyering@lucent.com>
82180
82181         * lib/long-options.c: Don't include closeout.h.
82182         (parse_long_options): Don't call close_stdout for --version.
82183
82184 2000-05-06  Paul Eggert  <eggert@twinsun.com>
82185
82186         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
82187         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
82188         2.1.3 bug.  This avoids a clash when files like regex.c define
82189         _GNU_SOURCE.
82190
82191 2000-05-06  Jim Meyering  <meyering@lucent.com>
82192
82193         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
82194         (AC_REPLACE_FUNCS): Add strnlen.
82195
82196         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
82197         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
82198
82199         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
82200         AC_SEARCH_LIBS call for nanosleep.
82201         (LIB_NANOSLEEP): Set and AC_SUBST.
82202
82203 2000-05-06  Jim Meyering  <meyering@lucent.com>
82204
82205         * lib/strnlen.c: Undefine __strnlen and strnlen.
82206         [!weak_alias]: Define __strnlen to strnlen.
82207
82208         * lib/atexit.c: New file, from libiberty.
82209
82210 2000-05-06  Jim Meyering  <meyering@lucent.com>
82211
82212         * lib/closeout.c (close_stdout_status): Also check for errors on the
82213         stderr stream.
82214
82215 2000-05-05  Jim Meyering  <meyering@lucent.com>
82216
82217         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
82218         AC_SEARCH_LIBS call for clock_gettime.
82219         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
82220
82221         * m4/search-libs.m4: Update from autoconf.
82222
82223         su doesn't work on Solaris 2.6.
82224         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
82225         <shadow.h>.  Reported by Dragos Harabor.
82226
82227 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
82228
82229         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
82230         memcpy instead of xmalloc, xrealloc, path_concat.
82231         (locale_charset): Treat empty environment variables as absent.
82232         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
82233
82234 2000-05-04  Jim Meyering  <meyering@lucent.com>
82235
82236         * lib/getopt.c: Update from glibc.
82237         * lib/obstack.c: Likewise.
82238         * lib/obstack.h: Likewise.
82239         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
82240         file
82241
82242         * lib/regex.h: Likewise.
82243         * lib/strndup.c: Likewise.
82244         * lib/strnlen.c: New file, from glibc.
82245
82246 2000-05-03  Jim Meyering  <meyering@lucent.com>
82247
82248         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
82249
82250 2000-05-02  Paul Eggert  <eggert@twinsun.com>
82251
82252         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
82253         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
82254         compile-time test, rather than inspecting host and OS, to
82255         decide whether to define _LARGEFILE_SOURCE.
82256
82257 2000-05-01  Jim Meyering  <meyering@lucent.com>
82258
82259         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
82260
82261         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
82262         Based on a patch from Bruno Haible.
82263
82264 2000-05-01  Jim Meyering  <meyering@lucent.com>
82265
82266         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
82267
82268 2000-04-29  Jim Meyering  <meyering@lucent.com>
82269
82270         * lib/path-concat.c: Declare strdup only if it's not defined.
82271         * lib/canon-host.c: Likewise.
82272
82273 2000-04-28  Jim Meyering  <meyering@lucent.com>
82274
82275         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
82276         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
82277         is included first, then limits.h is included by locale.h by libintl.h.
82278         From John David Anglin.
82279
82280 2000-04-25  Jim Meyering  <meyering@lucent.com>
82281
82282         * lib/makepath.c (S_IRWXUGO): Define.
82283         (make_path): Always perform explicit chmod if MODE specifies any
82284         of the `special' permission bits.  Prompted by a bug report against
82285         install from Mate Wierdl and Joost van Baal.
82286
82287 2000-04-18  Jim Meyering  <meyering@lucent.com>
82288
82289         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
82290         (jm_PREREQ): Use it.
82291
82292 2000-04-18  Jim Meyering  <meyering@lucent.com>
82293
82294         * lib/README: New file.
82295
82296         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
82297         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
82298
82299 2000-04-17  Jim Meyering  <meyering@lucent.com>
82300
82301         Get it right :-)
82302         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
82303         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
82304         Suggestion from Akim Demaille.
82305
82306 2000-04-17  Jim Meyering  <meyering@lucent.com>
82307
82308         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
82309         the definition of it to rpl_strftime also defined-away the system's
82310         declaration.
82311
82312 2000-04-15  Jim Meyering  <meyering@lucent.com>
82313
82314         Use `C' to denote so-called `contiguous' files, the same way
82315         that tar does.
82316         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
82317         (ftypelet): Use S_ISCTG.
82318         From Michael Deutschmann.
82319
82320 2000-04-14  Jim Meyering  <meyering@lucent.com>
82321
82322         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
82323         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
82324         clobbered.
82325
82326 2000-04-14  Jim Meyering  <meyering@lucent.com>
82327
82328         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
82329
82330 2000-04-13  Jim Meyering  <meyering@lucent.com>
82331
82332         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
82333         AH_VERBATIM to insert required #ifndef into config.h.in.
82334         Suggestion from Akim Demaille.
82335
82336 2000-04-12  Jim Meyering  <meyering@lucent.com>
82337
82338         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
82339         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
82340         Christian Krackowizer.
82341
82342         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
82343         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
82344         (AC_SYS_LARGEFILE): Require.
82345         (AM_C_PROTOTYPES): Require.
82346
82347 2000-04-08  Jim Meyering  <meyering@lucent.com>
82348
82349         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
82350         names don't conflict.  Reported by Eli Zaretskii.
82351
82352 2000-04-07  Jim Meyering  <meyering@lucent.com>
82353
82354         * lib/putenv.c: Move inclusion of errno.h so it follows that of
82355         sys/types.h, to work around system header problems on AIX 3.2.5.
82356         From Bruno Haible.
82357
82358 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
82359
82360         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
82361         bug.  Deal with the different error behavior of Irix iconv.
82362
82363 2000-04-05  Paul Eggert  <eggert@twinsun.com>
82364
82365         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
82366         IRIX if the installer said otherwise.
82367
82368 2000-04-05  Jim Meyering  <meyering@lucent.com>
82369
82370         Portability tweaks required for ultrix4.3.
82371         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
82372         (jm_CHECK_DECLS): Add getutent to the list of functions.
82373         (_jm_DECL_HEADERS): Add utmpx.h.
82374         From John David Anglin.
82375
82376         * m4/strftime.m4: Back out the 2000-04-02 change.
82377         Instead of that change, simply undefine putenv in the test program.
82378
82379 2000-04-05  Jim Meyering  <meyering@lucent.com>
82380
82381         Portability tweaks required for ultrix4.3.
82382         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
82383         getutent.
82384         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
82385         * lib/canon-host.c: Declare strdup.
82386         * lib/path-concat.c: Likewise.
82387         From John David Anglin.
82388
82389 2000-04-04  Jim Meyering  <meyering@lucent.com>
82390
82391         Be more DOS 8.3-friendly.
82392         * lib/ref-add.sin: Renamed from ref-add.sed.in.
82393         * lib/ref-del.sin: Renamed from ref-del.sed.in.
82394         * lib/Makefile.am: Reflect renaming.
82395         Reported by Eli Zaretskii.
82396
82397         Use a temporary file name that won't clash with `charset.alias'
82398         in the DOS 8.3 name space.
82399         * lib/Makefile.am (charset_tmp): Define.
82400         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
82401         (uninstall-local): Likewise.
82402         Reported by Eli Zaretskii.
82403
82404 2000-04-03  Jim Meyering  <meyering@lucent.com>
82405
82406         * m4/gettext.m4: Fix typo in comment.
82407
82408         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
82409         textutils/configure.in).  Suggestion from Paul Eggert.
82410         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
82411
82412 2000-04-02  Paul Eggert  <eggert@twinsun.com>
82413
82414         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
82415         variable in the shell rather than using putenv, which isn't
82416         portable.  This avoids the configure-time inter-test dependency
82417         on the potentially-renamed putenv function.
82418
82419 2000-03-30  Paul Eggert  <eggert@twinsun.com>
82420
82421         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
82422         before checking struct stat.st_blksize, so that
82423         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
82424
82425 2000-03-29  Paul Eggert  <eggert@twinsun.com>
82426
82427         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
82428         since strftime.c uses HAVE_STRFTIME to decide whether to use
82429         the underlying strftime.
82430
82431 2000-03-29  Paul Eggert  <eggert@twinsun.com>
82432
82433         * lib/time/strftime.c (my_strftime): Make sure we call the system
82434         strftime, not ourselves, when invoking the underlying strftime.
82435
82436 2000-03-24  Jim Meyering  <meyering@lucent.com>
82437
82438         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
82439         (charset_alias): Define.
82440         (install-exec-local): Factor out common code.
82441         (uninstall-local): Split lines longer than 80.
82442         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
82443         (SUFFIXES): Define.
82444         (.sed.in.sed): New rule.  Don't redirect directly to $@.
82445         (CLEANFILES): Add ref-add.sed and ref-del.sed.
82446
82447 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
82448
82449         * lib/config.charset: Output a line containing "Packages using this
82450         file".
82451         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
82452         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
82453         ref-del.sed): New rules.
82454
82455 2000-03-17  Jim Meyering  <meyering@lucent.com>
82456
82457         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
82458         Otherwise, include <strings.h>
82459
82460 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
82461
82462         * lib/unicodeio.c (utf8_wctomb): New function.
82463         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
82464         format instead of in UCS-4 with platform dependent endianness.
82465
82466 2000-03-10  Jim Meyering  <meyering@lucent.com>
82467
82468         * m4/lib-check.m4: Look for getspnam in -lgen, too.
82469         From Marco Franzen.
82470
82471 2000-03-07  Paul Eggert  <eggert@twinsun.com>
82472
82473         * lib/savedir.c (savedir): Work even if directory size is
82474         negative; this can happen with some screwy NFS configurations.
82475
82476 2000-03-06  Jim Meyering  <meyering@lucent.com>
82477
82478         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
82479         if it's NULL (because we ran out of memory).  From Bruno Haible.
82480
82481 2000-03-05  Jim Meyering  <meyering@lucent.com>
82482
82483         * lib/localcharset.c ("path-concat.h"): Include.
82484         (get_charset_aliases): Use path_concat instead of ANSI string
82485         concatenation.
82486
82487         * lib/unicodeio.h (PARAMS): Define.
82488         Use it to guard prototype.
82489
82490 2000-03-04  Jim Meyering  <meyering@lucent.com>
82491
82492         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
82493         for lib/localcharset.c.
82494
82495 2000-03-04  Jim Meyering  <meyering@lucent.com>
82496
82497         * lib/Makefile.am (install-exec-local): Create $(libdir) before
82498         installing into it.
82499         (uninstall-local): Uncomment this rule so `make distcheck' works
82500         once again.
82501
82502         * lib/unicodeio.c (<errno.h>): Include it.
82503         (errno): Declare if not defined.
82504
82505         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
82506
82507         * lib/config.charset: New version, incorporating remarks from a linux
82508         i18n mailing list.  From Bruno Haible.
82509
82510 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
82511
82512         * m4/codeset.m4: New file.
82513         * m4/iconv.m4: New file.
82514         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
82515
82516 2000-03-03  Jim Meyering  <meyering@lucent.com>
82517
82518         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
82519
82520 2000-03-02  Jim Meyering  <meyering@lucent.com>
82521
82522         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
82523         the messages come out on separate lines.
82524
82525         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
82526         rather than jm_CHECK_DECLARATIONS.
82527         * m4/decl.m4: Remove now-unused file.
82528
82529         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
82530         geteuid.
82531
82532 2000-03-02  Jim Meyering  <meyering@lucent.com>
82533
82534         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
82535
82536 2000-03-01  Jim Meyering  <meyering@lucent.com>
82537
82538         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
82539         * lib/unicodeio.c: Likewise.
82540
82541 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
82542
82543         * lib/config.charset: New file.
82544         * lib/localcharset.c: New file.
82545         * lib/unicodeio.h, lib/unicodeio.c: New files.
82546         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
82547         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
82548         (noinst_HEADERS): Add unicodeio.h.
82549         (all-local, install-exec-local, charset.alias): New targets.
82550
82551 2000-02-28  Paul Eggert  <eggert@twinsun.com>
82552
82553         * lib/quotearg.c (ALERT_CHAR): New macro.
82554         (quotearg_buffer_restyled): Use it.
82555
82556 2000-02-27  Jim Meyering  <meyering@lucent.com>
82557
82558         * m4/check-decl.m4: Add getenv to the list.
82559
82560 2000-02-27  Jim Meyering  <meyering@lucent.com>
82561
82562         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
82563         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
82564
82565         * lib/backupfile.c: Guard inclusion of stdlib.h with
82566         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
82567         Declare malloc if needed.
82568
82569         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
82570         `#ifndef HAVE_DECL..'
82571         now that autoconf always defines the HAVE_DECL_ symbols.
82572         * lib/human.c: Likewise.
82573         * lib/same.c: Likewise.
82574         * lib/strtoumax.c: Likewise.
82575
82576         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
82577         declaration check was not run.
82578         * lib/hash.c: Likewise.
82579         * lib/human.c: Likewise.
82580         * lib/same.c: Likewise.
82581         * lib/strtoumax.c: Likewise.
82582
82583         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
82584         `.', then first look up the entire `.'-containing string as a login
82585         name.
82586
82587 2000-02-23  Jim Meyering  <meyering@lucent.com>
82588
82589         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
82590         in place of my hack.
82591
82592 2000-02-18  Paul Eggert  <eggert@twinsun.com>
82593
82594         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
82595         (textint): New typedef.
82596         (parser_control): Member year changed from int to textint.
82597         All uses changed.
82598         (YYSTYPE): Removed; replaced by %union with int and textint members.
82599         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
82600         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
82601         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
82602         (tSNUMBER, tUNUMBER): Now of type <textintval>.
82603         (date, number, to_year): Use width of number in digits, not its value,
82604         to determine whether it's a 2-digit year, or a 2-digit time.
82605         (yylex): Store number of digits of numeric tokens.
82606         Reported by John Kendall.
82607
82608         (parser_control): Changed from struct parser_control to typedef (for
82609         consistency).  All uses changed.
82610
82611         (tID): Removed; not used.
82612         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
82613
82614 2000-02-14  Paul Eggert  <eggert@twinsun.com>
82615
82616         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
82617         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
82618
82619 2000-02-12  Jim Meyering  <meyering@lucent.com>
82620
82621         * lib/userspec.c (ISDIGIT): Define it.
82622         (isdigit): Remove definition.
82623         (is_number): Use ISDIGIT, not isdigit.
82624         <libintl.h>: Include.
82625         (_ and N_): Define.
82626         (parse_user_spec): Mark translatable strings.
82627
82628 2000-02-10  Jim Meyering  <meyering@lucent.com>
82629
82630         With these changes, nanosleep.[ch] are finally enough like the other
82631         lib/* replacement files to compile on a few more losing systems.
82632
82633         * lib/nanosleep.h: Don't include config.h.
82634         Remove prototype from declaration of nanosleep.
82635         (PARAMS): Remove now-unneeded definition.
82636         * lib/nanosleep.c: #undef nanosleep.
82637         (rpl_nanosleep): Rename from nanosleep.
82638
82639 2000-02-10  Jim Meyering  <meyering@lucent.com>
82640
82641         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
82642         gnu_nanosleep to rpl_nanosleep.
82643
82644 2000-02-09  Jim Meyering  <meyering@lucent.com>
82645
82646         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
82647         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
82648
82649 2000-02-08  Akim Demaille  <akim@epita.fr>
82650
82651         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
82652         `[' and `]' and remove uses of `changequote'.
82653         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
82654         (AC_SYS_LARGEFILE): Likewise.
82655         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
82656         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
82657         of changequote.
82658         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
82659         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
82660         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
82661         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
82662
82663 2000-02-05  Jim Meyering  <meyering@lucent.com>
82664
82665         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
82666         Remove explicit use of AC_HEADER_TIME.  It is required by
82667         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
82668         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
82669         in autoconf whereby the expansion of the latter ended up preceding
82670         the expansion of its prerequisite, AC_HEADER_TIME.
82671         Reported by Volker Borchert.
82672
82673 2000-02-03  Jim Meyering  <meyering@lucent.com>
82674
82675         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
82676
82677 2000-02-03  Jim Meyering  <meyering@lucent.com>
82678
82679         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
82680         rather than with `#if HAVE_UTMPNAME'.
82681
82682 2000-02-02  Jim Meyering  <meyering@lucent.com>
82683
82684         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
82685         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
82686         Reported by Eli Zaretskii.
82687
82688 2000-02-01  Jim Meyering  <meyering@lucent.com>
82689
82690         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
82691
82692 2000-01-31  Jim Meyering  <meyering@lucent.com>
82693
82694         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
82695         functions.  Add the time.h and sys/time.h headers along with the
82696         AC_REQUIRE'ment of AC_HEADER_TIME.
82697
82698 2000-01-31  Jim Meyering  <meyering@lucent.com>
82699
82700         * lib/nanosleep.h (nanosleep): Guard declaration with
82701         `#if ! HAVE_DECL_NANOSLEEP'.
82702         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
82703         the declaration in that vendor's sys/timers.h.
82704         Reported by Christian Krackowizer.
82705
82706         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
82707         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
82708         (ISPRINT): Likewise.
82709         Reported by Tom Tromey.
82710
82711 2000-01-30  Jim Meyering  <meyering@lucent.com>
82712
82713         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
82714
82715         * m4/prereq.m4 (utmp_includes): Define.
82716         Check for ut_user and ut_name members in both struct utmpx
82717         and struct utmp.
82718
82719 2000-01-30  Jim Meyering  <meyering@lucent.com>
82720
82721         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
82722         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
82723         header files where only utmpx.ut_user is declared.
82724
82725         * lib/readutmp.h (UT_USER): Define.
82726
82727 2000-01-29  Jim Meyering  <meyering@lucent.com>
82728
82729         * m4/lib-check.m4: New file containing library-related checks from
82730         fileutils and sh-utils (textutils had none).
82731
82732 2000-01-28  Jim Meyering  <meyering@lucent.com>
82733
82734         * m4/perl.m4: Change format of warning message to look more like that
82735         from the missing script.  Suggestion from François Pinard.
82736
82737 2000-01-25  Jim Meyering  <meyering@lucent.com>
82738
82739         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
82740         well as time.h in the compile check.
82741         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
82742         Fix typo in cross-compiling case: s/yes/no/.
82743
82744 2000-01-23  Jim Meyering  <meyering@lucent.com>
82745
82746         * m4/jm-macros.m4: Move df-related tests here from
82747         fileutils/configure.in
82748
82749         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
82750         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
82751
82752         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
82753         s/space/ac_fsusage_space/.
82754         (jm_FILE_SYSTEM_USAGE): Take two parameters.
82755
82756         * m4/ftruncate.m4: New file (derived from part of
82757         fileutils/configure.in).
82758         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
82759         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
82760
82761         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
82762         AC_SUBST these here, rather than just in sh-util/configure.in, so
82763         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
82764         all the same.
82765         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
82766         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
82767         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
82768         (AC_SUBST(POW_LIBM)): Likewise.
82769         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
82770
82771 2000-01-23  Jim Meyering  <meyering@lucent.com>
82772
82773         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
82774         obstack.c.
82775
82776 2000-01-22  Jim Meyering  <meyering@lucent.com>
82777
82778         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
82779
82780         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
82781
82782         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
82783         configure.in
82784         (AC_CHECK_HEADERS): Likewise for sh-utils.
82785         (AC_CHECK_HEADERS): Likewise for textutils.
82786         Merge the three lists of headers.
82787
82788         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
82789         from fileutils' configure.in.
82790
82791         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
82792         code. Moved tests into their own function (_jm_DECL_HEADERS) in
82793         check-decl.m4.
82794
82795         * m4/check-decl.m4: Use #if rather than #ifdef.
82796         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
82797         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
82798         (_jm_DECL_HEADERS): Define new function.
82799         (jm_CHECK_DECLARATIONS): Require it.
82800
82801 2000-01-22  Jim Meyering  <meyering@lucent.com>
82802
82803         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
82804         [! HAVE_DECL_STRTOULL]: Declare strtoull.
82805         Required for some AIX systems.  Reported by Christian Krackowizer.
82806         [TESTING] (main): New function.
82807
82808         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
82809         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
82810         letters.
82811
82812         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
82813         iswprint.
82814
82815         * lib/strverscmp.c (ISDIGIT): Define.
82816         (strverscmp): Use ISDIGIT, not isdigit.
82817
82818 2000-01-19  Jim Meyering  <meyering@lucent.com>
82819
82820         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
82821         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
82822         defines `struct timespec' in <sys/time.h>
82823
82824         * m4/c-bs-a.m4: Remove uses of changequote altogether.
82825         Thanks to Akim for explaining.
82826
82827 2000-01-17  Paul Eggert  <eggert@twinsun.com>
82828
82829         * lib/nanosleep.c (nanosleep):
82830         Don't use SA_INTERRUPT to decide whether to call sigaction, as
82831         POSIX.1 doesn't require SA_INTERRUPT and some systems
82832         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
82833         it's been part of POSIX.1 since day 1 (in 1988).
82834
82835 2000-01-17  Jim Meyering  <meyering@lucent.com>
82836
82837         * lib/interlock: Remove unused file.  Reported by François Pinard.
82838
82839 2000-01-16  Paul Eggert  <eggert@twinsun.com>
82840
82841         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
82842         alert, backslash, formfeed, and vertical tab unnecessarily in
82843         shell quoting style.
82844
82845 2000-01-16  Jim Meyering  <meyering@lucent.com>
82846
82847         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
82848         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
82849         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
82850         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
82851
82852 2000-01-16  Jim Meyering  <meyering@lucent.com>
82853
82854         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
82855         because the latter didn't work.
82856
82857 2000-01-15  Jim Meyering  <meyering@lucent.com>
82858
82859         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
82860         (AC_REPLACE_FUNCS): Add memcpy and memset.
82861         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
82862         Add strpbrk.
82863         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
82864
82865 2000-01-12  Jim Meyering  <meyering@lucent.com>
82866
82867         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
82868         (jm_PREREQ): Use it.
82869         (jm_PREREQ_READUTMP): New macro.
82870         (jm_PREREQ): Use it.
82871
82872 2000-01-11  Paul Eggert  <eggert@twinsun.com>
82873
82874         Quote multibyte characters correctly.
82875         * m4/c-bs-a.m4: New file.
82876         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
82877         (jm_PREREQ): Use it.
82878
82879 2000-01-11  Paul Eggert  <eggert@twinsun.com>
82880
82881         * m4/uintmax_t.m4: Port to autoconf 2.13.
82882
82883 2000-01-08  Jim Meyering  <meyering@ascend.com>
82884
82885         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
82886         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
82887
82888 2000-01-04  Jim Meyering  <meyering@ascend.com>
82889
82890         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
82891         jm_STRUCT_DIRENT_D_TYPE.
82892         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
82893         jm_STRUCT_DIRENT_D_INO.
82894         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
82895         jm_STRUCT_UTIMBUF.
82896         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
82897         renamings.
82898         * m4/utime.m4: Likewise.
82899
82900         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
82901         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
82902
82903 2000-01-03  Paul Eggert  <eggert@twinsun.com>
82904
82905         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
82906         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
82907
82908 2000-01-02  Jim Meyering  <meyering@ascend.com>
82909
82910         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
82911         remember if this is necessary.
82912
82913 1999-12-26  Jim Meyering  <meyering@ascend.com>
82914
82915         * m4/jm-macros.m4: Use it here.
82916         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
82917
82918 1999-12-23  Jim Meyering  <meyering@ascend.com>
82919
82920         * m4/jm-macros.m4: Check for clock_gettime (moved from
82921         fileutils/configure.in)
82922         Check for gettimeofday.
82923
82924 1999-12-20  Jim Meyering  <meyering@ascend.com>
82925
82926         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
82927         autoconf-2.14a-1999-12-20.
82928
82929 1999-12-19  Jim Meyering  <meyering@ascend.com>
82930
82931         * m4/lstat-slash.m4: New file.
82932         * m4/jm-macros.m4: Use the new macro:
82933         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82934
82935 1999-12-07  Jim Meyering  <meyering@ascend.com>
82936
82937         * m4/perl.m4: Require that File::Compare be available, too.
82938         Too many systems seem to lack it.
82939
82940         * m4/strftime.m4: Add checks for most of the cpp macros tested in
82941         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
82942
82943 1999-11-18  Paul Eggert  <eggert@twinsun.com>
82944
82945         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
82946         problem with the QNX 4.25 shell, which doesn't propagate exit
82947         status of failed commands inside shell assignments.
82948
82949 1999-11-17  Jim Meyering  <meyering@ascend.com>
82950
82951         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
82952
82953 1999-11-07  Jim Meyering  <meyering@ascend.com>
82954
82955         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
82956
82957 1999-11-06  Jim Meyering  <meyering@ascend.com>
82958
82959         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
82960         * m4/jm-macros.m4 (jm_MACROS): Use it here.
82961
82962 1999-11-05  Jim Meyering  <meyering@ascend.com>
82963
82964         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
82965         configure.in of textutils, fileutils, and sh-utils into this one
82966         (shared between those packages) file.
82967         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
82968         AC_STRUCT_ST_BLKSIZE.
82969
82970 1999-11-03  Jim Meyering  <meyering@ascend.com>
82971
82972         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
82973         of AC_CHECK_TYPE checks includes unistd.h.
82974         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
82975         Suggestion from Akim Demaille.
82976
82977 1999-10-30  Jim Meyering  <meyering@ascend.com>
82978
82979         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
82980         m4-quoted string.
82981         * m4/ls-mntd-fs.m4: Likewise.
82982         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
82983         * m4/jm-winsz1.m4: Likewise.
82984
82985         * m4/const.m4: Remove file, since the fix made it into the experimental
82986         version of autoconf.
82987         * m4/mktime.m4: Likewise.
82988
82989         * m4/check-type.m4: Remove file, now that the latest version of
82990         AC_CHECK_TYPE takes a third arg to specify additional #includes.
82991
82992         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
82993         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
82994         AC_CHECK_TYPE.
82995
82996 1999-10-04  Jim Meyering  <meyering@ascend.com>
82997
82998         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
82999
83000 1999-09-22  Paul Eggert  <eggert@twinsun.com>
83001
83002         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
83003         2.95.1 bug with HP-UX 10.20.
83004
83005 1999-09-17  Jim Meyering  <meyering@ascend.com>
83006
83007         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
83008         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
83009         due to missing strdup (against sh-utils-2.0).
83010
83011 1999-08-29  Jim Meyering  <meyering@ascend.com>
83012
83013         * m4/jm-macros.m4: Require jm_BISON.
83014         * m4/bison.m4: New file.
83015
83016 1999-08-17  Paul Eggert  <eggert@twinsun.com>
83017
83018         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
83019         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
83020
83021 1999-08-05  Jim Meyering  <meyering@ascend.com>
83022
83023         * m4/getline.m4: Rename test file from conftestdata to conftest.data
83024         to avoid conflicts with `conftest' on 8+3 filesystems.
83025         Suggestion from Eli Zaretskii.
83026
83027 1999-08-04  Jim Meyering  <meyering@ascend.com>
83028
83029         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
83030         fileutils and sh-utils (textutils's getline test was inadequate).
83031         (AM_FUNC_GETLINE): Run this test.
83032         (AC_CHECK_FUNCS): Check for getdelim.
83033         Reported by Bob Proulx.
83034
83035 1999-08-02  Jim Meyering  <meyering@ascend.com>
83036
83037         * m4/jm-macros.m4: Add a comment.
83038
83039 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83040
83041         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
83042         <inttypes.h> defines strtoumax as a macro (and not as a
83043         function).
83044
83045 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83046
83047         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
83048         that we can shift, multiply and divide unsigned long long
83049         values; Ultrix cc can't do it.
83050
83051 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83052
83053         * m4/mktime.m4: New file, which is a preview of what should appear
83054         in the next public autoconf release.
83055
83056 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83057
83058         * m4/lfs.m4: Remove this file.
83059         * m4/largefile.m4: New file.  It contains the old contents of
83060         lfs.m4, except that all names with prefix AC_LFS have been
83061         changed to use the prefix AC_SYS_LARGEFILE instead, to be
83062         compatible with future autoconf versions.  Also, some minor m4
83063         quoting problems have been fixed.
83064
83065 1999-08-01  Paul Eggert  <eggert@twinsun.com>
83066
83067         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
83068         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
83069         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
83070         and simplify the shell code.
83071
83072 1999-08-01  Jim Meyering  <meyering@ascend.com>
83073
83074         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
83075         m4.
83076
83077 1999-07-20  Jim Meyering  <meyering@ascend.com>
83078
83079         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
83080
83081 1999-07-15  Jim Meyering  <meyering@ascend.com>
83082
83083         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
83084
83085 1999-05-22  Jim Meyering  <meyering@ascend.com>
83086
83087         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
83088
83089 1999-05-20  Jim Meyering  <meyering@ascend.com>
83090
83091         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
83092         Add a colon after each `then' in case $4 is empty.
83093
83094 1999-05-16  Jim Meyering  <meyering@ascend.com>
83095
83096         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
83097
83098 1999-05-10  Jim Meyering  <meyering@ascend.com>
83099
83100         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
83101
83102         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
83103         AC_FUNC_MKTIME.
83104
83105 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
83106
83107         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
83108
83109 1999-05-04  Paul Eggert  <eggert@twinsun.com>
83110
83111         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
83112         not CPPFLAGS, so that linking works correctly in IRIX.
83113
83114 1999-04-30  Paul Eggert  <eggert@twinsun.com>
83115
83116         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
83117
83118 1999-04-20  Paul Eggert  <eggert@twinsun.com>
83119
83120         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
83121         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
83122         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
83123         jm_AC_TYPE_UNSIGNED_LONG_LONG.
83124         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
83125
83126         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
83127
83128 1999-04-20  Jim Meyering  <meyering@ascend.com>
83129
83130         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
83131         AC_REPLACE xstroull if necessary.  From Paul Eggert.
83132         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
83133
83134 1999-04-18  Jim Meyering  <meyering@ascend.com>
83135
83136         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
83137         * m4/jm-macros.m4: Use it.
83138
83139 1999-04-06  Jim Meyering  <meyering@ascend.com>
83140
83141         * m4/strftime.m4: Remove test for %f.
83142
83143 1999-03-29  Jim Meyering  <meyering@ascend.com>
83144
83145         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
83146         superset of the AC_TYPE_* checks in the textutils, fileutils,
83147         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
83148         AC_TYPE_PID_T.
83149
83150 1999-03-28  Jim Meyering  <meyering@ascend.com>
83151
83152         * m4/jm-macros.m4: Define GNU_PACKAGE here.
83153         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
83154         replaced e.g., in the *.sh files of the sh-utils.
83155
83156 1999-03-20  Jim Meyering  <meyering@ascend.com>
83157
83158         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
83159         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
83160         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
83161
83162 1999-03-19  Jim Meyering  <meyering@ascend.com>
83163
83164         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
83165
83166 1999-03-12  Jim Meyering  <meyering@ascend.com>
83167
83168         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
83169
83170 1999-03-07  Jim Meyering  <meyering@ascend.com>
83171
83172         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
83173         declared.
83174
83175 1999-02-17  Jim Meyering  <meyering@ascend.com>
83176
83177         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
83178         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
83179
83180 1999-02-07  Jim Meyering  <meyering@ascend.com>
83181
83182         * m4/group-member.m4: New file -- extracted from sh-utils'
83183         configure.in.
83184
83185         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
83186         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
83187
83188 1999-02-06  Jim Meyering  <meyering@ascend.com>
83189
83190         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
83191         * m4/fnmatch.m4: Likewise.
83192         * m4/getgroups.m4: Likewise.
83193         * m4/lstat.m4: Likewise.
83194         * m4/malloc.m4: Likewise.
83195         * m4/putenv.m4: Likewise.
83196         * m4/realloc.m4: Likewise.
83197         * m4/regex.m4: Likewise.
83198         * m4/stat.m4: Likewise.
83199         * m4/strftime.m4: Likewise.
83200         Suggestion from Alain Magloire.
83201
83202         * m4/chown.m4: Use `.$ac_objext', not `.o'.
83203         * m4/fnmatch.m4: Likewise.
83204         * m4/getgroups.m4: Likewise.
83205         * m4/getline.m4: Likewise.
83206         * m4/lstat.m4: Likewise.
83207         * m4/malloc.m4: Likewise.
83208         * m4/memcmp.m4: Likewise.
83209         * m4/putenv.m4: Likewise.
83210         * m4/realloc.m4: Likewise.
83211         * m4/regex.m4: Likewise.
83212         * m4/stat.m4: Likewise.
83213         * m4/strftime.m4: Likewise.
83214         Suggestion from Alain Magloire.
83215
83216         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
83217         an argument.
83218
83219         * m4/regex.m4: Add a run-time Test for proper operation of
83220         re_compile_pattern.
83221
83222 1999-01-31  Jim Meyering  <meyering@ascend.com>
83223
83224         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
83225
83226 1999-01-30  Jim Meyering  <meyering@ascend.com>
83227
83228         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
83229
83230         * m4/jm-mktime.m4: Make this a wrapper around the official
83231         AM_FUNC_MKTIME rather than my private copy, now that the official one
83232         is up to date.
83233         * m4/mktime.m4: Remove file.
83234
83235         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
83236         * m4/uptime.m4: Likewise.
83237         * m4/uintmax_t.m4: Likewise.
83238
83239 1999-01-28  Jim Meyering  <meyering@ascend.com>
83240
83241         * m4/jm-macros.m4: Use jm_AFS.
83242         * m4/afs.m4: New file (from fileutils' configure.in).
83243
83244         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
83245         * m4/chown.m4: Likewise.
83246         * m4/d-ino.m4: Likewise.
83247         * m4/d-type.m4: Likewise.
83248         * m4/fnmatch.m4: Likewise.
83249         * m4/getgroups.m4: Likewise.
83250         * m4/gettext.m4: Likewise.
83251         * m4/jm-mktime.m4: Likewise.
83252         * m4/jm-winsz2.m4: Likewise.
83253         * m4/lcmessage.m4: Likewise.
83254         * m4/ls-mntd-fs.m4: Likewise.
83255         * m4/malloc.m4: Likewise.
83256         * m4/memcmp.m4: Likewise.
83257         * m4/putenv.m4: Likewise.
83258         * m4/realloc.m4: Likewise.
83259         * m4/st_mtim.m4: Likewise.
83260         * m4/strftime.m4: Likewise.
83261
83262 1999-01-16  Jim Meyering  <meyering@ascend.com>
83263
83264         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
83265         (ARGMATCH_DIE_DECL): Define.
83266
83267 1999-01-12  Jim Meyering  <meyering@ascend.com>
83268
83269         * m4/Makefile.am.in: Rewrite to avoid using fmt.
83270         Reported by Lars Hecking.
83271
83272 1999-01-10  Jim Meyering  <meyering@ascend.com>
83273
83274         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
83275         gross kludge.
83276         * m4/inttypes_h.m4: Likewise.
83277         * m4/lstat.m4: Likewise.
83278         * m4/malloc.m4: Likewise.
83279         * m4/readdir.m4: Likewise.
83280         * m4/realloc.m4: Likewise.
83281         * m4/st_dm_mode.m4: Likewise.
83282         * m4/stat.m4: Likewise.
83283         * m4/utimbuf.m4: Likewise.
83284         * m4/utimes.m4: Likewise.
83285
83286         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
83287         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
83288         comments in config.h.in are meaningful.
83289
83290         * m4/jm-macros.m4: Require autoconf-2.13 here.
83291
83292         * m4/regex.m4: By default, don't use the included regex.c on systems
83293         with glibc 2.  Suggestion from Uli Drepper.
83294
83295 1999-01-02  Jim Meyering  <meyering@ascend.com>
83296
83297         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
83298
83299 1998-12-18  Jim Meyering  <meyering@ascend.com>
83300
83301         * m4/Makefile.am.in (Makefile.am): Simplify rule.
83302         Based on a suggestion from Lars Hecking.
83303
83304 1998-11-16  Paul Eggert  <eggert@twinsun.com>
83305
83306         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
83307
83308 1998-11-16  Jim Meyering  <meyering@ascend.com>
83309
83310         * m4/lfs.m4: Double-quote the `uname...` expression.
83311
83312 1998-11-14  Jim Meyering  <meyering@ascend.com>
83313
83314         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
83315         * m4/stat.m4: Likewise.
83316
83317 1998-11-03  Jim Meyering  <meyering@ascend.com>
83318
83319         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
83320         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
83321
83322 1998-10-18  Jim Meyering  <meyering@ascend.com>
83323
83324         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
83325
83326 1998-10-17  Jim Meyering  <meyering@ascend.com>
83327
83328         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
83329         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
83330         calls for those previously hard-coded headers.  Instead, take a new
83331         parameter.
83332         (jm_CHECK_DECLARATIONS): Reflect interface change.
83333         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
83334         (jm_CHECK_DECL_LOCALTIME_R): New macro.
83335
83336         * m4/mktime.m4: Test for spring-forward gap before long-running test.
83337
83338 1998-10-14  Jim Meyering  <meyering@ascend.com>
83339
83340         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
83341         instead of "TZ=America/Vancouver".  From Paul Eggert.
83342
83343 1998-10-11  Jim Meyering  <meyering@ascend.com>
83344
83345         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
83346         This adds a test for a recently added compatibility fix for mktime.c.
83347         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
83348
83349 1998-09-27  Jim Meyering  <meyering@ascend.com>
83350
83351         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
83352
83353         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
83354         ../configure.in, including a change from Gordon Matzigkeit to allow
83355         cross-compiling for the Hurd.
83356
83357         * m4/glibc.m4: New file/macro to test for the GNU C Library
83358         versions 1 and 2.  From Gordon Matzigkeit.
83359         Indent.
83360
83361 1998-09-21  Jim Meyering  <meyering@ascend.com>
83362
83363         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
83364
83365 1998-08-18  Paul Eggert  <eggert@twinsun.com>
83366
83367         Port nanosecond-resolution times to UnixWare 2.1.2 and
83368         pedantic Solaris 2.6.
83369
83370         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
83371         AC_STRUCT_ST_MTIM.
83372         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
83373         Generate name of ns member, instead of just 1 or undef.
83374         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
83375
83376 1998-08-15  Jim Meyering  <meyering@ascend.com>
83377
83378         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
83379         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
83380         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
83381         instead of jm_TYPE_SSIZE_T.
83382
83383 1998-08-12  Jim Meyering  <meyering@ascend.com>
83384
83385         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
83386
83387 1998-08-02  Jim Meyering  <meyering@ascend.com>
83388
83389         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
83390         in acconfig.h manually.
83391
83392 1998-07-31  Paul Eggert  <eggert@twinsun.com>
83393
83394         * m4/st_mtim.m4: New file.
83395
83396 1998-07-28  Jim Meyering  <meyering@ascend.com>
83397
83398         * m4/utimes.m4: Undef stat.
83399
83400 1998-07-25  Jim Meyering  <meyering@ascend.com>
83401
83402         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
83403         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
83404
83405 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
83406
83407         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
83408         uid and gid actually remain unchanged.
83409
83410 1998-07-07  Jim Meyering  <meyering@ascend.com>
83411
83412         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
83413
83414 1998-07-04  Jim Meyering  <meyering@ascend.com>
83415
83416         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
83417         to prove that this macro can be used in packages without regex.c.
83418
83419 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
83420
83421         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
83422         is to be used.
83423
83424 1998-07-03  Jim Meyering  <meyering@ascend.com>
83425
83426         * m4/gettext.m4: Add -lintl if it's found to be necessary.
83427
83428         * m4/gettext.m4: New file -- from gettext-0.10.35.
83429         * m4/lcmessage.m4: Likewise.
83430         * m4/progtest.m4: Likewise.
83431
83432         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
83433         * m4/jm-macros.m4: Require the new macro.
83434
83435 1998-06-29  Jim Meyering  <meyering@ascend.com>
83436
83437         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
83438         for the definition of NGROUPS (used in a system header included
83439         by sys/mount.h).
83440
83441 1998-06-28  Jim Meyering  <meyering@ascend.com>
83442
83443         * m4/ls-mntd-fs.m4: New file.
83444         * m4/fstypename.m4: New file.
83445
83446         * m4/jm-macros.m4: Require the new macro.
83447         * m4/jm-glibc-io.m4: New file.
83448
83449 1998-05-19  Jim Meyering  <meyering@ascend.com>
83450
83451         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
83452         * m4/lchown.m4: New file.
83453
83454         * m4/Makefile.am.in: New file.
83455         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
83456
83457 1998-05-14  Jim Meyering  <meyering@ascend.com>
83458
83459         * m4/Makefile.am (EXTRA_DIST): Add them.
83460         * m4/jm-macros.m4: New file.
83461         * m4/utimbuf.m4: New file.
83462
83463 1998-05-12  Jim Meyering  <meyering@ascend.com>
83464
83465         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
83466
83467 1998-05-11  Jim Meyering  <meyering@ascend.com>
83468
83469         * m4/isc-posix.m4: New file.
83470
83471 1998-05-10  Jim Meyering  <meyering@ascend.com>
83472
83473         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
83474
83475 1998-05-09  Jim Meyering  <meyering@ascend.com>
83476
83477         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
83478         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
83479         with automake.
83480
83481         * m4/ssize_t.m4: New file.
83482         * m4/mktime.m4: Remove file -- the new automake has this now.
83483
83484 1998-04-26  Jim Meyering  <meyering@ascend.com>
83485
83486         * m4/assert.m4: New file.
83487         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
83488
83489 1998-04-05  Jim Meyering  <meyering@ascend.com>
83490
83491         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
83492         (jm_PREREQ): Use it here.
83493
83494 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
83495
83496         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
83497         in acconfig.h.
83498
83499 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
83500
83501         * m4/prereq.m4: New file.
83502         * m4/error.m4: New file.
83503         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
83504
83505 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
83506
83507         * m4/getline.m4: Don't set am_cv_func_working_getline before the
83508         cache-check for the same variable -- that defeated the purpose of
83509         the test; the test program was never run.  This was a problem only
83510         on systems with losing getline functions -- HP-UX 10.20 is one.
83511         Reported by Bjorn Helgaas.
83512
83513 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
83514
83515         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
83516
83517 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
83518
83519         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
83520
83521         * m4/const.m4: New file.  Use an initializer in this declaration
83522         typedef int charset[2]; const charset x;
83523         Reported by Bob Glickstein.
83524
83525 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
83526
83527         * m4/chown.m4: Fix reversed types on -1 args to chown.
83528         From Kaveh Ghazi.
83529
83530 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
83531
83532         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
83533         Add lseek and memchr.
83534
83535         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
83536         T.E.Dickey <dickey@clark.net> said that some older preprocessors
83537         have a 20-character limit on names.
83538
83539 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
83540
83541         * m4/inttypes_h.m4: New file.
83542         * m4/uintmax_t.m4: New file.
83543         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
83544
83545
83546         -----
83547
83548         Local Variables:
83549         coding: utf-8
83550         End:
83551
83552         Copyright (C) 1997-2011 Free Software Foundation, Inc.
83553
83554         Copying and distribution of this file, with or without
83555         modification, are permitted provided the copyright notice
83556         and this notice are preserved.